当前位置:网站首页>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)'));
边栏推荐
猜你喜欢
香农与信息论三大定律
js Fetch返回数据res.json()报错问题
What skills are the most practical for college students in communications?
中职网络安全竞赛之应用服务漏洞扫描与利用
From the technical panorama to the actual scene, analyze the evolutionary breakthrough of "narrowband high-definition"
Golang swagger :missing required param comment parameters
NIO's Selector execution process
竞赛:糖尿病遗传风险检测挑战赛(科大讯飞)
流量分析四—蓝牙
Three components of NIO foundation
随机推荐
Electronic Industry Inventory Management Pain Points and WMS Warehouse Management System Solutions
JVM内存和垃圾回收-06.本地方法栈
Golang sync/atomic 包的原子操作说明
Golang swagger :missing required param comment parameters
LeetCode每日一题(324. Wiggle Sort II)
selenium installation and environment configuration firefox
我靠这套笔记自学,拿下字节50万offer....
喜迎八一 《社会企业开展应聘文职人员培训规范》团体标准出版发行会暨橄榄枝大课堂上线发布会在北京举行
请教下,1.0.0和1.0.2的底层数据库表结构有变化吗?
面试官:谈谈如何防止消息丢失和消息重复
【C语言刷题】双指针原地修改数组(力扣原题分析)
What skills are the most practical for college students in communications?
MySQL 事件调度
就刚刚,鸿蒙3.0发布了,华为还一口气发布了十一款产品
2022最新彩虹表
【C语言刷题】牛客JZ65——不用四则运算作加法
[Dynamic Programming Special Training] Basics
T5: Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
SQL Alias Aliases
Unity 打包和切换平台|Build Settings窗口介绍