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ähettäjä: gdal-dev <gdal-dev-boun...@lists.osgeo.org> Puolesta Michal 
Kowalczuk via gdal-dev
Lähetetty: perjantai 14. helmikuuta 2025 13.33
Vastaanottaja: gdal dev <gdal-dev@lists.osgeo.org>
Aihe: [gdal-dev] DXF ogr_style

Dear GDAL devs,
how can I force GDAL to generate ogr_style field when opening DXF dataset?
Somewhere on the GitHub I read that this is a special field and it may be 
hidden... but how to make it visible?

Regards,
Michał Kowalczuk

_______________________________________________
gdal-dev mailing list
gdal-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to