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

why cropping a single node by deleting it from both the nodes dictionary and the features dictionary? #22

Open
bsnyh opened this issue Aug 18, 2019 · 0 comments

Comments

@bsnyh
Copy link

bsnyh commented Aug 18, 2019

I'm confused about the following function.

### Crop Single Node and Feature ###
function crop!(nodes::Dict, bounds::OpenStreetMapX.Bounds, features::Dict, id::Int)
	if !OpenStreetMapX.inbounds(nodes[id], bounds)
		id in keys(features) && delete!(features, id)
		delete!(nodes,id)
	end
end

Is there any specific reason that id is deleted from both the features dictionary and the nodes dictionary? I mean, what is the relation (or is there any) between the features dictionary and the nodes dictionary?

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