Java Doc for GetMapRequest.java in  » GIS » GeoTools-2.4.1 » org » geotools » data » wms » request » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.data.wms.request 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.data.wms.request.GetMapRequest

All known Subclasses:   org.geotools.data.wms.request.AbstractGetMapRequest,
GetMapRequest
public interface GetMapRequest extends Request(Code)
Construct a WMS getMap request.

Constructs a getMapRequest based on the following property values:

  • ELEVATION
  • TIME
  • EXCEPTIONS
  • BGCOLOR
  • TRANSPARENT
  • WIDTH
  • HEIGHT
  • SRS
  • REQUEST
  • LAYERS
  • STYLES
  • vendor specific parameters

Q: List availableFormats and availableExceptions - why are these here? It looks like they are designed to restrict the values used for SRS, format and exceptions. If so the code never uses them. Q: How constant is the GetMapRequest format across WMS versions? Do we need to generalize here?


author:
   Richard Gould, Refractions Research


Field Summary
final public static  StringBBOX
    
final public static  StringBGCOLOR
    
final public static  StringELEVATION
    
final public static  StringEXCEPTIONS
    
final public static  StringEXCEPTION_BLANK
    
final public static  StringEXCEPTION_INIMAGE
    
final public static  StringEXCEPTION_XML
    
final public static  StringFORMAT
    
final public static  StringHEIGHT
    
final public static  StringLAYERS
    
final public static  StringREMOTE_OWS_TYPE
    
final public static  StringREMOTE_OWS_WCS
    
final public static  StringREMOTE_OWS_WFS
    
final public static  StringREMOVE_OWS_URL
    
final public static  StringSLD
    
final public static  StringSLD_BODY
    
final public static  StringSRS
    
final public static  StringSTYLES
    
final public static  StringTIME
    
final public static  StringTRANSPARENT
    
final public static  StringWFS
    
final public static  StringWIDTH
    


Method Summary
public  voidaddLayer(Layer layer, Style style)
     Adds a Layer to the list of layers to be requested.
public  voidaddLayer(String layerName, Style style)
     Adds a Layer to the list of layers to be requested.
public  voidaddLayer(String layerName, String styleName)
     Adds a Layer to the list of layers to be requested.
public  voidaddLayer(Layer layer, String styleName)
     Adds a Layer to the list of layers to be requested.
public  voidaddLayer(Layer layer)
     Adds a Layer to the list of layers to be requested.
public  voidsetBBox(String bbox)
     From the Web Map Service Implementation Specification: "The required BBOX parameter allows a Client to request a particular Bounding Box. The value of the BBOX parameter in a GetMap request is a list of comma-separated numbers of the form "minx,miny,maxx,maxy".
public  voidsetBBox(CRSEnvelope box)
    
public  voidsetBGColour(String bgColour)
     Specifies the colour, in hexidecimal format, to be used as the background of the map.
public  voidsetDimensions(String width, String height)
     From the Web Map Service Implementation Specification: "The required WIDTH and HEIGHT parameters specify the size in integer pixels of the map image to be produced.
public  voidsetDimensions(int width, int height)
    
public  voidsetElevation(String elevation)
    
public  voidsetExceptions(String exceptions)
     The exceptions type specifies what format the server should return exceptions in.
public  voidsetFormat(String format)
     From the Web Map Service Implementation Specification: "The required FORMAT parameter states the desired format of the response to an operation.
public  voidsetProperties(Properties p)
    
public  voidsetSRS(String srs)
     From the Web Map Service Implementation Specification: "The required SRS parameter states which Spatial Reference System applies to the values in the BBOX parameter.
public  voidsetSampleDimensionValue(String name, String value)
    
public  voidsetTime(String time)
    
public  voidsetTransparent(boolean transparent)
     From the Web Map Service Implementation Specification: "The optional TRANSPARENT parameter specifies whether the map background is to be made transparent or not.
public  voidsetVendorSpecificParameter(String name, String value)
     Used to implement vendor specific parameters.
public  voidsetVersion(String version)
     Sets the version number of the request.

Field Detail
BBOX
final public static String BBOX(Code)
Represents the BBOX parameter



BGCOLOR
final public static String BGCOLOR(Code)
Represents the BGCOLOR parameter



ELEVATION
final public static String ELEVATION(Code)
Represents the ELEVATION parameter



