|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.ogcwebservices.AbstractOGCWebServiceRequest org.deegree.ogcwebservices.wmps.operation.WMPSRequestBase org.deegree.ogcwebservices.wmps.operation.PrintMap
public class PrintMap
This interface describes the access to the parameters of a PrintMap request. It is expected that there are two kinds
of request. The first is the 'normal' HTTP GET request with name-value-pair enconding and the second is a HTTP POST
request containing a SLD. It is possible to access the values of a HTTP GET request throught its bean accessor
methods. The request shall be mapped to a SLD data structure, accessible using the getSLD()
method.
Constructor Summary | |
---|---|
PrintMap(java.lang.String id,
java.lang.String version,
GetMap.Layer[] layers,
java.lang.String srs,
Envelope boundingBox,
Point center,
int scaleDenominator,
boolean transparent,
java.awt.Color bgColor,
java.lang.String title,
java.lang.String copyright,
boolean legend,
boolean scaleBar,
java.lang.String note,
java.lang.String template,
java.lang.String emailaddress,
java.sql.Timestamp timestamp,
TextArea[] textAreas,
int dpi,
java.util.Map<java.lang.String,java.lang.String> vendorSpecificParameter)
Create a new PrintMap instance. |
Method Summary | |
---|---|
protected void |
addLayers(GetMap.Layer layer)
adds the |
static PrintMap |
create(org.w3c.dom.Element root)
creates a PrintMapRequest from its XML representation as defined in the specification. |
static PrintMap |
create(java.util.Map<java.lang.String,java.lang.String> model)
creates a PrintMapRequest from a HashMap that contains the request parameters as key-value-pairs. |
static PrintMap |
create(java.lang.String id,
java.lang.String version,
GetMap.Layer[] layers,
java.lang.String srs,
Envelope bbox,
Point center,
int scaleDenominator,
boolean transparent,
java.awt.Color bgColor,
java.lang.String title,
java.lang.String copyright,
boolean legend,
boolean scaleBar,
java.lang.String note,
java.lang.String template,
java.lang.String emailAddress,
java.sql.Timestamp timestamp,
TextArea[] textAreas,
int dpi,
java.util.Map<java.lang.String,java.lang.String> vendorSpecificParameters)
Returns a new PrintMap instance. |
static GetMap.Layer |
createLayer(java.lang.String name,
java.lang.String style)
creates a Layer object beacuse of the inner class construct. |
Envelope |
getBBOX()
Get bounding box |
java.awt.Color |
getBGColor()
Get BGColor |
Point |
getCenter()
Get center |
java.lang.String |
getCopyright()
Get Copyright |
int |
getDpi()
|
java.lang.String |
getEmailAddress()
Get Email Address |
GetMap.Layer[] |
getLayers()
The required LAYERS parameter lists the map layer(s) to be returned by this PrintMapRequest request. |
boolean |
getLegend()
Get Legend |
java.lang.String |
getNote()
Get Note (extra descriptive text) |
boolean |
getScaleBar()
Get Scale Bar |
int |
getScaleDenominator()
Get ScaleDenominator |
java.lang.String |
getSRS()
Get SRS |
java.lang.String |
getTemplate()
Get Template |
TextArea |
getTextArea(java.lang.String name)
Retrieve ( if available ) the current text area identified by 'name' from the list of text areas defined. |
TextArea[] |
getTextAreas()
Get Text Areas |
java.sql.Timestamp |
getTimestamp()
Get TimeStamp |
java.lang.String |
getTitle()
Get Map Title |
boolean |
getTransparent()
Get Transparency |
void |
setDpi(int dpi)
|
java.lang.String |
toString()
Overwrite the toString() method to export the current request as a readable statement. |
Methods inherited from class org.deegree.ogcwebservices.wmps.operation.WMPSRequestBase |
---|
getServiceName |
Methods inherited from class org.deegree.ogcwebservices.AbstractOGCWebServiceRequest |
---|
getId, getParam, getParamAsInt, getParamValues, getRequestParameter, getRequiredParam, getVendorSpecificParameter, getVendorSpecificParameters, getVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
PrintMap(java.lang.String id, java.lang.String version, GetMap.Layer[] layers, java.lang.String srs, Envelope boundingBox, Point center, int scaleDenominator, boolean transparent, java.awt.Color bgColor, java.lang.String title, java.lang.String copyright, boolean legend, boolean scaleBar, java.lang.String note, java.lang.String template, java.lang.String emailaddress, java.sql.Timestamp timestamp, TextArea[] textAreas, int dpi, java.util.Map<java.lang.String,java.lang.String> vendorSpecificParameter)
id
- version
- layers
- srs
- boundingBox
- center
- scaleDenominator
- transparent
- bgColor
- title
- copyright
- legend
- scaleBar
- note
- template
- emailaddress
- timestamp
- textAreas
- dpi
- vendorSpecificParameter
- Method Detail |
---|
public int getDpi()
public void setDpi(int dpi)
dpi
- the dpi to setpublic GetMap.Layer[] getLayers()
A WMS shall render the requested layers by drawing the leftmost in the list bottommost, the next one over that, and so on.
Each layer is associated to a style. Styles are also is encoded as a comma- seperated list within the PrintMapRequest request.
The required STYLES parameter lists the style in which each layer is to be rendered. There is a one-to-one correspondence between the values in the LAYERS parameter and the values in the STYLES parameter. Because of this layer-style combinations are returned coupled within an array of Layer- objects. Each map in the list of LAYERS is drawn using the corresponding style in the same position in the list of STYLES. Each style Name shall be one that was defined in the