Enum ShapeElementType

    • Enum Constant Detail

      • UNSUPPORTED

        public static final ShapeElementType UNSUPPORTED
        The type of element is unsupported yet.
      • POLYLINE

        public static final ShapeElementType POLYLINE
        The element is a polyline.
      • POLYGON

        public static final ShapeElementType POLYGON
        The element is a polygon.
      • MULTIPOINT

        public static final ShapeElementType MULTIPOINT
        The element is a collection of points.
      • POINT_Z

        public static final ShapeElementType POINT_Z
        The element is a point with Z coordinate and a measure.
      • POLYLINE_Z

        public static final ShapeElementType POLYLINE_Z
        The element is a polyline with Z coordinate and a measure.
      • POLYGON_Z

        public static final ShapeElementType POLYGON_Z
        The element is a polygon with Z coordinate and a measure.
      • MULTIPOINT_Z

        public static final ShapeElementType MULTIPOINT_Z
        The element is a multipoint with Z coordinate and a measure.
      • POINT_M

        public static final ShapeElementType POINT_M
        The element is a point with a measure.
      • POLYLINE_M

        public static final ShapeElementType POLYLINE_M
        The element is a polyline with a measure.
      • POLYGON_M

        public static final ShapeElementType POLYGON_M
        The element is a polygonwith a measure.
      • MULTIPOINT_M

        public static final ShapeElementType MULTIPOINT_M
        The element is a multipoint with a measure.
      • MULTIPATCH

        public static final ShapeElementType MULTIPATCH
        The element is a multipatch.
    • Field Detail

      • shapeType

        public final int shapeType
        Is the type identifier used inside ESRI shape files.
    • Method Detail

      • values

        public static ShapeElementType[] 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 (ShapeElementType c : ShapeElementType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ShapeElementType 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
      • fromESRIInteger

        @Pure
        public static ShapeElementType fromESRIInteger​(int esriNumber)
        Replies the element type which is corresponding to the given number (from ESRI shape file specification).
        Parameters:
        esriNumber - is the number from the ESRI shape file specification.
        Returns:
        the element type corresponding to the number.
      • hasZ

        @Pure
        public boolean hasZ()
        Replies if this type of shape element supports the Z coordinates.

        According to ESRI, only objects of type *_Z contain Z coordinates.

        Returns:
        true if the z-coordinate are supported, otherwise false
      • hasM

        @Pure
        public boolean hasM()
        Replies if this type of shape element supports the M coordinates.

        According to ESRI, objects of type *_Z or *_M contain M coordinates.

        M coordinate has different meanings depending on the type of object: height from floor to top, some measure on object...

        Returns:
        true if the m-coordinate are supported, otherwise false
      • isPonctualElementType

        @Pure
        public boolean isPonctualElementType()
        Replies if this type is a ponctual element and not a collection of elements.
        Returns:
        true if the type corresponds to a ponctual element, otherwise false.
        Since:
        4.0
      • isElementCollectionType

        @Pure
        public boolean isElementCollectionType()
        Replies if this type is a collection of element and not a ponctual element.
        Returns:
        true if the type corresponds to a collection of elements, otherwise false.
        Since:
        4.0