EXCEPTIONS
final public static String EXCEPTIONS(Code)
Represents the EXCEPTIONS parameter



EXCEPTION_BLANK
final public static String EXCEPTION_BLANK(Code)
Represents the EXCEPTION_BLANK value



EXCEPTION_INIMAGE
final public static String EXCEPTION_INIMAGE(Code)
Represents the EXCEPTION_INIMAGE value



EXCEPTION_XML
final public static String EXCEPTION_XML(Code)



FORMAT
final public static String FORMAT(Code)
Represents the FORMAT parameter



HEIGHT
final public static String HEIGHT(Code)
Represents the HEIGHT parameter



LAYERS
final public static String LAYERS(Code)
Represents the LAYERS parameter



REMOTE_OWS_TYPE
final public static String REMOTE_OWS_TYPE(Code)
Represents REMOTE_OWS_TYPE parameter



REMOTE_OWS_WCS
final public static String REMOTE_OWS_WCS(Code)
REMOTE_OWS_WCS indicates WCS as a REMOTE_OWS_TYPE



REMOTE_OWS_WFS
final public static String REMOTE_OWS_WFS(Code)
REMOTE_OWS_WFS indicates WFS as a REMOTE_OWS_TYPE



REMOVE_OWS_URL
final public static String REMOVE_OWS_URL(Code)
Represents REMOTE_OWS_URL parameter



SLD
final public static String SLD(Code)
Represents the SLD parameter



SLD_BODY
final public static String SLD_BODY(Code)
Represents the SLD_BODY parameter



SRS
final public static String SRS(Code)
Represents the SRS parameter



STYLES
final public static String STYLES(Code)
Represents the STYLES parameter



TIME
final public static String TIME(Code)
Represents the TIME parameter



TRANSPARENT
final public static String TRANSPARENT(Code)
Represents the TRANSPARENT parameter



WFS
final public static String WFS(Code)
Represents the WFS parameter mentioned briefly in 1.1.1



WIDTH
final public static String WIDTH(Code)
Represents the WIDTH parameter





Method Detail
addLayer
public void addLayer(Layer layer, Style style)(Code)
Adds a Layer to the list of layers to be requested. This layer will be drawn below any previously added layers.
Parameters:
  layer - the Layer to use
Parameters:
  style - the style to use. If it is null, the default style is used.



addLayer
public void addLayer(String layerName, Style style)(Code)
Adds a Layer to the list of layers to be requested. This layer will be drawn below any previously added layers.
Parameters:
  layerName - the Layer to use
Parameters:
  style - the style to use. If it is null, the default style is used.



addLayer
public void addLayer(String layerName, String styleName)(Code)
Adds a Layer to the list of layers to be requested. This layer will be drawn below any previously added layers.
Parameters:
  layerName - the name of the layer to use
Parameters:
  styleName - the style to use to draw the layer, can also be NULL, "" or "default"



addLayer
public void addLayer(Layer layer, String styleName)(Code)
Adds a Layer to the list of layers to be requested. This layer will be drawn below any previously added layers.
Parameters:
  layer - the Layer to use
Parameters:
  styleName - the style to use to draw the layer, can also be NULL, "" or "default"



addLayer
public void addLayer(Layer layer)(Code)
Adds a Layer to the list of layers to be requested. This layer will be drawn below any previously added layers. The style will be the default one.
Parameters:
  layer - the Layer to use



setBBox
public void setBBox(String bbox)(Code)
From the Web Map Service Implementation Specification: "The required BBOX parameter allows a Client to request a particular Bounding Box. The value of the BBOX parameter in a GetMap request is a list of comma-separated numbers of the form "minx,miny,maxx,maxy". If the WMS server has declared that a Layer is not subsettable, then the Client shall specify exactly the declared Bounding Box values in the GetMap request and the Server may issue a Service Exception otherwise." NOTE: In WMS 1.3.0, the specification of "EPSG:4326" has the axis swapped, so a request made in 1.1.1 using "minx,miny,maxx,maxy" would use "miny,minx,maxy,maxx" in 1.3.0. Only when using EPSG:4326! Currently it is up to the client to do this on there own. TODO Accept Envelopes and doubles instead of Strings, and perform the 1.3.0 conversion automatically. Also note that not all servers may implement this. Should provide an option to use 1.1.1 format even when using 1.3.0.
Parameters:
  bbox - A string representing a bounding box in the format"minx,miny,maxx,maxy"



