[gdal-dev] assigning output srs for GML fails

jratike80 jukka.rahkonen at maanmittauslaitos.fi
Fri Jan 26 04:03:05 PST 2018


Hi,

I came back to this problem. With your command ogr2ogr is also creating the
.xsd schema file and this case this part of GML driver manual page
http://www.gdal.org/drv_gml.html applies:

FORCE_SRS_DETECTION=YES/NO: (GDAL >=2.0) Force a full scan to detect the SRS
of layers. This option may be needed in the case where the .gml file is
accompanied with a .xsd. Normally in that situation, OGR would not detect
the SRS, because this requires to do a full scan of the file. Defaults to NO

Repeat your command with this open option and ogrinfo reports the SRS:

ogrinfo -so -al jena-boundary.gml -oo FORCE_SRS_DETECTION=YES

Another option is to delete the jena-boundary.xsd file which also forces
GDAL to scan the whole GML file and to detect the SRS by the same. Third
option is to disable the creation of .xsd file by adding -dsco XSISCHEMA=OFF
into your original ogr2ogr command.

-Jukka Rahkonen-




--
Sent from: http://osgeo-org.1560.x6.nabble.com/GDAL-Dev-f3742093.html


More information about the gdal-dev mailing list