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

gisoracle

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

公告

随笔分类 -  python

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

python
arcgis python 参数类型和含义
摘要:数据类型 datatype 关键字 描述 地址定位器 DEAddressLocator 用于地理编码的数据集,存储地址属性、关联的索引以及用于定义将地点的非空间描述转换为空间数据这一过程的规则。 地址定位器样式 GPAddressLocatorStyle 用于创建新地址定位器的模板。 分析像元大小 阅读全文

posted @ 2019-09-30 10:44 gisai 阅读(1120) 评论(0) 推荐(0)

arcgis python 异常处理和信息处理
摘要:#coding=utf8 import arcpy import os import sys import ylpy try: a=1111111 b=0000 c=a/b except Exception as e: arcpy.AddError(e) finally: #'''不管try语句中的代码是否报错,都会执行finally分支中的... 阅读全文

posted @ 2019-09-30 09:44 gisai 阅读(442) 评论(0) 推荐(0)

有趣统计结果,省中用的最多字是,省会中用的最多字是。地州是,县是?
摘要:省依次是:除省,自,治,区外是西 省会依次是州,南 地市级城市依次 县级 阅读全文

posted @ 2019-09-26 19:37 gisai 阅读(260) 评论(0) 推荐(0)

encode和decode的区别
摘要:在运行的时候,有时候会报编码错误,本文就来研究一下这个问题。 为什么会出现乱码呢?因为在文件存的时候格式和读取时候格式不一致就会乱码了。 字符串在python内部的表示是unicode编码,也可以说现在的内存是unicode编码格式,硬盘是utf-8。平常的数据操作都是先把数据读取到内存中,所以内存 阅读全文

posted @ 2019-09-26 18:25 gisai 阅读(510) 评论(0) 推荐(0)

SyntaxError: Non-ASCII character '\xe8' in file C:\Python27\ArcGIS10.2\Lib\yl.py on line 5, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details
摘要:解决方法:#coding=utf8 阅读全文

posted @ 2019-09-26 03:33 gisai 阅读(278) 评论(0) 推荐(0)

arcgis python 调用工具两种两种方法
摘要:arcpy.Select_analysis("p","kk") arcpy.analysis.Select("p","kk1") 阅读全文

posted @ 2019-09-20 11:26 gisai 阅读(1267) 评论(0) 推荐(0)

arcgis python ListEnvironments 函数可返回地理处理环境名称列表。
摘要:arcgis python ListEnvironments 函数可返回地理处理环境名称列表。 阅读全文

posted @ 2019-09-18 09:54 gisai 阅读(303) 评论(0) 推荐(0)

arcgis python ValueTable使用
摘要:本文链接:https://blog.csdn.net/A873054267/article/details/86007125 #多值参数指定方式 1 python list类型 2 字符串类型,以逗号隔开 3 valuetable类型 import arcpy try: arcpy.env.workspace = r'c:\ArcpyBook\data' vTab =... 阅读全文

posted @ 2019-09-16 21:38 gisai 阅读(575) 评论(0) 推荐(0)

arcgis python 更新日期为随机数
摘要:#coding:UTF-8 import time import random import re # 根据时间返回,返回随机年月日时间 def getRandomDate(sYear, sMonth, sDay, eYear, eMonth, eDay): a1=(sYear,sMonth,sDa 阅读全文

posted @ 2019-09-03 10:39 gisai 阅读(422) 评论(0) 推荐(0)

ArcGIS超级工具SPTOOLS1.7升级说明
摘要:ArcGIS超级工具SPTOOLS1.7升级说明 阅读全文

posted @ 2019-08-26 09:38 gisai 阅读(974) 评论(0) 推荐(0)

arcgis python 表属性转html
摘要:arcgis python 表属性转html 阅读全文

posted @ 2019-08-22 18:42 gisai 阅读(302) 评论(0) 推荐(0)

arcgis python 一个mxd打包mpk
摘要:arcgis python 一个mxd打包mpk 阅读全文

posted @ 2019-08-21 15:21 gisai 阅读(786) 评论(0) 推荐(0)

arcgis python 开启编辑会话和编辑操作、在表中创建行、停止编辑操作以及提交编辑会话。
摘要:import arcpy import os fc = 'Database Connections/Portland.sde/portland.jgp.schools' workspace = os.path.dirname(fc) # Start an edit session. Must provide the worksapce. edit = arcpy.da.Editor(work... 阅读全文

posted @ 2019-08-20 12:18 gisai 阅读(1002) 评论(0) 推荐(0)

arcgis python 发送邮件
摘要:import arcgisscripting, smtplib, os, sys, traceback from email.MIMEMultipart import MIMEMultipart from email.MIMEBase import MIMEBase from email.MIMEText import MIMEText from email.Utils import COMMAS 阅读全文

posted @ 2019-08-19 08:46 gisai 阅读(230) 评论(0) 推荐(0)

arcgis python 新生成的数据设置
摘要:try: # Update the spatial index(es) # r = arcpy.CalculateDefaultGridIndex_management(outFeatures) arcpy.AddSpatialIndex_management(outFeatures, r.getOutput(0), r.getOutput(1), r.getOutput(2)) except: 阅读全文

posted @ 2019-08-19 08:04 gisai 阅读(259) 评论(0) 推荐(0)

arcgis python 刷新
摘要:arcpy.RefreshActiveView() 刷新地图和布局窗口 arcpy.RefreshTOC() 刷新内容列表 arcpy.RefreshCatalog(r"F:\tknew106\tool") 刷新目录树 阅读全文

posted @ 2019-08-18 14:38 gisai 阅读(454) 评论(0) 推荐(0)

arcgis python 获得打印机
摘要:class ToolValidator: """Class for validating a tool's parameter values and controlling the behavior of the tool's dialog.""" def __init__(self): """Setup the Geoprocessor and the list of tool paramete 阅读全文

posted @ 2019-08-17 22:30 gisai 阅读(428) 评论(0) 推荐(0)

arcgis python 布局视图中文本查找替换
摘要:# Author: ESRI # Date: July 5, 2010 # Version: ArcGIS 10.0 # Purpose: This script will perform a search and replace on page layout text # elements. There are options to match case and/or... 阅读全文

posted @ 2019-08-17 22:23 gisai 阅读(931) 评论(0) 推荐(0)

arcgis python 布局中所有元素信息报告
摘要:# Author: ESRI # Date: July 5, 2010 # Version: ArcGIS 10.0 # Purpose: This script generates a report of each page layout element and its # associated properties. This script is intended ... 阅读全文

posted @ 2019-08-17 22:21 gisai 阅读(260) 评论(0) 推荐(0)

arcgis python 布局中所有元素平移
摘要:arcgis python 布局中所有元素平移 阅读全文

posted @ 2019-08-17 22:18 gisai 阅读(701) 评论(0) 推荐(0)

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