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) |
String |
getGeometryFeatureNameByCoordinate(String coordinates) |
Object |
getGeometryFeatureValueByCoordinate(String coordinates,
String valueKey) |
List<de.deepamehta.core.Topic> |
getTopicsWithinDistance(de.deepamehta.geomaps.model.GeoCoordinate geoCoord,
double maxDistanceInKm) |
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 javax.ws.rs.core.Response doIndexGeometryLayer(String absoluteFile)
doIndexGeometryLayer in interface GeospatialServicepublic javax.ws.rs.core.Response getGeometryFeatureName(String coordinates)
public String getGeometryFeatureNameByCoordinate(String coordinates)
getGeometryFeatureNameByCoordinate in interface GeospatialServicepublic Object getGeometryFeatureValueByCoordinate(String coordinates, String valueKey)
getGeometryFeatureValueByCoordinate in interface GeospatialServicepublic List<de.deepamehta.core.Topic> getTopicsWithinDistance(de.deepamehta.geomaps.model.GeoCoordinate geoCoord, double maxDistanceInKm)
getTopicsWithinDistance 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.