Hi, I wonder why curved polygons are not approximated to polygons somehow automatically. Eg. conversion such data fails
$ ogr2ogr -f PostgreSQL PG:dbname=ruian_test /vsicurl/http://vdp.cuzk.cz/vymenny_format/soucasna/20141031_OB_564567_UKSH.xml.gz Parcely -overwrite Warning 1: Geometry to be inserted is of type Curve Polygon, whereas the layer geometry type is Polygon. Insertion is likely to fail ERROR 1: COPY statement failed. ERROR: Geometry type (CurvePolygon) does not match column type (Polygon) CONTEXT: COPY parcely, line 18, column originalnihranice: "010A00002032BF0D000100000001090000000300000001020000000B0000008FC2F528750A27C11F85EB51933C2EC114AE47..." because some features are curved polygons even geometry column is `polygon`: $ ogrinfo /vsicurl/http://vdp.cuzk.cz/vymenny_format/soucasna/20141031_OB_564567_UKSH.xml.gz Parcely -fid 2815 | grep OriginalniHranice Geometry (OriginalniHranice): Polygon OriginalniHranice = CURVEPOLYGON (CIRCULARSTRING (-755129.01 -990678.86,-755126.27 -990676.99,-755123.39 -990678.25,-755123.18 -990678.53,-755123.14 -990682.18,-755125.92 -990683.76,-755128.53 -990682.62,-755129.22 -990679.38,-755129.01 -990678.86)) Thanks for clarification in advance, Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa _______________________________________________ gdal-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/gdal-dev
