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

gisoracle

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

公告

随笔分类 -  python

上一页 1 ··· 8 9 10 11 12 13 14 下一页

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

posted @ 2019-05-10 21:20 gisai 阅读(1174) 评论(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 阅读(212) 评论(0) 推荐(0)

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

posted @ 2019-05-10 19:29 gisai 阅读(2595) 评论(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 阅读(351) 评论(0) 推荐(0)

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

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

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

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

arcgis 获得工具箱工具的个数
摘要:arcgis 获得工具箱工具的个数 阅读全文

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

在 Python 中使用 in_memory 工作空间
摘要:在 Python 中使用 in_memory 工作空间 在 Python 脚本中,in_memory 工作空间仅对地理处理工具有效;它不是可以写入任何数据的通用虚拟目录。 您可以按以下代码示例所示使用 in_memory 工作空间。 import arcpy # Set the geoprocess 阅读全文

posted @ 2019-02-06 12:10 gisai 阅读(396) 评论(0) 推荐(0)

ArcGIS Pro 获得工具的个数
摘要:Space Time Pattern Mining Tools(stpm)'s count:7the tool count:894the toolbox count:23Completed script Script... 阅读全文

posted @ 2018-12-26 21:27 gisai 阅读(236) 评论(0) 推荐(0)

FieldExists
摘要:import arcpy import os import sys def FieldExists(TableName,FieldName): desc = arcpy.Describe(TableName) for field in desc.fields: if field.Name.upper() ==FieldName: retur... 阅读全文

posted @ 2018-11-05 08:56 gisai 阅读(261) 评论(0) 推荐(0)

在arcgis使用python脚本进行字段计算时是如何解决中文问题的
摘要:来自:https://www.jb51.net/article/73561.htm 一、引言 在arcgis打开一个图层的属性表,可以对属性表的某个字段进行计算,但是在平常一般都是使用arcgis提供的字段计算器的界面进行傻瓜式的简答的赋值操作,并没有使用到脚本对字段值进行逻辑的操作。由于最近一直在 阅读全文

posted @ 2018-07-14 17:29 gisai 阅读(1023) 评论(0) 推荐(0)

Python index()方法
摘要:Python index()方法 Python 字符串 描述 Python index() 方法检测字符串中是否包含子字符串 str ,如果指定 beg(开始) 和 end(结束) 范围,则检查是否包含在指定范围内,该方法与 python find()方法一样,只不过如果str不在 string中会 阅读全文

posted @ 2018-01-23 14:27 gisai 阅读(1200) 评论(0) 推荐(0)

arcgis python 沿线生成点
摘要:# coding: utf-8 """ Source Name: generatepointsfromlines.py Version: ArcGIS 10.4/Pro 1.2 Author: Environmental Systems Research Institute Inc. Description: Source for Generate Points... 阅读全文

posted @ 2017-09-21 13:51 gisai 阅读(1845) 评论(0) 推荐(0)

arcgis python 创建 SQLite 数据库
摘要:# -*- ################# """ Tool name: Create SQLite Database Source: CreateSQLiteDatabase.py Author: ESRI Create a SQLite database of the selected flavor: ST_Geometry, SpatiaLite, GeoPackage. """ ... 阅读全文

posted @ 2017-09-21 13:13 gisai 阅读(474) 评论(0) 推荐(0)

arcgis python添加几何属性
摘要:import arcpy import numpy import math def AddGeometryAttributes(fc, geomProperties, lUnit, aUnit, cs): """------------------------------------------------------------------------- Tool: ... 阅读全文

posted @ 2017-09-21 13:11 gisai 阅读(1782) 评论(0) 推荐(0)

点集转线python最优代码
摘要:import arcpy import os import types def convertPoints(): arcpy.env.overwriteOutput = True inPts = arcpy.GetParameterAsText(0) # Input point FC outFeatures = arcpy.GetParameterAsText(1)... 阅读全文

posted @ 2017-09-21 13:07 gisai 阅读(1519) 评论(0) 推荐(0)

Arcgis10.5 python按属性分割图层,属性相同分为一个图层
摘要:# coding=utf-8 """ Source code for potential gp tool to create outputs based on attributes of an input. """ import arcpy import numbers import sys try: unicode except: unicode = str def g... 阅读全文

posted @ 2017-09-18 20:36 gisai 阅读(2331) 评论(0) 推荐(0)

在arcgis使用python脚本进行字段计算时是如何解决中文问题的
摘要:这篇文章主要介绍了在arcgis使用python脚本进行字段计算时是如何解决中文问题的,需要的朋友可以参考下 这篇文章主要介绍了在arcgis使用python脚本进行字段计算时是如何解决中文问题的,需要的朋友可以参考下 一、引言 在arcgis打开一个图层的属性表,可以对属性表的某个字段进行计算,但 阅读全文

posted @ 2017-07-23 21:32 gisai 阅读(1109) 评论(0) 推荐(0)

python使用游标访问数据
摘要:python 阅读全文

posted @ 2017-07-22 22:15 gisai 阅读(9026) 评论(0) 推荐(0)

arcgis python图形信息
摘要:属性 说明 area 面要素的面积值;对于所有其他要素类型为空 centroid 如果质心位于要素之内或要素之上则为真;否则返回标注点(返回一个点对象) 范围 返回一个范围对象 firstPoint 要素的第一个坐标;返回一个点对象 hullRectangle 凸包矩形的坐标对 isMultipar 阅读全文

posted @ 2017-07-22 12:36 gisai 阅读(397) 评论(0) 推荐(0)

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