Andrew,
as indicated in the commented lines just after the #ifdef, it had been
used to generate the HTML file of the JPEG doc (the tables at
https://gdal.org/drivers/raster/jpeg.html), before the .rst era. We can
probably remove that now
Even
Le 07/05/2021 à 17:40, Andrew Bell a écrit :
Hi
Hi,
I'm looking at gdalexif.cpp. I found a block of code that is guarded by:
#ifdef DUMP_EXIF_ITEMS
https://github.com/OSGeo/gdal/blob/master/gdal/gcore/gdalexif.cpp#L1545
I can find no other instance of this macro in the codebase so I'm assuming
that it's never defined. Can this block of code
Le 07/05/2021 à 10:47, Daniel Evans a écrit :
Using the Python bindings on GDAL 3.2.1 / GEOS 3.8.1, adding a point
to a 2D LinearRing automatically promotes it to a 3D geometry:
from osgeo import ogr
ring = ogr.Geometry(ogr.wkbLinearRing)
ring.GetGeometryType() # 2
ring.GetCoordinateDimen
Using the Python bindings on GDAL 3.2.1 / GEOS 3.8.1, adding a point to a 2D
LinearRing automatically promotes it to a 3D geometry:
from osgeo import ogr
ring = ogr.Geometry(ogr.wkbLinearRing)
ring.GetGeometryType() # 2
ring.GetCoordinateDimension() # 2
ring.AddPoint(0, 0)
ring.GetGeometryType