<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.Shkpostityyli19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FI" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">Sorry but I do not understand at all what you want to do. Would you, if you read your question?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="mso-fareast-language:FI">Lähettäjä:</span></b><span style="mso-fareast-language:FI"> gdal-dev <gdal-dev-bounces@lists.osgeo.org>
<b>Puolesta </b>Andrew Terry<br>
<b>Lähetetty:</b> torstai 22. joulukuuta 2022 15.08<br>
<b>Vastaanottaja:</b> gdal-dev@lists.osgeo.org<br>
<b>Aihe:</b> [gdal-dev] ogr gml Box handling<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-GB">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Trying to pull in the bounding box / envelope “Box” when loading gml with ogr2ogr<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><osgb:boundedBy><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><gml:Box srsName='osgb:BNG'><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><gml:coordinates>257023.700,620210.000 257023.700,620210.000</gml:coordinates><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"></gml:Box><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"></osgb:boundedBy></span><span lang="EN-GB" style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I’ve tried <GeometryElementPath>boundedBy</GeometryElementPath> in my gfs file.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">I’ve also tried seeing if I can pull through as a string using:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <PropertyDefn><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <Name>bbox</Name><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <ElementPath>boundedBy|Box|coordinates</ElementPath><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> <Type>String</Type><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"> </PropertyDefn><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Any tips – if it’s even possible?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Thanks<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Andy<o:p></o:p></span></p>
</div>
</body>
</html>