[gdal-dev] Compoundcurve to DXF
Jan Heckman
jan.heckman at gmail.com
Wed May 7 06:11:46 PDT 2025
Hi Jukka,
You are right, excuses. My question was a bit rhetorical, though.
Will you please answer the 2nd question too?
I get the impression that there is no intention yet to convert curves to
DXF arcs.
I hope you change your mind, you can look to QGis to see some details, I
believe.
Jan
On Wed, May 7, 2025 at 1:56 PM Rahkonen Jukka <
jukka.rahkonen at maanmittauslaitos.fi> wrote:
> Hi,
>
> By reading https://gdal.org/en/stable/drivers/vector/dxf.html this feels
> clear and expected:
>
> "CIRCLE, ELLIPSE, ARC, SPLINE,HELIX: Translated as a LINESTRING,
> tessellating the curve into line segments"
> and
> "The OGR_ARC_STEPSIZE and OGR_ARC_MAX_GAP configurations options control
> the approximation of arcs, ellipses, circles and rounded polylines as
> linestrings"
>
> I fear that all you have overlooked was the documentation.
>
> -Jukka Rahkonen-
>
> ________________________________________
> Lähettäjä: gdal-dev käyttäjän Jan Heckman via gdal-dev puolesta
> Lähetetty: Keskiviikko 7. toukokuuta 2025 14.47
> Vastaanottaja: gdal
> Aihe: [gdal-dev] Compoundcurve to DXF
>
> Hi list,I am trying to convert a geopackage layer with compoundcurve
> geometry to autocad, hoping to get ARCS or bulging (LW)POLYLINE, without
> tesselation.I can do this in QGis by exporting the project to DXF, but not
> by saving the layer as DXF.Moreover, the produced XY geometries get garbled
> with nan's.Direct attempt with ogr2ogr had the same result:ogr2ogr -f DXF
> rott.dxf GPKG:rotterdam_land24_2.gpkg -nlt compoundcurve -sql "SELECT layer
> AS Layer, geom FROM land_24_2"-nlt compoundcurve was accepted, but
> apparently not applied.Is this expected? Have I overlooked something? If
> not, is there a plan to add this functionality?The data (104 kb) can be
> downloaded from this dropbox link.Best regards,Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250507/6b671ae7/attachment.htm>
More information about the gdal-dev
mailing list