The file seems to convert without error, however when I attempt to display it on anything or any map, the coordinates are always rendered as a straight line across the top of the projection. I am not certain if the problem is my map or the conversion suite.

The data I am trying to convert is from StatsCan, which can be found here:


I'm starting to think they did something screwy with the format - this doesn't work (either from gml or shp), but I can follow the same process with other files and get it to work.

  • Have you tried opening the GML in another GIS package (e.g. QGIS) to check if it's valid? – om_henners Jan 8 '16 at 1:06

This works perfectly well when converting the GML to GeoJSON with ogr2ogr (which can also be used from inside QGIS).

ogr2ogr -f GeoJSON geojson_test.geojson lcsd000a15g_e.gml

Displays correctly and overlaps with the original GML file:

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.