Questions tagged [vector]

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

Filter by
Sorted by
Tagged with
38 votes
10 answers
49k 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 ...
AHaav's user avatar
  • 481
68 votes
5 answers
124k views

Clipping raster with vector boundaries using QGIS

In 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 can I clip this ...
Kirk's user avatar
  • 681
6 votes
4 answers
7k views

Checking if polygon fits inside another polygon using ArcGIS Desktop?

How do I check if one polygon fits inside another polygon? Furthermore how do I automatically check if one polygon fits in other polygons of my shapefile? I have a shapefile with thousands of ...
GeoDH's user avatar
  • 71
57 votes
9 answers
84k views

Missing Processing Tools in Vector Menu of QGIS

I'm missing all the usual processing tools in the Vector menu in QGIS 2.16 (e.g. Vector Overlay, Analysis, etc). They do appear in the processing toolbox but there's no sign of them in the Vector menu....
user77875's user avatar
  • 906
41 votes
4 answers
64k views

Loading OpenStreetMap data in QGIS?

In QGIS 1.8 I used the openstreetmap plugin to request data from the server, or open a .osm XML file, which produced 3 layers (polygons, polylines and points) in QGIS. This was great (give or take ...
Laurent S's user avatar
  • 533
19 votes
5 answers
21k views

How to split a vector into equal smaller parts in QGIS or similar?

i want to divide a shapefile with many tiles into a lot of smaller tiles. I am searching for a smart solution, because manual edits are out of questions Anyone can help or know a nice function?
Curlew's user avatar
  • 8,066
28 votes
4 answers
88k 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 ...
stn's user avatar
  • 855
9 votes
3 answers
13k views

Finding vector line bearing in QGIS or GRASS

How can one extract the bearings from a set of lines in a vector file? I'm trying to find the bearings of several straight vector line segments (simplified contour lines, actually) and can't figure ...
Nick_W's user avatar
  • 565
11 votes
6 answers
15k views

Finding middle point (midpoint) of line in QGIS?

How can I locate the coordinates of the middle point (midpoint) of a line feature in QGIS?
Alex Yee's user avatar
  • 111
41 votes
4 answers
38k views

Select bounding box using postGIS?

I want to create a query to select all ways and their nodes that exist within a bounding box using postGIS. The bounding box shall includes all details as osmosis "--bounding-box" command will ...
uriel's user avatar
  • 587
36 votes
5 answers
134k 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 ...
Mahesh's user avatar
  • 735
13 votes
2 answers
15k views

Georeferencing vector PDF/SVG/DXF linework using QGIS? [duplicate]

I want to create a small web application to visualize election results on a per poll site basis for my city. The result is going to be very similar to what has been done for Berlin here. Hopefully ...
bfncs's user avatar
  • 231
47 votes
7 answers
145k views

What are Raster and Vector data in GIS and when to use?

What are raster and vector data in the GIS context? In general terms what applications, processes, or analysis are each suited for? (and not suited for!) Does anyone have some small, concise, ...
37 votes
7 answers
25k views

Nearest neighbor between point layer and line layer? [closed]

I've asked this question several times on stackoverflow and irc between #qgis and #postgis and I also tried to code it or implement it my self in postgis with no real answer. Using programming (most ...
dassouki's user avatar
  • 8,533
24 votes
6 answers
34k views

Moving vectors to specified coordinates in QGIS?

I have a layer of vectors located around, say, (100, 100), and I want to move them to new coordinate like (1000, 1000). How should I do it using QGIS?
ChanDon's user avatar
  • 771
24 votes
4 answers
25k views

Importing SVG into GIS?

I have a PDF file, with a Map as a vector graphic. I want to get this into GIS. (I use ESRI's ArcGIS, but any FOSS solution is also fine). I know that it is not possible to directly get the PDF into ...
Devdatta Tengshe's user avatar
20 votes
4 answers
18k views

Calculating roundness/compactness of polygon?

I am trying to find ways to quantitatively describe the shapes of various polygons. For my project, these polygons represent lakes, rivers, lagoons, and parks. So they can be almost any shape. One ...
user25201's user avatar
  • 361
19 votes
6 answers
14k views

Converting GeoPDF to vector format like CAD or shapefile?

I want to convert a GeoPDF that has vectors entity in it to a vector format and preserve the real coordinates of these vectors. The GeoPDF has been exported from ArcMap and has layers in it. I have ...
jeb's user avatar
  • 1,650
14 votes
4 answers
5k views

Making QGIS attribute table field automatic?

I'm working in a way to make hydrologic projects using QGIS and an Excel worksheet that I have. To do this, I want to extract some information of the lines, included in a vector layer, which ...
LeoNazareth's user avatar
103 votes
11 answers
60k 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 ...
Andreas Bilger's user avatar
14 votes
4 answers
49k views

Calculating minimum distance between points and polygons in QGIS?

I have two vector layers: one point and one polygon and I want to calculate the minimum distance of each point from the polygons (ie the distance from the closest point of the closest polygon). Is ...
Sylvia's user avatar
  • 141
9 votes
5 answers
21k 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 ...
jojo's user avatar
  • 91
14 votes
2 answers
6k views

Moving points onto lines (~neighborhood)

I do have two vector layer, of which one is a point layer based on "events" by remote sensing and the second one is a line layer from local research. In my case these are earthquakes and tectonic ...
Chris Pallasch's user avatar
13 votes
3 answers
7k views

Labeling each individual side of polygon in QGIS

Using native QGIS layer property definitions, I have successfully labelled each polygon in my layer with its area and perimeter. Never satisfied, I now wish to label each side of each polygon with its ...
Bad Loser's user avatar
  • 409
11 votes
3 answers
15k views

Rotating a vector layer in QGIS with qgsAffine (or other method)?

I would like to rotate a set of vector points in QGIS an arbitrary number of degrees around a central point (or arbitrary point). This is similar to a recent question about creating a regular grid; ...
Simbamangu's user avatar
  • 14.8k
9 votes
3 answers
11k views

Finding nearest raster cell value based on vector point?

I have two layers in ArcGIS: One is a vector point and the other is a raster layer. I want to append the value of the raster data grid to the vector point. The problem is the vector point is away from ...
Seen's user avatar
  • 2,205
7 votes
1 answer
9k views

How to create a point along a line given distance

I have been given a non-spatial database which contains the names of lines which I have a shapefile for. The database also has names of points and the distance of each point from the origin along the ...
BWill's user avatar
  • 1,772
14 votes
2 answers
5k views

Clip polygon and retain data?

I have these two polygons: library(sp); library(rgeos); library(maptools) coords1 <- matrix(c(-1.841960, -1.823464, -1.838623, -1.841960, 55.663696, 55.659178, 55.650841, 55....
luciano's user avatar
  • 1,147
12 votes
2 answers
14k views

Splitting line layer using another point layer in QGIS

How to split a line layer using another point layer in QGIS? I have one point layer and one line layer. I want to split the line layer between two points (those two points belongs to point layer) ...
vani's user avatar
  • 161
7 votes
1 answer
22k views

Assigning CRS to shapefile when it doesn't have one, in R?

I think that by using readOGR to import a shapefile renders worthless to put proj4string to the script since if any coords are available in the shapefile, it will be transported through the readOGR. ...
gsa's user avatar
  • 1,246
19 votes
3 answers
29k 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 ...
user29199's user avatar
  • 191
16 votes
2 answers
39k views

Removing overlapping/duplicate polygons in the same layer using QGIS

I am working in QGIS on a vector layer where areas are classified using an attribute "typo". The problem I'm encountering is that many polygons are duplicated or overlapping, with the result ...
Roberto's user avatar
  • 189
26 votes
1 answer
24k views

Merging adjacent polygons in shapefile that has been split at tile boundaries?

I'm currently using building data from the Ordnance Survey Vectormap District and I've noticed that a lot of building polygons are split in 2 because of the way the OS split up the shapefile. This is ...
Robin Hawkes's user avatar
  • 1,025
20 votes
6 answers
16k views

Defining layer CRS and avoiding CRS dialog in PyQGIS?

There is an existing Shapefile, which I want to add. At the moment my code looks like: self.iface.addVectorLayer(self.shpFilePath, "Track", "ogr") It works fine, but i want to define the crs within ...
Hinne123's user avatar
  • 301
16 votes
7 answers
31k views

Getting extent of layer in QGIS

Is there a way to get the extent (bbox) of a vector layer in QGIS? I see that I can update the extent, but I am looking for the actual coordinates of the extent.
ustroetz's user avatar
  • 7,904
14 votes
5 answers
25k views

Identify polygon containing point with R sf package

I would like to be able to map geocoded coordinates to a region on a .shp file in R using the sf package. I can load up the map and plot it but I am struggling with the code to return the region for ...
jmc's user avatar
  • 141
12 votes
2 answers
4k views

Creating "average" polygon?

I found this thread in the old ESRI forums with the same type of problem I am facing today. The solution to the problem is explained in little detail and since I am not an expert, I was wondering if ...
slowhand's user avatar
  • 131
11 votes
3 answers
26k views

How to connect OpenLayers to PostGIS data?

I have read in OpenLayers how to load KML, GeoJSON etc. vector files in OpenLayers. But how can I connect to PostGIS data. If not, why should I upload my data to PostGIS then instead of directly ...
GP92's user avatar
  • 643
11 votes
2 answers
7k views

Creating Vector layer from selected features with PyQGIS

In my QGIS plugin I select dynamically features from a Vector layer. And currently I create a new layer (shapefile) from selection on combining all feature into a new feature: theField = QgsField self....
fkili mohamed's user avatar
11 votes
2 answers
1k views

Displaying vertex coordinates of polygon or line without creating new layer in QGIS

I am wondering if there is a way to display coordinates for each vertex of a polygon by only using expressions, without creating a new layer. So this question is basically inspired by Displaying ...
MrXsquared's user avatar
  • 31.1k
10 votes
1 answer
9k views

OpenLayers WFS vector layer

I'm trying to add a vector layer with a WFS layer and it's not working. Can anyone point a solution? OpenLayers code: var wfs = new OpenLayers.Layer.Vector( "Stavros Features", ...
Argiropoulos Stavros's user avatar
8 votes
3 answers
11k views

Splitting line at point positions using QGIS

I have a polyline and I have two points on the polyline. I would like to know if there is a tool or script that I could use to split my original polyline into 3 polylines? (Starting point to point A, ...
user9163's user avatar
7 votes
3 answers
13k views

Combining information from raster and vector layers in QGIS?

in QGIS I have 1 raster-layer (elevation) and 1 vector-layer (administrative units). Now I would like to be able to query one of the administrative units and see the mean and min/max of the elevation ...
stn's user avatar
  • 855
5 votes
1 answer
1k views

How to horizontally align irregularly shaped point symbol to vector layer in QGIS?

Fairly new to QGIS and searching a method to graphically align my point symbols in the direction of the vector. The symbol represents a water valve in an irregular shape in close proximity to a vector ...
Nhu's user avatar
  • 51
4 votes
2 answers
3k views

Splitting line with point layer in QGIS [duplicate]

With two layers, one multiline and one point, I need to split lines who intersect point layer. In example (image), the selected line is unique but I need 11 lines cut at point level. How can I do ...
pasqal's user avatar
  • 434
3 votes
2 answers
3k views

Cleaning polygon after using dissolve to repair geometry in QGIS?

I'm trying to obtain the boundaries of shapefile, thus to clean the inside as a matter of speaking. While I had expected that dissolve while get me a proper polygon, unfortunately it still has some ...
Geosphere's user avatar
  • 793
2 votes
1 answer
613 views

Vector grid id generation [duplicate]

I generated a grid with 300m spacing but the ids generated from top to bottom in sequential oder. How could I get in horizontal from left to right sequence.
allamalla mohan's user avatar
2 votes
5 answers
10k views

Is there any way to extract coordinates of a road segment using QGIS?

I add my own road vector data on top of Google Maps using the OpenLayers plugin with QGIS. The vector layer is generated using a PostgreSQL DB. Is there any way to extract coordinates of a road ...
chathura's user avatar
2 votes
0 answers
470 views

Connect two contour lines with calculated line length

Is it possible to make a plugin for QGIS like PEGGER for arcview 3.2? Problem is, how to make path over contour lines with a gradient in percent? Formula is: K= e*100/G*M ; K=10*100/0.08*10000=1.25m ...
nagib's user avatar
  • 2,385
-2 votes
1 answer
12k views

Easy way to create buffer in QGIS 2?

In the old version of QGIS creating buffer was a relatively complicated task. Basically you had to save your layer as a new one with metric cylinder CRS in order to calculate distance correctly. If ...
Nitzan Matan's user avatar
  • 2,817

1
2 3 4 5 6