Class Geometry

    • Constructor Detail

      • Geometry

        protected Geometry()
        Construct an instance with no specified coordinate reference system.
      • Geometry

        protected Geometry(@Nullable
                           CoordinateReferenceSystem coordinateReferenceSystem)
        Construct an instance with the specified coordinate reference system.
        Parameters:
        coordinateReferenceSystem - the coordinate reference system
    • Method Detail

      • getType

        public abstract GeoJsonObjectType getType()
        Gets the GeoJSON object type.
        Returns:
        the type
      • toJson

        public String toJson()
        Converts to GeoJSON representation
        Returns:
        the GeoJSON representation
      • getCoordinateReferenceSystem

        @Nullable
        public CoordinateReferenceSystem getCoordinateReferenceSystem()
        Gets the coordinate reference system, which may be null
        Returns:
        the possibly-null coordinate reference system
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object