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

「日志」深度学习 CUDA环境配置

竞赛:糖尿病遗传风险检测挑战赛(科大讯飞)

如何正确地配置入口文件?

喜迎八一 《社会企业开展应聘文职人员培训规范》团体标准出版发行会暨橄榄枝大课堂上线发布会在北京举行

I have 8 years of experience in the Ali test, and I was able to survive by relying on this understanding.

博云入选 Gartner 中国 DevOps 代表厂商

mongodb的游标

sed 命令

快速掌握jmeter(一)——实现自动登录与动态变量

Functional test points for time, here is a comprehensive summary for you
随机推荐
深度学习-学习笔记(持续更新)
Why young people are snapping up domestic iPhone, because it is much cheaper and more populist
【C语言刷题】双指针原地修改数组(力扣原题分析)
阿里35+老测试员生涯回顾,自动化测试真的有这么吃香吗?
3 and a half years of testing experience, I don't have 20K, it seems it's time to change jobs
请教一个数据库连接池的问题,目前已知是事务未设置超时,又有一块代码事务没有提交,一直把连接给耗尽了,
[深入研究4G/5G/6G专题-49]: 5G Link Adaption链路自适应-5-上行链路自适应ULLA-PUSCH信道
How to mitigate the attack of corporate account hijacking?
Gradle系列——Gradle的build.gradle文件详情,项目发布(基于Gradle文档7.5)day3-3
线程池原理与实践|从入门到放弃,深度解析
项目分析(复杂嵌入式系统设计)
7.23 - 每日一题 - 408
淘宝|蚂蚁|菜鸟|盒马|嘀嘀|饿了么面经(已拿多个offer)
洛谷P4316 绿豆蛙的归宿
详解卡尔曼滤波原理
js Fetch返回数据res.json()报错问题
What skills are the most practical for college students in communications?
NIO's Selector execution process
register和volatile的区别
流量分析四—蓝牙