Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.OutOfRangeException


            return
                lonLo <= lonHi
                ? new Box(latLo, latHi, lonLo, lonHi)
                : new BoxLatLonWithWraparound(latLo, latHi, lonLo, lonHi);
        } catch (IllegalArgumentException e) {
            throw new OutOfRangeException(String.format("latLo = %s, latHi = %s, lonLo = %s, lonHi = %s",
                                                        latLo, latHi, lonLo, lonHi));
        }
    }
View Full Code Here


    // Query boxes are specified as center point += delta, delta <= 360. This calculation can put us past min/max lon.
    private static double fixLon(double lon)
    {
        if (lon > Spatial.MAX_LON + CIRCLE || lon < Spatial.MIN_LON - CIRCLE) {
            throw new OutOfRangeException(String.format("longitude %s", lon));
        }
        if (lon < Spatial.MIN_LON) {
            lon += CIRCLE;
        } else if (lon > Spatial.MAX_LON) {
            lon -= CIRCLE;
View Full Code Here

    // Fix lat by truncating at +/-90
    private static double fixLat(double lat)
    {
        if (lat > Spatial.MAX_LAT + CIRCLE || lat < Spatial.MIN_LAT - CIRCLE) {
            throw new OutOfRangeException(String.format("latitude %s", lat));
        }
        if (lat > Spatial.MAX_LAT) {
            lat = Spatial.MAX_LAT;
        } else if (lat < Spatial.MIN_LAT) {
            lat = Spatial.MIN_LAT;
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.OutOfRangeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.