📄 dsmapbook.xml
字号:
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="..\..\..\samples.xsl"?>
<ARCOBJECTS>
<SAMPLE TYPE="Tool">
<SUBSYSTEM>ArcMap</SUBSYSTEM>
<CLASS>Toolbar</CLASS>
<NAME>DS Map Book</NAME>
<OWNER>Larry Young</OWNER>
<DATE>
<CREATION>
<MONTH>3</MONTH>
<DAY>25</DAY>
<YEAR>2002</YEAR>
</CREATION>
</DATE>
<INDEX_ITEMS>
<INDEX_ITEM>Map Production</INDEX_ITEM>
<INDEX_ITEM>Map Production, Ds Map Book</INDEX_ITEM>
<INDEX_ITEM>Ds Map Book</INDEX_ITEM>
</INDEX_ITEMS>
<DESCRIPTION STYLE="REGULAR">
<TEXT>
This Developer Sample code is designed to allow for the creation of Map Books. A page is create in the book based
on each feature in a grid/index layer specified by the user. Index layers must contain polygon features with a string
field containing the name of each tile/page. The features in the index layer do not have to be of any particular
size or shape, nor do they need to be continuous or non-overlapping. Several commands are included for generating index
layers based on a uniform grid or based on selected, continuous line features.
<P>Using the index layer, pages are generated for the book. These pages are persisted within the map document
and can be printed or exported at any time.</P>
<P>For more specific information on using the sample, please see the Map Book Generation.doc file included with
the code.</P>
<P>Options on the toolbar include:</P>
<li>Create Map Book - Generate a new Map Series based on your index layer.</li>
<li>Add Identifier Frame - Add Local or Global Indicator frames to show the position of the page/tile in reference to the other tiles.</li>
<li>Create/Update Map Grids - Generate or Update index layers based on a uniformed grid.</li>
<li>Create Stripmap Grids - Generate an index layer based on a continuous set of selected line features.</li>
<P>There are two Visual Basic projects included with the code. The first project (DSMapBookPrj.vbp) includes the code for the MapBook,
MapSeries, and MapPage objects used within the second project (DSMapBookUIPrj.vbp). The Map Book application is an extension to ArcMap
and the MapBook, MapSeries, and MapPage objects can be obtained from the extension. This makes it possible to write additional code
through VBA or some other method for manipulating the objects. See the Map Book Generation.doc file for more information.</P>
<P>In the code section below, the first 8 items are from the DsMapBookPrj project, while the remaining items are from the
DSMapBookUIPrj.</P>
</TEXT>
</DESCRIPTION>
<HOW_TO_USE>
<STEP>Double click on the _Install.bat file include with the code. This batch file will register two dlls and put all the included classes
in the correct categories. The classes include one extension, one Contents View (Tab), one toolbar, and four commands/Tools. The install and uninstall
batch files assume the regsvr32 command is accessible from the system path.</STEP>
<STEP>Add layers to your map session. One of the layers must be an index layer that already exists, or you create with
the Create/Update Map Grids or Create StripMap Grids commands.</STEP>
<STEP>Open the Map Book Generation.doc file included with the code and follow the procedures to create and output a map book.</STEP>
</HOW_TO_USE>
<APPLICATION>ArcMap</APPLICATION>
<REQUIRES>Index layer and other data</REQUIRES>
<DIFFICULTY>Advanced</DIFFICULTY>
<FILES>
<DEVELOPENV LANGUAGE="VB">
<ITEM>
<FILE>DSMapBook.cls</FILE>
<URL>clsDSMapBook.htm</URL>
<FILE_DESC>Map Book object used to hold the Map Series objects.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>DSMapPage.cls</FILE>
<URL>clsDSMapPage.htm</URL>
<FILE_DESC>Map Page object holding specifc information about the pages in the book.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>DSMapSeries.cls</FILE>
<URL>clsDSMapSeries.htm</URL>
<FILE_DESC>Map Series object holding specific information about the series with the book and the pages.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>IDSMapBook.cls</FILE>
<URL>clsIDSMapBook.htm</URL>
<FILE_DESC>Map Book interface implemented by the Map Book object.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>IDSMapPage.cls</FILE>
<URL>clsIDSMapPage.htm</URL>
<FILE_DESC>Map Page interface implemented by the Map Page object.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>IDSMapSeries.cls</FILE>
<URL>clsIDSMapSeries.htm</URL>
<FILE_DESC>General Map Series inteface implemented by the Map Series object.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>IDSMapSeriesOptions.cls</FILE>
<URL>clsIDSMapSeriesOptions.htm</URL>
<FILE_DESC>Interface implemented by Map Series object. Contains series options.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>IDSMapSeriesProps.cls</FILE>
<URL>clsIDSMapSeriesProps.htm</URL>
<FILE_DESC>Interface implemented by Map Series Object. Contains general series properties.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>frmExport.frm</FILE>
<URL>frmExport.htm</URL>
<FILE_DESC>Form for exporting pages to a file of the chosen format.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>frmGridSettings.frm</FILE>
<URL>frmGridSettings.htm</URL>
<FILE_DESC>Form for creating/updating an index layer.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>frmMapSeries.frm</FILE>
<URL>frmMapSeries.htm</URL>
<FILE_DESC>Form containing the tree view for the TOC tab and the events on that object.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>frmMapSeriesWiz.frm</FILE>
<URL>frmMapSeriesWiz.htm</URL>
<FILE_DESC>Form for generating a Map Series based on user settings.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>frmPageIdentifier</FILE>
<URL>frmPageIdentifier.htm</URL>
<FILE_DESC>Form for specifying the type of page identifier to add.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>frmPageProperties.frm</FILE>
<URL>frmPageProperties.htm</URL>
<FILE_DESC>Form for displaying and updating the page properties.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>frmPrint.frm</FILE>
<URL>frmPrint.htm</URL>
<FILE_DESC>Form for specifying the output device when printing pages.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>frmProgress.frm</FILE>
<URL>frmProgress.htm</URL>
<FILE_DESC>Form containing the progess bar for the index layer generation commands.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>frmResources</FILE>
<FILE_DESC>Form containing the icons for 4 tools on the toolbar.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>frmSelectPages.frm</FILE>
<URL>frmSelectPages.htm</URL>
<FILE_DESC>Form for selecting pages to output.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>frmSeriesProperties.frm</FILE>
<URL>frmSeriesProperties.htm</URL>
<FILE_DESC>Form for displaying and updating the properties of the series.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>frmSMapSettings.frm</FILE>
<URL>frmSMapSettings.htm</URL>
<FILE_DESC>Form for generating an index layer based on a selected line features.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>modGeneralFunctions.bas</FILE>
<URL>basmodGeneralFunctions.htm</URL>
<FILE_DESC>Basic module containing routines used throughout the project.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>modGlobals.bas</FILE>
<URL>basmodGlobals.htm</URL>
<FILE_DESC>Basic module for dimensioning global variabiles and defining WinAPI routines.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>clsCreateGrids.cls</FILE>
<URL>clsCreateGrids.htm</URL>
<FILE_DESC>Class for generating new uniformed index layers.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>clsCreateStripMap.cls</FILE>
<URL>clsCreateStripMap.htm</URL>
<FILE_DESC>Class for generating a new index layer based on select line features.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>clsMapGridButton.cls</FILE>
<URL>clsMapGridButton.htm</URL>
<FILE_DESC>Class containing the implementation of ICommand for the generation of index layers.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>clsStripMapbutton.cls</FILE>
<URL>clsStripMapButton.htm</URL>
<FILE_DESC>Class containing the implementation of ICommand for generating an index layer from selected line features.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>CreateMapBook.cls</FILE>
<URL>clsCreateMapBook.htm</URL>
<FILE_DESC>Class for creating a new map series.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>DSMapBookBar.cls</FILE>
<URL>clsDSMapBookBar.htm</URL>
<FILE_DESC>Class for the Map Book toolbar.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>DSMapBookExt.cls</FILE>
<URL>clsDSMapBookExt.htm</URL>
<FILE_DESC>Class for the Map Book extension.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>DSMapBookTab.cls</FILE>
<URL>clsDSMapBookTab.htm</URL>
<FILE_DESC>Class for the Map Book Contents View (Tab).</FILE_DESC>
</ITEM>
<ITEM>
<FILE>GxFilter.cls</FILE>
<URL>clsGxFilter.htm</URL>
<FILE_DESC>Class for browsing for index layers to create/update.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>PageIdentifier.cls</FILE>
<URL>clsPageIdentifier.htm</URL>
<FILE_DESC>Class for creating local or global indicator frames on the layout.</FILE_DESC>
</ITEM>
<ITEM>
<FILE>tmpPageClass.cls</FILE>
<URL>clstmpPageClass.htm</URL>
<FILE_DESC>Class for holding page properties during the creation of a new series.</FILE_DESC>
</ITEM>
</DEVELOPENV>
</FILES>
<KEY_COCLASSES>
<COCLASS>Map</COCLASS>
<COCLASS>MapFrame</COCLASS>
<COCLASS>PageLayout</COCLASS>
</KEY_COCLASSES>
<KEY_INTERFACES>
<INTERFACE>IActiveView</INTERFACE>
<INTERFACE>IElementProperties</INTERFACE>
<INTERFACE>IExporter</INTERFACE>
<INTERFACE>IGraphicsContainer</INTERFACE>
<INTERFACE>IMap</INTERFACE>
<INTERFACE>IMapFrame</INTERFACE>
</KEY_INTERFACES>
<KEY_MEMBERS>
<MEMBER>IActiveView::Output</MEMBER>
<MEMBER>IElementProperties::Name</MEMBER>
<MEMBER>IExporter::Resolution</MEMBER>
<MEMBER>IGraphicsContainer::DeleteElement</MEMBER>
<MEMBER>IGraphicsContainer::Next</MEMBER>
<MEMBER>IMap::ClipGeometry</MEMBER>
<MEMBER>IMapFrame::Map</MEMBER>
</KEY_MEMBERS>
<OM_DIAGRAM/>
</SAMPLE>
</ARCOBJECTS>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -