-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
UnboundLocalError on topojson.topology() #1
Comments
Thanks for the first issue on this repo! Glad you give it a try. topojson.topology(zdf.head(2)) Try remove the |
That doesn't change anything. The problem is that the From within dedup.py: def main(self, data):
# <removed docstring for clarity>
# deduplicate equal geometries
# create numpy array from bookkeeping_geoms variable for numerical computation
array_bk = self.index_array(data["bookkeeping_linestrings"])
if data["bookkeeping_duplicates"].size != 0:
array_bk_sarcs, dup_pair_list = self.deduplicate(
data["bookkeeping_duplicates"], data["linestrings"], array_bk
)
# <removed comment block for clarity>
# prepare to return object
del data["bookkeeping_linestrings"]
data["bookkeeping_arcs"] = self.list_from_array(array_bk)
data["bookkeeping_shared_arcs"] = array_bk_sarcs.astype(int).tolist()
data["bookkeeping_duplicates"] = self.list_from_array(
data["bookkeeping_duplicates"][dup_pair_list != -99]
)
return data As you can see, the end of |
Thanks for your clarification. You are right. This happened when trying to compute a topology between geometries without any shared boundaries. All tests in the phase of deduplication ( |
The text was updated successfully, but these errors were encountered: