Class GeometryGeoJson


  • public class GeometryGeoJson
    extends java.lang.Object
    This is a utility class that helps create a Geometry instance from a JSON string.
    Since:
    4.0.0
    • Constructor Summary

      Constructors 
      Constructor Description
      GeometryGeoJson()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Geometry fromJson​(java.lang.String json)
      Create a new instance of Geometry class by passing in a formatted valid JSON String.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GeometryGeoJson

        public GeometryGeoJson()
    • Method Detail

      • fromJson

        public static Geometry fromJson​(@NonNull
                                        java.lang.String json)
        Create a new instance of Geometry class by passing in a formatted valid JSON String.
        Parameters:
        json - a formatted valid JSON string defining a GeoJson Geometry
        Returns:
        a new instance of Geometry class defined by the values passed inside this static factory method
        Since:
        4.0.0