Class GeometryProcessor

java.lang.Object
org.tailormap.api.geotools.processing.GeometryProcessor

public final class GeometryProcessor extends Object
Utility functions on feature geometries.
Since:
0.1
Author:
mprins
  • Method Summary

    Modifier and Type
    Method
    Description
    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.Envelope
    transformEnvelope(@NotNull org.locationtech.jts.geom.Envelope envelope, org.geotools.api.referencing.operation.MathTransform transform)
     
    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
     

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 geometry
      simplifyGeometry - set to true to simplify
      transform - the transformation that should be applied to the geometry, can be null
      Returns:
      the string representation of the argument - normally WKT, optionally simplified or null when the given geometry was null
    • transformGeometry

      public static org.locationtech.jts.geom.Geometry transformGeometry(@NotNull @NotNull org.locationtech.jts.geom.Geometry geometry, org.geotools.api.referencing.operation.MathTransform transform)
    • transformEnvelope

      public static org.locationtech.jts.geom.Envelope transformEnvelope(@NotNull @NotNull org.locationtech.jts.geom.Envelope envelope, org.geotools.api.referencing.operation.MathTransform transform)
    • geometryToWKT

      public static String geometryToWKT(@NotNull @NotNull org.locationtech.jts.geom.Geometry geom)
    • wktToGeometry

      public static org.locationtech.jts.geom.Geometry wktToGeometry(String wkt)