Class ST_GoogleMapLink
java.lang.Object
org.h2gis.api.AbstractFunction
org.h2gis.api.DeterministicScalarFunction
org.h2gis.functions.spatial.convert.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 ClassesModifier and TypeClassDescriptionstatic enumList of supported layers for Google Map -
Field Summary
Fields inherited from interface org.h2gis.api.Function
PROP_NAME, PROP_REMARKSFields inherited from interface org.h2gis.api.ScalarFunction
PROP_DETERMINISTIC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateGMLink(org.locationtech.jts.geom.Geometry geom) Generate a Google Map link URL based on the center of the bounding box of the input geometrystatic StringgenerateGMLink(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 typestatic StringgenerateGMLink(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.Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.h2gis.api.Function
getProperty
-
Constructor Details
-
ST_GoogleMapLink
public ST_GoogleMapLink()
-
-
Method Details
-
getJavaStaticMethod
-
generateGMLink
Generate a Google Map link URL based on the center of the bounding box of the input geometry- Parameters:
geom-- Returns:
-
generateGMLink
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:
-