HowTo:  Check validity of features for all feature classes in a database

相关信息
Article ID: 40608
Software:
ArcSDE 10, 10.1
ArcGIS - ArcEditor 10
ArcGIS - ArcInfo 10
ArcGIS - ArcView 10
ArcGIS for Desktop Advanced 10.1
ArcGIS for Desktop Standard 10.1
ArcGIS for Desktop Basic 10.1
Platforms:
Windows XP, Server 2003, Vista, Server 2008, Windows 7
RHEL 4, 5, 6

问题描述
GIS administrators sometimes need to perform quality assurance checks for the validity of features.

Instructions provided describe an example of how to use a Python script to do this for all the feature classes in a database.
已邀请:

EsriSupport

赞同来自:

解决方案
  1. Modify the following parameters according to the appropriate environment for the Python script in Step 2:
    A) Set the workspace equal to the spatial database connection: arcpy.env.workspace = r"Database Connections\sde_geodatabase.sde" 
  2. B) Give the logName parameter a name: logName = "FeatureInfo.txt"
  3. C) Set a file location for the output log file for parameter logWorkspace: logWorkspace = r"C:\logs" 
  4. D) Set the direct connect string or application service connection port for the instance parameter: instance = 'sde:oracle10g:ora10gr2'
  5. E) Set the user: user = 'sde' 
  6. F) Set the password: psswd = 'sde'

 

创建及修改时间
Created: 10/16/2012

Last Modified: 7/12/2013
原文链接
http://support.esri.com/en/kno ... 40608

要回复问题请先登录注册