Search in sources :

Example 1 with GeoVertex

use of net.geoprism.registry.graph.GeoVertex in project geoprism-registry by terraframe.

the class VertexServerGeoObject method getVertex.

public static VertexObject getVertex(ServerGeoObjectType type, String uuid) {
    String statement = "SELECT FROM " + type.getMdVertex().getDBClassName();
    statement += " WHERE uuid = :uuid";
    GraphQuery<GeoVertex> query = new GraphQuery<GeoVertex>(statement);
    query.setParameter("uuid", uuid);
    return query.getSingleResult();
}
Also used : MultiLineString(com.vividsolutions.jts.geom.MultiLineString) LineString(com.vividsolutions.jts.geom.LineString) GraphQuery(com.runwaysdk.business.graph.GraphQuery) GeoVertex(net.geoprism.registry.graph.GeoVertex)

Example 2 with GeoVertex

use of net.geoprism.registry.graph.GeoVertex in project geoprism-registry by terraframe.

the class VertexServerGeoObject method getVertexByCode.

public static VertexObject getVertexByCode(ServerGeoObjectType type, String code) {
    String statement = "SELECT FROM " + type.getMdVertex().getDBClassName();
    statement += " WHERE code = :code";
    GraphQuery<GeoVertex> query = new GraphQuery<GeoVertex>(statement);
    query.setParameter("code", code);
    return query.getSingleResult();
}
Also used : MultiLineString(com.vividsolutions.jts.geom.MultiLineString) LineString(com.vividsolutions.jts.geom.LineString) GraphQuery(com.runwaysdk.business.graph.GraphQuery) GeoVertex(net.geoprism.registry.graph.GeoVertex)

Aggregations

GraphQuery (com.runwaysdk.business.graph.GraphQuery)2 LineString (com.vividsolutions.jts.geom.LineString)2 MultiLineString (com.vividsolutions.jts.geom.MultiLineString)2 GeoVertex (net.geoprism.registry.graph.GeoVertex)2