Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to convert a shapefile to GML 3.1.1 . I am using gdal 1.9.1 however the GML conversion it generates for a geometry feature is GML 2 and it also swaps the long/latitude coordinates. Are there simple workarounds to keep the coordinate positions the same, while changing the output to GML 3.1.1?


share|improve this question

This is part of the axis order confusion, where some software expects (x,y) = (long,lat) (the Shapefile way), and others as lat,long (I suppose, the traditional spoken way?).

Read more about the axis order options in the GML GDAL Driver, which can be passed to OGR in either command-line or Python fashion. Try GML_INVERT_AXIS_ORDER_IF_LAT_LONG=NO (or is it YES?).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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