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

Are min and max lat/lon when loading a raster pixel edges or centers? #6780

Open
mattwigway opened this issue Feb 1, 2024 · 0 comments
Open
Labels

Comments

@mattwigway
Copy link
Contributor

I'm using raster elevation data, converted to an Arc/INFO ASCII grid with the header stripped as described in the documentation. My question though is about the interpretation of minimum and maximum latitude and longitude. I've been just putting in the extents reported by GIS for these, but I think this may actually be wrong—as the extents reported by GIS are based on the edges of the pixels, but based on looking at the interpolation code (in raster_source.cpp) I think OSRM wants the minimum and maximum lat/lon of the centers of the pixels. Am I on the right track here?

image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant