[gdal-dev] DXF MLTIPOINT

Rahkonen Jukka jukka.rahkonen at maanmittauslaitos.fi
Wed Jan 15 23:24:18 PST 2025


Hi,

By this gis.stackexchange answer https://gis.stackexchange.com/questions/336804/export-to-dxf-from-multipoint-z-geometry-in-postgresql-using-ogr2ogr the main issue is in the DXF format that does not support MultiPoints. Try the workaround and explode your multipoints.
About why it is allowed to create a geometry type that is not supported by the driver, I do not know if the validity of the geometry type is checked https://gdal.org/en/stable/api/python/raster_api.html#osgeo.gdal.Dataset.CreateLayer of if it up to user to know that, or if DXF is a special case.

-Jukka Rahkonen-

Lähettäjä: gdal-dev <gdal-dev-bounces at lists.osgeo.org> Puolesta Michal Kowalczuk via gdal-dev
Lähetetty: torstai 16. tammikuuta 2025 8.56
Vastaanottaja: gdal-dev at lists.osgeo.org
Aihe: [gdal-dev] DXF MLTIPOINT


HUOM! Viesti on saapunut ulkopuolisesta osoitteesta. Älä avaa viestin linkkejä tai liitteitä, jos et tunnista lähettäjää.

Hi,
Does anyone know why DXF driver supports writing MutiLine and Multipolygon (make automatic conversion) but MultiPoint is not...?
If so, why layer creation (GDALDatasetCreateLayer) with this geometry type (wkbMultiPoint... family) is allowed and the error occurs only when creating a feature on a layer (OGR_L_CreateFeature)?

CPLError: No known way to write feature with geometry 'Multi Point'.

The DXF driver documentation is silent about this type of geometry...

Regards,
Michał Kowalczuk
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250116/003304c8/attachment-0001.htm>


More information about the gdal-dev mailing list