src/main/java/de/blau/android/osm/StorageDelegator.java
/**
     * Check that the new position would still be valid This should be done before the operation in question
     *
     * @param newLatE7 the new latitude (WGS84*1E7)
     * @param newLonE7 the new longitude (WGS84*1E7)
     * @throws OsmIllegalOperationException if the new position would be off world
     */
Check that the new position would still be valid This should be done before the operation in question
@param newLatE7 the new latitude (WGS84*1E7)
@param newLonE7 the new longitude (WGS84*1E7)
@throws OsmIllegalOperationException if the new position would be off world
Check that the new position would still be valid This should be done before the operation in question @param newLatE7 the new latitude ( WGS84 * 1E7 ) @param newLonE7 the new longitude ( WGS84 * 1E7 ) @throws OsmIllegalOperationException if the new position would be off world
void validateCoordinates(final int newLatE7, final int newLonE7) throws OsmIllegalOperationException {
        if (newLatE7 > GeoMath.MAX_COMPAT_LAT_E7 || newLatE7 < -GeoMath.MAX_COMPAT_LAT_E7) {
            Log.e(DEBUG_TAG, "lat of " + newLatE7 + " is invalid");
            throw new OsmIllegalOperationException("lat of " + newLatE7 + " is invalid");
        }
        if (newLonE7 > GeoMath.MAX_LON_E7 || newLonE7 < -GeoMath.MAX_LON_E7) {
            Log.e(DEBUG_TAG, "lon of " + newLonE7 + " is invalid");
            throw new OsmIllegalOperationException("lon of " + newLonE7 + " is invalid");
        }
    }
void validateCoordinates ( final int newLatE7 , final int newLonE7 ) throws OsmIllegalOperationException { if ( newLatE7 > GeoMath . MAX_COMPAT_LAT_E7 || newLatE7 < - GeoMath . MAX_COMPAT_LAT_E7 ) { Log . e ( DEBUG_TAG , "lat of " + newLatE7 + " is invalid" ) ; throw new OsmIllegalOperationException ( "lat of " + newLatE7 + " is invalid" ) ; } if ( newLonE7 > GeoMath . MAX_LON_E7 || newLonE7 < - GeoMath . MAX_LON_E7 ) { Log . e ( DEBUG_TAG , "lon of " + newLonE7 + " is invalid" ) ; throw new OsmIllegalOperationException ( "lon of " + newLonE7 + " is invalid" ) ; } }
Check that the new position would still be valid This should be done before the operation in question
 @param newLatE7 the new latitude (WGS84*1E7)
 @param newLonE7 the new longitude (WGS84*1E7)
 @throws OsmIllegalOperationException if the new position would be off world
Check that the new position would still be valid This should be done before the operation in question @param newLatE7 the new latitude ( WGS84 * 1E7 ) @param newLonE7 the new longitude ( WGS84 * 1E7 ) @throws OsmIllegalOperationException if the new position would be off world