public class GeospatialPlugin extends de.deepamehta.core.osgi.PluginActivator implements GeospatialService, de.deepamehta.core.service.event.PostCreateTopicListener, de.deepamehta.core.service.event.PostUpdateTopicListener, de.deepamehta.core.service.event.PreDeleteTopicListener
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_GEOMETRY_LAYER_NAME |
static String |
DEFAULT_POINT_LAYER_NAME |
static String |
GEO_NODE_PROPERTY_ID |
| Constructor and Description |
|---|
GeospatialPlugin() |
| Modifier and Type | Method and Description |
|---|---|
com.vividsolutions.jts.geom.Point |
createPointByCoordinates(double lon,
double lat) |
javax.ws.rs.core.Response |
doIndexGeometryLayer(String absoluteFile) |
javax.ws.rs.core.Response |
getGeometryFeatureName(String coordinates)
Fetches the name of the geometry (Feature) given a coordinate pair (WGS-84) located within
that feature (using neo4j-spatial shapefile).
|
String |
getGeometryFeatureNameByCoordinate(String coordinates) |
Object |
getGeometryFeatureValueByCoordinate(String coordinates,
String key) |
List<de.deepamehta.core.Topic> |
getTopicsWithinDistance(de.deepamehta.geomaps.model.GeoCoordinate geoCoord,
double maxDistanceInKm)
Fetches all Geo Coordinate topics within a "given distance" (using neo4j-spatial).
|
void |
init() |
void |
postCreateTopic(de.deepamehta.core.Topic topic) |
void |
postUpdateTopic(de.deepamehta.core.Topic topic,
de.deepamehta.core.model.TopicModel newModel,
de.deepamehta.core.model.TopicModel oldModel) |
void |
preDeleteTopic(de.deepamehta.core.Topic topic) |
boolean |
validWGS84Coordinates(de.deepamehta.geomaps.model.GeoCoordinate coords) |
public static final String DEFAULT_POINT_LAYER_NAME
public static final String DEFAULT_GEOMETRY_LAYER_NAME
public static final String GEO_NODE_PROPERTY_ID
public List<de.deepamehta.core.Topic> getTopicsWithinDistance(de.deepamehta.geomaps.model.GeoCoordinate geoCoord, double maxDistanceInKm)
getTopicsWithinDistance in interface GeospatialServicegeoCoord - Coordinate pairmaxDistanceInKm - The maximum distance (e.g 1.3) in kilometers between the given coordinate and a POI.public javax.ws.rs.core.Response getGeometryFeatureName(String coordinates)
coordinates - String lat,lngpublic javax.ws.rs.core.Response doIndexGeometryLayer(String absoluteFile)
doIndexGeometryLayer in interface GeospatialServicepublic String getGeometryFeatureNameByCoordinate(String coordinates)
getGeometryFeatureNameByCoordinate in interface GeospatialServicepublic Object getGeometryFeatureValueByCoordinate(String coordinates, String key)
getGeometryFeatureValueByCoordinate in interface GeospatialServicepublic com.vividsolutions.jts.geom.Point createPointByCoordinates(double lon,
double lat)
public void init()
init in interface de.deepamehta.core.osgi.PluginContextinit in class de.deepamehta.core.osgi.PluginActivatorpublic boolean validWGS84Coordinates(de.deepamehta.geomaps.model.GeoCoordinate coords)
validWGS84Coordinates in interface GeospatialServicepublic void postCreateTopic(de.deepamehta.core.Topic topic)
postCreateTopic in interface de.deepamehta.core.service.event.PostCreateTopicListenerpublic void postUpdateTopic(de.deepamehta.core.Topic topic,
de.deepamehta.core.model.TopicModel newModel,
de.deepamehta.core.model.TopicModel oldModel)
postUpdateTopic in interface de.deepamehta.core.service.event.PostUpdateTopicListenerpublic void preDeleteTopic(de.deepamehta.core.Topic topic)
preDeleteTopic in interface de.deepamehta.core.service.event.PreDeleteTopicListenerCopyright © 2018. All Rights Reserved.