Enum EGeometryType

    • Method Detail

      • values

        public static EGeometryType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EGeometryType c : EGeometryType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EGeometryType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getClazz

        public Class<?> getClazz()
      • getMultiClazz

        public Class<?> getMultiClazz()
      • isMulti

        public boolean isMulti()
      • isCompatibleWith

        public boolean isCompatibleWith​(EGeometryType geometryType)
      • forGeometry

        public static EGeometryType forGeometry​(org.locationtech.jts.geom.Geometry geometry)
        Returns the EGeometryType for a given Geometry.
        Parameters:
        geometry - the geometry to check.
        Returns:
        the type.
      • forGeometryType

        public static EGeometryType forGeometryType​(org.opengis.feature.type.GeometryType geometryType)
        Returns the EGeometryType for a given GeometryType.
        Parameters:
        geometryType - the geometry type to check.
        Returns:
        the type.
      • forGeometryDescriptor

        public static EGeometryType forGeometryDescriptor​(org.opengis.feature.type.GeometryDescriptor geometryDescriptor)
        Returns the EGeometryType for a given GeometryDescriptor.
        Parameters:
        geometryDescriptor - the geometry descriptor to check.
        Returns:
        the type.
      • isLine

        public static boolean isLine​(org.locationtech.jts.geom.Geometry geometry)
        Checks if the given geometry is a LineString (or MultiLineString) geometry.
        Parameters:
        geometry - the geometry to check.
        Returns:
        true if there are lines in there.
      • isLine

        public static boolean isLine​(org.opengis.feature.type.GeometryDescriptor geometryDescriptor)
        Checks if the given GeometryDescriptor is for LineString (or MultiLineString) geometry.
        Parameters:
        geometryDescriptor - the descriptor.
        Returns:
        true if there are points in there.
      • isPolygon

        public static boolean isPolygon​(org.locationtech.jts.geom.Geometry geometry)
        Checks if the given geometry is a Polygon (or MultiPolygon) geometry.
        Parameters:
        geometry - the geometry to check.
        Returns:
        true if there are polygons in there.
      • isPolygon

        public static boolean isPolygon​(org.opengis.feature.type.GeometryDescriptor geometryDescriptor)
        Checks if the given GeometryDescriptor is for Polygon (or MultiPolygon) geometry.
        Parameters:
        geometryDescriptor - the descriptor.
        Returns:
        true if there are polygons in there.
      • isPoint

        public static boolean isPoint​(org.locationtech.jts.geom.Geometry geometry)
        Checks if the given geometry is a Point (or MultiPoint) geometry.
        Parameters:
        geometry - the geometry to check.
        Returns:
        true if there are points in there.
      • isPoint

        public static boolean isPoint​(org.opengis.feature.type.GeometryDescriptor geometryDescriptor)
        Checks if the given GeometryDescriptor is for Point (or MultiPoint) geometry.
        Parameters:
        geometryDescriptor - the descriptor.
        Returns:
        true if there are points in there.