Class GeometryTransformer
java.lang.Object
org.opengis.cite.ogcapifeatures10.util.GeometryTransformer
GeometryTransformer class.
- Author:
- Lyn Goltz
-
Constructor Summary
ConstructorsConstructorDescriptionGeometryTransformer
(CoordinateSystem srcCrs, CoordinateSystem targetCrs) Constructor for GeometryTransformer. -
Method Summary
Modifier and TypeMethodDescriptionorg.locationtech.jts.geom.Geometry
transform
(org.locationtech.jts.geom.Geometry geometryToTransform) transform.org.locationtech.jts.geom.Geometry
transform
(org.locationtech.jts.geom.GeometryCollection geometryToTransform) transform.org.locationtech.jts.geom.LineString
transform
(org.locationtech.jts.geom.LineString geometryToTransform) transform.org.locationtech.jts.geom.MultiLineString
transform
(org.locationtech.jts.geom.MultiLineString geometryToTransform) transform.org.locationtech.jts.geom.MultiPoint
transform
(org.locationtech.jts.geom.MultiPoint geometryToTransform) transform.org.locationtech.jts.geom.MultiPolygon
transform
(org.locationtech.jts.geom.MultiPolygon geometryToTransform) transform.org.locationtech.jts.geom.Point
transform
(org.locationtech.jts.geom.Point geometryToTransform) transform.org.locationtech.jts.geom.Polygon
transform
(org.locationtech.jts.geom.Polygon geometryToTransform) transform.transform.
-
Constructor Details
-
GeometryTransformer
Constructor for GeometryTransformer.
- Parameters:
srcCrs
- source crs, , nevernull
targetCrs
- target crs, , nevernull
-
-
Method Details
-
transform
transform.
- Parameters:
bbox
- the bbox to transform, nevernull
- Returns:
- the transformed bbox (or the same if srcCrs and targetCrs) are the same,
never
null
-
transform
public org.locationtech.jts.geom.Geometry transform(org.locationtech.jts.geom.Geometry geometryToTransform) transform.
- Parameters:
geometryToTransform
- aGeometry
object- Returns:
- a
Geometry
object
-
transform
public org.locationtech.jts.geom.Point transform(org.locationtech.jts.geom.Point geometryToTransform) transform.
- Parameters:
geometryToTransform
- aPoint
object- Returns:
- a
Point
object
-
transform
public org.locationtech.jts.geom.LineString transform(org.locationtech.jts.geom.LineString geometryToTransform) transform.
- Parameters:
geometryToTransform
- aLineString
object- Returns:
- a
LineString
object
-
transform
public org.locationtech.jts.geom.Polygon transform(org.locationtech.jts.geom.Polygon geometryToTransform) transform.
- Parameters:
geometryToTransform
- aPolygon
object- Returns:
- a
Polygon
object
-
transform
public org.locationtech.jts.geom.Geometry transform(org.locationtech.jts.geom.GeometryCollection geometryToTransform) transform.
- Parameters:
geometryToTransform
- aGeometryCollection
object- Returns:
- a
Geometry
object
-
transform
public org.locationtech.jts.geom.MultiPoint transform(org.locationtech.jts.geom.MultiPoint geometryToTransform) transform.
- Parameters:
geometryToTransform
- aMultiPoint
object- Returns:
- a
MultiPoint
object
-
transform
public org.locationtech.jts.geom.MultiLineString transform(org.locationtech.jts.geom.MultiLineString geometryToTransform) transform.
- Parameters:
geometryToTransform
- aMultiLineString
object- Returns:
- a
MultiLineString
object
-
transform
public org.locationtech.jts.geom.MultiPolygon transform(org.locationtech.jts.geom.MultiPolygon geometryToTransform) transform.
- Parameters:
geometryToTransform
- aMultiPolygon
object- Returns:
- a
MultiPolygon
object
-