Hi, Sorry but I do not understand at all what you want to do. Would you, if you read your question? Do you have some GML data that has a bounding box for each feature and you would like to convert the bbox into something? Would that be a second geometry for the attribute if the target format supports multiple geometries? Or an attribute that contains the bbox expressed as WKT of GeoJSON? Please give complete GML test data sample and an example about what would be the ideal result.
In your example the bounding box seems to be a point so probably the data contains also just one point but probably you want to deal with more generic data. -Jukka Rahkonen- Lähettäjä: gdal-dev <gdal-dev-boun...@lists.osgeo.org> Puolesta Andrew Terry Lähetetty: torstai 22. joulukuuta 2022 15.08 Vastaanottaja: gdal-dev@lists.osgeo.org Aihe: [gdal-dev] ogr gml Box handling Hi, Trying to pull in the bounding box / envelope "Box" when loading gml with ogr2ogr <osgb:boundedBy> <gml:Box srsName='osgb:BNG'> <gml:coordinates>257023.700,620210.000 257023.700,620210.000</gml:coordinates> </gml:Box> </osgb:boundedBy> I've tried <GeometryElementPath>boundedBy</GeometryElementPath> in my gfs file. I've also tried seeing if I can pull through as a string using: <PropertyDefn> <Name>bbox</Name> <ElementPath>boundedBy|Box|coordinates</ElementPath> <Type>String</Type> </PropertyDefn> Any tips - if it's even possible? Thanks Andy
_______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev