Skip to content

Instantly share code, notes, and snippets.

@aaronr
Created March 11, 2015 16:34
Show Gist options
  • Save aaronr/a411f9e23650b4c1e2b3 to your computer and use it in GitHub Desktop.
Save aaronr/a411f9e23650b4c1e2b3 to your computer and use it in GitHub Desktop.
aaronr@linode:~$ ogr2ogr -f "GeoJSON" /vsistdout/ PG:dbname=test ne_admin_bounds -where "name = 'United States'" | mapfart
http://mapfart.com/fart_LgkZaj
aaronr@linode:~$ ogr2ogr -f "GeoJSON" /vsistdout/ PG:dbname=test ne_admin_bounds -where "name = 'United States'" | gj2ascii
Usage: gj2ascii [OPTIONS] INFILE [OUTFILE]
Error: Missing argument "infile".
aaronr@linode:~$ ogr2ogr -f "GeoJSON" /vsistdout/ PG:dbname=test ne_admin_bounds -where "name = 'United States'" > tmp.geojson
aaronr@linode:~$ gj2ascii tmp.geojson
FID: 0
Min X: -171.791110603
Max X: -66.96466
Min Y: 18.91619
Max Y: 71.3577635769
+ + + + + + +
+ + + + + + + + +
+ + + + + + + + + +
+ + + + + + + + + +
+ + + +
+
+ + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + +
+ + + + + + + + +
+ + +
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment