<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hi,</p>
<p>IMHO, I would not complicate the driver for that. Such options
would actually be quite generic, and if we wanted to implement
them, they would probably better be implemented as options of
ogr2ogr (but should be done separately from your driver
submission)<br>
</p>
<p>Even<br>
</p>
<div class="moz-cite-prefix">Le 26/01/2024 à 10:59, Abel Pau via
gdal-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:PAXPR07MB77755FDBC2A7D4373DB1B58EA2792@PAXPR07MB7775.eurprd07.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="Generator"
content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<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;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}span.EstiloCorreo18
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}span.EstiloCorreo19
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}.MsoChpDefault
{mso-style-type:export-only;
font-size:10.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]-->
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Hi
again,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">I
understand...<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Perhaps
an option could be using something like
<b>-lco Z_NODATA_VALUE_DST="X"</b> to translate NODATA from
origin to this value X (NaN, 0, or whatever it may be). The
driver can offer this number instead of the own NODATA and
the user can know that the X value in destination will mean
NODATA.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">On
the other hand, a user could also specify
<b>-lco Z_NODATA_VALUE_SRC="Y"</b> so that a driver can
identify a value considered NODATA in the source and
translate it to the own NODATA value (or the one specified
by the first parameter (if it exists)).
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Is
this too complicated? Are there any repercussions that I'm
not seeing?
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US">Thanks.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="color:#1F497D" lang="ES"><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:CA" lang="ES">De:</span></b><span
style="mso-fareast-language:CA" lang="ES"> Rahkonen
Jukka <a class="moz-txt-link-rfc2396E" href="mailto:jukka.rahkonen@maanmittauslaitos.fi"><jukka.rahkonen@maanmittauslaitos.fi></a>
<br>
<b>Enviado el:</b> dijous, 25 de gener de 2024 18:27<br>
<b>Para:</b> Abel Pau <a class="moz-txt-link-rfc2396E" href="mailto:a.pau@creaf.uab.cat"><a.pau@creaf.uab.cat></a>;
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a><br>
<b>Asunto:</b> Re: vector NODATA for Z values?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="FI">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I think that it depends
on the file format. Rather often it is set to zero but I
have seen NaN in many places. However, shapefiles explicitly
denies NaN<br>
<br>
“…Positive infinity, negative infinity, and Not-a-Number
(NaN) values are not allowed in shapefiles. Nevertheless,
shapefiles support the concept of "no data" values, but they
are currently used only for measures. Any floating point
number smaller than –1038 is considered by a shapefile
reader to represent a "no data" value.<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">With the SQLite dialect
it is possible to select the value but NaN is not accepted.<br>
Can be tested with<br>
ogrinfo -dialect SQLite -sql "select
CastToXYZ(ST_GeomFromText('POINT (1 2)'),3)" point.json<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="FI">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="FI"><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" lang="FI">Lähettäjä:</span></b><span
style="mso-fareast-language:FI" lang="FI"> gdal-dev <<a
href="mailto:gdal-dev-bounces@lists.osgeo.org"
moz-do-not-send="true" class="moz-txt-link-freetext">gdal-dev-bounces@lists.osgeo.org</a>>
<b>Puolesta </b>Abel Pau via gdal-dev<br>
<b>Lähetetty:</b> torstai 25. tammikuuta 2024 19.07<br>
<b>Vastaanottaja:</b> <a
href="mailto:gdal-dev@lists.osgeo.org"
moz-do-not-send="true" class="moz-txt-link-freetext">gdal-dev@lists.osgeo.org</a><br>
<b>Aihe:</b> [gdal-dev] vector NODATA for Z values?<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="FI"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">there is any value in
GDAL for VECTORS that indicates that a concrete value of a Z
is not known (z nodata value)?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I couldn’t find it
anywhere.<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 MiraMon format we use
one concrete number documented in our format pdf (</span><span
style="font-size:12.0pt;font-family:"Courier New"">-1.0E+300</span><span
lang="EN-US">) an in the driver it’s planned to translate it
to the same number. I could translate it to the one I am
asking. And the same for detecting nodata Z and translate
them to
</span><span
style="font-size:12.0pt;font-family:"Courier New"">-1.0E+300
</span>
<span lang="EN-US">when reading another format.<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">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:CA"
lang="EN-US"> </span><span style="mso-fareast-language:CA"><o:p></o:p></span></p>
<table class="MsoNormalTable" style="width:375.0pt" width="0"
cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="width:232.5pt;padding:0cm 0cm 0cm 0cm"
width="310">
<p class="MsoNormal"><b><span
style="font-size:11.5pt;font-family:"Arial",sans-serif;color:#003300;mso-fareast-language:CA"
lang="EN-US">Abel Pau Garcia</span></b><span
style="font-size:12.0pt;mso-fareast-language:CA"
lang="EN-US">
</span><span style="mso-fareast-language:CA"
lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span
style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#669900;mso-fareast-language:CA"
lang="EN-US">GIS developer</span></b><span
style="mso-fareast-language:CA" lang="EN-US"><o:p></o:p></span></p>
</td>
<td style="width:142.5pt;padding:0cm 0cm 0cm 0cm"
width="190" valign="top">
<p class="MsoNormal" style="text-align:right"
align="right"><span
style="font-size:12.0pt;mso-fareast-language:CA"><img
style="width:1.3958in;height:.5208in"
id="Imagen_x0020_8"
src="cid:part1.vdx6HA7p.TE8JHRV7@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/creaf-signature.png"
class="" width="134" height="50" border="0"></span><span
style="mso-fareast-language:CA"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><a
href="mailto:a.pau@creaf.uab.cat"
moz-do-not-send="true"><b><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue;mso-fareast-language:CA"
lang="EN-US">a.pau@creaf.uab.cat</span></b></a><span
style="mso-fareast-language:CA" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><a
href="https://teams.microsoft.com/l/chat/0/0?users=a.pau@creaf.uab.cat"
moz-do-not-send="true"><b><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:blue;mso-fareast-language:CA"
lang="EN-US">Let's chat on Teams!</span></b></a><span
style="mso-fareast-language:CA" lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#003300;mso-fareast-language:CA">Tel.
+34 934814277</span></b><span
style="mso-fareast-language:CA"><o:p></o:p></span></p>
</td>
<td style="width:106.5pt;padding:0cm 0cm 0cm 0cm"
width="190" valign="top">
<p class="MsoNormal" style="text-align:right"
align="right"><span
style="font-size:12.0pt;mso-fareast-language:CA"><img
style="width:1.0937in;height:.5208in"
id="Imagen_x0020_7"
src="cid:part2.50xHw2oT.UQPPzvtS@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/so-en-signature.png"
class="" width="105" height="50" border="0"></span><span
style="mso-fareast-language:CA"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><a
href="https://twitter.com/CREAF_ecologia"
target="_blank" moz-do-not-send="true"><span
style="font-size:12.0pt;mso-fareast-language:CA;text-decoration:none"><img
style="width:.177in;height:.177in"
id="Imagen_x0020_6"
src="cid:part3.2vQaRrri.lDKW0rdt@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/twitter-icon-signature.png"
class="" width="17" height="17" border="0"></span></a><a
href="https://www.linkedin.com/company/1363052?trk=tyah&trkInfo=clickedVertical:company,clickedEntityId:1363052,idx:2-1-2,tarId:1465807877789,tas:creaf"
target="_blank" moz-do-not-send="true"><span
style="font-size:12.0pt;mso-fareast-language:CA;text-decoration:none"><img
style="width:.177in;height:.177in"
id="Imagen_x0020_5"
src="cid:part4.Sd76lhV0.U04tvKBK@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/linkedin-icon-signature.png"
class="" width="17" height="17" border="0"></span></a><a
href="https://www.youtube.com/c/creafecologia"
target="_blank" moz-do-not-send="true"><span
style="font-size:12.0pt;mso-fareast-language:CA;text-decoration:none"><img
style="width:.177in;height:.177in"
id="Imagen_x0020_4"
src="cid:part5.fz7U9hQw.dFKWQGTj@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/youtube-icon-signature.png"
class="" width="17" height="17" border="0"></span></a><a
href="https://www.instagram.com/CREAF_ecologia/"
target="_blank" moz-do-not-send="true"><span
style="font-size:12.0pt;mso-fareast-language:CA;text-decoration:none"><img
style="width:.177in;height:.177in"
id="Imagen_x0020_3"
src="cid:part6.aYmE9H7Q.wbGqZc8G@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/instagram-icon-signature.png"
class="" width="17" height="17" border="0"></span></a><span
style="mso-fareast-language:CA"><o:p></o:p></span></p>
<p class="MsoNormal"><a href="http://www.creaf.cat/"
target="_blank" moz-do-not-send="true"><b><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#003300;mso-fareast-language:CA">www.creaf.cat</span></b></a><b><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#003300;mso-fareast-language:CA">
| </span></b><a href="http://blog.creaf.cat/"
target="_blank" moz-do-not-send="true"><b><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#003300;mso-fareast-language:CA">http://blog.creaf.cat</span></b></a><span
style="mso-fareast-language:CA"><o:p></o:p></span></p>
</td>
<td style="padding:0cm 0cm 0cm 0cm" valign="top">
<p class="MsoNormal" style="text-align:right"
align="right"><span
style="font-size:12.0pt;mso-fareast-language:CA"><img
style="width:1.0937in;height:.5208in"
id="Imagen_x0020_2"
src="cid:part7.6sIJ0ibC.byHVG0Px@spatialys.com"
alt="https://www.creaf.cat/sites/default/files/uab_logo_signatura.png"
class="" width="105" height="50" border="0"></span><span
style="mso-fareast-language:CA"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td colspan="2" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span
style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#003300;mso-fareast-language:CA"
lang="EN-US">CREAF. Campus UAB. Edifici C. 08193
Bellaterra (Barcelona)</span><span
style="mso-fareast-language:CA" lang="EN-US"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td colspan="2" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span
style="font-size:8.5pt;font-family:"Arial",sans-serif;color:#999999;mso-fareast-language:CA"
lang="EN-US"><br>
Before printing this electronic message, think about
the environment.</span><span
style="mso-fareast-language:CA" lang="EN-US"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td colspan="2" style="padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span
style="font-size:12.0pt;mso-fareast-language:CA"><img
style="width:5.2083in;height:.0625in"
id="Imagen_x0020_1"
src="cid:part8.dayTM0ro.x9P6O6p6@spatialys.com"
alt="http://www.creaf.uab.cat/_signatura/line.gif"
class="" width="500" height="6" border="0"></span><span
style="mso-fareast-language:CA"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="mso-fareast-language:CA"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="ES"><o:p> </o:p></span></p>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gdal-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gdal-dev@lists.osgeo.org">gdal-dev@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/gdal-dev">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a>
</pre>
</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>