Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to read lines from a shapefile? #21

Open
d3netxer opened this issue Mar 4, 2019 · 3 comments
Open

Is there a way to read lines from a shapefile? #21

d3netxer opened this issue Mar 4, 2019 · 3 comments

Comments

@d3netxer
Copy link

d3netxer commented Mar 4, 2019

Is there a way to read lines from a shapefile and use them as the subject?

@flabowski
Copy link

Hi, pyclipper is only a wrapper for Angus Johnson's implementation of the Vatti's polygon clipping algorithm. How does your data look like? You need to have the points of the polygons available in the form of a python tuple, list or numpy array.

@d3netxer
Copy link
Author

d3netxer commented Mar 7, 2019

I have a polygon shapefile that represents the boundary of the city.

@flabowski
Copy link

If you are able to extract the polygons from your file, it works (even with numpy arrays). However, this library does not support reading shapefiles, you will have to do this manually.
Please refer to the section how to use, it gives a good idea what this library does: https://github.com/fonttools/pyclipper#how-to-use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants