Class GeometryWrapperUtils

java.lang.Object
org.aksw.jena_sparql_api.sparql.ext.geosparql.GeometryWrapperUtils

public class GeometryWrapperUtils extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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
    static org.apache.jena.geosparql.implementation.GeometryWrapper
    extractGeometryWrapperOrNull(org.apache.jena.graph.Node node)
     
    static org.apache.jena.geosparql.implementation.GeometryWrapper
    extractGeometryWrapperOrNull(org.apache.jena.sparql.expr.NodeValue nv)
     
    static org.locationtech.jts.geom.Geometry
    extractParsingGeometryOrNull(org.apache.jena.sparql.expr.NodeValue nv)
     
    static org.locationtech.jts.geom.Geometry
    extractWgs84GeometryOrNull(org.apache.jena.graph.Node node)
     
    static org.locationtech.jts.geom.Geometry
    getWgs84Geometry(org.apache.jena.geosparql.implementation.GeometryWrapper gw)
    Return a geometry with x=lon y=lat
    static List<org.locationtech.jts.geom.Geometry>
    nodesToGeoms(Collection<org.apache.jena.graph.Node> nodes)
    Discards values of nodes that are not geometries
    static org.apache.jena.geosparql.implementation.GeometryWrapper
    toWgs84(org.apache.jena.geosparql.implementation.GeometryWrapper gw)
     
    static org.apache.jena.geosparql.implementation.GeometryWrapper
    toWrapperWkt(org.locationtech.jts.geom.Envelope envelope)
     
    static org.apache.jena.geosparql.implementation.GeometryWrapper
    toWrapperWkt(org.locationtech.jts.geom.Geometry geometry)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)