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

gisoracle

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

公告

11 2019 档案

arcpy 重分类
摘要:或则 阅读全文

posted @ 2019-11-24 19:36 gisai 阅读(1029) 评论(0) 推荐(0)

pythonw.exe不能用
摘要:其实可以直接执行python目录下的Lib/idlelib/idle.bat即可,对于非安装版的python来说开始菜单是找不到启动快捷方式的。 阅读全文

posted @ 2019-11-24 16:40 gisai 阅读(1069) 评论(0) 推荐(0)

arcpy模块下的并行计算与大规模数据处理
摘要:一个多星期的时间,忍着胃痛一直在做GIS 540: Spatial Programming的课程项目,导致其他方面均毫无进展,可惜可惜。在这个过程当中临时抱佛脚学习了很多Python相关的其他内容,并应用在这次的项目当中(虽然大部分的尝试都失败了,也有不少问题需要之后寻求解决的方法)。在此稍微总结下 阅读全文

posted @ 2019-11-22 10:19 gisai 阅读(2046) 评论(0) 推荐(0)

Pyhton 单行、多行注释符号使用方法及规范
摘要:Pyhton 单行、多行注释符号使用方法及规范 阅读全文

posted @ 2019-11-22 08:51 gisai 阅读(967) 评论(0) 推荐(0)

NumPyArray
摘要:import arcpy import numpy # Create a simple array from scratch using random values myArray = numpy.random.random_integers(0,100,2500) myArray.shape = (50,50) # Convert array to a geodatabase raster... 阅读全文

posted @ 2019-11-15 22:09 gisai 阅读(186) 评论(0) 推荐(0)

python 日期
摘要:python datetime库使用和时间加减计算 来自:https://www.cnblogs.com/linkenpark/p/8079337.html datetime库使用 一、操作当前时间 1.获取当前时间 >>> import datetime >>> print datetime.da 阅读全文

posted @ 2019-11-08 19:36 gisai 阅读(227) 评论(0) 推荐(0)

关于解决'\u'开头的字符串转中文的方法
摘要:如果字符串是”\u70ed\u95e8\u94ed\u6587\u63a8\u8350”这种形式的字符串: python3的解决办法:字符串.encode(‘utf-8’).decode(‘unicode_escape’) python2:字符串.decode(‘unicode_escape’) 转 阅读全文

posted @ 2019-11-08 19:03 gisai 阅读(2273) 评论(0) 推荐(0)

python 输出‘\xe8\xb4\x9d\xe8\xb4\x9d’, ‘\xe6\x99\xb6\xe6\x99\xb6’, ‘\xe6\xac\xa2\xe6\xac\xa2’]
摘要:如上代码块,结果输出为: [‘\xe8\xb4\x9d\xe8\xb4\x9d’, ‘\xe6\x99\xb6\xe6\x99\xb6’, ‘\xe6\xac\xa2\xe6\xac\xa2’] 北京欢迎您! 该怎么解决以上pycharm中的中文列表输出的编码问题呢? 其实,只需将代码中的‘prin 阅读全文

posted @ 2019-11-07 22:31 gisai 阅读(1077) 评论(0) 推荐(0)

Python ( )、[ ]、{}的区别
摘要:python语言最常见的括号有三种,分别是:小括号( )、中括号[ ]和大括号也叫做花括号{ },分别用来代表不同的python基本内置数据类型。 如果要创建一个字典列表,如下: 阅读全文

posted @ 2019-11-07 20:14 gisai 阅读(3481) 评论(0) 推荐(0)

arcpy SearchCursor sql_clause
摘要:import arcpy fc = 'c:/data/base.gdb/well' fields = ['WELL_ID', 'WELL_TYPE'] # Use ORDER BY sql clause to sort field values for row in arcpy.da.SearchCursor( fc, fields, sql_clause=(None, 'ORD... 阅读全文

posted @ 2019-11-04 08:07 gisai 阅读(706) 评论(0) 推荐(0)

python TypeError: unsupported operand type(s) for +: 'geoprocessing value object' and 'str'
摘要:TypeError: unsupported operand type(s) for +: 'geoprocessing value object' and 'str' if self.params[0].value: mypath=self.params[0].value # cpath=mypath+os.sep+dataset ar... 阅读全文

posted @ 2019-11-03 11:59 gisai 阅读(579) 评论(0) 推荐(0)

arcgis python 获得arcgis的版本和安装路径
摘要:install:desktopSourceDir : G:\setup\arcgis10.2.2\arcgis10.2.2\ArcGIS_Desktop_1022_140090\Desktop\SetupFiles\InstallDate : 2019.07.19InstallDir : c:\pr 阅读全文

posted @ 2019-11-02 20:42 gisai 阅读(1225) 评论(0) 推荐(0)

arcgis python 异常处理
摘要:import arcpy in_features = "c:/base/transport.gdb/roads" try: # Note: CopyFeatures will always fail if the input and output are # the same feature class arcpy.CopyFeatures_management(in_features, in_f 阅读全文

posted @ 2019-11-01 20:49 gisai 阅读(1411) 评论(0) 推荐(0)

arcpy显示指定表的索引属性
摘要:import arcpy feature_class = "c:/data/well.shp" # Create a list of indexes using the ListIndexes function indexes = arcpy.ListIndexes(feature_class) # Iterate through the list of indexes for index in 阅读全文

posted @ 2019-11-01 17:33 gisai 阅读(280) 评论(0) 推荐(0)

env (arcpy)
摘要:(读写) 设置是否应将工具产生的输出数据集添加至应用程序显示。 (读写) 支持“自动提交”环境的工具将在 ArcSDE 事务中进行指定次数的更改后强制执行提交。 了解有关 autoCommit 的详细信息 (读写) 支持“制图坐标系”环境的工具将使用指定的坐标系来确定进行计算时要素的大小、范围和空间 阅读全文

posted @ 2019-11-01 17:31 gisai 阅读(906) 评论(0) 推荐(0)

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