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

update SQLite schema and add filter to remove alt-geometries #498

Closed
wants to merge 11 commits into from

Conversation

missinglink
Copy link
Member

@missinglink missinglink commented Apr 23, 2020

A PR into joxit/data-geocode.earth.

The pelias/wof-admin-lookup module requires this module and uses it to load geometries from SQLite databases.

I noticed a bunch of warnings when loading the PIP service using the local resolver as such:

warn: [wof-admin-lookup] invalid value lon=-122.726669, lat=45.580934, type=neighbourhood, values=[id=85893225, name=undefined, ]
warn: [wof-admin-lookup] invalid value lon=-122.729344, lat=45.577333, type=neighbourhood, values=[id=85893225, name=undefined, ]
warn: [wof-admin-lookup] invalid value lon=-122.728515, lat=45.578441, type=neighbourhood, values=[id=85893225, name=undefined, ]

It seems that although the WOF SQLite schema supports alt geometries, they never published data including them, whereas GeocodeEarth does, so we're adhering to the spec ahead of the canonical releases.

So this PR ensures that, by default, alt geometries are not loaded when using the SQLiteStream class.
We may wish to support them later but this at least gets any dependant codebases back to where they were.

@missinglink missinglink requested a review from Joxit April 23, 2020 17:32
missinglink and others added 2 commits April 23, 2020 19:49
This is a small PR into #487
that allows country codes to be specified in upper case or lower case.

Before this, specifying country codes in anything but lowercase would
cause the downloader to skip all files.
This helps ensure that in the future we don't break anything that
depends on this module by exporting something that doesn't exist.
@orangejulius
Copy link
Member

This made it into #487 but I guess I didn't do it in a way where this shows as merged. It's in there though: f8b6479

@orangejulius orangejulius deleted the ignore-alt-geoms branch April 23, 2020 20:44
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

Successfully merging this pull request may close these issues.

None yet

3 participants