setBBox
public void setBBox(CRSEnvelope box)(Code)



setBGColour
public void setBGColour(String bgColour)(Code)
Specifies the colour, in hexidecimal format, to be used as the background of the map. It is a String representing RGB values in hexidecimal format, prefixed by "0x". The format is: 0xRRGGBB. The default value is 0xFFFFFF (white)
Parameters:
  bgColour - the background colour of the map, in the format 0xRRGGBB



setDimensions
public void setDimensions(String width, String height)(Code)
From the Web Map Service Implementation Specification: "The required WIDTH and HEIGHT parameters specify the size in integer pixels of the map image to be produced. WIDTH specifies the number of pixels to be used between the minimum and maximum X values (inclusive) in the BBOX parameter, while HEIGHT specifies the number of pixels between the minimum and maximum Y values. If the WMS server has declared that a Layer has fixed width and height, then the Client shall specify exactly those WIDTH and HEIGHT values in the GetMap request and the Server may issue a Service Exception otherwise."
Parameters:
  width -
Parameters:
  height -



setDimensions
public void setDimensions(int width, int height)(Code)



setElevation
public void setElevation(String elevation)(Code)
See the Web Map Server Implementation Specification 1.1.1, Annex C, in particular section C.4
Parameters:
  elevation - See the Web Map Server Implementation Specification1.1.1, Annex C



setExceptions
public void setExceptions(String exceptions)(Code)
The exceptions type specifies what format the server should return exceptions in.

Valid values are:

  • "application/vnd.ogc.se_xml" (the default)
  • "application/vnd.ogc.se_inimage"
  • "application/vnd.ogc.se_blank"


Parameters:
  exceptions -



setFormat
public void setFormat(String format)(Code)
From the Web Map Service Implementation Specification: "The required FORMAT parameter states the desired format of the response to an operation. Supported values for a GetMap request on a WMS instance are listed in one or more <Format> elements in the &;ltRequest><GetMap> element of its Capabilities XML. The entire MIME type string in <Format> is used as the value of the FORMAT parameter."
Parameters:
  format - The desired format for the GetMap response



setProperties
public void setProperties(Properties p)(Code)
create a request using a properties file to save time



setSRS
public void setSRS(String srs)(Code)
From the Web Map Service Implementation Specification: "The required SRS parameter states which Spatial Reference System applies to the values in the BBOX parameter. The value of the SRS parameter shall be on of the values defined in the character data section of an <SRS> element defined or inherited by the requested layer. The same SRS applies to all layers in a single request. If the WMS has declared SRS=NONE for a Layer, then the Layer does not have a well-defined spatial reference system and should not be shown in conjunction with other layers. The client shall specify SRS as "none" in the GetMap request and the Server may issue a Service Exception otherwise."
Parameters:
  srs - A String indicating the Spatial Reference System to renderthe layers in.



setSampleDimensionValue
public void setSampleDimensionValue(String name, String value)(Code)
See the Web Map Server Implementation Specification 1.1.1, Annex C, in particular section C.4.2

Example use: request.setSampleDimensionValue("DIM_WAVELENGTH", "4000");


Parameters:
  name - the request parameter name to set (usually with 'dim_' asprefix)
Parameters:
  value - the value of the request parameter (value, interval orcomma-separated list)



setTime
public void setTime(String time)(Code)
See the Web Map Server Implementation Specification 1.1.1, Annexes B and C
Parameters:
  time - See the Web Map Server Implementation Specification 1.1.1,Annexes B and C



setTransparent
public void setTransparent(boolean transparent)(Code)
From the Web Map Service Implementation Specification: "The optional TRANSPARENT parameter specifies whether the map background is to be made transparent or not. The default value is false if the parameter is absent from the request."
Parameters:
  transparent - true for transparency, false otherwise



setVendorSpecificParameter
public void setVendorSpecificParameter(String name, String value)(Code)
Used to implement vendor specific parameters. Entirely optional.
Parameters:
  name - a request parameter name
Parameters:
  value - a value to accompany the name



setVersion
public void setVersion(String version)(Code)
Sets the version number of the request.
Parameters:
  version - A String indicting a WMS Version ("1.0.0", "1.1.0","1.1.1", "1.3.0", etc.)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.