当前位置:网站首页>geoserver+mysql+openlayers问题点
geoserver+mysql+openlayers问题点
2022-08-02 18:47:00 【Jennifer33K】
1. tomcat下部署geoserver解决跨域访问问题
报错:Access to XMLHttpRequest at 'http://localhost:8900/geoserver/cite/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=cite%3Apoi&maxFeatures=50&outputFormat=application%2Fjson' from origin 'http://localhost:8090' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
2. win10 处理shp数据进入mysql(报错cygwin1.dll丢失)
3. wfs要素url:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": "points.1",
"geometry": {
"type": "Point",
"coordinates": [
116.311,
40.014
]
},
"geometry_name": "location",
"properties": {
"name": "圆明园",
"x": "116.310558",
"y": "40.014033"
}
},
{
"type": "Feature",
"id": "points.2",
"geometry": {
"type": "Point",
"coordinates": [
116.335,
40.0105
]
},
"geometry_name": "location",
"properties": {
"name": "清华大学",
"x": "116.335279",
"y": "40.010497"
}
},
{
"type": "Feature",
"id": "points.3",
"geometry": {
"type": "Point",
"coordinates": [
116.278,
40.0065
]
},
"geometry_name": "location",
"properties": {
"name": "颐和园",
"x": "116.277787",
"y": "116.277787"
}
},
{
"type": "Feature",
"id": "points.4",
"geometry": {
"type": "Point",
"coordinates": [
116.405,
39.9154
]
},
"geometry_name": "location",
"properties": {
"name": "天安门",
"x": "116.404844",
"y": "39.915378"
}
},
{
"type": "Feature",
"id": "points.5",
"geometry": {
"type": "Point",
"coordinates": [
116.434,
39.9101
]
},
"geometry_name": "location",
"properties": {
"name": "北京站",
"x": "116.434164",
"y": "39.910065"
}
},
{
"type": "Feature",
"id": "points.6",
"geometry": {
"type": "Point",
"coordinates": [
116.225,
39.8565
]
},
"geometry_name": "location",
"properties": {
"name": "卢沟桥",
"x": "116.224895",
"y": "39.85647"
}
},
{
"type": "Feature",
"id": "points.7",
"geometry": {
"type": "Point",
"coordinates": [
116.327,
39.9025
]
},
"geometry_name": "location",
"properties": {
"name": "北京西站",
"x": "116.32723",
"y": "39.901652"
}
},
{
"type": "Feature",
"id": "points.8",
"geometry": {
"type": "Point",
"coordinates": [
116.612,
39.9025
]
},
"geometry_name": "location",
"properties": {
"name": "北京首都国际机场",
"x": "116.612388",
"y": "40.085613"
}
}
],
"totalFeatures": 8,
"numberMatched": 8,
"numberReturned": 8,
"timeStamp": "2022-07-27T15:18:10.256Z",
"crs": {
"type": "name",
"properties": {
"name": "urn:ogc:def:crs:EPSG::4326"
}
}
}
4.效果
问题参考:
1. 图解将shape file导入MySQL数据库中 - 知乎 (zhihu.com)
2. 将shp文件导入到mysql数据库中 - whh - 博客园 (cnblogs.com)
3. geoserver跨域问题解决 - 陈先生86 - 博客园 (cnblogs.com)
4. GeoServer 2.15.2版本跨域问题解决方法 - 昜木辰deブログ - 博客园 (cnblogs.com)
边栏推荐
- 流量分析三—远程登陆
- 洛谷P4799 世界冰球锦标赛
- Electronic Industry Inventory Management Pain Points and WMS Warehouse Management System Solutions
- ROS基本编程概述
- Mppt photovoltaic maximum power point tracking control matlab simulation
- register和volatile的区别
- 阿里测试8年经验,靠着这份理解,我才得以生存下来
- WIFi 开关控制实现-ESP8266 物联网 android studio arduino QT多线程服务器
- 7.25 - 每日一题 - 408
- 下载mysql的源码包
猜你喜欢
流量分析第一题
LSB利器-zsteg
喜迎八一 《社会企业开展应聘文职人员培训规范》团体标准出版发行会暨橄榄枝大课堂上线发布会在北京举行
[论文分享] VideoFlow: A Flow-Based Generative Model for Video
Functional test points for time, here is a comprehensive summary for you
Win11dll文件缺失怎么修复?Win11系统dll文件丢失的解决方法
Golang swagger :missing required param comment parameters
去年,一道蚂蚁金服笔试题,还行,中等难度
如何获取EasyCVR平台设备通道的RTMP视频流地址?
动态折线图,制作原来是这么简单
随机推荐
AtomicInteger详解
流量分析第二题
快速掌握jmeter(一)——实现自动登录与动态变量
cache2go-源码阅读
MySQL LIKE – 语法和用法示例教程
WPF login with Prism
深度学习-学习笔记(持续更新)
互联网寒冬,挚友7面阿里,终获Offer
Why young people are snapping up domestic iPhone, because it is much cheaper and more populist
Mobile Banking Experience Test: How to Get the Real User Experience
MySQL主从搭建(问题大聚集,告别部署烦恼)
我靠这套笔记自学,拿下字节50万offer....
论文阅读_胶囊网络CapsNet
常用随机变量的数学期望和方差
松鼠短视频系统为用户加入随机头像代码-快速为用户加上随机头衔
看【C语言】实现简易计算器教程,让小伙伴们为你竖起大拇指
7.24 - 每日一题 - 408
1.0.0到1.0.2的底层数据库表的更新,需要再重新自建数据库吗?
arcgis 分子式标注
[Dynamic Programming Special Training] Basics