Neighborhood Selection (Geostatisical Analyst)

ライセンス レベル:BasicStandardAdvanced

サマリ

Creates a layer of points based on a user-defined neighborhood.

Neighborhood Selection tool dialog
The output layer contains the selection set of 20 (blue) points.

The input point feature class contains all the red and blue points. You want to create a selection of points around the red star based on a circular neighborhood. The output layer contains the selection set of 20 (blue) points.

使用法

構文

GANeighborhoodSelection_ga (in_dataset, out_layer, point_coord, neighbors_max, neighbors_min, minor_semiaxis, major_semiaxis, angle, {shape_type})
パラメータ説明データ タイプ
in_dataset

Points used to create a neighborhood selection.

Feature Layer
out_layer

Layer to store the neighborhood selection.

Feature Layer
point_coord

The neighborhood center's x,y coordinate.

Point
neighbors_max

The number of points to use in each sector. If a sector has the required number of points, all points in that sector are used.

Long
neighbors_min

The minimum number of points to use in each sector. If the minimum number of required points are not available in any given sector, the nearest available point outside the sector will be selected.

Long
minor_semiaxis

Size of the minor semiaxis of the search neighborhood.

Double
major_semiaxis

Size of the major semiaxis of the search neighborhood.

Double
angle

The angle of rotation of the neighborhood axis.

Double
shape_type
(オプション)

The geometry of the neighborhood.

  • ONE SECTOR Single ellipse
  • FOUR SECTORS Ellipse divided into four sectors
  • FOUR SECTOR SHIFTED Ellipse divided into four sectors and shifted 45 degrees
  • EIGHT SECTORS Ellipse divided into eight sectors
String

コードのサンプル

NeighborhoodSelection example 1 (Python window)

Create a feature layer based on some neighborhood criteria.

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 example 2 (stand-alone script)

Create a feature layer based on some neighborhood criteria.

# 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 for Desktop Basic: 次のものが必要 Geostatistical Analyst
ArcGIS for Desktop Standard: 次のものが必要 Geostatistical Analyst
ArcGIS for Desktop Advanced: 次のものが必要 Geostatistical Analyst
9/14/2013