DXF: add a DXF_CLOSED_LINE_AS_POLYGON=YES/NO configuration option
to control whether closed POLYLINE/LWPOLYLINE should be exposed as a polygon. Defaults to NO to match current behavior.
Fixes #10153
Also available in DWF driver as DWG_CLOSED_LINE_AS_POLYGON=YES/NO
Also, for DXF, expose existing reader configuration options as open options: INLINE_BLOCKS, MERGE_BLOCK_GEOMETRIES, TRANSLATE_ESCAPE_SEQUENCES, INCLUDE_RAW_CODE_VALUES, 3D_EXTENSIBLE_MODE, CLOSED_LINE_AS_POLYGON, HATCH_TOLERANCE ENCODING
CC @atlight It was not obvious to me what the default of the CLOSED_LINE_AS_POLYGON should be. I see some software like KLayout have even more complicated heuristics/settigs for that policy. See "Polygon formation and LINE/POLYLINE interpretation" at https://www.klayout.de/dxf_format.html
coverage: 69.244% (-0.002%) from 69.246% when pulling 852fc9a4ee4b1e79aaa5627713309d861b03e8c5 on rouault:DXF_CLOSED_LINE_AS_POLYGON into 082d0e78c54dd544a14947ac216fdcca8080595c on OSGeo:master.
@rouault I encountered the same problem and needed a 3.10 java jar package to solve it. How can I get it? I am looking forward to your reply. Thank you.
I encountered the same problem and needed a 3.10 java jar package to solve it.
build master from source. Cf https://gdal.org/en/latest/development/building_from_source.html#