Class ST_GeomFromGML
java.lang.Object
org.h2gis.api.AbstractFunction
org.h2gis.api.DeterministicScalarFunction
org.h2gis.functions.spatial.convert.ST_GeomFromGML
- All Implemented Interfaces:
org.h2gis.api.Function,org.h2gis.api.ScalarFunction
public class ST_GeomFromGML
extends org.h2gis.api.DeterministicScalarFunction
Read a GML representation and convert it to a geometry.
- Author:
- Erwan Bocher
-
Field Summary
FieldsFields 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 org.locationtech.jts.geom.GeometrytoGeometry(String gmlFile) Read the GML representationstatic org.locationtech.jts.geom.GeometrytoGeometry(String gmlFile, int srid) Read the GML representation with a specified SRIDMethods 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
-
Field Details
-
gf
public static org.locationtech.jts.geom.GeometryFactory gf
-
-
Constructor Details
-
ST_GeomFromGML
public ST_GeomFromGML()
-
-
Method Details
-
getJavaStaticMethod
-
toGeometry
public static org.locationtech.jts.geom.Geometry toGeometry(String gmlFile) throws SAXException, IOException, ParserConfigurationException Read the GML representation- Parameters:
gmlFile-- Returns:
- Throws:
SAXExceptionIOExceptionParserConfigurationException
-
toGeometry
public static org.locationtech.jts.geom.Geometry toGeometry(String gmlFile, int srid) throws SAXException, IOException, ParserConfigurationException Read the GML representation with a specified SRID- Parameters:
gmlFile-srid-- Returns:
- Throws:
SAXExceptionIOExceptionParserConfigurationException
-