[Qgis-user] Re: Newbie question - gml files

Brad Nesom gisbradokla at live.com
Tue Jan 4 09:17:16 PST 2011


if these were all point files and especially there are no files with
polygons involved, you could perhaps export to excel and modify then
re-import from text. You would want to be sure to keep as many
decimals as possible to maintain accuracy.

On Tue, Jan 4, 2011 at 9:57 AM, Micha Silver <micha at arava.co.il> wrote:
> On 04/01/2011 15:43, Sam Vekemans wrote:
>
> P.S.
> I just uploaded that raw .shp files that was converted for me to
> koordinates.com and it still showed the wrong projection . :(
> http://koordinates.com/layer/2036-en-1120009-1/#@z=4&c=-58.49101%2C50.75684&e=&l=2036&mt=PHYSICAL
>
> I see where the problem is now, but I don't know how to overcome it. You've
> hit the notorious "coordinate ordering" squabble.
> The gml standard chose some time ago (and in opposition to most other GIS
> formats AFAIK) to put coordinates with latitude first, and longitude
> second.  If I scan thru one of the gml files I see lines like:
> <gml:lowerCorner>46.6480459 -67.4074834</gml:lowerCorner>
> <gml:upperCorner>54.9088778 -52.6644791</gml:upperCorner>
> Obviously the 46 is latitude north, and the -67 is longitude west.
>
> But ogr takes the coords as longitude/latitude (i.e. X then Y) So when i
> just naively open the gml file in QGIS I get the positions switched. It's
> reading 46 degrees longitude and -67 deg latitude. That's why we're seeing
> the Newfoundland features somewhere near Antarctica...
>
> It seems that a newer version of GDAL (1.8) will have improvements to its
> gml support to allow coordinate reversal. Maybe someone on the list knows of
> a better work around?
>
> --
> Micha
>
>
> --
> Micha Silver
> http://www.surfaces.co.il/
> Arava Development Co.  +972-52-3665918
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
>



More information about the Qgis-user mailing list