当前位置:网站首页>Geoserver+mysql+openlayers2
Geoserver+mysql+openlayers2
2022-08-02 22:31:00 【Jennifer33K】
Geoserver+mysql+openlayers2
mysqlGeometry Data Data Store Reference:
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)'));
边栏推荐
猜你喜欢

LSB利器-zsteg

NC | Structure and function of soil microbiome reveal N2O release from global wetlands

Therapy | How to Identify and Deal with Negative Thoughts

治疗 | 如何识别和处理消极想法

4KMILES加入艾盛集团,以更强劲的数字商务能力,加速中国跨境电商的全域全效增长

日志框架学习

J9数字论:互联网跨链桥有什么作用呢?

el-tree渲染大量数据的解决方案(不通过懒加载)

Go----Go 语言快速体验之开发环境搭建及第一个项目HelloWord

MySQL安装(详细,适合小白)
随机推荐
4KMILES加入艾盛集团,以更强劲的数字商务能力,加速中国跨境电商的全域全效增长
MaxCompute 的SQL 引擎参数化视图具体有哪些增强功能?
「面试必会」这应该是最有深度的TCP三次握手、四次挥手细节讲解
服务器Centos7 静默安装Oracle Database 12.2
【C语言刷题】双指针原地修改数组(力扣原题分析)
Mysql基础篇(视图)
我用这一招让团队的开发效率提升了 100%!
ssh configuration
栈、队列和数组
Brain-computer interface 003 | Musk said that he has realized a virtual self-dialogue with the cloud, and related concept shares have risen sharply
淘宝|蚂蚁|菜鸟|盒马|嘀嘀|饿了么面经(已拿多个offer)
SCANIA SCANIA OTL tag is introduced
平稳发展 | 西欧地区手游玩家的数据和洞察
日志框架学习
7.25 - 每日一题 - 408
连续三次 | 灵雀云入选Gartner中国ICT技术成熟度曲线报告
竞赛:糖尿病遗传风险检测挑战赛(科大讯飞)
Based on OpenGL glaciers and firebird (illumination calculation model, visual, particle system)
7.21 - 每日一题 - 408
快速掌握jmeter(一)——实现自动登录与动态变量