org.deegree.gml
Class XMLTransformer
java.lang.Object
org.deegree.cs.Transformer
org.deegree.geometry.GeometryTransformer
org.deegree.gml.XMLTransformer
public class XMLTransformer
- extends GeometryTransformer
The XMLTransformer
transforms any xml documents containing gml geometries. Only the geometries will be
transformed all other data (including comments and cdata) will be copied.
- Version:
- $Revision: 25039 $, $Date: 2010-06-23 15:15:17 +0200 (Mi, 23. Jun 2010) $
- Author:
- Rutger Bezema, last edited by: $Author: mschneider $
Method Summary |
void |
transform(javax.xml.stream.XMLStreamReader reader,
javax.xml.stream.XMLStreamWriter writer,
CoordinateSystem sourceCRS,
GMLVersion gmlVersion,
boolean testValidArea,
java.util.List<Transformation> requestedTransformation)
Transforms the given input stream, and streams the input into the output directly. |
void |
transform(javax.xml.stream.XMLStreamReader reader,
javax.xml.stream.XMLStreamWriter writer,
GMLVersion gmlVersion)
Transforms the given input stream, and streams the input into the output directly. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLTransformer
public XMLTransformer(CoordinateSystem targetCRS)
throws java.lang.IllegalArgumentException
- Parameters:
targetCRS
-
- Throws:
java.lang.IllegalArgumentException
XMLTransformer
public XMLTransformer(java.lang.String targetCRS)
throws java.lang.IllegalArgumentException,
UnknownCRSException
- Parameters:
targetCRS
-
- Throws:
java.lang.IllegalArgumentException
UnknownCRSException
XMLTransformer
public XMLTransformer(Transformation transformation)
throws java.lang.IllegalArgumentException
- Parameters:
transformation
-
- Throws:
java.lang.IllegalArgumentException
transform
public void transform(javax.xml.stream.XMLStreamReader reader,
javax.xml.stream.XMLStreamWriter writer,
CoordinateSystem sourceCRS,
GMLVersion gmlVersion,
boolean testValidArea,
java.util.List<Transformation> requestedTransformation)
throws javax.xml.stream.XMLStreamException,
XMLParsingException,
java.lang.IllegalArgumentException,
OutsideCRSDomainException,
UnknownCRSException,
TransformationException
- Transforms the given input stream, and streams the input into the output directly. If a geometry is found, the
geometry is transformed into the target crs. All other events are just copied.
- Parameters:
reader
- an XMLStream containing some GML Geometries.writer
- the output will be written to this writer, the writer have been opened (
XMLStreamWriter.writeStartDocument()
. No XMLStreamWriter.writeEndDocument()
will be
written as well.sourceCRS
- to be used if the geometries do not define a srsName (or the like) attribute.gmlVersion
- the version of the expected geometries.testValidArea
- true if the incoming geometries should be checked against the valid domain of the crs they are defined
in.requestedTransformation
- can be null
- Throws:
javax.xml.stream.XMLStreamException
XMLParsingException
java.lang.IllegalArgumentException
OutsideCRSDomainException
UnknownCRSException
TransformationException
transform
public void transform(javax.xml.stream.XMLStreamReader reader,
javax.xml.stream.XMLStreamWriter writer,
GMLVersion gmlVersion)
throws javax.xml.stream.XMLStreamException,
XMLParsingException,
java.lang.IllegalArgumentException,
OutsideCRSDomainException,
UnknownCRSException,
TransformationException
- Transforms the given input stream, and streams the input into the output directly. If a geometry is found, the
geometry is transformed into the target crs. All other events are just copied.
- Parameters:
reader
- an XMLStream containing some GML Geometries.writer
- the output will be written to this writer, the writer have been opened (
XMLStreamWriter.writeStartDocument()
. No XMLStreamWriter.writeEndDocument()
will be
written as well.gmlVersion
- the version of the expected geometries.
- Throws:
javax.xml.stream.XMLStreamException
XMLParsingException
java.lang.IllegalArgumentException
OutsideCRSDomainException
UnknownCRSException
TransformationException
Copyright © 2011. All Rights Reserved.