![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
其它
其它
llc的足迹
print("hello csdn!")
展开
-
nginx put delete ERR_CONNECTION_RESET 不能访问解决办法
nginx put delete ERR_CONNECTION_RESET 不能访问解决办法原创 2022-10-13 13:46:34 · 2366 阅读 · 0 评论 -
下载必应卫星瓦片
import requestsdef tile_to_quadkey(tile, level): """Transform tile coordinates to a quadkey""" tile_x = tile[0] tile_y = tile[1] quadkey = "" for i in range(level): bit = level - i digit = ord('0') mask = 1 &l原创 2021-06-15 15:10:58 · 510 阅读 · 0 评论 -
linux gbk批量转换为utf8
if [ ! -d "./utf8_txt" ]; then mkdir ./utf8_txtfifor txt in *.txtdo iconv -f gbk -t utf8 $txt > ./utf8_txt/$txtdone原创 2020-08-09 10:29:45 · 186 阅读 · 0 评论 -
Pyinstaller打包记录
项目目录test.pydata - test.txt - text1.txt测试脚本import rtreefrom rtree import indexif __name__ == "__main__": idx = index.Index() left, bottom, right, top = (0.0, 0.0, 1.0, 1.0) idx.in...原创 2020-03-31 10:18:35 · 331 阅读 · 0 评论 -
supervisor 常用问题记录
使用supervisor管理python进程时日志不能正常输出使用python -u test.py 可解决python -h...-u : force the stdout and stderr streams to be unbuffered; this option has no effect on stdin; also PYTHONUNBUFFERED=x...原创 2020-06-22 11:04:41 · 243 阅读 · 0 评论 -
supervisor、uwsgi配置文件
supervisor[program:app]command=uwsgi /work/app/conf/uwsgi.iniautostart=trueautorestart=true# 将stderr的日志写入stdout日志文件中redirect_stderr=truestdout_logfile=/data/log/supervisor.loguwsgi[uwsgi]# ...原创 2020-04-24 14:05:21 · 638 阅读 · 0 评论 -
fiona学习笔记
安装GDAL版本:3.0.4Fiona版本:1.8.13读取数据import fionawith fiona.open('./data/test_4326.shp', 'r') as source: print(source.meta) print(source.bounds) print(source.crs) print(source.crs_wkt...原创 2020-03-12 16:28:31 · 729 阅读 · 4 评论 -
图片数据量大小计算
计算公式:宽度✖高度✖波段数✖位深➗8假设图片的宽高为:52195 41587,波段数为:3,位深:8数据量大小为:52195✖41587✖3✖8➗8=6,511,900,395 byte=6.06 GB单位换算: 1位=8 byte1 KB=1024 byte原创 2020-07-19 11:02:09 · 9991 阅读 · 2 评论