会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
GIS hacker
Yesterday is History, Tomorrow a Mystery, Today is a Gift, That's why it's called the Present
博客园
首页
新随笔
联系
订阅
管理
2024年7月22日
都什么年代了,还用传统矢量化 ?!都给我用raterio,快,不止一点点
摘要: 都给我用rasterio!快,不止一点点 # Convert bitmask to polygon (zero values only) import rasterio from rasterio.features import shapes from shapely.geometry import
阅读全文
posted @ 2024-07-22 11:22 wsZhang
阅读(45)
评论(0)
推荐(0)
2022年3月21日
[ArcPy Tips-5] 矢量版的Zonal Statistics As Table (仅面积)
摘要: ArcGIS 自带的 Zonal Statistics As Table 在分区统计栅格面积时很好用,但是这个工具只能针对栅格,不能针对矢量。 最近有这个需求,所以就做了一个,基本都是 ArcPy 的自带函数,输入的参数和 Zonal Statistics As Table 高度类似,在此不作详细解
阅读全文
posted @ 2022-03-21 15:15 wsZhang
阅读(841)
评论(0)
推荐(0)
2021年10月28日
[ArcPy Tips-4] 找到一个ShapeFile里面积最大的多边形!
摘要: import arcpy,os,sys import arcpy.da srcDir = "E:\\xxx\\xxx\\" for file in os.listdir(srcDir): if os.path.splitext(file)[1] == ".shp": print(file) inpu
阅读全文
posted @ 2021-10-28 21:50 wsZhang
阅读(109)
评论(0)
推荐(0)
2021年3月16日
[GEE Tips-7]看看ImageCollection里面都是什么东东!
摘要: 众所周知,GEE JS端,print一下ImageCollection就知道里面是啥 但是,能看到的仅仅是文字信息而已 那么,我们应该怎么把他们批量加载进来呢? 看代码: var imageList = imageCollection.toList(imageCollection.size()) v
阅读全文
posted @ 2021-03-16 21:50 wsZhang
阅读(321)
评论(0)
推荐(0)
2021年3月13日
[Colab Tips-1]安装Oracle JDK
摘要: 今天正式开始整活儿Colab! Colab自带了OpenJDK,但是如果我为了保证完全的兼容性,可不可以装个Oracle JDK呢?答案是可以! 话不多说,上代码! !sudo add-apt-repository ppa:ts.sch.gr/ppa !sudo apt-get update !su
阅读全文
posted @ 2021-03-13 23:19 wsZhang
阅读(100)
评论(0)
推荐(0)
2021年3月3日
[GEE Tips-6]利用GEE命令行工具,查看当前正在进行的任务、一键取消所有正在进行的任务
摘要: 前提: 已经在本地配置好GEE Python客户端,方法参见: [GEE Tips-4]本地配置GEE Python API环境(Windows) 以下所有操作都在命令提示符中进行。 查看所有正在进行的任务: earthengine task list 取消所有正在进行的任务 earthengine
阅读全文
posted @ 2021-03-03 13:53 wsZhang
阅读(557)
评论(0)
推荐(0)
[GEE Tips-5]用Python批量导出ImageCollection
摘要: def imageCollectionToDrive(collection,folder,scale): taskList = [] imageList = collection.toList(collection.size()) for n in range(0,collection.size()
阅读全文
posted @ 2021-03-03 13:38 wsZhang
阅读(639)
评论(0)
推荐(0)
2020年7月9日
[Python]有用的小函数集合(不定期更新)
摘要: #读csv def readCsvTo2DList(csvFullFileName,skipHeader,ignoreTail): listFile = open(csvFullFileName,'r') context = listFile.read() contextList = context
阅读全文
posted @ 2020-07-09 15:01 wsZhang
阅读(248)
评论(0)
推荐(0)
2020年7月5日
[ArcPy Tips-3]查找属性表中的重复值(直接在Python窗口中操作)
摘要: #将某一图层某一字段全部值归入一个List的函数 def GetFieldValueList(inTable,inField): value_list=[] rows=arcpy.da.SearchCursor(inTable,inField) for row in rows: value_list
阅读全文
posted @ 2020-07-05 15:47 wsZhang
阅读(568)
评论(0)
推荐(0)
2020年3月16日
[AO SDK Tips-1]"You must call RuntimeManager.Bind before creating any ArcGIS components"
摘要: 主函数最开头加这么一句:
阅读全文
posted @ 2020-03-16 10:48 wsZhang
阅读(183)
评论(0)
推荐(0)
下一页
公告