|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.wms.util.WMSUtil
public class WMSUtil
This class contains the utility methods that are specific to WMS Resource in ADF.
Method Summary | |
---|---|
static com.esri.wms.client.Envelope |
findEnvelope(String resourceName,
com.esri.wms.client.Map map,
int wkid)
Returns the envelope based on the specified spatial reference id. |
static String |
getImageFormat(List<String> availableWMSFormats,
String format)
Deprecated. Please use WMSMapResource.getImageFormat(String) instead. |
static com.esri.wms.client.SpatialReference |
getWMSSpatialReference(List<com.esri.wms.client.SpatialReference> srs,
int id)
Convenient method to return the SpatialReference object based on the specified spatial reference id from
the available list spatial reference's. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
@Deprecated public static String getImageFormat(List<String> availableWMSFormats, String format)
WMSMapResource.getImageFormat(String)
instead.
For example, if the WMS Service supported formats are, image/bmp, image/jpeg, image/tiff, image/png, image/gif and image/svg+xml then specifying "PNG" will return "image/png" Also, unless implicitly declared by server, otherwise "PNG8", "PNG24", "PNG32" will be treated as "image/png" For example, - if the WMS server supports image/png32, specifying "PNG32" will return "image/png32" - if the WMS server supports image/png, specifying "PNG32" will return "image/png"
availableWMSFormats
- the list of supported WMS Service map image formatsformat
- the user defined format
WMSMapResource.getWmsServerConnection()
,
ServerConnection.getMapFormats()
public static com.esri.wms.client.SpatialReference getWMSSpatialReference(List<com.esri.wms.client.SpatialReference> srs, int id)
SpatialReference
object based on the specified spatial reference id from
the available list spatial reference's.
srs
- the list of available spatial reference'sid
- the spatial reference id
SpatialReference
objectpublic static com.esri.wms.client.Envelope findEnvelope(String resourceName, com.esri.wms.client.Map map, int wkid)
resourceName
- the resource namemap
- the WMS map objectwkid
- the spatial reference id
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |