[gdal-dev] Re: Ogr2ogr -flip_coordinates

Andrew Brooks arb at sat.dundee.ac.uk
Thu Nov 3 18:53:58 EDT 2011


On 3 November 2011 20:38, Jukka Rahkonen <jukka.rahkonen at mmmtike.fi> wrote:

>
> Thereafter I will try if I can just turn the coordinates from these
> <gml:lowerCorner>6605838.360 61685.735</gml:lowerCorner>
> into these
> <gml:lowerCorner>61685.735 6605838.360</gml:lowerCorner>
> in the whole xml file with awk or something else as horrible.


Maybe something like this?

perl -ne 's,<gml:lowerCorner>([-+e\.0-9]+)
+([-+e\.0-9]+)</gml:lowerCorner>,<gml:lowerCorner>\2
\1</gml:lowerCorner>,;print;'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20111103/a896db9e/attachment.html


More information about the gdal-dev mailing list