阅读:1855回复:3
DSMapBook[高难度代码下载]
这个例子对于要在ao中实现打印,网格生成等功能的兄弟,不看就太可惜了,很very strong的一个例子,看后心潮澎湃啊!推荐!
Description: 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. 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. For more specific information on using the sample, please see the Map Book Generation.doc file included with the code. Options on the toolbar include: Create Map Book - Generate a new Map Series based on your index layer. Add Identifier Frame - Add Local or Global Indicator frames to show the position of the page/tile in reference to the other tiles. Create/Update Map Grids - Generate or Update index layers based on a uniformed grid. Create Stripmap Grids - Generate an index layer based on a continuous set of selected line features. 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. In the code section below, the first 8 items are from the DsMapBookPrj project, while the remaining items are from the DSMapBookUIPrj. How to use: 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. 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. Open the Map Book Generation.doc file included with the code and follow the procedures to create and output a map book. Application: ArcMap Requires: Index layer and other data Difficulty: Advanced 下载地址: http://arcobjectsonline.esri.com/arcobjectsonline/samples/arcmap/map%20production/ds%20map%20book/dsmapbook.zip [此贴子已经被作者于2003-11-12 16:30:55编辑过]
|
|
|
1楼#
发布于:2003-11-15 05:01
thanks
|
|
3楼#
发布于:2004-08-15 23:14
very strong
|
|
|
4楼#
发布于:2007-11-25 21:16
<P>根据下载的地址,下载不了啊.楼主可否方便把代码发给我啊?</P>
<P><a href="mailttangbishiyuquan@yahoo.com.cn" target="_blank" >tangbishiyuquan@yahoo.com.cn</A></P> <P>谢谢 </P> |
|