[gdal-dev] A qüestion about ICreateLayer() and it's parameter eType
Abel Pau
a.pau at creaf.uab.cat
Mon Feb 19 01:01:20 PST 2024
Thanks,
I didn’t know that you can comment the name (but not the type) to explicity tell the compiler this parameter will not be used!
De: Even Rouault <even.rouault at spatialys.com>
Enviado el: diumenge, 18 de febrer de 2024 19:08
Para: Abel Pau <a.pau at creaf.uab.cat>; gdal-dev at lists.osgeo.org
Asunto: Re: [gdal-dev] A qüestion about ICreateLayer() and it's parameter eType
Le 12/02/2024 à 11:05, Abel Pau via gdal-dev a écrit :
Hi again,
forget the question.
I finally use the variable to inform that layers with measures will be processed without Measures.
Otherwise you can just use the parameter type without its name (or by commenting out the name)
void foo(int /* ignored_parameter */)
You might also find the following more verbose version, but I'd tend to prefer the above on
void foo(CPL_UNUSED int ingored_parameter)
Most drivers don't warn if you provide a measured geometry type and they only support the 2D version. Actually drivers that support measured geometries should explicitly advertize the OLCMeasuredGeometries layer capability. Cf https://gdal.org/development/rfc/rfc61_support_for_measured_geometries.html#compatibility-issues
Even
--
http://www.spatialys.com
My software is free, but my time generally not.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20240219/d8ebab30/attachment.htm>
More information about the gdal-dev
mailing list