Tagged Questions
2
votes
0answers
61 views
Custom python datasource to QGIS
I'm working on a homebrew spatial feature data format, and using Python to write it's API.
It occoured to me that use some tool like QGIS to display my data would be very nice to have, for debug/test ...
6
votes
2answers
600 views
Generating GeoJSON with Python
Hi I want to programatically create a GeoJSON file using polygons from a shapefile but adding attributes from my own application.
This is easily done for a shapefile:
def ...
3
votes
1answer
357 views
How to programatically populate a shapefile field with polygon areas in OGR?
I'm trying to programatically populate a shp field with polygon areas:
import sys
import ogr
ds = ogr.Open( 'tttttttttt.shp', update = 1 )
if ds is None:
print "Open failed./n"
sys.exit( 1 ...
5
votes
1answer
291 views
Combined area of all features within features of another layer
I have a grid shapefile (basically, a half-degree grid of the world, where each cell has a unique id number), and a set of files with features. I want to record for each grid cell, all the areas ...
