gis
gis
管理员
管理员
  • 注册日期2003-07-16
  • 发帖数15951
  • QQ
  • 铜币25345枚
  • 威望15368点
  • 贡献值0点
  • 银元0个
  • GIS帝国居民
  • 帝国沙发管家
  • GIS帝国明星
  • GIS帝国铁杆
阅读:1855回复:3

DSMapBook[高难度代码下载]

楼主#
更多 发布于:2003-11-12 16:21
这个例子对于要在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编辑过]
喜欢0 评分0
GIS麦田守望者,期待与您交流。
shu2000
路人甲
路人甲
  • 注册日期2003-10-12
  • 发帖数44
  • QQ
  • 铜币220枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2003-11-15 05:01
thanks
举报 回复(0) 喜欢(0)     评分
gis1117
  • 注册日期
  • 发帖数
  • QQ
  • 铜币
  • 威望
  • 贡献值
  • 银元
2楼#
发布于:2003-11-21 20:30
可惜啊!
举报 回复(0) 喜欢(0)     评分
eeleo_Lion
论坛版主
论坛版主
  • 注册日期2003-11-29
  • 发帖数1798
  • QQ
  • 铜币551枚
  • 威望0点
  • 贡献值0点
  • 银元0个
3楼#
发布于:2004-08-15 23:14
very strong
人生得意须尽欢,莫使金樽空对月。 天生我材必有用,千金散尽还复来。
举报 回复(0) 喜欢(0)     评分
tbs111
路人甲
路人甲
  • 注册日期2007-04-26
  • 发帖数1
  • QQ
  • 铜币106枚
  • 威望0点
  • 贡献值0点
  • 银元0个
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>
举报 回复(0) 喜欢(0)     评分
游客

返回顶部