Class ST_GoogleMapLink

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

    public class ST_GoogleMapLink
    extends org.h2gis.api.DeterministicScalarFunction
    Author:
    Erwan Bocher
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ST_GoogleMapLink.LayerType
      List of supported layers for Google Map
    • Field Summary

      • Fields inherited from interface org.h2gis.api.Function

        PROP_NAME, PROP_REMARKS
      • Fields inherited from interface org.h2gis.api.ScalarFunction

        PROP_DETERMINISTIC
    • Constructor Detail

      • ST_GoogleMapLink

        public ST_GoogleMapLink()
    • Method Detail

      • getJavaStaticMethod

        public String getJavaStaticMethod()
      • generateGMLink

        public static String generateGMLink​(org.locationtech.jts.geom.Geometry geom)
        Generate a Google Map link URL based on the center of the bounding box of the input geometry
        Parameters:
        geom -
        Returns:
      • generateGMLink

        public static String generateGMLink​(org.locationtech.jts.geom.Geometry geom,
                                            String layerType)
        Generate a Google Map link URL based on the center of the bounding box of the input geometry and set the layer type
        Parameters:
        geom -
        layerType -
        Returns:
      • generateGMLink

        public static String generateGMLink​(org.locationtech.jts.geom.Geometry geom,
                                            String layerType,
                                            int zoom)
        Generate a Google Map link URL based on the center of the bounding box of the input geometry. Set the layer type and the zoom level.
        Parameters:
        geom -
        layerType -
        zoom -
        Returns: