当前位置:网站首页>Geoserver+mysql+openlayers2
Geoserver+mysql+openlayers2
2022-08-02 18:47:00 【Jennifer33K】
Geoserver+mysql+openlayers2
mysql几何数据数据存储参考:
DROP TABLE IF EXISTS `points`;
CREATE TABLE `points` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`name` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '',
`x` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`y` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL,
`location` point NOT NULL,
PRIMARY KEY (`id`) USING BTREE,
SPATIAL INDEX `sp_index`(`location`)
) ENGINE = MyISAM AUTO_INCREMENT = 9 CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic;
INSERT INTO `points` VALUES (1, '圆明园', '116.310558', '40.014033', ST_GeomFromText('POINT(116.311 40.014)'));
INSERT INTO `points` VALUES (2, '清华大学', '116.335279', '40.010497', ST_GeomFromText('POINT(116.335 40.0105)'));
INSERT INTO `points` VALUES (3, '颐和园', '116.277787', '116.277787', ST_GeomFromText('POINT(116.278 40.0065)'));
INSERT INTO `points` VALUES (4, '天安门', '116.404844', '39.915378', ST_GeomFromText('POINT(116.405 39.9154)'));
INSERT INTO `points` VALUES (5, '北京站', '116.434164', '39.910065', ST_GeomFromText('POINT(116.434 39.9101)'));
INSERT INTO `points` VALUES (6, '卢沟桥', '116.224895', '39.85647', ST_GeomFromText('POINT(116.225 39.8565)'));
INSERT INTO `points` VALUES (7, '北京西站', '116.32723', '39.901652', ST_GeomFromText('POINT(116.327 39.9025)'));
INSERT INTO `points` VALUES (8, '北京首都国际机场', '116.612388', '40.085613', ST_GeomFromText('POINT(116.612 39.9025)'));
边栏推荐
猜你喜欢
Functional test points for time, here is a comprehensive summary for you
selenium安装和环境配置Firefox
去年,一道蚂蚁金服笔试题,还行,中等难度
针对时间的功能测试点,这里给你总结全面了
简单有效又有用的关闭antimalware service executable的方法·备份记录
JVM内存和垃圾回收-04.程序计数器(PC寄存器)
Electronic Industry Inventory Management Pain Points and WMS Warehouse Management System Solutions
论文阅读_胶囊网络CapsNet
selenium installation and environment configuration firefox
研发了 5 年的时序数据库,到底要解决什么问题?
随机推荐
selenium安装和环境配置Firefox
阿里35+老测试员生涯回顾,自动化测试真的有这么吃香吗?
Openharmony - 基于ArkUI(TS)开发颜色选择器
简单有效又有用的关闭antimalware service executable的方法·备份记录
VSTO踩坑记录(1)- 从零开始开发outlook插件
固态硬盘接口类型介绍
7.25 - 每日一题 - 408
1.0.0到1.0.2的底层数据库表的更新,需要再重新自建数据库吗?
Mppt photovoltaic maximum power point tracking control matlab simulation
86.(cesium之家)cesium叠加面接收阴影效果(gltf模型)
SQL Alias Aliases
快速掌握jmeter(一)——实现自动登录与动态变量
Mppt光伏最大功率点跟踪控制matlab仿真
E - Addition and Multiplication 2(贪心)
Three components of NIO foundation
C#里如何简单的校验时间格式
通信大学生走向岗位,哪些技能最实用?
电子行业库存管理痛点与WMS仓储管理系统解决方案
Technical life | How to draw a big picture of business
流量分析第二题