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

Consider -4 values in wof:parent_id property #1

Closed
stepps00 opened this issue May 5, 2017 · 2 comments
Closed

Consider -4 values in wof:parent_id property #1

stepps00 opened this issue May 5, 2017 · 2 comments
Assignees

Comments

@stepps00
Copy link
Member

stepps00 commented May 5, 2017

Similar to how we use the -3 value in the wof:parent_id property, we use a -4 property to represent multiple "legal" parents (see: New York City).

The hierarchy library has rules and references -3 values and should be updated to also handle -4 values in the wof:parent_id property.

Occurances:

@thisisaaronland thisisaaronland self-assigned this May 5, 2017
@thisisaaronland
Copy link
Member

@stepps00 – The first two cases have been addressed. What is / are the conditions that would flag a parent as -4 ? For example, a parent ID of -3 is assigned when:

        ambiguous = [ 'neighbourhood', 'microhood', 'campus', 'address', 'building', 'venue' ]
        self.is_ambiguous = ambiguous

        if feature['properties']['wof:placetype'] in self.is_ambiguous:
             feature['properties']['wof:parent_id'] = -3

@stepps00
Copy link
Member Author

stepps00 commented May 5, 2017

@thisisaaronland - The only difference should be the record's placetype. We discussed a -4 being assigned whenever there is a legal argument around its parents, which would likely only happen to a placetype of locality or above..

I would expect the parent value to be assigned through something like:

        ambiguous_three = [ 'borough', 'macrohood', 'neighbourhood', 'microhood', 'campus', 'address', 'building', 'venue' ]
        self.is_ambiguous = ambiguous_three

        if feature['properties']['wof:placetype'] in self.is_ambiguous:
             feature['properties']['wof:parent_id'] = -3

and

        ambiguous_four = [ 'locality', 'macroregion', 'region', 'macrocounty', 'county']
        self.is_ambiguous = ambiguous_four

        if feature['properties']['wof:placetype'] in self.is_ambiguous:
             feature['properties']['wof:parent_id'] = -4

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