[gdal-dev] DXF MLTIPOINT
Michał Kowalczuk
michkowalczuk at gmail.com
Thu Jan 16 00:11:06 PST 2025
Thank you, Jukka.
I saw this post. The main question is why the DXF driver implementation can
explode MultiPolylines and MultiPolygons (which is more complex) and
MultiPoint *not*?
Michał Kowalczuk
czw., 16 sty 2025 o 08:24 Rahkonen Jukka <
jukka.rahkonen at maanmittauslaitos.fi> napisał(a):
> 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/9d4dca94/attachment.htm>
More information about the gdal-dev
mailing list