Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [vector]

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

25
votes
8answers
26k 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 ...
55
votes
4answers
66k 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 ...
35
votes
4answers
54k 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 ...
15
votes
5answers
12k 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?
24
votes
4answers
62k 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 ...
5
votes
4answers
4k 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 ...
36
votes
4answers
29k 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 ...
12
votes
2answers
5k views

Georeferencing vector PDF/SVG/DXF linework using QGIS?

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 ...
6
votes
1answer
7k views

How do I find 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 ...
75
votes
7answers
35k 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 ...
47
votes
7answers
131k 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, ...
34
votes
7answers
16k 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 ...
18
votes
6answers
10k 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 ...
27
votes
4answers
84k 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 ...
10
votes
2answers
12k 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; ...
8
votes
3answers
8k 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 ...
12
votes
2answers
26k views

How to clip a line layer based on polygons with QGIS?

I have a line layer and a polygon layer. Both files have the same SRS. I want in a new shape file only the lines covered by the polygons. I tried in QGIS the Vector -> Geoprocessing -> Clip ...
7
votes
1answer
7k 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 ...
6
votes
3answers
2k 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 ...
19
votes
5answers
20k 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?
7
votes
4answers
25k 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 ...
5
votes
1answer
5k 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. ...
14
votes
2answers
5k 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 ...
20
votes
4answers
18k 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 ...
13
votes
2answers
3k 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....
10
votes
3answers
9k 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 ...
5
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
2answers
179 views

Group points and compute area

In a point vector layer, how to compute area for 4 defined ranges of values of one attribute? On the example below, I want the total area for each of the 4 colours.
17
votes
2answers
7k views

How to access feature classes in file geodatabases with Python and GDAL?

I am trying to access a vector dataset in a ESRI File Geodatabase using Python + GDAL. I have successfully compiled GDAL with the file geodatabase API. The FileGDB driver is working correctly since ...
8
votes
1answer
8k 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", ...
2
votes
5answers
8k 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 ...
9
votes
3answers
19k 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 ...
2
votes
0answers
237 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 ...
6
votes
3answers
10k 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 ...
-3
votes
1answer
5k views

A easy way to create buffer in QGIS?

In the old version of QGIS creating buffer was 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 ...
59
votes
7answers
12k views

Creating Vector Polygons with rendering performance like GISCloud?

I have been looking for a solid solution which would allow me to create a web map and overlay vector polygons without taking forever to load such data with the goal of allowing me to make each polygon ...
67
votes
7answers
3k views

Are there any attempts to replace the shapefile? [closed]

Recently I've been spending a lot of time converting perfectly good field names like "Percent of citizens age 25 and over with a bachelor's degree or higher" into things like "edbchogtr" to meet the ...
23
votes
1answer
18k 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 ...
13
votes
1answer
44k views

Add feature manually to a vector layer in ol3

I'm trying to add a layer manually to a vector layer with javascript. I can't seem to determine why this is failing: http://jsfiddle.net/Kieveli/f4t6n6v1/4/ I've tried sane coordinates like 16,22, ...
12
votes
5answers
8k 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 ...
5
votes
1answer
5k views

Sketch event in Openlayers 3 drawing interaction

For drawing Polygon in OpenLayers 2 we could use as follow: function drawEnd(){ ... } function putPoint(){ ... } function sketchModified(){ ... } function cancel(){ ... } var ...
7
votes
2answers
807 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 ...
7
votes
4answers
11k views

How to convert a vector map to raster in Qgis?

I am creating a thematic map (vector data) with different classes. How to convert this vector map to a raster map, keeping the classification?
5
votes
2answers
1k views

QGIS affine - form of equation

I am at the mercy of a govt authority who have provided utility information in a cad format with a 0,0 origin and a nonsense grid. About a dozen files, the grid and origin are entirely arbitrary. To ...
7
votes
3answers
4k views

Creating a raster surface of overlaps from vector polygon shapefiles?

Basically what I'm trying to do (in ArcGIS 10) is to compare three vector files in order to create a 'comparison' raster layer. I tried using Data Comparison (under Data Management tools) but it didn'...
5
votes
1answer
1k views

Generate centroids for vector polygons based on raster and land-use data using QGIS

Although QGIS has the ability to generate centroids for polygons, I am not sure how to generate centroids based on land-use development using raster data. Here's an example of what I'm trying to do: ...
5
votes
1answer
774 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 ...
3
votes
2answers
2k views

How to align/georeference distorted vector layers in QGIS?

I've got a shapefile which has been digitized from a strongly distorted historical map, and would like to align it as nicely as possible to another precise shapefile layer. The transformation must ...
2
votes
2answers
1k 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 ...
1
vote
1answer
1k views

QGIS elevation and relief shade

I am trying to generate a map with terrain and elevation in QGIS and as a beginner I have followed tutorials on how to generate contours and hill shades succesfully. However, I don't know what are the ...