Created
March 4, 2013 18:28
-
-
Save justinlewis/5084289 to your computer and use it in GitHub Desktop.
Export a PostGIS table to GeoJSON format with ogr2ogr.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ogr2ogr -f "GeoJSON" /PATH/TO/NEWFILE.json PG:"host=YOUR_HOST dbname=YOUR_DB user=YOUR_USER password=YOUR_PASS port=5432" "YOUR_POSTGIS_TABLE(the_geom)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment