ezdxf-shapely


Nameezdxf-shapely JSON
Version 1.0 PyPI version JSON
download
home_pageNone
SummaryConvert DXF entities created by ezdxf to shapely geomerty objects.
upload_time2024-11-11 14:24:33
maintainerNone
docs_urlNone
authorNone
requires_python>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # EZDXF to Shapely Converter

Convert geometric entities loaded vom DXF files using [`ezdxf`](https://ezdxf.readthedocs.io/) to [`shapely`](https://pypi.org/project/Shapely/) geometry objects.

First use `ezdxf` to load the DXF entities from file and filter them using `query` or similar.

```python
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.

```python
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](LICENSE)

## Acknowledgements

This is a fork of [`cad-to-shapely`](https://github.com/aegis1980/cad-to-shapely) with some simplifications and the provision of more control over the import process to the user.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "ezdxf-shapely",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": "Max Weiner <max.weiner@posteo.de>",
    "keywords": null,
    "author": null,
    "author_email": "Max Weiner <max.weiner@posteo.de>, Jon Robinson <jonrobinson1980@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/e5/49/4b4424a61dad10a0ebab77b518bf7ac84384b04181126fbd700d123c623f/ezdxf_shapely-1.0.tar.gz",
    "platform": null,
    "description": "# EZDXF to Shapely Converter\n\nConvert geometric entities loaded vom DXF files using [`ezdxf`](https://ezdxf.readthedocs.io/) to [`shapely`](https://pypi.org/project/Shapely/) geometry objects.\n\nFirst use `ezdxf` to load the DXF entities from file and filter them using `query` or similar.\n\n```python\nimport ezdxf\n\ndxf_doc = ezdxf.readfile(\"your_file.dxf\")\nentities = dxf_doc.modelspace().query(\"*[layer==0]\")\n```\n\nThen use `ezdxf-shapely` to convert the entities and refine the results.\n\n```python\nimport ezdxf_shapely\n\ngeoms = ezdxf_shapely.convert_all(entities)\npolygons = ezdxf_shapely.polygonize(geoms) # optionally merge lines to polygons\n```\n\n## License\n\nLicensed under the terms of the [MIT License](LICENSE)\n\n## Acknowledgements\n\nThis is a fork of [`cad-to-shapely`](https://github.com/aegis1980/cad-to-shapely) with some simplifications and the provision of more control over the import process to the user.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Convert DXF entities created by ezdxf to shapely geomerty objects.",
    "version": "1.0",
    "project_urls": {
        "ForkedFrom": "https://github.com/aegis1980/cad-to-shapely",
        "Homepage": "https://github.com/axtimhaus/ezdxf-shapely",
        "Repository": "https://github.com/axtimhaus/ezdxf-shapely"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5db9ceab4fb83cace44a2417cfd06091116c947ae84b4b49ff29e28bc008a081",
                "md5": "1dec941a97ae66d9dae575c8c672624f",
                "sha256": "1cba440275805911b38eadd7256f2e0c5c8d8ce0beda55f3921c5ee705332ed6"
            },
            "downloads": -1,
            "filename": "ezdxf_shapely-1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1dec941a97ae66d9dae575c8c672624f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 7506,
            "upload_time": "2024-11-11T14:24:35",
            "upload_time_iso_8601": "2024-11-11T14:24:35.552195Z",
            "url": "https://files.pythonhosted.org/packages/5d/b9/ceab4fb83cace44a2417cfd06091116c947ae84b4b49ff29e28bc008a081/ezdxf_shapely-1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e5494b4424a61dad10a0ebab77b518bf7ac84384b04181126fbd700d123c623f",
                "md5": "b053cb7510b4c98e1b5074a18d9de3f6",
                "sha256": "7625ec848f6601cd74c9913bbe7d4038bd70d2e0aeb93750d0849aead9ff19d1"
            },
            "downloads": -1,
            "filename": "ezdxf_shapely-1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b053cb7510b4c98e1b5074a18d9de3f6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.10",
            "size": 241022,
            "upload_time": "2024-11-11T14:24:33",
            "upload_time_iso_8601": "2024-11-11T14:24:33.614298Z",
            "url": "https://files.pythonhosted.org/packages/e5/49/4b4424a61dad10a0ebab77b518bf7ac84384b04181126fbd700d123c623f/ezdxf_shapely-1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-11 14:24:33",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "aegis1980",
    "github_project": "cad-to-shapely",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "ezdxf-shapely"
}
        
Elapsed time: 0.31445s