Enum ShapeType

    • Enum Constant Detail

      • POLYLINE

        public static final ShapeType POLYLINE
      • POLYGON

        public static final ShapeType POLYGON
      • MULTIPOINT

        public static final ShapeType MULTIPOINT
      • POINTZ

        public static final ShapeType POINTZ
      • POLYLINEZ

        public static final ShapeType POLYLINEZ
      • POLYGONZ

        public static final ShapeType POLYGONZ
      • MULTIPOINTZ

        public static final ShapeType MULTIPOINTZ
      • POINTM

        public static final ShapeType POINTM
      • POLYLINEM

        public static final ShapeType POLYLINEM
      • POLYGONM

        public static final ShapeType POLYGONM
      • MULTIPOINTM

        public static final ShapeType MULTIPOINTM
      • MULTIPATCH

        public static final ShapeType MULTIPATCH
      • UNDEFINED

        public static final ShapeType UNDEFINED
    • Method Detail

      • values

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

        public static ShapeType 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
      • getType

        public static ShapeType getType​(int id)
        return the corresponding ShapeType instance by int id.
        Parameters:
        id - the id
        Returns:
        the type
      • getParser

        public ShapeParser getParser​(org.locationtech.jts.geom.GeometryFactory geometryFactory)
        generate a parser according to current shape type.
        Parameters:
        geometryFactory - the geometry factory
        Returns:
        the parser
      • getId

        public int getId()
        return the shape type id.
        Returns:
        the id
      • isSupported

        public boolean isSupported()
        return whether the shape type is supported by Sedona
        Returns: