当前位置:网站首页>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)'));
边栏推荐
猜你喜欢
随机推荐
【LeetCode】118. 杨辉三角 - Go 语言题解
golang刷leetcode动态规划(12)最小路径和
Jellyfin 打造家庭影院 & 视频硬解 (威联通 QNAP)
【C语言刷题】双指针原地修改数组(力扣原题分析)
Mysql基础篇(视图)
光源控制器接口定义说明
二本 两年经验读者 阿里P6面经
动态生成不同类型的订单,请问如何存放到Mongodb数据库?
清除浮动与BFC
es DELETE index 源码分析
MySQL安装配置教程(超级详细)
元宇宙001 | 情绪无法自控?元宇宙助你一臂之力
MYSQL关键字执行顺序?
PG 之 SQL执行计划
Three.js入门
golang刷leetcode 经典(13) 最小高度树
image could not be accessed on a registry to record its digest
SCANIA SCANIA OTL tag is introduced
安装Mac版Mysql卡在Installation阶段,彻底清理mysql并重装mysql
golang刷leetcode动态规划(11)不同路径