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

Let geojson files in mapping be specified relative to mapping files #233

Open
pnorman opened this issue Feb 18, 2020 · 0 comments
Open

Let geojson files in mapping be specified relative to mapping files #233

pnorman opened this issue Feb 18, 2020 · 0 comments

Comments

@pnorman
Copy link
Contributor

pnorman commented Feb 18, 2020

Context

Right now when specifying a geojson file for geojson_intersects_feature it needs to be specified as an absolute path or relative to the imposm binary. This makes it difficult to distribute a mapping.yaml file with associated geojson in a way that doesn't depend on deployment-specific paths.

Expected Behavior

A relative path in a mapping file is relative to the mapping file.

Possible Fix

Change the current working directory before

f, err := os.Open(geojsonFileName)

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