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

gisoracle

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

公告

05 2019 档案

ArcGIS python 退出
摘要:os._exit(0),退出ArcMap pass:不做任何事情,只起到占位的作用 3、exit():结束整个程序 >` 阅读全文

posted @ 2019-05-30 21:16 gisai 阅读(322) 评论(0) 推荐(0)

python coercing to Unicode: need string or buffer, int found
摘要:数据没有转换为字符串,加str就可以 阅读全文

posted @ 2019-05-30 21:02 gisai 阅读(503) 评论(0) 推荐(0)

python 字符串只替换一次函数,支持汉字
摘要:python 字符串只替换一次函数,支持汉字 阅读全文

posted @ 2019-05-29 22:39 gisai 阅读(468) 评论(0) 推荐(0)

ArcGIS python field 字段
摘要:The field object represents a column in a table. A field has many properties, the most obvious ones being its name and its type. 讨论 Field properties can be accessed through the ListFields and Descr... 阅读全文

posted @ 2019-05-29 08:29 gisai 阅读(744) 评论(0) 推荐(0)

shapefile 输出的地理处理注意事项
摘要:多年来,ESRI 为存储地理信息开发了三种主要数据格式 - coverage 格式、shapefile 格式及地理数据库格式。其中,所开发的 Shapefile 为存储地理及属性信息提供了一种简单的非拓扑格式。正由于 shapefile 的简易性,使其成为一种非常流行的开放式数据转换格式。凭借其简易 阅读全文

posted @ 2019-05-27 23:39 gisai 阅读(724) 评论(0) 推荐(0)

arcgis python RefreshActiveView CLEAR_SELECTION
摘要:import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0] lyr = arcpy.mapping.ListLayers(mxd, "Cities", df)[0] # Use the SelectLayerByAttribute too... 阅读全文

posted @ 2019-05-27 23:26 gisai 阅读(421) 评论(0) 推荐(0)

arcgis python 判断是数据库或是文件夹
摘要:arcgis python 判断是数据库或是文件夹 阅读全文

posted @ 2019-05-26 22:08 gisai 阅读(315) 评论(0) 推荐(0)

Arcengine获得arcgis安装的版本
摘要:ESRI.ArcGIS.RuntimeManager.ActiveRuntime.Version //gsioracle MessageBox.Show(ESRI.ArcGIS.RuntimeManager.ActiveRuntime.Version); 阅读全文

posted @ 2019-05-25 21:30 gisai 阅读(486) 评论(0) 推荐(0)

python获得坐标系信息
摘要:# -*- coding: cp936 -*- ############################################################# import arcpy import os from arcpy import env import math env.overwriteOutput = True shp_sheet = arcpy.Get... 阅读全文

posted @ 2019-05-25 20:35 gisai 阅读(607) 评论(0) 推荐(0)

修复几何 (数据管理)原理
摘要:如果几何存在问题,此工具将使用与检查几何工具相同的逻辑进行评估。 下面是几何问题和此工具将执行的相应修复的列表: 空几何:从要素类中删除记录。要保留具有空几何的记录,请取消选中工具对话选项删除几何为空的要素,或在脚本中将 delete_null 参数设置为 KEEP_NULL。 短线段:删除几何的短 阅读全文

posted @ 2019-05-25 19:53 gisai 阅读(921) 评论(0) 推荐(0)

Python获取指定目录下所有子目录、所有文件名
摘要:ArcGIS Pro学习加微信公众号 我的微信公众号 import os def file_name(file_dir): for root, dirs, files in os.walk(file_dir): print('root_dir:', root) # 当前目录路径 print('sub 阅读全文

posted @ 2019-05-25 19:34 gisai 阅读(7963) 评论(0) 推荐(0)

python的路径
摘要:import sysprint(sys.path) 阅读全文

posted @ 2019-05-24 23:32 gisai 阅读(141) 评论(0) 推荐(0)

用Python写一个将Python2代码转换成Python3代码的批处理工具
摘要:之前写过一篇如何在windows操作系统上给.py文件添加一个快速处理的右键功能的文章:《一键将Python2代码自动转化为Python3》,作用就是为了将Python2的文件升级转换成Python3的文件。 之后,有朋友问,如果有很多文件需要转换,一个个的右键转换还是觉得麻烦!这个问题我非常喜欢, 阅读全文

posted @ 2019-05-24 08:19 gisai 阅读(240) 评论(0) 推荐(0)

使用 in_memory 工作空间的注意事项
摘要:来自:https://pro.arcgis.com/zh-cn/pro-app/tool-reference/appendices/using-the-in-memory-output-workspace.htm 使用 in_memory 工作空间的注意事项 ArcGIS 应用程序、ArcGIS P 阅读全文

posted @ 2019-05-24 07:53 gisai 阅读(924) 评论(0) 推荐(0)

sql 查询存在一个表而不在另一个表中的数据
摘要:方法一(效率底) select A.* from 办卡 A where A.namedh not in (select namedh from 银行) 方法二(效率中) 方法三(效率高) 阅读全文

posted @ 2019-05-21 07:08 gisai 阅读(1301) 评论(0) 推荐(0)

Arcgis python输出当前窗口
摘要:import arcpy mxd = arcpy.mapping.MapDocument("CURRENT") mxdfile=arcpy.GetParameterAsText(0) dpi=arcpy.GetParameterAsText(1) arcpy.mapping.ExportToJPEG(mxd, mxdfile ,resolution=dpi) del mxd 阅读全文

posted @ 2019-05-14 16:46 gisai 阅读(299) 评论(0) 推荐(0)

ArcGIS Python 保存lyr
摘要:import arcpy ##################my = arcpy.GetParameterAsText(0)mylyrfile = arcpy.GetParameterAsText(1)if my== '#': my = "F:\\闫磊\\data\\Chinadata\\shp\ 阅读全文

posted @ 2019-05-14 16:44 gisai 阅读(516) 评论(0) 推荐(0)

Python可变参数函数用法详解
摘要:来自:http://c.biancheng.net/view/2257.html 很多编程语言都允许定义个数可变的参数,这样可以在调用函数时传入任意多个参数。Python 当然也不例外,Python 允许在形参前面添加一个星号(*),这样就意味着该参数可接收多个参数值,多个参数值被当成元组传入。下面 阅读全文

posted @ 2019-05-13 12:52 gisai 阅读(928) 评论(0) 推荐(0)

ArcGIS Python 获得坐标
摘要:改进代码 输出坐标如下 消息执行: 获得坐标 fw_1开始时间: Mon May 13 08:31:04 2019正在运行脚本 获得坐标...Feature 660:Part 0:i=0,X=57219.7552977, Y=86478.4272009i=1,X=57797.135264, Y=86 阅读全文

posted @ 2019-05-13 08:23 gisai 阅读(1568) 评论(0) 推荐(0)

ArcGIS Python查看geodatabase(.gdb)版本
摘要:代码:10.0不能运行 2.2.0 9.2 2.3.0 9.3、9.3.1 3.0.0 10.0、10.1、10.2、10.2.1、10.2.2、10.3、10.3.1、10.4、10.4.1、10.5、10.5.1 ArcGIS Pro 1.0、1.1、1.2、1.3、1.4 阅读全文

posted @ 2019-05-12 12:58 gisai 阅读(849) 评论(0) 推荐(0)

arcgis python获得字段唯一值
摘要:arcgis python获得字段唯一值 # Import native arcgisscripting moduleimport arcgisscripting, sys# Create the geoprocessor objectgp = arcgisscripting.create(9.3) 阅读全文

posted @ 2019-05-11 12:42 gisai 阅读(659) 评论(0) 推荐(0)

arcgis python desc.dataType
摘要:desc = arcpy.Describe(r"C:\Users\dell\Documents\ArcGIS\ddd.shp") 是ShapeFile desc = arcpy.Describe(r"r"C:\Users\dell\Documents\ArcGIS\default.gdb\ds\dl 阅读全文

posted @ 2019-05-10 21:45 gisai 阅读(228) 评论(0) 推荐(0)

使用arcpy.mapping 更新和修复数据源
摘要:来自:https://blog.csdn.net/gisinfo/article/details/6675390 在许多情况下,您都可能需要修复数据源或重定向数据源至其他位置。然而,如果是在每个相关的地图文档中手动进行更改,则会显得异常麻烦。arcpy.mapping 脚本环境提供了多种方法使得您无 阅读全文

posted @ 2019-05-10 21:20 gisai 阅读(1180) 评论(0) 推荐(0)

以下示例使用一个 x,y 坐标列表创建了一个多边形几何对象。然后使用裁剪工具来裁剪具有多边形几何对象的要素类。
摘要:import arcpy # Create an Array object. # array = arcpy.Array() # List of coordinates. # coordList = ['1.0;1.0','1.0;10.0','10.0;10.0','10.0;1.0'] # For each coordinate set, create a point object a... 阅读全文

posted @ 2019-05-10 19:37 gisai 阅读(215) 评论(0) 推荐(0)

ArcGIS Python根据的点坐标,创建点要素
摘要:ArcGIS Python根据的点坐标,创建点要素 阅读全文

posted @ 2019-05-10 19:29 gisai 阅读(2607) 评论(0) 推荐(1)

ArcGIS Python获得一个图层所有线长
摘要:import arcpy # Create an empty Geometry object # g = arcpy.Geometry() # Run the CopyFeatures tool, setting the output to the geometry object. GeometryList # is returned as a list of geometry obje... 阅读全文

posted @ 2019-05-10 19:23 gisai 阅读(354) 评论(0) 推荐(0)

arcgis 面或线要素类上的搜索游标
摘要:arcgis 面或线要素类上的搜索游标 阅读全文

posted @ 2019-05-10 16:17 gisai 阅读(787) 评论(0) 推荐(0)

ArcGIS Python 坐标系信息
摘要:ArcGIS Python 坐标系信息 阅读全文

posted @ 2019-05-08 19:41 gisai 阅读(624) 评论(0) 推荐(0)

ArcGIS中国工具3.0正式发布
摘要:ArcGIS中国工具3.0正式发布,新功能有 1. 支持面积分割(见4.6) 2. 地图打印时支持经纬网格(见3.6.4) 3. 固定纸张限定比例尺打印(见3.7) 4. 支持字头朝北沿线注记(见4.7) 阅读全文

posted @ 2019-05-05 13:30 gisai 阅读(1596) 评论(0) 推荐(1)

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