org.deegree_impl.gml
Class GML_Transformer

java.lang.Object
  extended byorg.deegree_impl.gml.GML_Transformer

public class GML_Transformer
extends java.lang.Object

This class transforms GML-documents. Possible GML-geometries are: GMLPoint, GMLMultiPoint, GMLLineString, GMLMultiLineString, GMLPolygon and GMLMultiPolygon

----------------------------------------------------------------------

Version:
1.1
Author:
Axel Schaefer

Field Summary
(package private)  TransformationFactory transformationfactory
           
 
Constructor Summary
GML_Transformer()
          the default constructor
 
Method Summary
 java.lang.String completeSrs(java.lang.String ts)
          Transforms the target_srs (like EPSG 1234) to a qualified srsName attribute (like http://www.opengis.net/gml/srs/epsg.xml#1234) ONLY "EPSG 1234" is featured, not "EPSG_1234" (underlined).
 GMLGeometry transform(GMLGeometry gmlgeo, java.lang.String target_srs)
          This selects the GMLGeometry and leads it to the corresponending transform-method
 GMLLineString transformLineString(GMLLineString gmlgeo, java.lang.String target_srs)
          Transforms the coords of a GMLLineString-geometry
 GMLMultiLineString transformMultiLineString(GMLMultiLineString gmlgeo, java.lang.String target_srs)
          Transforms the coords of a GMLMultiLineString-geometry
 GMLMultiPoint transformMultiPoint(GMLMultiPoint gmlgeo, java.lang.String target_srs)
           
 GMLMultiPolygon transformMultiPolygon(GMLMultiPolygon gmlgeo, java.lang.String target_srs)
          Transforms the coords of a GMLMultiPolygon-geometry
 GMLPoint transformPoint(GMLPoint gmlgeo, java.lang.String target_srs)
          Transforms the coords of a GMLPoint-geometry
 GMLPolygon transformPolygon(GMLPolygon gmlgeo, java.lang.String target_srs)
          Transforms the coords of a GMLPolygon-geometry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transformationfactory

TransformationFactory transformationfactory
Constructor Detail

GML_Transformer

public GML_Transformer()
the default constructor

Method Detail

transform

public GMLGeometry transform(GMLGeometry gmlgeo,
                             java.lang.String target_srs)
                      throws java.lang.Exception
This selects the GMLGeometry and leads it to the corresponending transform-method

Throws:
java.lang.Exception

completeSrs

public java.lang.String completeSrs(java.lang.String ts)
Transforms the target_srs (like EPSG 1234) to a qualified srsName attribute (like http://www.opengis.net/gml/srs/epsg.xml#1234) ONLY "EPSG 1234" is featured, not "EPSG_1234" (underlined).

Parameters:
ts - target_srs

transformPoint

public GMLPoint transformPoint(GMLPoint gmlgeo,
                               java.lang.String target_srs)
                        throws java.lang.Exception
Transforms the coords of a GMLPoint-geometry

Throws:
java.lang.Exception

transformMultiPoint

public GMLMultiPoint transformMultiPoint(GMLMultiPoint gmlgeo,
                                         java.lang.String target_srs)
                                  throws java.lang.Exception
Parameters:
gmlgeo -
target_srs -
Returns:
Throws:
java.lang.Exception

transformLineString

public GMLLineString transformLineString(GMLLineString gmlgeo,
                                         java.lang.String target_srs)
                                  throws java.lang.Exception
Transforms the coords of a GMLLineString-geometry

Throws:
java.lang.Exception

transformMultiLineString

public GMLMultiLineString transformMultiLineString(GMLMultiLineString gmlgeo,
                                                   java.lang.String target_srs)
                                            throws java.lang.Exception
Transforms the coords of a GMLMultiLineString-geometry

Throws:
java.lang.Exception

transformPolygon

public GMLPolygon transformPolygon(GMLPolygon gmlgeo,
                                   java.lang.String target_srs)
                            throws java.lang.Exception
Transforms the coords of a GMLPolygon-geometry

Throws:
java.lang.Exception

transformMultiPolygon

public GMLMultiPolygon transformMultiPolygon(GMLMultiPolygon gmlgeo,
                                             java.lang.String target_srs)
                                      throws java.lang.Exception
Transforms the coords of a GMLMultiPolygon-geometry

Throws:
java.lang.Exception