フォルダを介した空間結合の繰り返しを試みています。次に、最初の空間結合の2番目の空間結合を繰り返します。ArcPyを使用した空間結合のパラメータの認識エラー
これは私の最初のスクリプトです:
import arcpy, os, sys, glob
'''This script loops a spatial join through all the feature classes
in the input folder, then performs a second spatial join on the output
files'''
#set local variables
input = "C:\\Users\\Ryck\\Test\\test_Input"
boundary = "C:\\Users\\Ryck\\Test\\area_Input\\boundary_Test.shp"
admin = "C:\\Users\\Ryck\\Test\\area_Input\\admi_Boundary_Test.shp"
outloc = "C:\\Users\\Ryck\\Test\\join_02"
#overwrite any files with the same name
arcpy.env.overwriteOutput = True
#perform spatial joins
for fc in input:
outfile = outloc + fc
join1 = [arcpy.SpatialJoin_analysis(fc,boundary,outfile) for fc in
input]
for fc in join1:
arcpy.SpatialJoin_analysis(fc,admin,outfile)
私はError00732受信し続ける:ターゲットの特徴:データセットCが存在しないか、サポートされていません。
これは単純なエラーだと確信していますが、このエラーを解決するためにこれまでに推奨されていたソリューションでは、結果を自分のフォルダに出力することはできません。任意の提案を事前に
おかげで
ArcPyについては、[gis.se] Stack Exchangeで研究/尋ねる方がはるかに良いと思います。 – PolyGeo
@ PolyGeo謝罪します。私は今これを理解している。方向をありがとう。 – beauxgeo