Tagged Questions
5
votes
1answer
91 views
GDAL/OGR Determine if dataset is raster or vector
I am writing a script using the GDAL/OGR Python bindings and it is possible that the user may provide a raster dataset or a vector dataset as input. If the user provides a vector dataset, the script ...
1
vote
0answers
121 views
How to update polygon field with point count for multiple rows? (Temporal point-in-polygon)
I have a shapefile with several regions. It contains basic info like ID, Code, Name1, Name2, etc.
It is overlaid with a shapefile of points (nearly 200k). Each point represents an event with a type ...
2
votes
1answer
145 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?
9
votes
1answer
518 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 ...
6
votes
3answers
1k views
How to find and merge duplicate points?
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 ...
1
vote
0answers
109 views
Polygon symmetry detection
I was wondering if there was any way to create main axis (axis of symmetry) lines for polygons.
I have polygons that represents buildings.
I will want to find main axes (axis of symmetry) for those ...
4
votes
2answers
630 views
Calculate spacing of polylines along transects in ArcGIS
I have a shapefile with a number of roughly parallel lines in it, and I want to calculate the spacing between these lines using a number of transects across the map.
How should I go about this? I ...
4
votes
4answers
2k views
Merge overlapping lines in ArcGIS
I have a polyline shapefile containing a number of lines, some of which overlap. By overlap, I mean that they follow exactly the same path for some of their route, but also have bits that are not ...
5
votes
1answer
592 views
Programmable buffers using GDAL and python
Is there a way to programmatically generate buffer layers for vector layers using GDAL and python?
13
votes
6answers
4k views
Nearest neighbor between a point layer and a line layer
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 ...
