-
-
Save jamiewanderi/eba795d4c51bb5cd9ace700594040401 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