private void parse111( Map<String, String> map )
throws OWSException {
double[] vals = handleCommon( map );
String c = map.get( "SRS" );
if ( c == null || c.trim().isEmpty() ) {
throw new OWSException( "The SRS parameter is missing.", OWSException.MISSING_PARAMETER_VALUE );
}
crs = GetMap.getCRS111( c );
bbox = fac.createEnvelope( new double[] { vals[0], vals[1] }, new double[] { vals[2], vals[3] }, crs );
String xs = map.get( "X" );
if ( xs == null ) {
throw new OWSException( "The X parameter is missing.", MISSING_PARAMETER_VALUE );
}
try {
x = parseInt( xs );
} catch ( NumberFormatException e ) {
throw new OWSException( "The value " + xs + " is not valid for X.", INVALID_PARAMETER_VALUE );
}
String ys = map.get( "Y" );
if ( ys == null ) {
throw new OWSException( "The Y parameter is missing.", MISSING_PARAMETER_VALUE );
}
try {
y = parseInt( ys );
} catch ( NumberFormatException e ) {
throw new OWSException( "The value " + ys + " is not valid for Y.", INVALID_PARAMETER_VALUE );
}
}