spatial-algorithms icon indicating copy to clipboard operation
spatial-algorithms copied to clipboard

Reprojection utility functions

Open mapsam opened this issue 8 years ago • 3 comments

Working through vtquery has made us think it'd be great to have a couple reprojection utilities in spatial-algorithms (or elsewhere).

  1. Convert vector tile coordinates to lnglat - requires (x, y, and z values)
  2. Convert lnglat to vector tile coordinates - requires(lng, lat, and z values)

cc @mapbox/core-tech

mapsam avatar Oct 25 '17 16:10 mapsam

See also https://github.com/osmcode/libosmium/blob/master/include/osmium/geom/mercator_projection.hpp and https://github.com/osmcode/mercator-projection

joto avatar Oct 25 '17 16:10 joto

I have been considering if we should include this directly into a spatial algorithms or have it as a stand alone library. I have been leaning towards making this a stand alone library.

flippmoke avatar Feb 02 '18 20:02 flippmoke

noting that working on vtcomposite has also triggered this conversation!

millzpaugh avatar May 31 '18 17:05 millzpaugh