[Talk-ca] CanVec edition 6.0 GMLs, projections and lat/long axis order

Brendan Morley morb at beagle.com.au
Tue Jun 1 05:54:22 BST 2010


Hi,

I'm trying to interpret the GML files from CanVec version 6, for example 
at ftp://ftp2.cits.rncan.gc.ca/pub/canvec/province_gml/pe/canvec6_gml_PE.zip

I've tried tossing the contents of this file through ogr2ogr v1.6, in 
the hope I could convert it to a PostGIS database and view the results 
through Quantum GIS.

The only problem is that ogr2ogr doesn't seem to recognise the GML 
coordinates are coming in latitude-longitude (Y,X) order, e.g.
<gml:posList>46.2391847 -63.5710172 46.2392461 -63.570722 46.2411538 
-63.5618012 46.2417881 -63.5620657 46.2398533000001 -63.5712115 
46.2398316 -63.5713156 46.2391847 -63.5710172</gml:posList>

Therefore Quantum GIS is showing Prince Edward island flipped and 
rotated 90 degrees to what you'd "expect".

Has anyone been able to perform the import into PostGIS/Quantum GIS 
successfully?  Right side up and all?  How did you do it?

The relevance to OSM is that I hope eventually to be able to upload the 
results to an OSM-like repository.


Thanks,
Brendan






More information about the Talk-ca mailing list