Class GeometryFactoryUtil


  • public class GeometryFactoryUtil
    extends Object
    Some utility functions not present in the JTS version of this class
    • Constructor Detail

      • GeometryFactoryUtil

        public GeometryFactoryUtil()
    • Method Detail

      • buildGeometry

        public static org.locationtech.jts.geom.Geometry buildGeometry​(org.locationtech.jts.geom.Geometry geom,
                                                                       int dimension)
        Builds a geometry containing only the element geometries from the input list which have the requested dimension. The result is thus guaranteed to have the dimension requested.
        Parameters:
        geomList -
        dimension -
      • dimensionFilter

        public static List dimensionFilter​(org.locationtech.jts.geom.GeometryCollection gc,
                                           int dimension)
      • getEmptyDimensionalGeometry

        public static org.locationtech.jts.geom.Geometry getEmptyDimensionalGeometry​(org.locationtech.jts.geom.GeometryFactory factory,
                                                                                     int dimension)