Questions tagged [vector]

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

6
votes
5answers
16k views

Measuring the distance between lines and points in QGIS

Using QGIS - I have a vector of fault lines. I have point data in the form of a csv which I have also loaded into QGIS. I need to know how far each point is from the nearest fault line then enter ...
0
votes
0answers
46 views

Is there a Python script or geoprocessing tool that takes a folder of PBF Vector Tiles (TMS or XYZ Tiling Scheme) to VTPK (ESRI Vector Tile Package)

I'm trying to convert a folder of OSM PBF Vector Tiles to Esri's Vector Tile Package format (VTPK) for publishing in ESRI ArcGIS Enterprise. Building/generating vector tiles with ArcGIS Pro is too ...
0
votes
1answer
17 views

How to prevent labels from a vector file to overlap the raster file?

I have vector file of say Sewer lines with diameter as their labels. Against some of the sewer, georef. images are placed. While displaying all together, line labels do appear over the raster file. I ...
0
votes
1answer
142 views

How to properly import corine landcover 2012 (vector file) in QGIS?

I'm fairly new to QGIS (using version 2.18.25), so I may be missing something quite basic. I'm using the Corine landcover (clc12_Version_18_5.gdb) in my project. It's a very large dataset (3GB) so it ...
0
votes
1answer
42 views

Exporting vector from raster classification gives deformed vector in Google Earth Engine?

I am very new with Google Earth Engine and I try to make a landcover classification using Sentinel-2 imagery to get the urban area over a very large area (country wide ideally). I was able to ...
1
vote
1answer
219 views

Reclassifying shapefile using ArcGIS Desktop?

So I have a shapefile consisting of 1000 polygon records. I would want to reclassify one field "Value" into a new blank field named "New Value". As an example: record = 1; value = 25.6 record = 2; ...
0
votes
3answers
66 views

QGIS: Intersect rasterdata with vectorline

I am new to QGIS. My aim is to be able to get information of the height at any point on my vector line. My raster is a map with height information in the format geotiff. The vector layer is in the ...
0
votes
0answers
18 views

ERROR in R - it cannot support the vector

I did use the function crop and mean for 434 rasters in Rstudio. Each one is very big, it corresponds almost like 1/4 of Brazil. Now I want to calculate the standard deviation between these 434 ...
0
votes
0answers
16 views

Calculate average slope values for a point using 50ft vector perpendicular to contour

I am trying to calculate the average percent slope of a hillside on either site of a data point. I tried extracting info from a DEM using a radius around the point, but I believe a more accurate ...
0
votes
1answer
397 views

QGIS: Getting Concurrent mapset locking error using V.transform

Using QGIS 3.4.3 I'm trying to carry out a simple v.transform task shifting x and y But I'm receiving the following errors - and output shapefile is empty. Processing algorithm… Algorithm 'v....
3
votes
1answer
374 views

Rasterize (vector to raster) QGIS 3.4

I am trying to rasterize a vector with the QGIS 3.4 rasterize tool (not saga or grass tools). I prefer using this tool cause it is much faster. The values which i would like to burn are found in the "...
2
votes
1answer
51 views

How to connect polygons to make a circle?

I created polygons from a raster on which I ran an edge detection filter. I turned the edges into a polygon layer (multipart splitted into single parts). The intention was to have circular polygons at ...
4
votes
1answer
213 views

Vector layer does not appear with OpenLayers

When I import the vector it simply does not show in the map. I tried with a raster and it worked fine. I tried now with both KML and GeoJSON and the same thing happen, I can see that it loaded in the ...
26
votes
4answers
67k views

Converting vector layer to raster using QGIS?

In qgis in the raster menu there is an item "convert vector to raster". This behaves strangely - I do not understand how it is supposed to work. I can select a vector file, an attribute and an ...
9
votes
2answers
451 views

What spatially-aware GUI administration softwares exist for PostgreSQL/PostGIS?

Most of my experience with PostgreSQL has been pgAdminIII and psql, but I'm interested to know what others use. Is there PostgreSQL equivalent to SQL Server Management Studio (SSMS) and its ability ...
2
votes
0answers
38 views

How to export a single feature (line) from multiple layers and export to individual layers?

