0

I have ten geodataframe; I would like to export each one of them to DXF:

geodataframes= [gdf1,gfd2,gdf2]
for geodataframe in geodataframes:
    #geodataframe to dxf

it would be possible?

  • I would like all in python – Gregor D Oct 24 at 9:17
3

GeoPandas supports dxf. You just have to keep in mind that dxf can hold only geometry, not attributes, which means that you have to save GeoSeries, not GeoDataFrame.

geodataframes = [gdf1, gfd2, gdf3]
for i, geodataframe in enumerate(geodataframes):
    geodataframe.geometry.to_file(f'file_{i}.dxf', driver='DXF')
| improve this answer | |

Not the answer you're looking for? Browse other questions tagged or ask your own question.