|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.deegree_impl.enterprise.control.AbstractListener
org.deegree_impl.clients.wmsclient2.control.AbstractMapListener
org.deegree_impl.clients.wmsclient2.control.HighlightingInfoListener
This class is for accessing informations about the highlighted polygons A new WFS GetFeature request will be created and performed
| Field Summary |
| Fields inherited from class org.deegree_impl.enterprise.control.AbstractListener |
|
| Constructor Summary | |
HighlightingInfoListener()
|
|
| Method Summary | |
void |
actionPerformed(FormEvent event)
|
private java.lang.String |
createRequest(java.lang.String[] queryLayers,
GM_Position[] coords,
double[] box)
creates a WFS GetFeature request from the passed layers (feature types) and the coordinates. |
private GM_Position[] |
getCoordinates(RPCStruct struct)
calculates the coordinates of the click event. |
private java.lang.String[] |
getQueryLayers(RPCStruct struct)
gets the layer to be highlighted. |
private java.net.URL |
getResponsibleWFS(java.lang.String queryLayer)
returns the URL of the WFS that is responsible for accessing the data of the passed layer/featuretype |
protected double |
getScale(WMSGetMapRequest mrm)
the method returns the scale of the map defined as diagonal size of a pixel at the center of the map. |
private FeatureCollection |
performGetFeature(java.lang.String request,
java.net.URL wfsURL)
performs a GetFeature request against the responsible WFS |
protected java.util.HashMap |
toMap(java.lang.String request)
maps a string representation of a request to a HashMap |
| Methods inherited from class org.deegree_impl.enterprise.control.AbstractListener |
getAlternativeNextPage, getNextPage, getRequest, getReturnValue, gotoErrorPage, handle, setAlternativeNextPage, setDefaultAlternativeNextPage, setDefaultNextPage, setNextPage, setReturnValue, toModel |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HighlightingInfoListener()
| Method Detail |
public void actionPerformed(FormEvent event)
actionPerformed in interface WebListeneractionPerformed in class AbstractMapListenerevent - private java.lang.String[] getQueryLayers(RPCStruct struct)
private java.net.URL getResponsibleWFS(java.lang.String queryLayer)
throws ClientException
queryLayer - layer to determine the responsible WFS for data access
ClientExceptionprivate GM_Position[] getCoordinates(RPCStruct struct)
private java.lang.String createRequest(java.lang.String[] queryLayers,
GM_Position[] coords,
double[] box)
queryLayers - names of the layers/featuretypes that will be targeted
by the requestcoords - coordinates to be used as filter conditions (intersect)box - relevant bounding box
private FeatureCollection performGetFeature(java.lang.String request,
java.net.URL wfsURL)
throws ClientException
ClientExceptionprotected java.util.HashMap toMap(java.lang.String request)
protected double getScale(WMSGetMapRequest mrm)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||