<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Done : <a href="https://github.com/OSGeo/PROJ/issues/2813" id="LPlnk">https://github.com/OSGeo/PROJ/issues/2813</a><br>
</div>
<div class="_Entity _EType_OWALinkPreview _EId_OWALinkPreview _EReadonly_1"></div>
<br>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<div id="appendonsend"></div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>De :</b> Even Rouault <even.rouault@spatialys.com><br>
<b>Envoyé :</b> mercredi 18 août 2021 13:59<br>
<b>À :</b> Olivier PENA <OPena@isagri.fr>; proj@lists.osgeo.org <proj@lists.osgeo.org><br>
<b>Objet :</b> Re: [PROJ] BoundCRS with BBox</font>
<div> </div>
</div>
<div>
<p>Olivier,</p>
<p>hum, good finding. This is actually an oversight of the implementation. The WKT2 grammar (<a class="x_moz-txt-link-freetext" href="http://docs.opengeospatial.org/is/18-010r7/18-010r7.html#149">http://docs.opengeospatial.org/is/18-010r7/18-010r7.html#149</a>)
does indeed allow usage/scope/extent/id/remark for a bound CRS but our C++ classes do not allow for that now. Could you file a ticket in
<a class="x_moz-txt-link-freetext" href="https://github.com/OSGeo/PROJ/issues/new">
https://github.com/OSGeo/PROJ/issues/new</a> about that ?</p>
<p>Even<br>
</p>
<div class="x_moz-cite-prefix">Le 18/08/2021 à 13:38, Olivier PENA a écrit :<br>
</div>
<blockquote type="cite">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<div class="x_WordSection1">
<p class="x_MsoNormal">Hi</p>
<p class="x_MsoNormal"><span lang="EN-US">I’m looking for a way to set area of use for a BoundCRS I define with WKT like this one :</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_MsoNormal">BOUNDCRS[</p>
<p class="x_MsoNormal"> SOURCECRS[</p>
<p class="x_MsoNormal"> PROJCRS["Monte Mario / Italy zone 2",</p>
<p class="x_MsoNormal"> <span lang="EN-US">BASEGEOGCRS["Monte Mario",</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> DATUM["Monte Mario",</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ELLIPSOID["International 1924",6378388,297,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> LENGTHUNIT["metre",1]]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PRIMEM["Greenwich",0,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ANGLEUNIT["degree",0.0174532925199433]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",4265]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> CONVERSION["unnamed",</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> METHOD["Transverse Mercator",</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",9807]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PARAMETER["Latitude of natural origin",0,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ANGLEUNIT["degree",0.0174532925199433],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",8801]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PARAMETER["Longitude of natural origin",15,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ANGLEUNIT["degree",0.0174532925199433],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",8802]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PARAMETER["Scale factor at natural origin",0.9996,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> SCALEUNIT["unity",1],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",8805]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PARAMETER["False easting",2520000,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> LENGTHUNIT["metre",1],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",8806]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PARAMETER["False northing",0,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> LENGTHUNIT["metre",1],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",8807]]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> CS[Cartesian,2],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> AXIS["x",east,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ORDER[1],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> LENGTHUNIT["metre",1]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> AXIS["y",north,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ORDER[2],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> LENGTHUNIT["metre",1]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",3004]]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> TARGETCRS[</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> GEOGCRS["WGS 84",</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> DATUM["World Geodetic System 1984",</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ELLIPSOID["WGS 84",6378137,298.257223563,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> LENGTHUNIT["metre",1]]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PRIMEM["Greenwich",0,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ANGLEUNIT["degree",0.0174532925199433]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> CS[ellipsoidal,2],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> AXIS["latitude",north,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ORDER[1],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ANGLEUNIT["degree",0.0174532925199433]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> AXIS["longitude",east,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ORDER[2],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ANGLEUNIT["degree",0.0174532925199433]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",4326]]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ABRIDGEDTRANSFORMATION["Transformation from Monte Mario to WGS84",</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> METHOD["Position Vector transformation (geog2D domain)",</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",9606]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PARAMETER["X-axis translation",-50.2,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",8605]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PARAMETER["Y-axis translation",-50.4,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",8606]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PARAMETER["Z-axis translation",84.8,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",8607]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PARAMETER["X-axis rotation",-0.69,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",8608]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PARAMETER["Y-axis rotation",-2.012,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",8609]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PARAMETER["Z-axis rotation",0.459,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",8610]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> PARAMETER["Scale difference",0.99997192,</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> ID["EPSG",8611]]],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> USAGE[</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> SCOPE["unknown"],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> AREA["Italy - Sicily onshore"],</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> BBOX[36.59,12.36,38.35,15.71]]</span></p>
<p class="x_MsoNormal"><span lang="EN-US">]</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_MsoNormal"><span lang="EN-US">I would be happy if proj_get_area_of_use() on the crs return the Sicily BBox.</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_MsoNormal"><span lang="EN-US">I ran a debug session and it seems that USAGE node is not taken account in buildBoundCRS() in io.cpp. Same behavior in the json parser.</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
<p class="x_MsoNormal"><span lang="EN-US">Is this normal behavior ?</span></p>
<p class="x_MsoNormal"><span lang="EN-US">Thanks</span></p>
<p class="x_MsoNormal"><span lang="EN-US"> </span></p>
</div>
<br>
<fieldset class="x_mimeAttachmentHeader"></fieldset>
<pre class="x_moz-quote-pre">_______________________________________________
PROJ mailing list
<a class="x_moz-txt-link-abbreviated" href="mailto:PROJ@lists.osgeo.org">PROJ@lists.osgeo.org</a>
<a class="x_moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/proj">https://lists.osgeo.org/mailman/listinfo/proj</a>
</pre>
</blockquote>
<pre class="x_moz-signature" cols="72">--
<a class="x_moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</div>
</div>
</body>
</html>