Skip to content

Instantly share code, notes, and snippets.

@jsanz
Created March 12, 2013 09:15
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save jsanz/5141420 to your computer and use it in GitHub Desktop.
Save jsanz/5141420 to your computer and use it in GitHub Desktop.
From CartoDB to DXF, with all my love to CAD users
# With the GeoJSON OGR driver one can use the CartoDB SQL API to create any OGR supported format output
# OGR Formats: http://gdal.org/ogr/ogr_formats.html
# CartoDB SQL API: http://developers.cartodb.com/documentation/sql-api.html
# This sample creates a DXF making a "select the_geom from meteo" from my account at CartoDB
ogr2ogr -skipfailures -f DXF out.dxf "http://xurxosanz.cartodb.com/api/v2/sql?q=select%20the_geom%20from%20meteo&format=GeoJSON" OGRGeoJSON
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment