GA Layer To Contour (Geostatisical Analyst)
サマリ
Creates a feature class of coutours from a geostatiscal analysis layer. The output feature class can be either a line feature class of contour lines or a polygon feature class of filled contours.
使用法
For data formats that support Null values, such as file and personal geodatabase feature classes, a Null value will be used to indicate that a prediction could not be made for that location or that the value showed be ignored when used as input. For data formats that do not support Null values, such as shapefiles, the value of -1.7976931348623158e+308 is used (this is the negative of the C++ defined constant DBL_MAX) to indicate that a prediction could not be made for that location.
構文
パラメータ | 説明 | データ タイプ |
in_geostat_layer |
The geostatistical layer to be analyzed. | Geostatistical Layer |
contour_type |
Type of contour to represent the geostatistical layer.
| String |
out_feature_class |
The output feature class will either be a polyline or a polygon, depending on the selected Contour type. | Feature Class |
contour_quality (オプション) |
Determines the smoothness of contour line representation.
| String |
コードのサンプル
Export a geostatistical layer to a contour feature class.
import arcpy
from arcpy import env
env.workspace = "C:/gapyexamples/data"
arcpy.GALayerToContour_ga("C:/gapyexamples/data/kriging.lyr", "Contour",
"C:/gapyexamples/output/krig_cont", "Presentation")
Export a geostatistical layer to a contour feature class.
# Name: GALayerToContour_Example_02.py
# Description: Exports a geostatistical layer to contours.
# Requirements: Geostatistical Analyst Extension
# Import system modules
import arcpy
# Set environment settings
arcpy.env.workspace = "C:/gapyexamples/data"
# Set local variables
inLayer = "C:/gapyexamples/data/kriging.lyr"
contType = "Contour"
outCont = "C:/gapyexamples/output/krig_cont"
contQuality = "Presentation"
# Check out the ArcGIS Geostatistical Analyst extension license
arcpy.CheckOutExtension("GeoStats")
# Execute GALayerToContour
arcpy.GALayerToContour_ga(inLayer, contType, outCont, contQuality)