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 GeospatialService
public javax.ws.rs.core.Response getGeometryFeatureName(String coordinates)
public String getGeometryFeatureNameByCoordinate(String coordinates)
getGeometryFeatureNameByCoordinate
in interface GeospatialService
public Object getGeometryFeatureValueByCoordinate(String coordinates, String valueKey)
getGeometryFeatureValueByCoordinate
in interface GeospatialService
public List<de.deepamehta.core.Topic> getTopicsWithinDistance(de.deepamehta.geomaps.model.GeoCoordinate geoCoord, double maxDistanceInKm)
getTopicsWithinDistance
in interface GeospatialService
public com.vividsolutions.jts.geom.Point createPointByCoordinates(double lon, double lat)
public void init()
init
in interface de.deepamehta.core.osgi.PluginContext
init
in class de.deepamehta.core.osgi.PluginActivator
public boolean validWGS84Coordinates(de.deepamehta.geomaps.model.GeoCoordinate coords)
validWGS84Coordinates
in interface GeospatialService
public void postCreateTopic(de.deepamehta.core.Topic topic)
postCreateTopic
in interface de.deepamehta.core.service.event.PostCreateTopicListener
public 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.PostUpdateTopicListener
public void preDeleteTopic(de.deepamehta.core.Topic topic)
preDeleteTopic
in interface de.deepamehta.core.service.event.PreDeleteTopicListener
Copyright © 2018. All Rights Reserved.