Questions tagged [vector]

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

Filter by
Sorted by
Tagged with
102 votes
11 answers
59k 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 ...
70 votes
7 answers
4k 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 ...
  • 2,474
68 votes
5 answers
123k 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 ...
  • 681
60 votes
7 answers
13k 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 ...
56 votes
9 answers
82k 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....
  • 896
47 votes
7 answers
144k 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, ...
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 ...
  • 533
41 votes
4 answers
37k 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 ...
  • 587
38 votes
10 answers
48k 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 ...
  • 481
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 ...
  • 8,533
36 votes
5 answers
133k 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 ...
  • 735
28 votes
4 answers
87k 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 ...
  • 855
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 ...
  • 1,025
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?
  • 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 ...
23 votes
5 answers
4k views

Buffer neighbouring polygons without overlap using QGIS

Is it possible to create a buffer around neighbouring polygons, so that the new polygons do not overlap? Preferably in QGIS but any other tool will do. So instead of the first result I would like ...
22 votes
3 answers
1k views

How can we protect GIS data?

I have found a very interesting paper here related to this topic. I just want to have views/ideas from other professional about how we can protect GIS data using Cryptography or Digital Watermarking? ...
  • 1,906
22 votes
1 answer
586 views

Is it possible to generate a boustrophedon pattern which fill a vector Region with GRASS?

Is it possible to generate a boustrophedon pattern which fill a vector Region with GRASS? I have a vector region in GRASS. And I would like to generate a vector (a polyline) being the bostrophedon ...
21 votes
1 answer
371k views

What is the difference between Vector and Raster data models? [duplicate]

From: http://support.esri.com/en/knowledgebase/GISDictionary/term/vector%20data%20model vector data model: [data models] A representation of the world using points, lines, and polygons. Vector models ...
20 votes
4 answers
17k 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 ...
  • 361
20 votes
6 answers
15k 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 ...
  • 301
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 ...
  • 191
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?
  • 8,036
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 ...
  • 1,640
18 votes
1 answer
69k 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, ...
  • 570
17 votes
1 answer
3k views

Rubbersheeting in GRASS?

We are in the process of getting our property boundaries corrected and a side effect of this is that we need to move any assets that have been drawn relative to the property boundaries, so they are ...
  • 34.4k
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.
  • 7,874
16 votes
2 answers
38k 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 ...
  • 189
16 votes
1 answer
38k views

Programmatically creating a vector feature in OpenLayers2

I want to create a vector feature, programmatically, on my map. It's supposed to be in the A4-paperformat, for showing a sort of print preview. I've created a control for handling this, but now I'm ...
16 votes
3 answers
12k views

Finding and merging duplicate points in ArcGIS Desktop?

I have two point shapefiles: Red and Blue. Each point shapefile has a z value which represents a radius (i.e. represented as buffers in the example). A duplicate point is defined as a point that ...
  • 51.2k
16 votes
2 answers
531 views

Toward a protocol for encoding vector data as image

This is a follow up to this question: Creating Vector Polygons with rendering performance like GISCloud? In his answer, Yagi outlines a rationale for encoding geographic information in an image ...
  • 2,474
15 votes
2 answers
650 views

Creating equally split buffers between points in QGIS

I want to create buffers for every health facility, but they end up overlapping. How can I create buffers that split equally between the distance of 2 health facilities? Example of the result wanted ...
15 votes
3 answers
17k views

Clipping Error 1: Cutline polygon is invalid

I used the sample files located at this URL to learn QGIS: https://qgis.org/downloads/data/. I tried to clip SR_50M_alaska_nad.tif using a shapefile as a mask (alaska.shp). The problem is I ...
  • 151
14 votes
5 answers
24k 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 ...
  • 141
14 votes
4 answers
48k 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 ...
  • 141
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 ...
14 votes
2 answers
891 views

Detecting branched polygon shape?

I have a vector layer with millions of polygons making continuous coverage. I need to classify them according to their shape. I am already using several shape indexes from landscape ecology like ...
  • 2,463
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....
  • 1,137
14 votes
2 answers
559 views

Is there any open-source object-oriented GIS?

Most GIS are layer based. But I am looking for open-source object-oriented GIS. Is there any out there? By object-oriented I mean logical data model for vector GIS. Here's explanation of my ...
  • 1,519
14 votes
1 answer
3k views

What is the best way to represent bridges using a point vector layer in QGIS?

I'm working on a hiking/biking maps of trails in the woods which sometimes have bridges that need to be shown on the map. I'm trying to figure out the best way to capture and represent them using QGIS ...
  • 1,888
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 ...
  • 409
13 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 ...
13 votes
5 answers
16k views

Libraries to render vector-based maps in the browser

Is there a open source JavaScript library like Leaflet or OpenLayers which can be used in a web or mobile application and loads vector-based maps instead of images? I only need the road information ...
  • 707
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 ...
  • 231
13 votes
1 answer
11k views

How to remove a vector QgsVectorLayer from QGIS python plugin

I managed to add QgsVectorLayer in QGIS through a python plugin, for example: vl = self.iface.addVectorLayer(uri.uri(), layerName, self.dbConn.getProviderName()) But how can I remove it?
  • 853
13 votes
1 answer
16k views

QGIS moving the layer/all features using Vector Affine Transformation

I'm using QGIS to analyse some flight tracks which were produced using a different software. Now when they are on QGIS the reference point of everything is on 0,0 which is the aerodrome reference ...
  • 131
13 votes
2 answers
17k views

How can I programatically create and add features to a memory layer in QGIS 1.9?

I had a working plugin in QGIS 1.8 which read data from an MSAccess database and added it to a series of memory layers. There is some processing involved in the interim so I don't think simply using ...
13 votes
3 answers
43k views

Converting KML into a vector graphic... and back

Is there a simple means to convert, say, an SVG or other vector image format file to KML and vise versa? There are incredibly powerful vector editing tools which attempt to replicate the way reality ...
user avatar
12 votes
2 answers
3k 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 ...
  • 131
12 votes
2 answers
9k views

Empty vector menu in QGIS on PC with French as default language

I installed QGIS 3.0.0 on a PC with French as default language. After changing the language of QGIS to English, the 'Vector' menu is empty and there is a French 'Vecteur' menu. Any ideas how to fix ...
  • 357

1
2 3 4 5
38