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

Tile Splitter not working #3

Open
abdelhafiz10 opened this issue Apr 29, 2022 · 0 comments
Open

Tile Splitter not working #3

abdelhafiz10 opened this issue Apr 29, 2022 · 0 comments

Comments

@abdelhafiz10
Copy link

Having a problem when using ts.split() to split the orthomap and shapefile into tiles, it showing this error


NotImplementedError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_10512\1663223480.py in
----> 1 ts.split()

~\AppData\Local\Temp\ipykernel_10512\1989879658.py in split(self)
17 tile_indices = self._calculate_tile_indices(bbox)
18 if tile_indices.shape[0] == 1:
---> 19 instance_poly = self._extract_instance_polygon(instance)
20 self._add_instance(instance_poly, tile_indices[0])
21 continue

~\AppData\Local\Temp\ipykernel_10512\1989879658.py in _extract_instance_polygon(self, instance)
102 def _extract_instance_polygon(self, instance):
103 XYZ = []
--> 104 for xyz in instance.boundary.coords:
105 XYZ.append(xyz)
106

~\anaconda3\envs\rock\lib\site-packages\shapely\geometry\base.py in coords(self)
866 def coords(self):
867 raise NotImplementedError(
--> 868 "Multi-part geometries do not provide a coordinate sequence")
869
870 @Property

NotImplementedError: Multi-part geometries do not provide a coordinate sequence

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

1 participant