Interface GeometryFixer

All Known Implementing Classes:
GeometryFixer.Base
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface GeometryFixer

A utility for automatically fixing invalid Geometry.

  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static class 
    A base implementation.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final GeometryFixer
    A GeometryFixer based on the JTS GeometryFixer.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.locationtech.jts.geom.Geometry
    fix(org.locationtech.jts.geom.Geometry geom)
    Attempt to fix geom (which ought to be invalid).
  • Field Details

  • Method Details

    • fix

      org.locationtech.jts.geom.Geometry fix(org.locationtech.jts.geom.Geometry geom)

      Attempt to fix geom (which ought to be invalid).

      Parameters:
      geom - geometry to fix
      Returns:
      a fixed version of geom if fixing was possible, else null