|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IMapReader
Provides access to members that support reading a map document.
MapReader is a helper coclass that reads the contents of a map document file (.mxd and .pmf). The IMapReader interface provides read-only access to: document information (DocumentInfo), the map object (Map), the number of map objects within the document (MapCount), the page layout object (PageLayout), and the thumbnail image stored in the document.
When writing your own custom server object use IMapReader to read an .mxd or .pmf.
Method Summary | |
---|---|
void |
close()
Clears out all of the map objects in memory. |
IPropertySet |
getDocumentInfo()
A set of name-value pairs for properties set for the map document (mxd only). |
IMap |
getMap(int index)
The map object at the specified index. |
int |
getMapCount()
The number of maps (data frames) in the document. |
IPageLayout |
getPageLayout()
The PageLayout object. |
Picture |
getThumbnail()
The thumbnail stored in the map document. |
boolean |
isAccessInternalObjects()
Indicates whether the internal objects of the map can be exposed to external clients. |
void |
open(String filePath)
Opens an mxd or pmf file stored at the specified path. |
Method Detail |
---|
void open(String filePath) throws IOException, AutomationException
filePath
- The filePath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void close() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getMapCount() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IMap getMap(int index) throws IOException, AutomationException
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPageLayout getPageLayout() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Picture getThumbnail() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IPropertySet getDocumentInfo() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isAccessInternalObjects() throws IOException, AutomationException
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 |