feature request: ability to use __geo_interface__ properties as dxfattribs in to_dxf_entities #897
Replies: 3 comments 8 replies
-
I don't understand your question nor have I ever used |
Beta Was this translation helpful? Give feedback.
-
I tried to implement this feature and noticed that the current design only handles the "geometry" nodes, this requires much more work and may break existing code. |
Beta Was this translation helpful? Give feedback.
-
Does anyone know how My assumption is this: {
"type": "Feature",
"properties": {"layer": "GeoJSON"},
"geometry": {
"type": "GeometryCollection",
"geometries": [
{
"type": "Point",
"coordinates": [0, 0]
},
{
"type": "Point",
"coordinates": [1, 1]
}
]
}
} |
Beta Was this translation helpful? Give feedback.
-
Hi, first of all many thanks for this wonderful library!
I'm mainly using it to convert GeoPandas dataframes to DXF, and a while ago I wrote a module to do that.
Now that I discovered the geo addon, I'm trying to move my code to it.
My GeoDataFrames store the target layer name in a column, and I can use a groupby to process the features with the same layer:
Now I would like to use other style parameters from the geodataframe columns, such as color and transparency; I could use the same strategy passing multiple
by
columns in thegroupby
method, but I was wondering if this could be a feature to add todxf_entities
/GeoProxy.to_dxf_entities
, since the info are available in the "properties" property of the parsed GeoProxy class.Something like optional
layer_property
,color_property
,transparency_property
argument, maybe?Or better yet a
dxfattribs_function
to specify a function that returns a dictionary fordxfattribs
given the featureproperties
as argument.Beta Was this translation helpful? Give feedback.
All reactions