|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maryanovsky.map.client.opengis.wms.Wms
public final class Wms
A class for various static WMS values and utilities. Please refer to the WMS 1.1.1 Implementation Specification for the description of the WMS client/server protocol currently implemented by this package.
| Field Summary | |
|---|---|
static String |
VERSION
The WMS version implemented by this package. |
| Constructor Summary | |
|---|---|
Wms()
|
|
| Method Summary | |
|---|---|
static void |
checkVersionCompatible(Document document)
Checks that the specified document uses a WMS version compatible with the one implemented by this package. |
static Map |
createMap(Capabilities capabilities,
Capabilities.TileSet tileSet,
boolean longitudeWraps)
Creates a Map from the specified Capabilities.TileSet. |
static Map |
createMap(Capabilities capabilities,
List tileSets,
boolean longitudeWraps)
Creates a Map from the specified list of Capabilities.TileSets. |
static WmsProjection |
getProjection(String srs,
List resolutions,
boolean longitudeWraps)
Returns a WmsProjection for the specified SRS and list of
resolutions for each zoom. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String VERSION
| Constructor Detail |
|---|
public Wms()
| Method Detail |
|---|
public static void checkVersionCompatible(Document document)
throws ParseException
ParseException is thrown.
ParseException
public static Map createMap(Capabilities capabilities,
List tileSets,
boolean longitudeWraps)
Map from the specified list of Capabilities.TileSets. Note
that all the tile sets must have the same SRS.
capabilities - The Capabilities of the service.tileSets - The list of tile sets to show on the map.longitudeWraps - Whether the projection will cause the map to wrap
around the X (longitude) axis.
public static Map createMap(Capabilities capabilities,
Capabilities.TileSet tileSet,
boolean longitudeWraps)
Map from the specified Capabilities.TileSet.
capabilities - The Capabilities of the service.tileSet - The tile set to show on the map.longitudeWraps - Whether the projection will cause the map to wrap
around the X (longitude) axis.
public static WmsProjection getProjection(String srs,
List resolutions,
boolean longitudeWraps)
WmsProjection for the specified SRS and list of
resolutions for each zoom. Currently supported SRSes are
EPSG:4326 and OSGEO:41001. Throws an
IllegalArgumentException if the specified SRS is unsupported.
srs - The SRS.resolutions - The list of resolutions (map units per pixel) for each
zoom. The first value corresponds to zoom 0 and so on.longitudeWraps - Whether the projection will cause the map to wrap
around the X (longitude) axis.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||