Skip to content

Instantly share code, notes, and snippets.

@eczajk1
Created March 11, 2019 14:47
Show Gist options
  • Select an option

  • Save eczajk1/37dc5f15f4f276286e22b3886d3955eb to your computer and use it in GitHub Desktop.

Select an option

Save eczajk1/37dc5f15f4f276286e22b3886d3955eb to your computer and use it in GitHub Desktop.
Convert (EPSG:4269) to 4326 (WGS84), FileGDB to PostGIS, query out some data
ogr2ogr -t_srs EPSG:4326 \
-f "PostgreSQL" \
PG:"host=localhost user=postgres dbname=mydb password=mypassword" \
"myfgdb.gdb" "myfeatureclass" \
-where "somefield" <> 'some_value'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment