Questions tagged [vector]

A coordinate-based data model that represents geographic features as points, lines, and polygons.

Filter by
Sorted by
Tagged with
1
vote
1answer
45 views

The right way to convert GeoJSON to DXF using QGIS

I have a problem exporting GeoJSON to vector format. I downloaded GeoJSON of highway objects from OSM, opened it in QGIS, and then saved it as DXF. The problem is when I open it in CorelDraw, road ...
2
votes
1answer
30 views

Erode islands of pixels while polygozing a raster

I am polygonizing a single band raster. I am using gdal.Polygonize() function to vectorize the raster. img= r"C:\Users\aoi2.tif" src_ds = gdal.Open(img) srcband = src_ds.GetRasterBand(1) # create ...
0
votes
0answers
15 views

Create multiple rasters from one raster, based on Vector Input in R

I have a DEM for a big region. And I also have a vector-file for several sub-regions. I want to create as many DEM's as I have sub_regions. And I would like to do this in a for loop and for example ...
0
votes
2answers
57 views

Speed up rendering background vector data in QGIS

I have a geopackage of ordnance survey background data (field boundaries, rivers, roads, etc). I won't be doing any analysis on this data it will purely be used as a background / basemap. My problem ...
0
votes
0answers
39 views

Exporting Raster and Vector Layers within ArcMap

I am looking for a geoprocessing tool or script that I can run within ArcMap that will extract all raster and vector layers by polygon shapefile and export them to a file. This should give 609 ...
3
votes
1answer
1k views

Creating buffers that will not overlap in QGIS

I am dealing with a .shp with a number of points in it. The distances between points range from ~300m to 5km. I wish to create a 1 km buffer around each point with as little overlap as possible. Each ...
0
votes
1answer
41 views

QGIS Vector Layers

Why does the Columbia River nearly perfectly follow the OR-WA border? What characteristics do vector layers have that allow this?
1
vote
1answer
48 views

Get a Confusion matrix in QGIS from two vectors

How and with what QGIS tools can I get a confusion matrix from a vector polygon layer as a verifiable classification and a vector point sample layer as a reference classification? That is, if the ...
2
votes
1answer
2k views

Geoserver WMTS Service REST url

recently I have installed the Geoserver with vector tile layer extension, getting the data in pbf (Mapbox vector tile format) with this URL AND I think there is gzip problem too with this. http://...
2
votes
3answers
42 views

Populate an empty raster with values from intersecting vector layers

I'm looking to populate a large, empty Unsigned 8-bit raster with integer values 1 to 10. The value depends on the spatial relationship between a given raster cell and a variety of vector layers (...
3
votes
1answer
494 views

Generating customized vector OSM map files from OpenStreetMamp and other data?

I am looking for a way (e.g. tutorial?) to generate my own customized (offline) maps in OSM format. By "customized" I mean adding data (not just define a region of interest) to an existing OSM map (e....
0
votes
1answer
51 views

Clipping by mask results in blank output

After clipping by mask in QGIS 3.6 the output file has been blank (empty). Raster file and vector mask file have the same projected CRS: USER:100029 - * Generated CRS (+proj=igh +a=6370997 +b=...
0
votes
0answers
13 views

Struggling to clip raster to vector in IDRISI. Windows do not overlap

I am trying to clip my raster to my vector in IDRISI. When I try to convert the vector to raster using my blank, it says vector and raster windows do not overlap. How do I fix this. I know I should ...
1
vote
1answer
29 views

Can QGIS be used to calculate the up-slopes (total area draining to a specified point) of multiple separate points simultaneously?

I am trying to calculate the area draining to a point of 240 separate points using QGIS. At the moment I'm using the Saga - Upslope Area algorithm to individually work this out for each of the 240 ...
0
votes
1answer
157 views

Area surface not matching

I am using ArcGIS Desktop 9.3 and WGS1984. I have three municipalities with a total surface of 178 sq km. I want to analyze land cover of those municipalities using both LANDSAT images with a pixel ...
1
vote
1answer
28 views

Check if function-argument is valid vector-geometry in Python GeoPandas

I wanto to build a function (let's call it clip) that accepts a vector-file (can be a shapefile, a geopackage....) and a raster. How can I make sure the argument that the users gives to the function ...
1
vote
1answer
75 views

Selecting a polygon area in a raster image - rasterio.mask vs roipoly

How should I select a polygon area in a raster image? So far, I have seen two methods: use a vector mask or a shapefile (some examples here: http://www2.geog.ucl.ac.uk/~plewis/geogg122-2011-12/...
7
votes
1answer
192 views

When moving a feature in QGIS, is there a way to nudge it rather than use the mouse?

I need to move a lot of features (polygons) in QGIS to fit a newly Georeferenced scanned map that is slightly asymmetrically distorted. This is fine as it is just to provide a print copy. I end up ...
3
votes
1answer
75 views

Fixing self-connect polygon in QGIS 3.2

I'm trying to clip a soil map layer and am getting invalid geometry that affects my clip result. The problem appears to be a self-intersecting polygon. I've tried using the 'check geometries', and ...
0
votes
0answers
16 views

Vector and Raster Analysis+conversions etc. not working

Pretty much all the analysis I'm trying to do in QGIS (3.4 Mac) is not proceeding. All the commands what I try to do in Processing tool box and GDAL are not working. Seems like I get all the time ...
0
votes
0answers
24 views

Repairing geometry using QGIS [duplicate]

I'm looking for a roughly equivalent tool in QGIS to the Repair Geometry Tool in ArcGIS Desktop. When I run some common vector processing tools in QGIS, I occasionally run into invalid geometry errors ...
58
votes
5answers
81k views

Clipping raster with vector boundaries using QGIS?

I am using QGIS. I would like to clip a raster precipitation layer using an admin boundary layer that is vector data. However the geoprocessing tools seem to be usable only for vector data. How ...
1
vote
1answer
57 views

Altering layer's CRS to correct Layer Misalignment in QGIS

I've got a vector layer in my project which isn't aligned with the rest of the project (see attached JPEG). These are work files so I'm not sure when they were created or how they might have been ...
1
vote
0answers
53 views

Converting Vector (.shp) to Raster (.tiff) using Python GDAL library

I'm trying to convert a vector shapefile to a raster tiff file. I adapted the source code from Python Geospatial Analysis Cookbook by Michael Diener. The code works for line and polygon shapefiles but ...
0
votes
1answer
46 views

Deleting features with Null value in attribute field

I have polygonized a single band raster and created an area field. I want to keep the 10 largest polygons by area and delete the rest. The following script computes the area for all polygons and sorts ...
5
votes
1answer
90 views

Splitting vector layer in R

Is there a way to replicate the Split Vector Layer function from QGIS in R? I have a Shapefile containing around 20 polygons that I'd like to split into 20 separate files. I guess since it's in ...
2
votes
1answer
77 views

Calculate area with a buffer

I am looking for help for my master thesis. I have two layers, a set of households and burned area (vector data). I created buffer zones around each household and now want to estimate the burned area ...
1
vote
1answer
34 views

Adding multiple vertices in QGIS

I created a new polygon feature in QGIS 3.4 using the add polygon feature tool. I accidentally clicked the right mouse button to finish creating the feature. I want to continue being able to add ...
2
votes
2answers
893 views

Changing vector extent in QGIS

I've been looking for a manner to change a vector extent in QGIS, but it's unsuccessfull! I want change extent because in the past, I had problems to convert vector to raster. I try present the ...
4
votes
2answers
382 views

Density map of pedestrian paths and footways in QGIS

I need to identify public places within pedestrian areas in London, so I need to calculate the density of both pedestrian links and footways. I have classified my data according to the categorization ...
0
votes
0answers
17 views

Calculating Cut & Fill amounts for a road, using a feature class representing road and DEM?

I have designed a road centerline in the context of my study area using CAD scripts in python. Then I have converted it to a feature class containing Z-values using ArcPy. Now I need to calculate ...
1
vote
1answer
58 views

Vector tile generation [closed]

I have a full planet imported in PostgreSQL with imposm3. What is the best way to generate vector tiles (MVT in .mbtiles) from PBF/PostgreSQL with maximum hardware utilization (distributed generation ...
4
votes
2answers
414 views

Creating building shadows in QGIS?

Can anyone think of a simple way to create a polygon to represent building shadows? I have a shapefile with height information for the buildings and I want to create a simple plan looking like the ...
1
vote
2answers
38 views

RAT and cell values in R's raster-objects

I really struggle to understand some basic concepts in the structure of how R's raster-objects save values. Namely the RasterLayer, the RasterBrick and the RasterStack. I understand that the values (...
1
vote
1answer
165 views

Openlayers creating RegularPolygon that is too small then return false

My project has to use imagelayer to show map , it can create box on map, box will be a area to put device marker on top , but when the box is too small , there will be a bug in project..., so is ...
1
vote
2answers
1k views

Using custom filters (server side) for OpenLayers Vector Layer

I have a vector layer in openlayers with source in GEOJSON (custom php server, which I have in complete control) and BBOX strategy. Vector points contain point sources which have different attributes....
4
votes
1answer
494 views

Comparing ranges and distributions of species, looking for correlation and differences between ranges

As a biology student just beginning with GIS, I wondere if someone could give me an idea of what tools to go about using to compare the range of 3 species that have trophic effects on one another. I ...
1
vote
1answer
39 views

QGIS Natural Earth Geometries

When I insert country borders from Natural Earth, they look broken when zoomed out. When I zoom in they look correct. Is there any way to correct this, particularly when creating a map in layout?
0
votes
0answers
33 views

Creating a new layer for free space between existing layers

How can I create a new layer that will only show the 'free space' between the raster and vector layers that are currently on my map? Will I have to merge my existing raster and vector layers and use ...
0
votes
0answers
23 views

How to calculate the number of pixels in each class using QGIS?

I have a raster file with slope values. These slope values are divided among several classes like A,B,C. Then there's a vector map with points. For an example a point can belong to class A of slope ...
5
votes
1answer
6k views

Changing vector projection in OpenLayers

I have added vector layer to map: vactorTest = new OpenLayers.Layer.Vector("Editable Features", { strategies: [new OpenLayers.Strategy.BBOX(), saveStrategy], projection: new OpenLayers.Projection(...
0
votes
0answers
20 views

Simultaneously editing 2 features from 2 different layers in QGIS [duplicate]

Is there a way in QGIS to edit 2 different features from 2 different layers at once. For example I selected a point in a point layer and a polygon in a polygon layer and I want to move them to ...
1
vote
2answers
146 views

CRS error working with Solaris [closed]

result_polys = sol.vector.polygon.georegister_px_df(mask2poly, affine_obj=tile_tfm, crs= 'epsg:4326') ...
0
votes
0answers
32 views

Splitting Large MapInfo Table into Individual Parts

Can a MapInfo .tab file made up of 400 territories (polygons) be split up or "exploded" into its individual polygon parts using MapInfo?
2
votes
1answer
304 views

Splitting lines table using point table in PostGIS

My problem is that I want to get the shortest route between multiple point pairs which are stored in a table (PostGIS). In PostGIS I also have a network created using pgr_createTopology on a table ...
2
votes
1answer
135 views

Coordinates of an area on a raster in QGIS

I am new to GIS and I have to do the following: I have a GeoTIFF raster file of a map with some features like clouds and water bodies. It is a satellite image. My images are taken from a snapshot of ...
-2
votes
2answers
344 views

Counting raster points within boundaries in another layer?

I know this question is similar to some out there, but I have tried all the 'solutions' and none of them are working for me. I am using the latest version of Qgis. I have a raster layer with lat/...
3
votes
1answer
573 views

Looking for Android, offline, mobile app for field campaign? [closed]

In the frame of an international project in agriculture monitoring, I have to propose a mobile app that will be used as a reference for field working. The minimum requirements of such an application ...
0
votes
2answers
619 views

In grass v.drape works with points but not lines

I got an elevation raster map which I interpolate from a point cloud with v.surf.bspline. Then I digitize a couple of points in a new vector layer. With v.drape I'm able to get a height from the ...
1
vote
2answers
52 views

Snapping objects to grid without grid?

Is there a function to snap new or moved vectors to a (user-defined) grid on the map similar to the AutoCAD snapping-function without generation a point/line/polygon-grid over the whole region first? ...

1 2 3 4 5 29