<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">Le 10/01/2024 à 18:52, Meyer, Jesse R.
(GSFC-618.0)[SCIENCE SYSTEMS AND APPLICATIONS INC] a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:A2BF824D-FF61-47B6-AB50-B9FA150DF032@ndc.nasa.gov">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<style>@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;}@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
font-size:10.0pt;
font-family:"Courier New";
mso-ligatures:none;}span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas",serif;
mso-ligatures:standardcontextual;}span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}div.WordSection1
{page:WordSection1;}</style>
<div class="WordSection1">
<p class="MsoNormal">Thanks Even, we’ll try that.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Are there any known integer values that
ESRI and EPSG conflate? If not, it would be convenient to
simply pass in an integer to a single API function and be done
with it.</p>
</div>
</blockquote>
<p>I believe not. Codes in the [1,32767] range should lead to
equivalent definitions under both authorities. But when they are
really the same, to save space and confusion to users, they are
not imported under the ESRI authority and are only available under
the EPSG ones. So codes in the [1,32767] under the ESRI
authorities are basically for CRS names that are slightly
different spelled by ESRI (but otherwise with a definition
compatible of the EPSG one). There are also very ancient
deprecated CRS that were imported from EPSG, but were deprecated
by EPSG so long ago that they are not in the EPSG database anymore
(like <a class="moz-txt-link-freetext" href="https://spatialreference.org/ref/esri/31491/">https://spatialreference.org/ref/esri/31491/</a>).</p>
<p>But there's no only EPSG and ESRI in life :-) The IAU authority
for example uses numeric code in the ranges of what could be used
by EPSG or ESRI.</p>
<p>So it is really the tuple (authority_name,code) that conveys a
primary key.<br>
</p>
<blockquote type="cite"
cite="mid:A2BF824D-FF61-47B6-AB50-B9FA150DF032@ndc.nasa.gov">
<div class="WordSection1">
<p class="MsoNormal"><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Jesse<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div
style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:12.0pt;color:black">From: </span></b><span
style="font-size:12.0pt;color:black">Even Rouault
<a class="moz-txt-link-rfc2396E" href="mailto:even.rouault@spatialys.com"><even.rouault@spatialys.com></a><br>
<b>Date: </b>Wednesday, January 10, 2024 at 12:48 PM<br>
<b>To: </b>"Meyer, Jesse R. (GSFC-618.0)[SCIENCE SYSTEMS
AND APPLICATIONS INC]" <a class="moz-txt-link-rfc2396E" href="mailto:jesse.r.meyer@nasa.gov"><jesse.r.meyer@nasa.gov></a>,
<a class="moz-txt-link-rfc2396E" href="mailto:gdal-dev@lists.osgeo.org">"gdal-dev@lists.osgeo.org"</a>
<a class="moz-txt-link-rfc2396E" href="mailto:gdal-dev@lists.osgeo.org"><gdal-dev@lists.osgeo.org></a><br>
<b>Subject: </b>[EXTERNAL] Re: [gdal-dev] Lack of srs
importFromESRI integer function</span><span
style="font-size:12.0pt;color:black;mso-ligatures:none"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<table class="MsoNormalTable" style="border:solid black 1.5pt"
cellspacing="0" cellpadding="0" border="1" align="left">
<tbody>
<tr>
<td
style="width:100.0%;border:none;background:#FFEB9C;padding:3.75pt 3.75pt 3.75pt 3.75pt"
width="100%">
<p class="MsoNormal"
style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<b><span style="font-size:10.0pt;color:black">CAUTION:</span></b><span
style="color:black">
</span><span style="font-size:10.0pt;color:black">This
email originated from outside of NASA. Please take
care when clicking links or opening attachments.
Use the "Report Message" button to report suspicious
messages to the NASA SOC.</span><span
style="color:black">
</span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
<o:p></o:p></p>
<div>
<p>Jesse,<o:p></o:p></p>
<p>You can use SetFromUserInput("ESRI:XXXX") .
ImportFromEPSG(code) more or less does
SetFromUserInput("EPSG:{code}")<o:p></o:p></p>
<p>Even<o:p></o:p></p>
<div>
<p class="MsoNormal">Le 10/01/2024 à 18:44, Meyer, Jesse R.
(GSFC-618.0)[SCIENCE SYSTEMS AND APPLICATIONS INC] via
gdal-dev a écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Our team has moved away from providing
geographic / projected CRS codes as strings and prefer
using integers where possible. However, in the C++ API, I
only see an integer based importFromEPSG function, which
doesn’t appear to accept ESRI codes (crs not found error
message). We’re targeting an Albers projection which is
distinguished by an ESRI integer.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Curiously, the proj database doesn’t
seem to make this distinction – the table column is simply
‘code’ and I can find the projection row manually,
alongside EPSG projections.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Can such a function be provided by the
API (if it doesn’t already exist – I couldn’t find it –
there are no integer overloads of importFromESRI)?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Please advise -- thanks,<o:p></o:p></p>
<p class="MsoNormal">Jesse<o:p></o:p></p>
<p class="MsoNormal"><span style="mso-ligatures:none"><br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>gdal-dev mailing list<o:p></o:p></pre>
<pre><a href="mailto:gdal-dev@lists.osgeo.org"
moz-do-not-send="true" class="moz-txt-link-freetext">gdal-dev@lists.osgeo.org</a><o:p></o:p></pre>
<pre><a
href="https://lists.osgeo.org/mailman/listinfo/gdal-dev"
moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><o:p></o:p></pre>
</blockquote>
<pre>-- <o:p></o:p></pre>
<pre><a href="http://www.spatialys.com/"
moz-do-not-send="true" class="moz-txt-link-freetext">http://www.spatialys.com</a><o:p></o:p></pre>
<pre>My software is free, but my time generally not.<o:p></o:p></pre>
</div>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://www.spatialys.com">http://www.spatialys.com</a>
My software is free, but my time generally not.</pre>
</body>
</html>