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

gisoracle

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

公告

随笔分类 -  python

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页

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

posted @ 2019-11-22 08:51 gisai 阅读(961) 评论(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 阅读(184) 评论(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 阅读(223) 评论(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 阅读(1074) 评论(0) 推荐(0)

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

posted @ 2019-11-07 20:14 gisai 阅读(3474) 评论(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 阅读(702) 评论(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 阅读(574) 评论(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 阅读(1216) 评论(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 阅读(1398) 评论(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 阅读(278) 评论(0) 推荐(0)

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

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

arcgis python 拓扑规则
摘要:面 Must Not Have Gaps (Area) | Must Not Overlap (Area) 面面 | Must Be Covered By Feature Class Of (Area-Area) | Must Cover Each Other (Area-Area) | Must 阅读全文

posted @ 2019-10-30 18:27 gisai 阅读(542) 评论(0) 推荐(0)

字段修改名称
摘要:把a1修改为a2 arcpy.AlterField_management("图框_point", 'a1', 'a2', 'a2别名') 阅读全文

posted @ 2019-10-28 07:48 gisai 阅读(456) 评论(0) 推荐(0)

coercing to Unicode: need string or buffer, geoprocessing value object found
摘要:workbook.save(outxls),保存xls,出现上面的错误原因是:outxls不是错误 arcpy.AddMessage(" "+outxls) cannot concatenate 'str' and 'geoprocessing value object' objects 原因也是s 阅读全文

posted @ 2019-10-16 20:34 gisai 阅读(291) 评论(0) 推荐(0)

arcgis python 使用光标和内存中的要素类将数据加载到要素集 学习:http://zhihu.esrichina.com.cn/article/634
摘要:学习:http://zhihu.esrichina.com.cn/article/634使用光标和内存中的要素类将数据加载到要素集 import arcpy arcpy.env.overwriteOutput = True arcpy.ImportToolbox("http://flame7/arcgis/services;BufferByVal", ... 阅读全文

posted @ 2019-09-30 19:03 gisai 阅读(439) 评论(0) 推荐(0)

arcgis python 获得arcgis安装版本和安装位置
摘要:和获得ArcGIS版本和安装位置 SourceDir : G:\setup\arcgis10.2.2\arcgis10.2.2\ArcGIS_Desktop_1022_140090\Desktop\SetupFiles\InstallDate : 2019.07.19InstallDir : c:\ 阅读全文

posted @ 2019-09-30 18:08 gisai 阅读(926) 评论(0) 推荐(0)

arcgis python 不知道一个工具怎么用
摘要:完整的工具帮助信息 import arcpy print(arcpy.Usage("Buffer_analysis")) print(arcpy.Usage("MakeFeatureLayer_management")) import arcpy print(arcpy.Buffer_analysis.__doc__) 阅读全文

posted @ 2019-09-30 17:41 gisai 阅读(362) 评论(0) 推荐(0)

arcgis python 地形转栅格
该文被密码保护。

posted @ 2019-09-30 17:14 gisai 阅读(1) 评论(0) 推荐(0)

arcgis 地理坐标系 699个,投影坐标系是4767
摘要:消息执行: 脚本开始时间: Mon Sep 30 15:50:33 2019正在运行脚本 脚本...i:1,Geographic Coordinate Systems/Africa/Abidjan 1987i:2,Geographic Coordinate Systems/Africa/Accrai 阅读全文

posted @ 2019-09-30 15:52 gisai 阅读(2229) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 14 下一页
 
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3