Class GeometryProcessor
- java.lang.Object
-
- nl.b3p.tailormap.api.geotools.processing.GeometryProcessor
-
public final class GeometryProcessor extends Object
Utility functions on feature geometries.- Since:
- 0.1
- Author:
- mprins
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
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
public static String geometryToJson(org.locationtech.jts.geom.Geometry geom)
-
geometryToWKT
public static String geometryToWKT(@NotNull @NotNull org.locationtech.jts.geom.Geometry geom)
-
wktToGeometry
public static org.locationtech.jts.geom.Geometry wktToGeometry(String wkt)
-
-