当前位置:网站首页>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)'));
边栏推荐
- 洛谷P4799 世界冰球锦标赛
- From the technical panorama to the actual scene, analyze the evolutionary breakthrough of "narrowband high-definition"
- 麦聪DaaS平台 3.7.0 Release 正式发布:全面支持国际化
- 深度学习-学习笔记(持续更新)
- 就刚刚,鸿蒙3.0发布了,华为还一口气发布了十一款产品
- 平稳发展 | 西欧地区手游玩家的数据和洞察
- I have 8 years of experience in the Ali test, and I was able to survive by relying on this understanding.
- 备战无人机配送:互联网派To C、技术派To B
- arcgis 分子式标注
- Go----Go 语言快速体验之开发环境搭建及第一个项目HelloWord
猜你喜欢
简单有效又有用的关闭antimalware service executable的方法·备份记录
LSB利器-zsteg
Mppt photovoltaic maximum power point tracking control matlab simulation
Gradle系列——Gradle的build.gradle文件详情,项目发布(基于Gradle文档7.5)day3-3
流量分析第一题
微服务-gateway【服务网关入门】
Mppt光伏最大功率点跟踪控制matlab仿真
NC | 土壤微生物组的结构和功能揭示全球湿地N2O释放
【C语言刷题】双指针原地修改数组(力扣原题分析)
JVM内存和垃圾回收-05.虚拟机栈
随机推荐
【C语言刷题】Leetcode238——除自身以外数组的乘积
cache2go-源码阅读
NIO's Selector execution process
Golang sync/atomic 包的原子操作说明
EasyCVR平台通过国标GB28181接入柯达NVR显示注册失败,该如何解决?
codeforces:E. Add Modulo 10【状态压缩 + 找规律】
Why young people are snapping up domestic iPhone, because it is much cheaper and more populist
从技术全景到场景实战,透析「窄带高清」的演进突破
Win11主题下载一直转圈怎么办?Win11主题下载一直转圈的解决方法
Gradle系列——Gradle的build.gradle文件详情,项目发布(基于Gradle文档7.5)day3-3
浅谈混迹力扣和codeforces上的几个月
SQL Alias Aliases
我靠这套笔记自学,拿下字节50万offer....
Electronic Industry Inventory Management Pain Points and WMS Warehouse Management System Solutions
松鼠短视频系统为用户加入随机头像代码-快速为用户加上随机头衔
针对时间的功能测试点,这里给你总结全面了
From the technical panorama to the actual scene, analyze the evolutionary breakthrough of "narrowband high-definition"
AtomicInteger详解
就刚刚,鸿蒙3.0发布了,华为还一口气发布了十一款产品
麦聪DaaS平台 3.7.0 Release 正式发布:全面支持国际化