Closed tom62291 closed 3 years ago
You should not ask questions in the bug tracker but use gdal-dev mailing list instead. But while you are here could you add a complete gml file that can be opened with ogrinfo/ogr2ogr as an annex?
Depending on your GDAL version the ogr2ogr option -f GML
may write GML 2 that does not support curved geometries. See https://gdal.org/drivers/vector/gml.html and use explicit -dsco FORMAT=GML3.2
to be sure what format is written.
There is no general answer about conversion "to other format". Quite few formats support any sort of curved geometries. Geopackage driver is documented to support multisurface https://gdal.org/drivers/vector/gpkg.html but I do not know what is the situation with fgdb driver. GML seems to support many segment types and some of them feel rather exotic http://www.datypic.com/sc/niem31/e-ns76_segments.html.
If you need advanced non-linear geometries it might be best to use GML as long as possible, and if you need other formats, study the capabilities of the format and corresponding GDAL driver.
Starting with the development version (3.4dev), FORMAT=GML3.2 is the default, and the curve polygon is preserved when doing ogr2ogr, using an equivalent
Hi,
I have a sample geometry in the "sample.gml" file like:
When I try ogr2ogr -f GML convert.gml sample.gml, the segments will lineaerized to
<gml:LinearRing><gml:posList>
, or when I convert that GML to FGDB, the segments also become linear line string.May I know is technical feasible to preseve GML mixed segment type when converting to other format?