private Geometry readGeometry( ComplexInput gmlInput ) throws ProcessletException { try { XMLStreamReader xmlReader = gmlInput.getValueAsXMLStream(); GMLStreamReader gmlReader = GMLInputFactory.createGMLStreamReader( GML_31, xmlReader ); return gmlReader.readGeometry(); } catch ( Exception e ) { throw new ProcessletException( "Error parsing parameter " + gmlInput.getIdentifier() + ": " + e.getMessage() ); } }
} catch ( ProcessletException e ) { OWSException oe = null; if ( e.hasOWSException() ) { oe = e.getOWSException(); } else { String msg = "Process execution failed: " + e.getMessage(); LOG.debug( msg, e ); oe = new OWSException( msg, NO_APPLICABLE_CODE );
private Geometry readGeometry( ComplexInput gmlInput ) throws ProcessletException { try { XMLStreamReader xmlReader = gmlInput.getValueAsXMLStream(); GMLStreamReader gmlReader = GMLInputFactory.createGMLStreamReader( GML_31, xmlReader ); return gmlReader.readGeometry(); } catch ( Exception e ) { throw new ProcessletException( "Error parsing parameter " + gmlInput.getIdentifier() + ": " + e.getMessage() ); } }
private Geometry readGeometry( ComplexInput gmlInput ) throws ProcessletException { try { XMLStreamReader xmlReader = gmlInput.getValueAsXMLStream(); GMLStreamReader gmlReader = GMLInputFactory.createGMLStreamReader( GML_31, xmlReader ); return gmlReader.readGeometry(); } catch ( Exception e ) { throw new ProcessletException( "Error parsing parameter " + gmlInput.getIdentifier() + ": " + e.getMessage() ); } }
private Geometry readGeometry( ComplexInput gmlInput1 ) throws ProcessletException { try { XMLStreamReader xmlReader = gmlInput1.getValueAsXMLStream(); GMLStreamReader gmlReader = GMLInputFactory.createGMLStreamReader( GML_31, xmlReader ); return gmlReader.readGeometry(); } catch ( Exception e ) { throw new ProcessletException( "Error parsing parameter " + gmlInput1.getIdentifier() + ": " + e.getMessage() ); } }
private Geometry readGeometry( ComplexInput gmlInput ) throws ProcessletException { try { XMLStreamReader xmlReader = gmlInput.getValueAsXMLStream(); GMLStreamReader gmlReader = GMLInputFactory.createGMLStreamReader( GML_31, xmlReader ); return gmlReader.readGeometry(); } catch ( Exception e ) { throw new ProcessletException( "Error parsing parameter " + gmlInput.getIdentifier() + ": " + e.getMessage() ); } }
private Geometry readGeometry( ComplexInput gmlInput1 ) throws ProcessletException { try { XMLStreamReader xmlReader = gmlInput1.getValueAsXMLStream(); GMLStreamReader gmlReader = GMLInputFactory.createGMLStreamReader( GML_31, xmlReader ); return gmlReader.readGeometry(); } catch ( Exception e ) { throw new ProcessletException( "Error parsing parameter " + gmlInput1.getIdentifier() + ": " + e.getMessage() ); } }
private Geometry readGeometry( ComplexInput gmlInput ) throws ProcessletException { try { XMLStreamReader xmlReader = gmlInput.getValueAsXMLStream(); GMLStreamReader gmlReader = GMLInputFactory.createGMLStreamReader( GML_31, xmlReader ); return gmlReader.readGeometry(); } catch ( Exception e ) { throw new ProcessletException( "Error parsing parameter " + gmlInput.getIdentifier() + ": " + e.getMessage() ); } } }
private Geometry readGeometry( ComplexInput gmlInput ) throws ProcessletException { try { XMLStreamReader xmlReader = gmlInput.getValueAsXMLStream(); GMLStreamReader gmlReader = GMLInputFactory.createGMLStreamReader( GML_31, xmlReader ); return gmlReader.readGeometry(); } catch ( Exception e ) { throw new ProcessletException( "Error parsing parameter " + gmlInput.getIdentifier() + ": " + e.getMessage() ); } }
private Geometry readGeometry( ComplexInput gmlInput ) throws ProcessletException { try { XMLStreamReader xmlReader = gmlInput.getValueAsXMLStream(); GMLStreamReader gmlReader = GMLInputFactory.createGMLStreamReader( GML_31, xmlReader ); return gmlReader.readGeometry(); } catch ( Exception e ) { throw new ProcessletException( "Error parsing parameter " + gmlInput.getIdentifier() + ": " + e.getMessage() ); } }
private Geometry readGeometry( ComplexInput gmlInput ) throws ProcessletException { try { XMLStreamReader xmlReader = gmlInput.getValueAsXMLStream(); GMLStreamReader gmlReader = GMLInputFactory.createGMLStreamReader( GML_31, xmlReader ); return gmlReader.readGeometry(); } catch ( Exception e ) { throw new ProcessletException( "Error parsing parameter " + gmlInput.getIdentifier() + ": " + e.getMessage() ); } }
private void writeGeometry( ComplexOutput gmlOutput, Geometry geometry ) throws ProcessletException { try { SchemaLocationXMLStreamWriter sw = new SchemaLocationXMLStreamWriter( gmlOutput.getXMLStreamWriter(), "http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/base/geometryAggregates.xsd" ); sw.setPrefix( "gml", GMLNS ); GMLStreamWriter gmlWriter = GMLOutputFactory.createGMLStreamWriter( GML_31, sw ); gmlWriter.write( geometry ); } catch ( Exception e ) { throw new ProcessletException( "Error exporting geometry: " + e.getMessage() ); } }
private void writeGeometry( ComplexOutput gmlOutput, Geometry geometry ) throws ProcessletException { try { SchemaLocationXMLStreamWriter sw = new SchemaLocationXMLStreamWriter( gmlOutput.getXMLStreamWriter(), "http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/base/geometryAggregates.xsd" ); sw.setPrefix( "gml", GMLNS ); GMLStreamWriter gmlWriter = GMLOutputFactory.createGMLStreamWriter( GML_31, sw ); gmlWriter.write( geometry ); } catch ( Exception e ) { throw new ProcessletException( "Error exporting geometry: " + e.getMessage() ); } }
private void writeGeometry( ComplexOutput gmlOutput, Geometry geometry ) throws ProcessletException { try { SchemaLocationXMLStreamWriter sw = new SchemaLocationXMLStreamWriter( gmlOutput.getXMLStreamWriter(), "http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/base/geometryAggregates.xsd" ); sw.setPrefix( "gml", GMLNS ); GMLStreamWriter gmlWriter = GMLOutputFactory.createGMLStreamWriter( GML_31, sw ); gmlWriter.write( geometry ); } catch ( Exception e ) { throw new ProcessletException( "Error exporting geometry: " + e.getMessage() ); } }
private void writeGeometry( ComplexOutput gmlOutput, Geometry geometry ) throws ProcessletException { try { SchemaLocationXMLStreamWriter sw = new SchemaLocationXMLStreamWriter( gmlOutput.getXMLStreamWriter(), "http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/base/geometryAggregates.xsd" ); sw.setPrefix( "gml", GMLNS ); GMLStreamWriter gmlWriter = GMLOutputFactory.createGMLStreamWriter( GML_31, sw ); gmlWriter.write( geometry ); } catch ( Exception e ) { throw new ProcessletException( "Error exporting geometry: " + e.getMessage() ); } }
private void writeGeometry( ComplexOutput gmlOutput, Geometry geometry ) throws ProcessletException { try { SchemaLocationXMLStreamWriter sw = new SchemaLocationXMLStreamWriter( gmlOutput.getXMLStreamWriter(), "http://www.opengis.net/gml http://schemas.opengis.net/gml/3.1.1/base/geometryAggregates.xsd" ); sw.setPrefix( "gml", GMLNS ); GMLStreamWriter gmlWriter = GMLOutputFactory.createGMLStreamWriter( GML_31, sw ); gmlWriter.write( geometry ); } catch ( Exception e ) { throw new ProcessletException( "Error exporting geometry: " + e.getMessage() ); } }
LOG.debug( "Exception message: " + e.getMessage(), e ); throw new ProcessletException( e.getLocalizedMessage() ); } catch ( IllegalArgumentException e ) { if ( LOG.isDebugEnabled() ) { LOG.debug( "Exception message: " + e.getMessage(), e ); throw new ProcessletException( new OWSException( e.getLocalizedMessage(), OWSException.INVALID_PARAMETER_VALUE ) ); } catch ( XMLStreamException e ) { LOG.debug( "Exception message: " + e.getMessage(), e ); throw new ProcessletException( new OWSException( e.getLocalizedMessage(), OWSException.INVALID_PARAMETER_VALUE ) ); } catch ( UnknownCRSException e ) { throw new ProcessletException( new OWSException( e.getLocalizedMessage(), OWSException.INVALID_PARAMETER_VALUE ) ); } catch ( TransformationException e ) { throw new ProcessletException( new OWSException( e.getLocalizedMessage(), WCTSConstants.ExceptionCodes.NotTransformable.name() ) ); } catch ( OutsideCRSDomainException e ) { throw new ProcessletException( new OWSException( e.getLocalizedMessage(), WCTSConstants.ExceptionCodes.InvalidArea.name() ) );
StringBuilder sb = new StringBuilder( "No input data given." ); String execCode = WCTSConstants.ExceptionCodes.NoInputData.name(); throw new ProcessletException( new OWSException( sb.toString(), execCode ) ); String outMime = xmlOutput.getRequestedMimeType(); if ( outMime != null && !outMime.equals( mime ) ) { throw new ProcessletException( new OWSException( "The inspire directive specifies that the output schema equals the input schema, therefore the mimetypes of the incoming data (" throw new ProcessletException( new OWSException( "The inspire directive specifies that the input schema ( " + inSchema + ") and the output schema (" + outSchema throw new ProcessletException( "Could not create an outputstream." + e.getLocalizedMessage() ); LOG.debug( "Exception message: " + e.getMessage(), e ); throw new ProcessletException( e.getLocalizedMessage() );
String msg = "Could not parse value of parameter " + IN_PARAM_ID + " as sld."; LOG.debug( msg ); throw new ProcessletException( msg ); } catch ( Exception e ) { LOG.error( "Could not create legend.", e ); throw new ProcessletException( e.getMessage() );
execCode = WCTSConstants.ExceptionCodes.NotTransformable.name(); throw new ProcessletException( new OWSException( sb.toString(), execCode ) ); sb.append( "No geometry transformer could be created." ); throw new ProcessletException( new OWSException( sb.toString(), execCode ) ); throw new ProcessletException( new OWSException( sb.toString(), execCode ) ); throw new ProcessletException( new OWSException( "", execCode ) );