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

T5: Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer

NIO's Selector execution process

What is the use of IT assets management software

音频隐写一

Electronic Industry Inventory Management Pain Points and WMS Warehouse Management System Solutions

3 and a half years of testing experience, I don't have 20K, it seems it's time to change jobs

电子行业库存管理痛点与WMS仓储管理系统解决方案

实例034:调用函数

监控易火星版即将亮相:分布式运维帮助TOP3000大企业跨越管理鸿沟

NIO之Selector执行流程
随机推荐
元旦快乐(2022)
实例033:列表转字符串
1.0.0到1.0.2的底层数据库表的更新,需要再重新自建数据库吗?
香农与信息论三大定律
SQL Alias Aliases
编译型语言与解释型语言的区别
Monitor is easy to Mars debut: distributed operations help TOP3000 across management gap
【C语言刷题】Leetcode238——除自身以外数组的乘积
Why young people are snapping up domestic iPhone, because it is much cheaper and more populist
E. Add Modulo 10(规律)
中断向量表概述
面试官:谈谈如何防止消息丢失和消息重复
新公链时代的跨链安全性解决方案
流量分析第二题
洛谷P2574 XOR的艺术
【C语言刷题】牛客JZ65——不用四则运算作加法
Mysql基础篇(视图)
JVM内存和垃圾回收-03.运行时数据区概述及线程
ROS基本编程概述
Mppt光伏最大功率点跟踪控制matlab仿真