|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMapServerInit
Provides access to members that support initializing a map server.
Method Summary | |
---|---|
void |
connect(String filePath)
Initializes the map server with an mxd or pmf file stored at the specified path. |
String |
getFilePath()
The map document path. |
int |
getMaxBufferCount()
The maximum number of records buffered on the server for display. |
int |
getMaxImageHeight()
The maximum height in pixels of an image request. |
int |
getMaxImageWidth()
The maximum width in pixels of an image request. |
int |
getMaxRecordCount()
The maximum number of records returned for query results (Identify, Find, QueryFeatureData, and QueryHyperlinks). |
String |
getPhysicalOutputDirectory()
The physical directory for output files. |
String |
getVirtualOutputDirectory()
The virtual directory for output files. |
void |
setMaxBufferCount(int count)
The maximum number of records buffered on the server for display. |
void |
setMaxImageHeight(int height)
The maximum height in pixels of an image request. |
void |
setMaxImageWidth(int width)
The maximum width in pixels of an image request. |
void |
setMaxRecordCount(int count)
The maximum number of records returned for query results (Identify, Find, QueryFeatureData, and QueryHyperlinks). |
void |
setPhysicalOutputDirectory(String dirPath)
The physical directory for output files. |
void |
setVirtualOutputDirectory(String dirPath)
The virtual directory for output files. |
void |
startWithData(IDataset pDataset)
An alternative to calling Connect(). |
void |
stop()
Clears out all of the map objects in memory. |
Method Detail |
---|
void connect(String filePath) throws IOException, AutomationException
Initializing a map server with an MSD file with this method is not supported.
filePath
- The filePath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void startWithData(IDataset pDataset) throws IOException, AutomationException
pDataset
- A reference to a com.esri.arcgis.geodatabase.IDataset (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void stop() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setPhysicalOutputDirectory(String dirPath) throws IOException, AutomationException
dirPath
- The dirPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getPhysicalOutputDirectory() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setVirtualOutputDirectory(String dirPath) throws IOException, AutomationException
dirPath
- The dirPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getVirtualOutputDirectory() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getFilePath() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxRecordCount() throws IOException, AutomationException
In order to control the amount of information MapServer needs to process for a query, a maximum number of records can be set. This value is contained in the MaxRecordCount property. The default value for this property is 500. If 600 features match a given query only the first 500 results will be returned. You will be unable to access the remaining 100 records. To be able to access these records the MaxRecordCount would need to be increased to 600. MaxRecordCount affects the following IMapServer methods: Find, Identify, QueryFeatureData, QueryFeatureData2, QueryHyperlinks, and QueryHyperlinks2. It does not affect QueryFeatureCount, QueryFeatureIDs or the number of Rows of a MapServerRelationship. The MaxRecordCount can also be changed by modifying the MaxRecordCount XML tag in the MapServer's configuration file.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaxRecordCount(int count) throws IOException, AutomationException
count
- The count (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxBufferCount() throws IOException, AutomationException
In order to control the amount of information MapServer needs to process for a buffer, a maximum number of records to be buffered can be set. This value is contained in the MaxBufferCount property. The default value for this property is 100. If the number of features to be buffered exceeds MaxBufferCount no features will be buffered. The MaxBufferCount can also be changed by modifying the MaxRecordCount XML tag in the MapServer's configuration file.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaxBufferCount(int count) throws IOException, AutomationException
count
- The count (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxImageWidth() throws IOException, AutomationException
In order to control the size of an exported map image, IMapServerInit contains two properties: MaxImageHeight and MaxImageWidth. The default value for these properties is 2048 pixels. The MaxImageHeight can also be changed by modifying the MaxImageHeight XML tag in the MapServer's configuration file.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaxImageWidth(int width) throws IOException, AutomationException
width
- The width (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMaxImageHeight() throws IOException, AutomationException
In order to control the size of an exported map image, IMapServerInit contains two properties: MaxImageHeight and MaxImageWidth. The default value for these properties is 2048 pixels. The MaxImageHeight can also be changed by modifying the MaxImageHeight XML tag in the MapServer's configuration file.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setMaxImageHeight(int height) throws IOException, AutomationException
height
- The height (in)
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 |