[Talk-ca] [Imports] [Import] Ottawa Buildings & Addresses [Statistics Canada project]

Stewart C. Russell scruss at gmail.com
Sat Oct 22 14:57:13 UTC 2016


On 2016-10-22 12:12 AM, James wrote:
> Converting, DWG to DXF to open in qgis should be fun

nah, all that pointenclicky would do me no good at all. This is what OGR
is for:

    ogr2ogr -f GeoJSON -s_srs epsg:2951 -t_srs epsg:4326 \
       -dialect SQLite \
       -sql "select * from entities where LAYER='house'" \
       glebe-houses-4326.geojson 368029.dxf

Assuming I picked the right datum (I've been burned before) here are
some houses from in and around The Glebe:

https://gist.github.com/scruss/5a3f469c47df5d27fdba28258c273b45

I see that building outlines get sliced on tile boundaries dammit.

 Stewart



More information about the Talk-ca mailing list