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 StringgeometryToJson(org.locationtech.jts.geom.Geometry geom) static StringgeometryToWKT(@NotNull org.locationtech.jts.geom.Geometry geom) static @NotNull StringprocessGeometry(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.GeometrytransformGeometry(@NotNull org.locationtech.jts.geom.Geometry geometry, org.geotools.api.referencing.operation.MathTransform transform) static org.locationtech.jts.geom.GeometrywktToGeometry(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 totrueto simplifytransform- the transformation that should be applied to the geometry, can benull- Returns:
- the string representation of the argument - normally WKT, optionally simplified or
nullwhen 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
-