会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
ddzhen
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
下一页
2021年9月16日
平面坐标与极坐标转换
摘要: 平面坐标和极坐标转换
阅读全文
posted @ 2021-09-16 14:33 ddzhen
阅读(481)
评论(0)
推荐(0)
2021年9月3日
两点截取线【shapely】【clipline】
摘要: 根据线上的两点,截取中间的部分
阅读全文
posted @ 2021-09-03 08:54 ddzhen
阅读(655)
评论(0)
推荐(0)
2021年8月19日
点打断线【GIS】【shapely】
摘要: from shapely.geometry import LineString, Point from shapely.ops import snap, split if __name__ == '__main__': arr = [[0, 0], [10, 0]] brr = [5, 0.01]
阅读全文
posted @ 2021-08-19 18:25 ddzhen
阅读(313)
评论(0)
推荐(0)
2021年7月28日
【python】【展平列表】
摘要: 1 arr = [[1], [2, 3], [4, 5, 6]] 2 brr = sum(arr, []) 3 # [1, 2, 3, 4, 5, 6] 4 arr = [[1], [2, 3], [[4], [5], [6]]] 5 crr = sum(arr, []) 6 # [1, 2, 3,
阅读全文
posted @ 2021-07-28 18:03 ddzhen
阅读(86)
评论(0)
推荐(0)
2021年7月1日
公交站点方向的计算
摘要: # coding:utf-8 import numpy as np import logging logging.basicConfig(level=logging.WARNING, format='%(asctime)s-%(filename)s[line:%(lineno)d]-%(leveln
阅读全文
posted @ 2021-07-01 11:45 ddzhen
阅读(151)
评论(0)
推荐(0)
2021年6月30日
【shapely】【投影变换】
摘要: # shapely.ops.transform做投影变换,可以跳过geopandas from shapely.ops import transform from functools import partial import pyproj line_pnts = [113.428126, 34.8
阅读全文
posted @ 2021-06-30 17:04 ddzhen
阅读(393)
评论(0)
推荐(0)
2021年6月24日
向量与X轴的夹角
摘要: class vectorAngle(): def __init__(self, vec): self.x, self.y = vec[0], vec[1] def vecAttr(self): # 判断点所在的象限 # N # W O E # S ref = 0. x, y = self.x, se
阅读全文
posted @ 2021-06-24 18:58 ddzhen
阅读(535)
评论(0)
推荐(0)
2021年4月25日
【GIS】【shapely】【trimLine】
摘要: 根据点
阅读全文
posted @ 2021-04-25 15:21 ddzhen
阅读(141)
评论(0)
推荐(0)
2020年11月23日
【neo4j】【py2neo】【relationship】【TypeError】
摘要: 带关系的属性数据入库 node1 = Node("road_id", node_id = node_id_1, lng = lng1, lat = lat1) node2 = Node('road_id', node_id = node_id_2, lng = lng2, lat = lat2) p
阅读全文
posted @ 2020-11-23 14:17 ddzhen
阅读(614)
评论(0)
推荐(0)
2020年11月11日
【postgis】【geopandas】【UnicodeDecodeError】
摘要: 代码如下: conn = create_engine(f"postgresql://{user}:{password}@{host}:{port}/{database}") sql = "SELECT * from train_way limit 10" # sql = "select postgi
阅读全文
posted @ 2020-11-11 10:34 ddzhen
阅读(136)
评论(0)
推荐(0)
上一页
1
2
3
4
5
下一页
公告