kikita & Maps

GIS,spatial and artificial intellegence learning and share

在ArcMap中,在表中新建一个字段,用于存储新的十进制度值,使用字段计算器和 VB 脚本实现。

如下示例,其中,假设 Latitude 是表中存储 DMS 纬度值字段的名称,经纬度数据中的度分秒三个数据是以空格分隔。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Dim Degrees
Dim Minutes
Dim Seconds
Dim DMS
Dim DD

DMS = Split([Latitude])
Degrees = CDbl(DMS(0))
Minutes = CDbl(DMS(1))
Seconds = CDbl(DMS(2))
If Degrees < 0 Then
DD = -(Seconds/3600) - (Minutes/60) + Degrees
Else
DD = (Seconds/3600) + (Minutes/60) + Degrees
End If

PS:使用到的VBScript 函数:

(1)Split

Split(expression[,delimiter[,count[,compare]]])

(2)CDbl

CDbl 函数可把表达式转换为双精度(Double)类型。

结果示例:

Read more »

    日常我们会碰到有很多根据已知采样点生成等值面、等值线的需求,。由散点采样值估算相应区域,我们一般会想到插值,这样就获得了这个区域的连续表面。

    在ArcGIS中,插值的方法较多,主要有两个扩展模块的功能可以选用。一般情况下可以选择 Spatial Analyst 工具箱中,IDW,Kriging等方法进行插值。如果有更加复杂的参数设置和更加专业深入的插值分析,可以使用 Geostatistical Analyst,这里暂不赘述。

              

    这里以IDW插值为例,简述等值面、等值线的生成。


一、采样点插值

例如获取了如下一组点的臭氧浓度的采样值:

使用 IDW 工具,设置输入数据,插值使用的字段,搜索半径等参数,获得栅格表面。

Read more »

在导入 ArcPy 之后,可以运行随 ArcGIS 安装的标准工具箱中的所有地理处理工具。

import arcpy


1.导入整个模块

模块通常是一个包含函数和类的 Python 文件。

ArcPy 包括数据访问模块 (arcpy.da)、制图模块 (arcpy.mapping)、ArcGIS Spatial Analyst 扩展模块模块 (arcpy.sa) 和 ArcGIS Network Analyst 扩展模块模块 (arcpy.na)。

1
import arcpy.mapping

Python 的核心 os 和 sys 模块,也可使用此命令。例如:

1
2
import os
import sys

Read more »

通过 “Data Driven Page” 可以基于单个地图文档,快速创建一系列布局页面。按照图层中的各个索引要素,将地图分割为多个部分,分别生成相应的地图。

可见,索引要素是决定地图出图的重要部分,常见的索引方式,例如:网格索引,带状索引等等。

Data Driven Page 工具条上的设置,主要也是来配置索引图层,那索引图层如何制作?

 

ArcGIS 提供了一系列制作和准备 Data Driven Page 的 GP工具。

Read more »

许多用户在 ArcGIS 9.2 时代习惯于使用 Sketchup 插件,但是,9.2版本已经结束了他的使命,进入了退休列表,已往的交互方法不再推荐。

在 ArcGIS 10 之后不再使用这个插件,而且给了其他的思路。

如下是官方说明中的原文:


What is the recommended workflow between SketchUp and ArcGIS?

The ArcGIS SketchUp plug-in is no longer supported at ArcGIS 10. The recommended workflow is now as follows:

  1. Digitize in your polygon.
  2. Extrude it by an attribute in 3D.
  3. Convert it to a multipatch using Layer 3D to Feature Class.
  4. Export it to COLLADA using MPatch to COLLADA.
  5. Import/Edit in SketchUp (e.g., textures, pitched roof, etc.).
  6. Then use the edit environment to replace the mpatch feature with the new SKP model.

链接:http://www.esri.com/software/arcgis/extensions/3danalyst/technical-information/common-questions



Read more »
0%