Changes between Version 21 and Version 22 of BluePrint/GIS/ShapefileLayers
- Timestamp:
- 05/14/13 16:18:36 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrint/GIS/ShapefileLayers
v21 v22 4 4 5 5 Options: 6 * Import Features 7 * Can use the Python bindings for GDAL/OGR as we do for the [wiki:UserGuidelinesGISData#GADM GADM importer] 8 * Work on this has started as gis_layer_shapefile in Trunk 6 9 * Upload to !GeoServer co-app & add a layer which accesses this via WMS/WFS (although the UI should show in the 'Shapefiles layers' section) 7 10 * http://docs.geoserver.org/2.0.0/user/extensions/rest/rest-config-examples-curl.html#uploading-a-shapefile 8 11 * https://github.com/dwins/gsconfig.py 9 * Import Features10 * Can use the Python bindings for GDAL/OGR as we do for the [wiki:UserGuidelinesGISData#GADM GADM importer]11 12 12 13 We can include [http://thematicmapping.org/downloads/world_borders.php TM_WORLD_BORDERS-0.3.zip] as a useful base/sample … … 17 18 * Build a .map file for [http://mapserver.org MapServer] using [http://mapserver.org/mapscript Python MapScript] 18 19 20 === Imports === 19 21 PaulPorthouse [2013-04-27 at the Hackathon]: 20 22 … … 22 24 23 25 A basic OGR2OGR which should accomplish the import is: 24 OGR2OGR -overwrite -f "PostgreSQL" PG:dbname=databaseconnection shapefile.shp 26 {{{OGR2OGR -overwrite -f "PostgreSQL" PG:dbname=databaseconnection shapefile.sh}}} 25 27 26 28 This could be called directly from Python by running it as a sub process. … … 99 101 100 102 ---- 101 [wiki:BluePrint/GIS GIS BluePrints] ic103 [wiki:BluePrint/GIS GIS BluePrints]