Re: [gdal-dev] assigning output srs for GML fails

2018-01-26 Thread Martin Landa
Hi, 2018-01-26 13:03 GMT+01:00 jratike80 : [...] thanks for your time and explanation. > Repeat your command with this open option and ogrinfo reports the SRS: > > ogrinfo -so -al jena-boundary.gml -oo FORCE_SRS_DETECTION=YES Works, Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa h

Re: [gdal-dev] assigning output srs for GML fails

2018-01-26 Thread jratike80
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 n

Re: [gdal-dev] assigning output srs for GML fails

2018-01-25 Thread jratike80
Martin Landa wrote > $ ogrinfo jena-boundary.gml multipolygons -so > ... > Layer SRS WKT: > (unknown) > > Any idea what I am doing wrong? Using GDAL trunk. Thanks in advance, Ma Hi, By having a look at the data there is only one multipolygon which is correctly written in EPSG:4326 Documentati

[gdal-dev] assigning output srs for GML fails

2018-01-24 Thread Martin Landa
Hi, I was experimenting with OSM OverpassAPI and afterwards fighting with -a_srs option of ogr2ogr utility: Esri Shapefile works: $ ogr2ogr -f GML jena-boundary.gml -a_srs EPSG:4326 \ /vsicurl_streaming/"http://overpass-api.de/api/interpreter?data=%28relation\ %5B%22boundary%22%3D%22administrati