ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • 帮助
  • Sign Out
ArcGIS Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS Desktop

全面的专业性 GIS

ArcGIS Enterprise

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

ArcMap

  • 主页
  • 入门
  • 地图
  • 分析
  • 管理数据
  • 工具
  • 扩展模块

邻域选择

需要 Geostatistical Analyst 许可。

  • 摘要
  • 用法
  • 语法
  • 代码示例
  • 环境
  • 许可信息

摘要

基于用户定义的邻域创建点图层。

邻域选择工具对话框
输出图层包含具有 10 个蓝色选中点的选择集。

例如,您可能要在输入点所定义的位置周围的圆形邻域创建点选择范围。上图显示了输出结果处于该圆形内的 10 个蓝色点。

用法

  • 在检查不同的搜索邻域时,该工具可与插值工具结合使用。

语法

GANeighborhoodSelection_ga (in_dataset, out_layer, point_coord, neighbors_max, neighbors_min, minor_semiaxis, major_semiaxis, angle, {shape_type})
参数说明数据类型
in_dataset

用于创建邻域选择的点。

Feature Layer
out_layer

存储邻域选择的图层。

Feature Layer
point_coord

邻域中心的 x,y 坐标。

Point
neighbors_max

每个扇区中所要使用的点数。如果某个扇区具有所需点数,则使用该扇区中的所有点。

Long
neighbors_min

每个扇区中所要使用的最小点数。如果任何指定扇区中的点数都没有达到所需的最小值,则会选择扇区之外最近的可用点。

Long
minor_semiaxis

搜索邻域短半轴的尺寸。

Double
major_semiaxis

搜索邻域长半轴的尺寸。

Double
angle

邻域轴的旋转角度。

Double
shape_type
(可选)

邻域的几何。

  • ONE_SECTOR — 单个椭圆
  • FOUR_SECTORS — 分为四个扇区的椭圆
  • FOUR_SECTORS_SHIFTED — 分为四个扇区且偏移 45 度的椭圆
  • EIGHT_SECTORS — 分为八个扇区的椭圆
String

代码示例

NeighborhoodSelection 示例 1(Python 窗口)

基于某项邻域标准创建要素图层。

import arcpy
from arcpy import env
env.workspace = "C:/gapyexamples/data"
arcpy.GANeighborhoodSelection_ga("ca_ozone_pts", "outNS", "-2000000 -50000", 
                                 "20", "5","200000", "200000", "0", "One sector")
NeighborhoodSelection 示例 2(独立脚本)

基于某项邻域标准创建要素图层。

# Name: NeighborhoodSelection_Example_02.py
# Description: Creates a layer of points based on a user-defined neighborhood.
# Requirements: Geostatistical Analyst Extension

# Import system modules
import arcpy

# Set environment settings
arcpy.env.workspace = "C:/gapyexamples/data"

# Set local variables
inPoints = "ca_ozone_pts.shp"
outLayer = "outNS"
pointCoord = "-2000000 -50000"
maxNeighbors = 20
minNeighbors = 5
majSemiaxis = 200000
minSemiaxis = 200000
angle = 0
shape = "One Sector"

# Check out the ArcGIS Geostatistical Analyst extension license
arcpy.CheckOutExtension("GeoStats")

# Execute NeighborhoodSelection
arcpy.GANeighborhoodSelection_ga(inPoints, outLayer, pointCoord, maxNeighbors,
                                 minNeighbors, majSemiaxis, minSemiaxis, angle,
                                 shape)

环境

  • 当前工作空间

许可信息

  • ArcGIS Desktop Basic: 需要 地统计分析
  • ArcGIS Desktop Standard: 需要 地统计分析
  • ArcGIS Desktop Advanced: 需要 地统计分析

相关主题

  • Geostatistical Analyst 实用工具工具集概述

ArcGIS Desktop

  • 主页
  • 文档
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • Esri 博客
  • 用户大会
  • 开发者峰会
Esri
分享您的想法。
Copyright © 2019 Esri. | 隐私政策 | 法律声明