<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.Shkpostityyli20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        mso-ligatures:none;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 70.85pt 2.0cm;}
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]-->
</head>
<body lang="FI" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="mso-fareast-language:EN-US">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">By this gis.stackexchange answer
<a href="https://gis.stackexchange.com/questions/336804/export-to-dxf-from-multipoint-z-geometry-in-postgresql-using-ogr2ogr">
https://gis.stackexchange.com/questions/336804/export-to-dxf-from-multipoint-z-geometry-in-postgresql-using-ogr2ogr</a> the main issue is in the DXF format that does not support MultiPoints. Try the workaround and explode your multipoints.<br>
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
<a href="https://gdal.org/en/stable/api/python/raster_api.html#osgeo.gdal.Dataset.CreateLayer">
https://gdal.org/en/stable/api/python/raster_api.html#osgeo.gdal.Dataset.CreateLayer</a> of if it up to user to know that, or if DXF is a special case.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US">-Jukka Rahkonen-<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>Lähettäjä:</b> gdal-dev <gdal-dev-bounces@lists.osgeo.org>
<b>Puolesta </b>Michal Kowalczuk via gdal-dev<br>
<b>Lähetetty:</b> torstai 16. tammikuuta 2025 8.56<br>
<b>Vastaanottaja:</b> gdal-dev@lists.osgeo.org<br>
<b>Aihe:</b> [gdal-dev] DXF MLTIPOINT<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="3" cellpadding="0" style="background:#114881">
<tbody>
<tr>
<td style="padding:3.0pt 3.0pt 3.0pt 3.0pt"></td>
<td style="background:#0F90B9;padding:3.0pt 3.0pt 3.0pt 3.0pt">
<p><strong><span style="font-family:"Calibri",sans-serif;color:white">HUOM!</span></strong><span style="color:white"> Viesti on saapunut ulkopuolisesta osoitteesta. Älä avaa viestin linkkejä tai liitteitä, jos et tunnista lähettäjää.<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="font-size:10.0pt"> <o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Hi,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Does anyone know why DXF driver supports writing MutiLine and Multipolygon (make automatic conversion) but MultiPoint is not...?<br>
If so, why layer creation (<b><i>GDALDatasetCreateLayer</i></b>) with this geometry type (<b><i>wkbMultiPoint... </i></b>family) is allowed and the error occurs only when creating a feature on a layer (<b><i>OGR_L_CreateFeature</i></b>)?<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><b><i><span style="font-size:10.0pt">CPLError: No known way to write feature with geometry 'Multi Point'.</span></i></b><span style="font-size:10.0pt"><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">The DXF driver documentation is silent about this type of geometry...<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Regards,<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">Michał Kowalczuk<o:p></o:p></span></p>
</div>
</div>
</div>
</body>
</html>