| Programming with JViews Maps > Introducing the Main Classes > Readers and Writers > The Web Map Server Reader |
The Web Map Server Reader |
INDEX
PREVIOUS
NEXT
|
The OpenGIS® Web Map Service (WMS) Implementation Specification produces maps of spatially referenced data dynamically from geographic information. This international standard defines a map to be a portrayal of geographic information as a digital image file suitable for display on a computer screen. The OpenGIS standard provides three operations (GetCapabilities, GetMap, and GetFeatureInfo) in support of the creation and display of registered and superimposed map-like views of information that come simultaneously from multiple remote and heterogeneous sources. For more information about the OpenGIS standard, see http://www.opengeospatial.org/.
There are two ways of reading images from a Web Map Sever (WMS):
IlvWMSReader instance directly. In this case, you must write all the code required to render the WMS features into graphic objects and add them to the manager.
IlvWMSDataSource. This is a convenient way of performing all the above operations at once and is more integrated with the data model of the map.
This section contains the following topics:
The source code for the Map Builder demonstration, which contains all the code described in this section, can be found at <installdir>/jviews-maps81/samples/mapbuilder/index.html.
This class reads image features from a specified Web Map Server URL. It implements the IlvMapFeatureIterator interface to iterate over the read features.
To read WMS features from a Web Map Server using the IlvWMSReader object:
IlvFeatureRenderer, and assign them to a manager:
The IlvWMSDataSource class provides a convenient way of creating a set of layers containing images retrieved from a Web Map Server in a manager.
To read WMS features using the IlvWMSDataSource:
| Copyright © 1987-2007 ILOG S.A. All rights reserved. Documentation homepage. Legal terms. | PREVIOUS NEXT |