[Tile-serving] [osm2pgsql] Add area reprojection facility (#454)

Paul Norman notifications at github.com
Sat Oct 3 00:17:02 UTC 2015


> @@ -162,6 +164,42 @@ void reprojection::reproject(double *lat, double *lon) const
>      *lon = x[0];
>  }
>  
> +void reprojection::target_to_tile(double *lat, double *lon) const
> +{
> +    double x[1], y[1], z[1];
> +
> +    if (Proj == PROJ_SPHERE_MERC)
> +        return;
> +
> +    if (Proj == PROJ_LATLONG)
> +    {
> +        if (*lat > 85.07)
> +            *lat = 85.07;
> +        if (*lat < -85.07)
> +            *lat = -85.07;
> +
> +    //std::cout << "builtin=" << Proj << ": " << *lon ;

The debugging statements should be removed

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/454/files#r41080446
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20151002/82b14c0e/attachment.html>


More information about the Tile-serving mailing list