Class ST_OSMMapLink

  • All Implemented Interfaces:
    org.h2gis.api.Function, org.h2gis.api.ScalarFunction

    public class ST_OSMMapLink
    extends org.h2gis.api.DeterministicScalarFunction
    This class is used to generate an OSM map link URL from a geometry.
    Author:
    Erwan Bocher
    • Constructor Detail

      • ST_OSMMapLink

        public ST_OSMMapLink()
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • generateLink

        public static String generateLink​(org.locationtech.jts.geom.Geometry geom)
        Create the OSM map link based on the bounding box of the geometry.
        Parameters:
        geom - the input geometry.
        Returns:
      • generateLink

        public static String generateLink​(org.locationtech.jts.geom.Geometry geom,
                                          boolean withMarker)
        Create the OSM map link based on the bounding box of the geometry.
        Parameters:
        geom - the input geometry.
        withMarker - true to place a marker on the center of the BBox.
        Returns: