摘要: 中国卫星: 1.资源一号02C卫星 资源一号02C星(ZY1-02C)于2011年12月22日成功发射,牵头主用户为自然资源部。ZY1-02C星搭载有全色多光谱相机和全色高分辨率相机,主要任务是获取全色和多光谱图像数据,可广泛应用于自然资源调查与监测、防灾减灾、农林水利、生态环境、国家重大工程等领域 阅读全文
posted @ 2020-12-24 09:34 木易GIS 阅读(10648) 评论(0) 推荐(1) 编辑
摘要: 今天起,本人将博客园内容搬迁至CSDN,相互学习。 阅读全文
posted @ 2021-01-06 11:36 木易GIS 阅读(43) 评论(0) 推荐(0) 编辑
摘要: arcgis使用python,做arctoolbox,渔网裁剪gdb里的要素,四等分: # ecoding=gbk coding = 'utf-8' import os import shutil import arcpy import arcpy.cartography as CA import 阅读全文
posted @ 2020-12-28 08:37 木易GIS 阅读(433) 评论(0) 推荐(0) 编辑
摘要: arcgis计算中心点的质心XY,并根据Label进行标注: (1)添加X、Y字段 Float:pricision:10、lenth:6 (2)右键计算X、Y几何计算,度为单位 (3)图层右键属性,然后label标注,表达式设置为: [bh] & chr(10) & "(" & [X] & " , 阅读全文
posted @ 2020-12-28 08:23 木易GIS 阅读(975) 评论(0) 推荐(0) 编辑
摘要: 每个图斑出一张图:这种情况有Data Driven Pages工具配合最好。打开ArcMap的Customize->Toolbars->Data Driven Pages,设置好图层、名称字段、排序字段、显示范围和比例尺,保存地图。 # coding:utf-8 import arcpy mxdFi 阅读全文
posted @ 2020-12-25 17:16 木易GIS 阅读(619) 评论(0) 推荐(0) 编辑
摘要: python安装模块wheel步骤 1.先安装wheel,在cmd窗口下输入: pip install wheel2.下载工具包: numpy模块:http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy scipy模块:http://www.lfd.uci. 阅读全文
posted @ 2020-12-24 09:30 木易GIS 阅读(6901) 评论(0) 推荐(0) 编辑
摘要: 如果源字符串字段为“20190426”,则代码为:cdate(left( [DLG现势性] ,4) & "-" & mid( [DLG现势性],5,2) & "-" & right( [DLG现势性],2)) 在属性计算里输入以上代码即可。注意[DLG现势性]为源字符串字段。 (1)如果源字符串字段 阅读全文
posted @ 2020-12-24 08:47 木易GIS 阅读(1076) 评论(0) 推荐(0) 编辑
摘要: import tarfile import os def tar(fname): t = tarfile.open(fname + ".tar.gz", "w:gz") for root, dir, files in os.walk(fname): print root, dir, files fo 阅读全文
posted @ 2020-12-24 08:38 木易GIS 阅读(176) 评论(0) 推荐(0) 编辑
摘要: python压缩解压文件(天地图切片批量解压缩) import zipfile import os src_path = r"D:\test\testdir" dsc_path = r"D:\test\testdir.zip" extr_path = r"D:\test\new_testdir" # 阅读全文
posted @ 2020-06-12 15:41 木易GIS 阅读(279) 评论(0) 推荐(0) 编辑
摘要: python读取多层嵌套文件夹中的文件(zip文件嵌套在不同层级的文件夹中): 使用递归函数,使用python的os.path.isfile方法判断当前是不是.zip文件,如果不是再用os.listdir方法将子目录循环递归判断。 import os path = 'D:\关键\底图\vec_w' 阅读全文
posted @ 2020-06-12 15:36 木易GIS 阅读(1873) 评论(0) 推荐(0) 编辑