当前位置:网站首页>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)
边栏推荐
- 手机银行体验性测试:如何获取用户真实感受
- T5: Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
- 日常开发中,String类中常用的方法
- 洛谷P1966 火柴排队
- LeetCode每日一题(324. Wiggle Sort II)
- thinkphp框架5.0.23安全更新问题-漏洞修复-/thinkphp/library/think/App.php具体怎么改以及为什么要这么改
- 喜迎八一 《社会企业开展应聘文职人员培训规范》团体标准出版发行会暨橄榄枝大课堂上线发布会在北京举行
- 「日志」深度学习 CUDA环境配置
- 【动态规划专项训练】基础篇
- I have 8 years of experience in the Ali test, and I was able to survive by relying on this understanding.
猜你喜欢

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

What skills are the most practical for college students in communications?

Mppt photovoltaic maximum power point tracking control matlab simulation

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

平稳发展 | 西欧地区手游玩家的数据和洞察

研发了 5 年的时序数据库,到底要解决什么问题?

Sentinel vs Hystrix 限流对比,到底怎么选?

实例033:列表转字符串

阿里测试8年经验,靠着这份理解,我才得以生存下来

【学习日记】win64配置openni的vs2022编译环境
随机推荐
AtomicInteger详解
[论文分享] VideoFlow: A Flow-Based Generative Model for Video
JVM内存和垃圾回收-03.运行时数据区概述及线程
洛谷P5094 MooFest G 加强版
C#里如何简单的校验时间格式
详解卡尔曼滤波原理
洛谷P2880 Balanced Lineup G
去年,一道蚂蚁金服笔试题,还行,中等难度
【C语言刷题】牛客网刷题——替换空格
论文阅读_胶囊网络CapsNet
7.25 - 每日一题 - 408
Mppt photovoltaic maximum power point tracking control matlab simulation
Golang swagger :missing required param comment parameters
注释
浅谈一下pyd文件的逆向
MySQL LIKE – 语法和用法示例教程
情景剧《重走长征路》上演
为何国内年轻人都抢购iPhone,因为它更实惠也更亲民
Sentinel vs Hystrix 限流对比,到底怎么选?
SQL Alias Aliases