|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMapServerInfo
Provides access to the available properties of a map server info object.
Method Summary | |
---|---|
IColor |
getBackgroundColor()
The background color of the map (data frame). |
IMapServerBookmarks |
getBookmarks()
The published bookmarks for the map. |
IMapDescription |
getDefaultMapDescription()
The default map settings. |
String |
getDescription()
The description of the map (data frame). |
IEnvelope |
getExtent()
The current extent of the map (data frame). |
IEnvelope |
getFullExtent()
The full extent of the map (data frame). |
IMapLayerInfos |
getMapLayerInfos()
A collection of Map Layer Info objects, each containing information about a layer in the map (data frame). |
int |
getMapUnits()
The units for the map (data frame). |
String |
getName()
The name of the map (data frame). |
Method Detail |
---|
String getName() throws IOException, AutomationException
If two (or more) data frames have the same name in the map document, MapServer adds a distinctive number at the end of the second name. E.g. Layers and Layers2.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getDescription() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnvelope getFullExtent() throws IOException, AutomationException
The full extent of the map can either be the combined extent of all layers within the map or a custom full extent set by on the data frame by the author of the map document being served.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnvelope getExtent() throws IOException, AutomationException
This is the extent of the DefaultMapDescription.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMapLayerInfos getMapLayerInfos() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IColor getBackgroundColor() throws IOException, AutomationException
The background color is set in the map document itself. If background color is not explicitly set in the original mxd, the default color is set to an off-white color (RGB value of 253,253,253).
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMapServerBookmarks getBookmarks() throws IOException, AutomationException
Bookmarks are set in the map document itself.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMapDescription getDefaultMapDescription() throws IOException, AutomationException
The DefaultMapDescription refers to map settings set in the original map document. Changes to map settings using IMapDescription are temporary and do not affect the default map description returned by DefaultMapDescription.
The default settings for a MapServer object can be changed in two ways. First, you can make changes to the original map document and reinitialize the MapServer object. The other way to change the DefaultMapDescription is to use IMapServerObjects to access the fine-grained ArcObjects that the map settings are based, make the desired changes, and use the RefreshServerObjects method to overwite the old DefaultMapDescription with a new one. This should be done with objects in a non-pooled environment. Changing the state of pooled objects this way will lead to unexpected results.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMapUnits() throws IOException, AutomationException
The map units are set in the map document itself and cannot be changed using MapServer. The map's original spatial reference determines the units. Changing the SpatialReference property of IMapDescription will not change the value of the MapUnits property on IMapServerInfo.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |