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

Refactor source and table derivation for data setup #331

Open
nvkelso opened this issue Apr 6, 2018 · 0 comments
Open

Refactor source and table derivation for data setup #331

nvkelso opened this issue Apr 6, 2018 · 0 comments

Comments

@nvkelso
Copy link
Member

nvkelso commented Apr 6, 2018

This should either move to vector-datasource directly, or be generalized away:

def lookup_source(source):
result = None
if source == 'openstreetmap.org':
result = Source('osm', source)
elif source == 'naturalearthdata.com':
result = Source('ne', source)
elif source == 'openstreetmapdata.com':
result = Source('shp', source)
elif source == 'whosonfirst.mapzen.com':
result = Source('wof', source)
elif source == 'tilezen.org':
result = Source('shp', source)
return result

When we added the tilezen.org source for a shapefile in vector-datasource this tilequeue code had to also be updated, which is sad. The mapping could probably be declared in the source config in vector-datasource instead.

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