I have multiple vector layers representing a time series. Each layer contains many lines each. I want to select a single specific line from each of these these layers and save it to another layer. ...
1
vote
1answer
174 views

Vector difference between two polygon layers by attribute

Is there a way to do a 1:1 difference between two polygon layers based on a similar attribute? The layers have the same number of features with a shared attribute. I've tried the native QGIS ...
29
votes
5answers
90k views

Extract Raster Value into Polygon Attribute

I have Raster Data for a State which has Elevation Data in its pixels. I also have Vector layer which has the 300 divisions of State. what I need is, I want to get the average elevation value of ...
1
vote
0answers
52 views

Raster values shows no data when using identify features tool

I used vector to raster function in QGIS, to convert some points with different values to raster. I tried to use the "Identify Features" to check values for each raster box. The values shows no data ...
1
vote
0answers
15 views

Deleting vector layer within buffer? [closed]

I am trying to delete points from a shapefile with vector information that intersect a buffer that was created. I have tried using the intersect tool, but that only highlights the information that ...
1
vote
0answers
61 views

QGIS fails to generate requested number of random points

Does anyone have any ideas what might be blocking this process? The layer has thousands of polygons totalling hundreds of thousands of square metres, but when asked to locate 140 random points even ...
80
votes
8answers
39k views

Self-hosting Mapbox vector tiles

As presented in a talk at FOSS4G Mapbox Studio allows to create Mapbox vector tiles and export them as a .mbtiles file. The mapbox-gl.js library can be used to dynamically style and render Mapbox ...
1
vote
0answers
51 views

How can I calculate the “average” or “median” result between a number of MultiLine Strings?

