• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录

gisoracle

  • 博客园
  • 联系
  • 订阅
  • 管理

公告

2011年5月27日

AddError raise AddMessage

摘要: class LicenseError(Exception): passimport arcpyfrom arcpy import envtry: if arcpy.CheckExtension("3D") == "Available": arcpy.CheckOutExtension("3D") else: # Raise a custom exception # raise LicenseError env.workspace = "D:/GrosMorne" arcpy.HillShade_3d("W 阅读全文

posted @ 2011-05-27 12:32 gisai 阅读(214) 评论(0) 推荐(0)

arcgis python try异常处理

摘要: try: # Execute the Buffer tool # arcpy.Buffer_analysis("c:/transport/roads.shp", "c:/transport/roads_buffer.shp")except Exception as e: print e.message # If using this code within a script tool, AddError can be used to return messages # back to a script tool. If not, AddError wil 阅读全文

posted @ 2011-05-27 12:22 gisai 阅读(380) 评论(0) 推荐(0)

C# AE如何做一个工具放到工具箱中Arctoolbox,在Arctoolbox中调用

该文被密码保护。 阅读全文

posted @ 2011-05-27 11:45 gisai 阅读(4) 评论(0) 推荐(0)

相对脚本位置查找数据

摘要: 相对脚本位置查找数据import arcpyimport osimport sys# Get the pathname to this script#scriptPath = sys.path[0]arcpy.AddMessage("Script folder: " + scriptPath)# Get the pathname to the ToolShare folder#toolSharePath = os.path.dirname(scriptPath)arcpy.AddMessage("ToolShare folder: " + toolSha 阅读全文

posted @ 2011-05-27 11:34 gisai 阅读(157) 评论(0) 推荐(0)

arcgis 10 Con使用

摘要: # Name: Con_Ex_02.py# Description: Performs a conditional if/else evaluation # on each cell of an input raster.# Requirements: Spatial Analyst Extension# Author: ESRI# Import system modulesimport arcpyfrom arcpy import envfrom arcpy.sa import *# Set environment settingsenv.workspace = "F:/temp/ 阅读全文

posted @ 2011-05-27 11:31 gisai 阅读(1444) 评论(0) 推荐(0)

arcgis10寻宝 使用一个图层切割一个数据集下所有数据

摘要: arcgis10寻宝 使用一个图层切割一个数据集下所有数据 阅读全文

posted @ 2011-05-27 09:54 gisai 阅读(1408) 评论(0) 推荐(0)

arcgis10 帮助寻宝 输出属性到html

摘要: arcgis10 帮助寻宝 输出属性到html 阅读全文

posted @ 2011-05-27 09:41 gisai 阅读(358) 评论(0) 推荐(0)

 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3