Re: [gdal-dev] DXF ogr_style

2025-02-14 Thread Rahkonen Jukka via gdal-dev
Hi, Use SQL and select the special OGR_STYLE field as a normal attribute. An example, tested with https://github.com/OSGeo/gdal/blob/master/autotest/ogr/data/dxf/assorted.dxf ogr2ogr -f geojson -sql "select *, ogr_style as ogr_style from entities" out.json assorted.dxf -Jukka Rahkonen- Lähet

Re: [gdal-dev] DXF ogr_style

2025-02-14 Thread Michał Kowalczuk via gdal-dev
I found this const char *OGR_F_GetStyleString(OGRFeatureH) which is helpful, but the question is still actual.. Is any option to force GDAL to create *ogr_style *field visible as normal field (DXF dataset)?