Class GTTransformUtils
java.lang.Object
org.web3d.vrml.renderer.common.geospatial.GTTransformUtils
Utility class to create a GeoTools2 transformation class for a given
geoSystem field definition.
This class runs as a singleton to allow for caching of internal fetched transformation routines.
- Version:
- $Revision: 1.13 $
- Author:
- Justin Couch
-
Method Summary
Modifier and TypeMethodDescriptionorg.opengis.referencing.operation.MathTransform
createSystemTransform
(String[] systemDef, boolean[] coordSwap) From the given system definition strings, generate a coordinate transformation service.static GTTransformUtils
Fetch the singleton instance of the factory.
-
Method Details
-
getInstance
Fetch the singleton instance of the factory. If needed, a new instance will be created.- Returns:
- The shared singleton instance of this class
- Throws:
org.opengis.referencing.FactoryException
- There was a problem creating the class
-
createSystemTransform
public org.opengis.referencing.operation.MathTransform createSystemTransform(String[] systemDef, boolean[] coordSwap) throws org.opengis.referencing.FactoryException From the given system definition strings, generate a coordinate transformation service.Check whether we need to reverse the two primary coordinate systems. If true, then the user needs to swap the coordinate values for X and Y.
- Parameters:
systemDef
- The X3D system definition stringcoordSwap
- an array of length 1 for returning the primary coordinate swap flag- Returns:
- A transform for taking geo coordinates to cartesian
- Throws:
org.opengis.referencing.FactoryException
-