|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.services.wms.GetFeatureInfoHandler_Impl
Nested Class Summary | |
private class |
GetFeatureInfoHandler_Impl.ServiceInvoker
Inner class for accessing the data of one layer and creating a GML document from it. |
Field Summary | |
private WMSCapabilities |
capabilities
|
private int |
count
|
protected WMSGetMapRequest |
getMapRequest
|
private java.lang.Object[] |
gml
|
protected CS_CoordinateSystem |
reqCRS
|
protected WMSGetFeatureInfoRequest |
request
|
protected double |
scale
|
Constructor Summary | |
GetFeatureInfoHandler_Impl(WMSCapabilities capabilities,
WMSGetFeatureInfoRequest request)
Creates a new GetMapHandler object. |
Method Summary | |
private double |
calcDistance(double lon1,
double lat1,
double lon2,
double lat2)
calculates the distance between two points in EPSG:4326 coodinates. |
private double |
calcScale()
calculates the map scale as defined in the OGC WMS 1.1.1 specifications |
private WMSGetFeatureInfoResponse |
createExceptionResponse(java.lang.Exception e)
creates a WMSGetMapResponse containing an OGCWebServiceException |
private WMSGetFeatureInfoResponse |
createFeatureInfoResponse()
generates the desired output from the GMLs |
private CS_CoordinateSystem |
createRequestCRS()
creates an object that represents the CRS of the GetMap request |
protected void |
increaseCounter()
increases the counter variable that holds the number of services that has sent a response. |
WMSGetFeatureInfoResponse |
performGetFeatureInfo()
performs a GetFeatureInfo request and retruns the result encapsulated within a WMSFeatureInfoResponse object. |
protected void |
putGML(int index,
java.lang.Object o)
put a GML document to the passed index of the gml array. |
private boolean |
validate(Layer layer,
java.lang.String name)
validates if the requested layer matches the conditions of the request if not a WebServiceException will be thrown. |
private void |
waitForFinish()
waits until the requested layers are available as DisplayElements or the time limit has been reached. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected WMSGetFeatureInfoRequest request
protected WMSGetMapRequest getMapRequest
private WMSCapabilities capabilities
private java.lang.Object[] gml
protected double scale
private int count
protected CS_CoordinateSystem reqCRS
Constructor Detail |
public GetFeatureInfoHandler_Impl(WMSCapabilities capabilities, WMSGetFeatureInfoRequest request) throws WebServiceException
request
- request to performMethod Detail |
private double calcScale() throws java.lang.Exception
java.lang.Exception
private double calcDistance(double lon1, double lat1, double lon2, double lat2)
private CS_CoordinateSystem createRequestCRS()
protected void increaseCounter()
public WMSGetFeatureInfoResponse performGetFeatureInfo() throws WebServiceException
The method throws an WebServiceException that only shall be thrown if an fatal error occurs that makes it imposible to return a result. If something wents wrong performing the request (none fatal error) The exception shall be encapsulated within the response object to be returned to the client as requested (GetFeatureInfo-Request EXCEPTION-Parameter).
performGetFeatureInfo
in interface GetFeatureInfoHandler
WebServiceException
private boolean validate(Layer layer, java.lang.String name) throws WebServiceException
layer
- layer as defined at the capabilities/configurationname
- name of the layer (must be submitted seperatly because the
layer parameter can be null
WebServiceException
private WMSGetFeatureInfoResponse createExceptionResponse(java.lang.Exception e)
e
- exception to encapsulate into the responseprivate void waitForFinish() throws WebServiceException, java.lang.Exception
WebServiceException
- if the time limit has been reached
java.lang.Exception
protected void putGML(int index, java.lang.Object o)
private WMSGetFeatureInfoResponse createFeatureInfoResponse()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |