Skip to content

Refactor source and table derivation for data setup #331

@nvkelso

Description

@nvkelso

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions