[Tile-serving] [osm2pgsql] Add area reprojection facility (#454)
Paul Norman
notifications at github.com
Thu Oct 8 22:29:46 UTC 2015
> + {
> + if (*lat > 85.07)
> + *lat = 85.07;
> + if (*lat < -85.07)
> + *lat = -85.07;
> +
> + *lon = (*lon) * EARTH_CIRCUMFERENCE / 360.0;
> + *lat = log(tan(M_PI/4.0 + (*lat) * DEG_TO_RAD / 2.0)) * EARTH_CIRCUMFERENCE/(M_PI*2);
> + return;
> + }
> +
> + x[0] = *lon;
> + y[0] = *lat;
> + z[0] = 0;
> +
> + /** end of "caution" section. */
Where's the start of the caution section? This might be refering to something in `reprojection::reproject`
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/454/files#r41577902
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151008/070bfbd7/attachment.html>
More information about the Tile-serving
mailing list