当前位置:网站首页>Geoserver+mysql+openlayers
Geoserver+mysql+openlayers
2022-08-02 22:02:00 【Jennifer33K】
- Install geoserver-2.15.4 version.
- Geoserver supports mysql database.
- geoserver-2.15.4-mysql-plugin.zip
- Copy gt-jdbc-mysql-2.6.1.jar and mysql-connector-java-5.1.5.jar from geoserver-2.15.4-mysql-plugin.zip to webapps/geoserver/WEB-INF/lib, then restart geoserver.
- shp is imported into mysql database
- Place shp and related files of shp and doc files of DOShere in the same directory.
- Enter the command: shp2mysql shp file name.shp table name database name > Generated sql file name.sql.
- Example: shp2mysql point_psn.shp test coordinate>psn.sql.
- Modify the generated sql file: ALTER TABLE table name ADD the_geom GEOMETRY.add must be: the_geom GEOMETRY.
- Replace all -1) ); with) );
- Go to the mysql database and import the sql file.
- Connect mysql data in geoserver to display the map.
- The effect is still under test~
边栏推荐
猜你喜欢
随机推荐
JVM内存和垃圾回收-04.程序计数器(PC寄存器)
详解卡尔曼滤波原理
SQL server有什么认证吗?
通信大学生走向岗位,哪些技能最实用?
Go----Go 语言快速体验之开发环境搭建及第一个项目HelloWord
7.22 - 每日一题 - 408
看【C语言】实现简易计算器教程,让小伙伴们为你竖起大拇指
药品研发--检验记录与检验报告书的书写细则
selenium安装和环境配置Firefox
WPF login with Prism
博云入选 Gartner 中国 DevOps 代表厂商
【C语言刷题】Leetcode203——移除链表元素
cache2go-源码阅读
register和volatile的区别
Sentienl【动态数据源架构设计理念与改造实践】
想通过FC连接RDS mysql。是不是将FC服务角色添加rds权限后,就可以通过地址,端口建连了呢
ROS基本编程概述
我靠这套笔记自学,拿下字节50万offer....
竞赛:糖尿病遗传风险检测挑战赛(科大讯飞)
平稳发展 | 西欧地区手游玩家的数据和洞察