今天遇到的几个关于ArcGIS的问题,版本9.3,系统win 7 (很抱歉以下中英混合的文字给您阅读带来可能的不便)
1. 东德西德合并前各自的shapefile
INPUT: a shape file of German states, DEU_admin1.shp. 这个文件可在www.gadm.org下载。
STEP1: 增加一列attribute区分哪个州在东德哪个州在西德:ArcToolbox->Data Management Tool->Fields->Add Field 。 设Field name为 E_W, Editor toolbar->Start Editing 打开attribute table,编辑E_W的值,0表示东德 1表示西德 (也可以从其他数据库文件导入)。
STEP2: ArcToolbox->Data Management Tool->Generalization->Dissolve 。 对话框中Dissolve Fields选E_W,statistics fields可以选择要保留的属性列,非数值类型的列,在statistic type中选LAST或者FIRST就好。OK确定。
STEP3: 现在显示的地图就是东德西德同时出现的地图。如果需要其中某一个,删除其中的一部分就得到剩余部分,保存即可。
2. 苏联,南斯拉夫,捷克斯洛伐克解体前的世界地图
The procedure is similar to the above section on former East and West Germany.
INPUT: the shape file of the current world, world.shp
STEP1: add an additional attribute column indicating the former Soviet Union, Yugoslavia and Czechoslovakia. In my case, I added a field called 'FORMER' and copy the values in the 'ISO2DIGIT' field to this new field. (ArcToolbox->Data Management Tool->Fields->Calculate Field), and change the FORMER values of succeeding countries. For instance, for Czech and Slovakia, I put a value called 'ZZ' to replace 'CZ' and 'SK' for Czech and Slovakia respectively.
STEP2: Dissovle by the values of 'FORMER' and keep the field 'ISO2DIGIT' by selecting statistic type 'LAST'
STEP3: open the attribute table, and change the values of ISO2DIGIT for the former countries to be any value you prefer, e.g. ZZ for Czechoslovakia, YY for Yugoslavia and XX for USSR.
3. 80年代的世界地图
So far, we have a shapefile of world with USSR, Yugoslavia and Czechoslovakia, and now we need to put the East and West Germany into it.
INPUT: the shapefiles generated from section 1 and 2
STEP1: open the new shapefile of the world in section 2, and delete the row representing Germany.
STEP2: open the shapfile of East and West Germany, and add a field called ISO2DIGIT in its attribute table. Add a value to this field, e.g., DX for East Germany and DE for West Germany.
STEP3: ArcToolbox->Data Management Tool->General->Append. Input Dataset 选择 section1最后生成的DEU_admin1.shp, Target Dataset选择step1删除德国后的world.shp。 Schema Type选择NO_TEST, Field Map选择field : ISO2DIGIT. 确定即可。
4. 从shapefile生成ArcInfo generate format
关于此文件格式的说明,参见 http://courses.washington.edu/gis250/lessons/data_export/index.html#generate
有很多工具可以生成此种格式文件,这里通过ArcInfo workstation的命令行界面,使用shapearc生成。
STEP1: start menu in windows -> ArcInfo workstation -> Arc 然后出现一个dos界面,开头是Arc:
STEP2:
change directories to where your input files exist, e.g.
Arc:
&workspace X:\data
查看当前workspace的路径:
Arc: &show &workspace
查看当前路径的文件
Arc:
&sys dir
STEP3: 生成converage 文件和generate format
Arc: shapearc <
in_shape_file > < out_cover > {out_subclass}
e.g., 要产生polygon类型的coverage文件
Arc: shapearc world world_coverage poly
Arc: clean world_coverage (this step is to fix topology errors)
Arc: ungenerate poly world_coverage world.gen
最后world.gen就是generate format的文件
分享到:
相关推荐
ArcGIS Siverlight API 扩展:将GraphicsLayer/FeatureLayer导出为ShapeFile
中国详细shapefile文件省市县镇村全都包括!中国详细shapefile文件省市县镇村全都包括!中国详细shapefile文件省市县镇村全都包括!
JS2Shapefile JS2Shapefile是一个Javascript类,可直接在浏览器中创建ESRI shapefile。 它还包括几个帮助程序类,用于在不完全受支持的浏览器(Chrome以外的任何浏览器)中创建和保存二进制数据。 它由哈里·...
基于ArcGIS Python的Shapefile批量合并方法实现与工具设计
中国详细shapefile文件省市县镇村全都包括!中国详细shapefile文件省市县镇村全都包括!中国详细shapefile文件省市县镇村全都包括!
用c#语言读取ESRI公司的shapefile格式文件
ESRI shapefile 白皮书
将一个文件夹下多个ShapeFile合并至一个GDB,适合分幅的ShapeFile数据的合并,图层没有使用插入,图层存在时使用追加模式。
全国行政区划的shapefile,供测试使用,本数据自网上下载,由本数据引发的所有问题请自行负责。
shapefile.js包,通过file标签读取文件后,通过引用shapefile.js解析,添加到地图
将ArcGIS Server服务图层导出为shapefile。 安装 npm install -g shapefile-ags 用法 shapefile-ags <map> [options] 导出所有功能的简单示例: shapefile-ags ...
世界地图的shapefile文件,适合应用于解析shapefile程序的测试
shapefile.js可读取shp文件
Shapefile文件(简称SHP)作为ESRI一种经典的数据格式,被很多其他软件所支持,如CAD、MapGIS等,虽然也有一些限制(如无法进行拓扑分析、字段长度为10个字符等),但其仍然是广泛使用的空间数据格式。 用得多了,...
美国全国地区的shapefile文件,里面有三级文件,最小的各个区,在ArcGIS中非常实用。
<groupId>org.geotools <artifactId>gt-shapefile ${geotools.version} 依赖的jar包下载
3. ShapefileReader 类: ShapefileReader 类是用于读取 ShapeFile 文件的 Java 类,它提供了两个构造函数,一个用于从文件路径读取,另一个用于从 URL 读取。 4. DbfNet 类: DbfNet 类是用于读取 .dbf 文件的 Java...
该文件包涵全国的铁路shapefile文件
压缩包内容:安装包+测试数据 软件功能:将宗地数据的图形和属性转为shapefile数据库文件,完成dwg数据的入库工作。 图形要求:DWG宗地线的图层为JZD,线内包含扩展属性“YBZDH”且值不能为空
shapefile, 一个用于 ESRI Shapefile空间数据格式的跨平台流 流Shapefile解析器在 node 中:var shapefile = require("shapefile");shapefile.open("example.shp"). then(source => s