[Gdal-dev] OGR2OGR GML coordinate reversal

Jesse Cleary jcleary at email.unc.edu
Tue May 22 16:24:56 EDT 2007


Hi folks

I'm trying to convert a GML file (3.1 I think) to a shapefile using 
ogr2ogr (GDAL 1.3.2.0).  The conversion works and the attributes 
translate nicely, but the destination file's point coordinates are 
reversed from the source file.  The source GML file uses the following 
nomenclature:

                <gml:Point>
                    <gml:pos>lat lon</gml:pos>
                </gml:Point>

OGR seems to expect the order to be lon then lat.  Is there any way to 
tell ogr2ogr how to reverse the expected order of coordinates inside 
these tags?  Or maybe my source file doesn't meet the GML spec and 
should be changed to lon then lat?  Thanks...


Jesse


-- 
Jesse Cleary				
Department of Marine Sciences	
UNC Chapel Hill

334 Chapman Hall
(919) 962-4987 

jcleary at email.unc.edu













More information about the Gdal-dev mailing list