Class ST_OSMMapLink
- java.lang.Object
-
- org.h2gis.api.AbstractFunction
-
- org.h2gis.api.DeterministicScalarFunction
-
- org.h2gis.functions.spatial.convert.ST_OSMMapLink
-
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_OSMMapLink extends org.h2gis.api.DeterministicScalarFunctionThis class is used to generate an OSM map link URL from a geometry.- Author:
- Erwan Bocher
-
-
Constructor Summary
Constructors Constructor Description ST_OSMMapLink()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StringgenerateLink(org.locationtech.jts.geom.Geometry geom)Create the OSM map link based on the bounding box of the geometry.static StringgenerateLink(org.locationtech.jts.geom.Geometry geom, boolean withMarker)Create the OSM map link based on the bounding box of the geometry.StringgetJavaStaticMethod()-
Methods inherited from class org.h2gis.api.AbstractFunction
addProperty, getProperty, removeProperty
-
-
-
-
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:
-
-