|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.services.wms.GetMapHandler_Impl
Nested Class Summary | |
private class |
GetMapHandler_Impl.ServiceInvokerForNL
Inner class for accessing the data of one named layer and creating DisplayElements and a Thrme from it. |
private class |
GetMapHandler_Impl.ServiceInvokerForUL
Inner class for accessing the data of one user layer and creating DisplayElements and a Thrme from it. |
Field Summary | |
private WMSCapabilities |
capabilities
|
private int |
count
|
protected CS_CoordinateSystem |
reqCRS
|
protected WMSGetMapRequest |
request
|
protected double |
scale
|
private java.lang.Object[] |
themes
|
Constructor Summary | |
GetMapHandler_Impl(WMSCapabilities capabilities,
WMSGetMapRequest 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 CS_CoordinateSystem |
createRequestCRS()
creates an object that represents the CRS of the GetMap request |
private WMSGetMapResponse |
createResponse(java.lang.Exception e)
creates a WMSGetMapResponse containing an OGCWebServiceException |
private UserStyle[] |
getStyles(NamedLayer sldLayer)
returns the UserStyles assigned to a named layer |
protected void |
increaseCounter()
increases the counter variable that holds the number of services that has sent a response. |
OGCWebServiceResponse |
performGetMap()
performs a GetMap request and retruns the result encapsulated within a WMSGetMapResponse object. |
private void |
printCopyright(java.awt.Graphics g,
int heigth)
prints a copyright note at left side of the map bottom. |
protected void |
putTheme(int index,
java.lang.Object o)
put a theme to the passed index of the themes array. |
private WMSGetMapResponse |
renderMap()
renders the map from the DisplayElements |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected WMSGetMapRequest request
private java.lang.Object[] themes
protected double scale
private int count
protected CS_CoordinateSystem reqCRS
private WMSCapabilities capabilities
Constructor Detail |
public GetMapHandler_Impl(WMSCapabilities capabilities, WMSGetMapRequest 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 OGCWebServiceResponse performGetMap() 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 (GetMap-Request EXCEPTION-Parameter).
performGetMap
in interface GetMapHandler
WebServiceException
private UserStyle[] getStyles(NamedLayer sldLayer) throws WebServiceException
sldLayer
- layer to get the styles for
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 WMSGetMapResponse createResponse(java.lang.Exception e)
e
- exception to encapsulate into the responseprotected void putTheme(int index, java.lang.Object o)
private WMSGetMapResponse renderMap()
private void printCopyright(java.awt.Graphics g, int heigth)
g
- graphic context of the mapheigth
- height of the map in pixel
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |