当前位置:网站首页>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)'));
边栏推荐
猜你喜欢

动态规划常见实例详解

EasyCVR平台通过国标GB28181接入柯达NVR显示注册失败,该如何解决?

Office2021 安装MathType

腾讯云孟凡杰:我所经历的云原生降本增效最佳实践案例

T31开发笔记:metaipc测试

A Review of Nature Microbiology: Focusing on the Algae--Ecological Interface of Phytoplankton-Bacteria Interactions

7.25 - 每日一题 - 408

Golang swagger :missing required param comment parameters

动态折线图,制作原来是这么简单

元宇宙001 | 情绪无法自控?元宇宙助你一臂之力
随机推荐
【C语言刷题】Leetcode203——移除链表元素
Geoserver+mysql+openlayers
Metaverse 001 | Can't control your emotions?The Metaverse is here to help you
流量分析第二题
openlayers version update difference
Kali命令ifconfig报错command not found
技术分享 | Apache Linkis 快速集成网页IDE工具 Scriptis
AI科学家:自动发现物理系统的隐藏状态变量
【C语言刷题】双指针原地修改数组(力扣原题分析)
es 读流程源码解析
E - Addition and Multiplication 2(贪心)
2022-07-28
治疗 | 如何识别和处理消极想法
动态生成不同类型的订单,请问如何存放到Mongodb数据库?
Dynamically generate different types of orders, how do I deposit to mongo database?
golang刷leetcode动态规划(12)最小路径和
Brain-computer interface 003 | Musk said that he has realized a virtual self-dialogue with the cloud, and related concept shares have risen sharply
EasyCVR平台通过国标GB28181接入柯达NVR显示注册失败,该如何解决?
Geoserver+mysql+openlayers2
MySQL安装(详细,适合小白)