Closed dnomadb closed 7 years ago
:+1: we should have unit tests for these utils.js functions.
@rclark y, tests still pass when I fix the conversion 👀
I'll add unit tests in https://github.com/mapbox/mapnik-omnivore/pull/155
The digest ==> .raster.pixelSize parameter returned should be the pixelSize in m, correct?
yes, nice catch
So does this mean our pixel res detection/therefore raster zoom detection has been offset?
So does this mean our pixel res detection/therefore raster zoom detection has been offset?
@GretaCB I think we are ok. Input resolutions in m
are untouched - and since we preprocessorcer
rasters to web-mercator before digest
ing, I think that we are in the clear
@GretaCB @rclark
Looking at: https://github.com/mapbox/mapnik-omnivore/blob/master/lib/utils.js#L55-L63
It should be 1 * 0.3048, 0.3048.
Here's an example with a dataset in http://www.spatialreference.org/ref/epsg/3734/ + 0.333
ft
resolutionvs
Warping this dataset to web mercator and re-running:
+
The
digest ==> .raster.pixelSize
parameter returned should be the pixelSize in m, correct?