Hi,

By reading the documentation 
https://gdal.org/drivers/vector/dxf.html#dxf-writer what you see is expected. 
--config DXF_WRITE_HATCH FALSE is writing polylines and polylines have vertices 
with different Z coordinates. --config DXF_WRITE_HATCH TRUE writes polygons. 
The polygons have same elevation value at each vertex, and that is also 
documented:
“You may need to do this [to use DXF_WRITE_HATCH FALSE] if your geometries do 
not have a constant elevation, as the DXF HATCH entity cannot represent such 
geometries.”

-Jukka Rahkonen-



Lähettäjä: gdal-dev <gdal-dev-boun...@lists.osgeo.org> Puolesta Shahrukh Mirza 
Nawandish via gdal-dev
Lähetetty: maanantai 22. huhtikuuta 2024 13.26
Vastaanottaja: gdal-dev@lists.osgeo.org
Aihe: [gdal-dev] Issue with 3D GeoJSON to 3D DXF Conversion

Dear GDAL Team,

I hope this email finds you well. I'm encountering an issue converting 3D 
GeoJSON polygons to DXF format using ogr2ogr. During conversion, the elevation 
data becomes uniform for all points within the polygon. Additionally, when 
using "DXF_WRITE_HATCH," the geometry becomes a polyline instead of a polygon.

Attached are the GeoJSON data and conversion code for your reference. Could you 
please assist in resolving this discrepancy?
ogr2ogr -f "DXF" output.dxf input.geojson -t_srs EPSG:32737 --config 
DXF_WRITE_HATCH FALSE


Thank you for your attention to this matter.

--
Saygılarımla / Kind Regards

Shahrukh Mirza NAWANDISH
Havacılık Bilgi Sistemleri / Aeronautical Information Systems
Yazılım Geliştirme Uzm. Yrd. / Software Development Assist. Specialist
Bilgisayar Programcısı / Computer Programmer MCA

T:+90 312 266 66 98
M:+90 538 519 72 67
 E:mirza.nawand...@haritaevi.com
▶: Ankara-Istanbul-Bucharest<https://www.haritaevi.com/en/about-us/contact>
www.haritaevi.com<http://www.haritaevi.com/>
www.obstacleanalyze.com<http://www.obstacleanalyze.com/>
www.aixm.haritaevi.com<https://aixm.haritaevi.com/>
www.aerodatamarket.com<http://www.aerodatamarket.com/>
[https://avatars.mds.yandex.net/get-mail-signature/2434044/d24bf65965f2be07edc47ff3c25b0348/orig]<https://www.instagram.com/haritaevi/?hl=tr>[https://avatars.mds.yandex.net/get-mail-signature/200369/c75763261eac7fb671922d147573080b/orig]<https://www.linkedin.com/company/haritaevi-havac%C4%B1l%C4%B1k-m%C3%BChendislik-a-%C5%9F/>[https://avatars.mds.yandex.net/get-mail-signature/2434044/1cd6e615d44979bf9b0d6b0ea9c47182/orig]<https://twitter.com/haritaevi>[https://avatars.mds.yandex.net/get-mail-signature/232821/ec6941b191f27730d3a5f92fd846beb4/orig]<https://www.youtube.com/channel/UCZHA_PmyMLg__KOfNgOLJYg?view_as=subscriber>[https://avatars.mds.yandex.net/get-mail-signature/232821/0545b2da2dc9f49f532774615ec45e51/orig]<https://www.facebook.com/haritaevi/>[https://www.haritaevi.com/wp-content/uploads/2022/02/disclaimer_1.png]<https://www.haritaevi.com/disclaimer>
 
[https://avatars.mds.yandex.net/get-mail-signature/2434044/58c47a3a908e28fdb209656734002f36/orig]
 <https://fidic.org/> 
[https://avatars.mds.yandex.net/get-mail-signature/2423644/1ccfc2184635533811e43aeeae4bf6c1/orig]
 <https://www.efcanet.org/> 
[https://avatars.mds.yandex.net/get-mail-signature/2423644/405b95fb41fb8db77dcee35ff542f333/orig]
 <https://www.haritaevi.com/en/about-us/quality-policy> 
[https://avatars.mds.yandex.net/get-mail-signature/1539903/c89e02562564f32028015473ea475742/orig]
 <https://www.haritaevi.com/en/about-us/information-security-policy>

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

Reply via email to