So I have a number (let's say 12) of multiline strings representing something that changes over time, like forest borders or shorelines. I want to create a single line that is the result of the ...
0
votes
0answers
22 views

Save each record in a shapefile to a new shapefile or KML [duplicate]

I have created a shapefile of 13 polygons. Each polygon is a single-part feature. I want to create 13 new shapefiles where each each shapefile represents each record in the attribute table. I know ...
15
votes
2answers
16k views

How to perform a true GIS clip of polygons layer using a polygon layer in R?

I would like to do a true GIS Clip in R of soils polygons using a series of single boundary polygons, but I cannot find an R function to properly do it. It should work just like the clip function in ...
7
votes
3answers
842 views

How to get a list of adjacent lots to a road in ArcMAP and PostGIS/QGIS?

In the following map, I have: A line / road layer A parcel / lot layer The Task: Find and count the list of lots adjacent to the road with their types (parcel_type is a field in the parcel layer) ...
2
votes
1answer
144 views

Delete vertices from a line pyQGIS

I have a line made of 17959 nodes. I want to delete several range of nodes from that line with a python command. For example I want to delete all nodes between node 5530 to node 5861 and connect node ...
0
votes
1answer
86 views

Single Side Buffer pyQGIS

I am trying to create a single side distance buffer around a line on QGIS. Here is the code I am writing but I don't get the expected result: processing.runalg("qgis:fixeddistancebuffer","input.shp"...
1
vote
2answers
482 views

How to assign raster layer's colors to polygons in QGIS?

I have a georeferenced raster file showing parcels of a town with different colors (yellow for the category single-household residential, green for agricultural areas, etc.). I also have the shapes of ...
1
vote
1answer
799 views

Projecting vector data in QGIS?

I'm running QGIS 2.2 on Ubuntu 14.04. Trying to project data gives me a hard time right now. The last time I did that was in 2.0 and I basically changed the projection by saving the data as a new ...
0
votes
1answer
40 views

Two parallel lines (vectors), only one feature (ID) [closed]

I have one shapefile that contains two parallel lines in yellow in the picture. Both lines have the same feature (these lines were originally both sides of a fixed distance buffer around a line). I ...
8
votes
3answers
5k views

How to create a new Spatialite database in QGIS

I've been trying to create a new spatialite database within QGIS 1.8 (SpatiaLite Version 3.0.1; QSpatialite 6.0.3) and keep getting this error: "The SQL query seems to be invalid. no such table: ...
1
vote
1answer
478 views

Vector title attribute can't display?

var vectormap = new OpenLayers.Layer.Vector('Overlay', { styleMap: new OpenLayers.StyleMap( { "default": new OpenLayers.Style({ ...
0
votes
0answers
131 views

OGR Python: Copying features from one datasource to another works with shapefile but not with geopackage

I have a shp/dbf EPSG4674 input datasource, and I want to copy features from one layer of this input datasource, create a new output datasource and write these features to that output datasource. As ...
1
vote
1answer
45 views

Connect outline gaps at vector shape

Could someone shed some light into a method to link breaking outline borders without much distortion from the original like e.g. convex hull does? Convex hull alternative ideas are of course welcome ...
0
votes
1answer
95 views

QGIS Join vector point into polygon's

I have groups of vector points (GPS points) in a number of layers in QGIS. I would like to connect the points in each layer into polygons in each individual layer. I have look hard, but can not find ...
2
votes
1answer
46 views

Export shapefile to CSV files by a grid I drew in a image

The shapefile is in orange and I need to export them into (1.csv and 2.csv etc...) corresponding to each grid I drew in the map. Is there any way this can be done in a single process?
1
vote
1answer
4k views

How to make a density map from polygons/rasters (ArcGIS)

I would like to make a density map of grasslands. I have a vector layer of habitat classifications, I would like to a density map of grasslands within a specified radius. My thoughts are to: ...
2
votes
2answers
905 views

Most recent tectonic plate data

What is the latest update to the positions of the tectonic plates? Does anyone have a most up-to-date shapefile or vector of the tectonic plates?
0
votes
1answer
46 views

How to calculate the area of several classes of a raster in a polygon of a vector file with QGIS?

I have some trouble with QGIS I have two layers of information: The first one a vector that contains 500 objects, with attributes such as number of population, and... A raster that has three classes:...
1
vote
1answer
254 views

How to convert vector format (geopackage, shapefile) to raster format (geotiff) using rasterio without template raster

I'm looking to create a raster given just a geopackage (or shapefile, or other vector format). I don't have a template raster, and all I wish to do is burn the shapes into a raster using rasterio. ...
1
vote
1answer
65 views

Selecting points/buffers by location according to vector area value?

I am trying to select buffers "touching" a vector layer with a specific value. This vector layer comes from a categorized raster with values of 0 to 6. How can I select buffers that "touch" or ...
4
votes
1answer
498 views

Joining csv file to vector layer in Processing modeler?

I am trying to join a simple CSV file of values to a vector layer within Processing modeller. The match would be on an ID held by both files. The CSV file has no geometry. I can do this easily in ...
26
votes
8answers
29k views

Georeferencing vector layer with control points using QGIS?

I have a non-georeferenced vector layer that I need to be georeferenced. With raster layers the task is easy and straightforward, but I have no idea what should I do with my vector layer. I have a few ...
2
votes
2answers
2k views

Render order of vector features in OpenLayers 3

In a web map application I have a vector layer from a GeoJSON source of country borders. The layer loads perfectly and interactions such as ol.interaction.select works fine as well. I want to style ...
2
votes
2answers
676 views

how do i create OGRSpatialReference from raster file's georeference C++

I want to create .shp file using ogr with georeference based on my raster file, so i create an ogr layer using CreateLayer( "point_out", NULL, wkbPoint, NULL ); i want to set the OGRSpatialReference ...
8
votes
3answers
324 views

Cutting Polygons in QGIS at a specific distance from a feature in another layer

I would like to be able to cut polygons such as the one below, in QGIS, at a set distance either side of a specified feature on another layer, in this case a footpath line from OS Mastermap. In this ...
1
vote
3answers
5k views

Convert MultiLineString to LineString using QGIS

In QGIS, I've tried the following options to convert my GeoJSON file from MultiLineString to one or multiple LineStrings (translating the Danish version): Vector -> Geometry Tools -> Polygons to ...
-1
votes
1answer
29 views

Seeking vector file of extent of flood plain of 2010 Pakistan Floods?

I am looking to locate a shapefile or any vector file that can be used for analysis I am conducting of change in size of cropland in the Punjab region of Pakistan. The file of interest would reflect ...
3
votes
1answer
197 views

Batch distance calculation with v.net.distance

I have three shapefiles: one containing destinations the second containing postcodes the third containing the road network I want to calculate the distance between the postcodes and destinations ...