|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ILayerDescription3
Provides access to the available properties of a layer description object.
This interface is new at ArcGIS 9.3. It supersedes ILayerDescription and ILayerDescription2.
Please note the difference of use between IMapLayerInfo and ILayerDescription: Use ILayerDescription to access layer settings that can be changed on the server object without changing the state of the underlying fine-grained ArcObjects that the layer is based on. MapLayerInfo is used to retrieve information about a layer that can only be changed by directly accessing the map document or the fine-grained ArcObjects it is based on.
Use LayerResultOptions when you want to customize a query result.
Layer settings of the Server object can be permanently changed by accessing fine-grained ArcObjects. This is accomplished using IMapServerObjects. This should be done with objects in a non-pooled environment. Changing the state of pooled objects this way will lead to unexpected results. Changes made using IMapServerObjects reside in memory only. They affect only the instance of the map service being accessed. They do not change anything in the original map document (.mxd) saved on disk. These changes exist until the service is restarted or recycled.
Method Summary | |
---|---|
ILayerResultOptions |
getLayerResultOptions()
Indicate whether to include and/or modify Geometry. |
void |
setLayerResultOptionsByRef(ILayerResultOptions layerResultOptions)
Indicate whether to include and/or modify Geometry. |
Methods inherited from interface com.esri.arcgis.carto.ILayerDescription2 |
---|
getSelectionBufferSymbol, getSourceID, setSelectionBufferSymbolByRef, setSourceID |
Method Detail |
---|
void setLayerResultOptionsByRef(ILayerResultOptions layerResultOptions) throws IOException, AutomationException
layerResultOptions
- A reference to a com.esri.arcgis.carto.ILayerResultOptions (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILayerResultOptions getLayerResultOptions() throws IOException, AutomationException
In some cases you may want to customize the results of a MapServer query - for example, when you want field names (instead of field aliases) or data in native format or in some cases you may want improve the performance by limiting or adjusting the geometry being returned.
Since LayerResultsOptions is part of of the LayerDescription, any settings made for LayerResultsOptions will only affect those methods that include the LayerDescription (or MapDescription which contains LayerDescriptions) as a parameter.
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 |