Class GeometryProcessor
java.lang.Object
org.tailormap.api.geotools.processing.GeometryProcessor
Utility functions on feature geometries.
- Since:
- 0.1
- Author:
- mprins
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
geometryToJson
(org.locationtech.jts.geom.Geometry geom) static String
geometryToWKT
(@NotNull org.locationtech.jts.geom.Geometry geom) static @NotNull String
processGeometry
(Object geometry, @NotNull Boolean simplifyGeometry, @NotNull Boolean linearizeGeomToWKT, org.geotools.api.referencing.operation.MathTransform transform) process the geometry into a (optionally simplified) string representation.static org.locationtech.jts.geom.Geometry
transformGeometry
(@NotNull org.locationtech.jts.geom.Geometry geometry, org.geotools.api.referencing.operation.MathTransform transform) static org.locationtech.jts.geom.Geometry
wktToGeometry
(String wkt)
-
Method Details
-
processGeometry
@NotNull public static @NotNull String processGeometry(Object geometry, @NotNull @NotNull Boolean simplifyGeometry, @NotNull @NotNull Boolean linearizeGeomToWKT, org.geotools.api.referencing.operation.MathTransform transform) process the geometry into a (optionally simplified) string representation.- Parameters:
geometry
- An object representing a geometrysimplifyGeometry
- set totrue
to simplifytransform
- the transformation that should be applied to the geometry, can benull
- Returns:
- the string representation of the argument - normally WKT, optionally simplified or
null
when the given geometry wasnull
-
transformGeometry
public static org.locationtech.jts.geom.Geometry transformGeometry(@NotNull @NotNull org.locationtech.jts.geom.Geometry geometry, org.geotools.api.referencing.operation.MathTransform transform) -
geometryToJson
-
geometryToWKT
-
wktToGeometry
-