上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 89 下一页
摘要: 然后改动窗口大小才会正常 在map容器所在的vue页面中,在方法中加入 nextTick(()=>{ let map = L.map(...); }) nextTick作用是在所有dom元素加载完毕之后才执行 因为这种情况一般是容器dom还没调整到相应大小,地图就已经创建了,所以在加载完毕之后会显示 阅读全文
posted @ 2024-07-12 10:49 栖木hy 阅读(172) 评论(0) 推荐(0)
摘要: 注意:不能在创建表语句后面加备注,与MYSQL不同。 给表添加备注 comment on table 表名 is '表备注信息'; 给字段添加备注 comment on column 表名.字段名 is '字段备注'; 查询表的备注 select description from pg_descri 阅读全文
posted @ 2024-07-10 18:08 栖木hy 阅读(925) 评论(0) 推荐(0)
摘要: 在使用 fetch API 发送 POST 请求时,通常需要指定请求的方法为 "POST",并且通过 body 参数传递要发送的数据。 示例代码 下面是一个简单的示例,演示如何使用 fetch API 发送 POST 请求: const url = '/api/endpoint'; // 替换为你的 阅读全文
posted @ 2024-07-10 17:26 栖木hy 阅读(3965) 评论(0) 推荐(0)
摘要: geoserver更改密码失败,推测是装了geoserver-authkey-plugin.zip插件的原因 登录geoserver把默认用户组的密码方案改成明文 打开users.xml文件,password输入plain:yourpassword 3.再登录geoserver把默认用户组的密码方案 阅读全文
posted @ 2024-07-10 10:36 栖木hy 阅读(795) 评论(0) 推荐(0)
摘要: geoserver文档 https://www.osgeo.cn/geoserver-user-manual/security/passwd.html 在geoserver数据目录,找到 /data/GeoserverData/security/usergroup/default/users.xml 阅读全文
posted @ 2024-07-10 09:45 栖木hy 阅读(463) 评论(0) 推荐(0)
摘要: mapboxgl加载geoserver发布的tms矢量图层服务 // 添加源 g.map.addSource('tms-source', { type: 'vector', scheme:'tms', tiles: [ 'http://localhost:9090/geoserver/gwc/ser 阅读全文
posted @ 2024-07-08 17:31 栖木hy 阅读(537) 评论(0) 推荐(0)
摘要: 使用 Nginx 作为反向代理服务器,可以代理 MySQL、PostgreSQL、Redis 及多个 TCP 服务。这需要配置 Nginx 的 stream 模块。 以下是详细的配置步骤: 1. 确保 Nginx 支持 stream 模块 首先,确保 Nginx 已经编译并支持 stream 模块。 阅读全文
posted @ 2024-07-08 14:26 栖木hy 阅读(3368) 评论(0) 推荐(0)
摘要: display:grid 是 CSS 网格布局的一部分,它用于创建一个基于网格的布局系统。网格布局允许开发者通过定义行和列来更精确地控制元素的位置和对齐。以下是 display:grid 的一些基本用法: 一、基本用法 <div class="grid-container"> <div class= 阅读全文
posted @ 2024-07-08 09:02 栖木hy 阅读(1337) 评论(0) 推荐(0)
摘要: import netCDF4 as nc import numpy as np import matplotlib.pyplot as plt import cartopy.crs as ccrs def plot_currents(file_path, variable_name, time, l 阅读全文
posted @ 2024-07-03 16:42 栖木hy 阅读(1218) 评论(0) 推荐(0)
摘要: 在使用 matplotlib 进行数据可视化时需要显示中文,可以设置 matplotlib 的字体配置。 以下是一个示例: import matplotlib.pyplot as plt import matplotlib.font_manager as fm # 设置中文字体 plt.rcPara 阅读全文
posted @ 2024-07-03 15:50 栖木hy 阅读(141) 评论(0) 推荐(0)
上一页 1 ··· 14 15 16 17 18 19 20 21 22 ··· 89 下一页