Convert DXF entities created by ezdxf to shapely geomerty objects.
Project description
EZDXF to Shapely Converter
Convert geometric entities loaded vom DXF files using ezdxf
to shapely
geometry objects.
First use ezdxf
to load the DXF entities from file and filter them using query
or similar.
import ezdxf
dxf_doc = ezdxf.readfile("your_file.dxf")
entities = dxf_doc.modelspace().query("*[layer==0]")
Then use ezdxf-shapely
to convert the entities and refine the results.
import ezdxf_shapely
geoms = ezdxf_shapely.convert_all(entities)
polygons = ezdxf_shapely.polygonize(geoms) # optionally merge lines to polygons
License
Licensed under the terms of the MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ezdxf_shapely-0.2.tar.gz
(241.0 kB
view hashes)
Built Distribution
Close
Hashes for ezdxf_shapely-0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b2429e3774ab689396e13789fbd16d19b37612577b09c6da7b18e7d2994b5b9 |
|
MD5 | b931c08c34a6252713ea97824f4ac0ab |
|
BLAKE2b-256 | 5f166b97b82dd09d973d479a0f5583299deca4ad60c40ff184c2901b7d3288b3 |