Class GeometryWrapperUtils
java.lang.Object
org.aksw.jena_sparql_api.sparql.ext.geosparql.GeometryWrapperUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.jena.geosparql.implementation.GeometryWrappercreateFromPrototype(org.apache.jena.geosparql.implementation.GeometryWrapper prototype, org.locationtech.jts.geom.Geometry geom) Create a geometry wrapper from a jts geometry by using another geometry wrapper as the source of the srs and datatypestatic org.apache.jena.geosparql.implementation.GeometryWrapperextractGeometryWrapperOrNull(org.apache.jena.graph.Node node) static org.apache.jena.geosparql.implementation.GeometryWrapperextractGeometryWrapperOrNull(org.apache.jena.sparql.expr.NodeValue nv) static org.locationtech.jts.geom.GeometryextractParsingGeometryOrNull(org.apache.jena.sparql.expr.NodeValue nv) static org.locationtech.jts.geom.GeometryextractWgs84GeometryOrNull(org.apache.jena.graph.Node node) static org.locationtech.jts.geom.GeometrygetWgs84Geometry(org.apache.jena.geosparql.implementation.GeometryWrapper gw) Return a geometry with x=lon y=latstatic List<org.locationtech.jts.geom.Geometry>nodesToGeoms(Collection<org.apache.jena.graph.Node> nodes) Discards values of nodes that are not geometriesstatic org.apache.jena.geosparql.implementation.GeometryWrappertoWgs84(org.apache.jena.geosparql.implementation.GeometryWrapper gw) static org.apache.jena.geosparql.implementation.GeometryWrappertoWrapperWkt(org.locationtech.jts.geom.Envelope envelope) static org.apache.jena.geosparql.implementation.GeometryWrappertoWrapperWkt(org.locationtech.jts.geom.Geometry geometry)
-
Constructor Details
-
GeometryWrapperUtils
public GeometryWrapperUtils()
-
-
Method Details
-
createFromPrototype
public static org.apache.jena.geosparql.implementation.GeometryWrapper createFromPrototype(org.apache.jena.geosparql.implementation.GeometryWrapper prototype, org.locationtech.jts.geom.Geometry geom) Create a geometry wrapper from a jts geometry by using another geometry wrapper as the source of the srs and datatype -
extractParsingGeometryOrNull
public static org.locationtech.jts.geom.Geometry extractParsingGeometryOrNull(org.apache.jena.sparql.expr.NodeValue nv) -
extractGeometryWrapperOrNull
public static org.apache.jena.geosparql.implementation.GeometryWrapper extractGeometryWrapperOrNull(org.apache.jena.sparql.expr.NodeValue nv) -
extractGeometryWrapperOrNull
public static org.apache.jena.geosparql.implementation.GeometryWrapper extractGeometryWrapperOrNull(org.apache.jena.graph.Node node) -
toWgs84
public static org.apache.jena.geosparql.implementation.GeometryWrapper toWgs84(org.apache.jena.geosparql.implementation.GeometryWrapper gw) -
getWgs84Geometry
public static org.locationtech.jts.geom.Geometry getWgs84Geometry(org.apache.jena.geosparql.implementation.GeometryWrapper gw) Return a geometry with x=lon y=lat -
extractWgs84GeometryOrNull
public static org.locationtech.jts.geom.Geometry extractWgs84GeometryOrNull(org.apache.jena.graph.Node node) -
nodesToGeoms
public static List<org.locationtech.jts.geom.Geometry> nodesToGeoms(Collection<org.apache.jena.graph.Node> nodes) Discards values of nodes that are not geometries -
toWrapperWkt
public static org.apache.jena.geosparql.implementation.GeometryWrapper toWrapperWkt(org.locationtech.jts.geom.Envelope envelope) -
toWrapperWkt
public static org.apache.jena.geosparql.implementation.GeometryWrapper toWrapperWkt(org.locationtech.jts.geom.Geometry geometry)
-