private void parse130( Map<String, String> map, MapOptionsMaps exts )
throws OWSException {
String c = map.get( "CRS" );
if ( c == null || c.trim().isEmpty() ) {
throw new OWSException( "The CRS parameter is missing.", OWSException.MISSING_PARAMETER_VALUE );
}
String box = map.get( "BBOX" );
if ( box == null || box.trim().isEmpty() ) {
throw new OWSException( "The BBOX parameter is missing.", OWSException.MISSING_PARAMETER_VALUE );
}
double[] vals = splitAsDoubles( box, "," );
if ( vals.length != 4 ) {
throw new OWSException( "The value of the BBOX parameter had too many values: " + box,
OWSException.INVALID_PARAMETER_VALUE );
}
if ( vals[2] <= vals[0] ) {
throw new OWSException( "The maxx component of the BBOX was smaller that the minx component.",
OWSException.INVALID_PARAMETER_VALUE );
}
if ( vals[3] <= vals[1] ) {
throw new OWSException( "The maxy component of the BBOX was smaller that the miny component.",
OWSException.INVALID_PARAMETER_VALUE );
}
bbox = getCRSAndEnvelope130( c, vals );
crs = bbox.getCoordinateSystem();
handleCommon( map, exts );
}