Changes between Version 23 and Version 24 of BluePrint/GIS/ShapefileLayers
- Timestamp:
- 05/17/13 12:58:05 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrint/GIS/ShapefileLayers
v23 v24 1 1 == Shapefile Layers == 2 [[TOC]] 2 3 3 4 Upload a Shapefile to display on the map. … … 7 8 * Can use the Python bindings for GDAL/OGR as we do for the [wiki:UserGuidelinesGISData#GADM GADM importer] 8 9 * Option A: Import just to display as an overlay 9 * Work on this has started as gis_layer_shapefile in Trunk10 * Needs styling11 10 * Option B: Import into Native Tables via an XSL Transform 12 11 * See below for code to convert SHP to an lxml.etree … … 22 21 * Build a .map file for [http://mapserver.org MapServer] using [http://mapserver.org/mapscript Python MapScript] 23 22 24 === Imports === 25 PaulPorthouse [2013-04-27 at the Hackathon]: 23 === Import to display as an Overlay === 24 Work on this has started as gis_layer_shapefile in Trunk 25 26 ==== !ToDo ==== 27 * Needs styling 28 * onaccept to write any modified data back to the attached shapefile 29 30 === Import into native Tables === 31 Paul Porthouse [2013-04-27 at the [http://mapaction.org MapAction] Hackathon]: 26 32 27 33 Our idea is to use a basic web form with a file upload (similar to the Import from OpenStreetMap) where you can select which ShapeFile to use. You should also be able to set basic information including database connection details. This will then upload the shape and use OGR2OGR to convert the ShapeFile to geometry and import it into the specified database. … … 100 106 f = open("test.xml","w") 101 107 f.write(xmlString) 102 103 108 }}} 104 109