Enum GeometryLibrary

    • Enum Constant Detail

      • JAVA2D

        public static final GeometryLibrary JAVA2D
        The Java 2D Graphics and Imaging library. This library does not provide as many topological operations than other libraries, but is available on most standard Java environments and constitute a reliable fallback when no other library is available.
        Implementation classes
        Geometry type Class name
        GeometryType.POINT java.awt.geom.Point2D
        GeometryType.LINEAR java.awt.Shape
        GeometryType.AREAL java.awt.Shape
        Note that contrarily to JTS and ESRI libraries, a point does not extend any root geometry class in Java2D.
        See Also:
        Java2D home page
      • ESRI

        public static final GeometryLibrary ESRI
        The ESRI geometry API library. This library can be used for spatial vector data processing. It is used in ESRI GIS Tools for Hadoop and has an Android port. The library is available under Apache 2 license.
        Implementation classes
        Geometry type Class name
        Root geometry class com.esri.core.geometry.Geometry
        GeometryType.POINT com.esri.core.geometry.Point
        GeometryType.LINEAR com.esri.core.geometry.Polyline
        GeometryType.AREAL com.esri.core.geometry.Polygon
        See Also:
        API wiki page
      • JTS

        public static final GeometryLibrary JTS
        The Java Topology Suite (JTS) library. This open source library provides an object model for Euclidean planar geometry together with a set of fundamental geometric functions. The library is licensed under Eclipse Distribution License.
        Implementation classes
        Geometry type Class name
        Root geometry class org.locationtech.jts.geom.Geometry
        GeometryType.POINT org.locationtech.jts.geom.Point
        GeometryType.LINEAR org.locationtech.jts.geom.LineString
        GeometryType.AREAL org.locationtech.jts.geom.Polygon
        See Also:
        JTS home page
    • Method Detail

      • values

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

        public static GeometryLibrary 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        Illegal­Argument­Exception - if this enum type has no constant with the specified name
        Null­Pointer­Exception - if the argument is null