fishnet

所属分类:GIS/地图编程
开发工具:VBA
文件大小:44KB
下载次数:37
上传日期:2010-11-04 21:25:46
上 传 者445011161
说明:  Arcgis中生成格网的程序,可生成shp图层的代码
(Arcgis grid generated in the program, the code can be generated shp layer)

文件列表:
fishnet\Code\Fishnet.NET\_UpgradeReport.htm (154144, 2007-07-24)
fishnet\Code\Fishnet.NET\Fishnet.log (53196, 2007-07-24)
fishnet\Fishnet.dll (73728, 2003-04-19)
fishnet\Code\Fishnet.lib (2596, 2003-04-14)
fishnet\Code\Fishnet.NET\_UpgradeReport_Files (0, 2007-07-24)
fishnet\Code\Fishnet.NET\bin (0, 2007-07-24)
fishnet\Code (0, 2007-07-24)
fishnet\Code\Fishnet.NET\obj\Debug (0, 2007-07-24)
fishnet (0, 2007-07-24)
fishnet\Code\Fishnet.NET\My Project (0, 2007-07-24)
fishnet\Code\Fishnet.NET\obj (0, 2007-07-24)
fishnet\Code\Fishnet.NET\obj\Debug\TempPE (0, 2007-07-24)
fishnet\Code\Fishnet.NET\obj\Debug\Fishnet.vbproj.ResolveComReference.cache (791, 2007-07-24)
fishnet\Code\clsFishnet.cls (1656, 2003-04-18)
fishnet\Code\Fishnet.NET\_UpgradeReport_Files\UpgradeReport.css (6069, 2007-07-24)
fishnet\Code\Fishnet.exp (968, 2003-04-14)
fishnet\Code\frmInput.frm (24234, 2003-04-19)
fishnet\Code\frmInput.frx (1750, 2003-04-19)
fishnet\Code\Fishnet.NET\Fishnet.ico (766, 2007-07-24)
fishnet\Code\Fishnet.NET (0, 2007-07-24)
fishnet\Code\Fishnet.NET\frmInput.resX (8602, 2007-07-24)
fishnet\Code\Fishnet.NET\Fishnet.suo (2560, 2007-07-24)
fishnet\Code\Fishnet.NET\Fishnet.vbproj.user (1618, 2007-07-24)
fishnet\Code\Fishnet.NET\AssemblyInfo.vb (911, 2007-07-24)
fishnet\Code\Fishnet.NET\clsFishnet.vb (2727, 2007-07-24)
fishnet\Code\Fishnet.NET\frmInput.Designer.vb (27377, 2007-07-24)
fishnet\Code\Fishnet.NET\frmInput.vb (44496, 2007-07-24)
fishnet\Code\Fishnet.vbp (1084, 2003-04-19)
fishnet\Code\Fishnet.NET\Fishnet.vbproj (5584, 2007-07-24)
fishnet\Code\Fishnet.vbw (87, 2003-04-19)
fishnet\Code\Fishnet.NET\_UpgradeReport_Files\UpgradeReport_Minus.gif (69, 2007-07-24)
fishnet\Code\Fishnet.NET\_UpgradeReport_Files\UpgradeReport_Plus.gif (71, 2007-07-24)

Fishnet This command allows you to create a new shapefile that is composed of many identical sized cells. The shapefile will look like a fishnet of square or rectangular cells. One common use is to create an index grid. To install the Fishnet command: 1) Unzip the download file to a safe location that will not be deleted. 2) Start ArcMap or ArcCatalog (the command works in either program, or in both). 3) Click the Tools menu, then select Customize. 4) Click Add from file. 5) Navigate to the folder where you placed Fishnet.dll. 6) Select Fishnet.dll and click Open. 7) Click OK to the Added Objects dialog. 8) Click the Commands tab in the Customize dialog. 9) In the Categories box, select Developer Samples. 10) In the Commands box, select Fishnet. 11) Drag and drop the Fishnet command onto any toolbar. 12) Close the Customize dialog. This command has been tested at version 8.2 and onwards. It has not been tested at earlier versions, and may not work. To use the Fishnet command: 1) Click the Fishnet command. 2) Enter values for the first 6 text boxes. Specify the X and Y coordinates of the lower-left corner of the fishnet, then the number of rows and columns you want, as well as the width and height of each cell. 3) Click the Browse button in the 'Specify Output Shapefile' area. 4) Specify the folder and name of the new shapefile, then click Save. 5) If you know the coordinate system of the fishnet, click the Edit button in the 'Coordinate System' area, and then specify the coordinate system. The coordinate system will be the same as the numbers you entered into the first 6 text boxes. If you do not know the coordinate system, leave it as "Unknown". 6) Choose Polygons or Lines for the output shapefile. Polygon shapefiles will have a field called Col_Row, which indicates the column and row of each cell. For example, "12 - 38" means this polygon is in the 12th column, and is also in the 38th row (counting from the upper-left corner of the fishnet). Line shapefiles will not have this field since it would have little meaning. 7) Uncheck 'Create Spatial Index' if you are sure you do not want the output shapefile to have a spatial index. Large fishnet shapefiles will draw many times faster when panning and zooming if you allow the spatial index to be created. 8) Click OK. If you are running the command in ArcMap, the new shapefile will be added to the active data frame and ArcMap will also zoom to it. If you are in ArcCatalog, you may have to run the Refresh command to see the new shapefile. On my computer (256 MB RAM), it took a little more than 8 minutes to create a fishnet with 1,000,000 polygons. By contrast, it only took 2 seconds to make the same sized fishnet with lines. The largest polygon shapefile I made had 50 million polygons, and was 3 GB in size. The spatial index could not be created, and a shapefile of this size without a spatial index is not usable. The same sized fishnet made with lines was only 1.6 MB. Polygon shapefiles will be several thousand times larger, so you should choose lines if you are making a large fishnet, and you do not need polygons. The command has a Progress indicator, so you will always know how things are progressing if you make a large fishnet. You can cancel at any time, and the command will delete the partially created shapefile. All of the source code is supplied in the sub-folder called Code, in case you want to modify it. You can safely delete the entire Code folder if you do not want it.

近期下载者

相关文件


收藏者