Beispiel #1
0
        // **************** JTS CONVERSIONS *********************

        private static double[] computeTileEnlargement(double lat, int enlargementInMeter)
        {
            if (enlargementInMeter == 0)
            {
                return(EPSILON_ZERO);
            }

            double[] epsilons = new double[2];

            epsilons[0] = LatLongUtils.latitudeDistance(enlargementInMeter);
            epsilons[1] = LatLongUtils.longitudeDistance(enlargementInMeter, lat);

            return(epsilons);
        }
Beispiel #2
0
        private static double[] bufferInDegrees(long tileY, sbyte zoom, int enlargementInMeter)
        {
            if (enlargementInMeter == 0)
            {
                return(EPSILON_ZERO);
            }

            double[] epsilons = new double[2];
            double   lat      = MercatorProjection.tileYToLatitude(tileY, zoom);

            epsilons[0] = LatLongUtils.latitudeDistance(enlargementInMeter);
            epsilons[1] = LatLongUtils.longitudeDistance(enlargementInMeter, lat);

            return(epsilons);
        }