GeoServer

cesium 结合 geoserver 实现地图属性查询(附源码下载)

荒凉一梦 提交于 2019-12-07 11:42:26
前言 cesium 官网的api文档介绍地址 cesium官网api ,里面详细的介绍 cesium 各个类的介绍,还有就是在线例子: cesium 官网在线例子 ,这个也是学习 cesium 的好素材。 内容概览 1.cesium 结合 geoserver 实现地图属性查询 2.源代码 demo 下载 效果图如下: 实现思路:首先利用 geoserver 发布的图斑 WFS 服务,通过 url 的 rest 请求,构造属性查询形式,获取 geojson 数据源;然后调用cesium api 的 Cesium.GeoJsonDataSource.load 加载 geojson 数据源渲染展示;最后监听地图点击事件,获取矢量数据的属性,显示在右上角的信息窗口。 地图初始化创建: var viewer = new Cesium.Viewer('map', { geocoder: false, homeButton: false, sceneModePicker: false, fullscreenButton: false, vrButton: false, baseLayerPicker: false, infoBox: false, selectionIndicator: false, animation: false, timeline: false, shouldAnimate

How deploy geoserver web archive with apache tomcat 8?

白昼怎懂夜的黑 提交于 2019-12-07 05:41:01
问题 I want to run geoserver web archive in my tomcat web server. I'm using tomcat 8. I download GeoServer 2.7.1.1 web archive from geoserver. When I want to deploy the war file, Error occurs as follow: But when I deploy another war application, it deployed correctly. Where is problem? 回答1: The reason for this is because, Tomcat WebServer has a size limit of 50 mb max which is smaller than Geoserver war file. All you need to do is to modify DIR\webapps\manager\WEB-INF\web.xml and modify the

Geoserver - GetFeatureInfo of raster/wms layer multiple points/location or bounding box

寵の児 提交于 2019-12-06 10:43:50
问题 I am using Geoserver 2.8.1 version. I have netcdf and grib files, and I am uploading those to Geoserver through Geoserver extensions . After that, I use those data to show layer feature info in the map. (According to zoom scale and image size)I put arrows in the map to reference wind and wave directions. I calculate, to which angle the arrow will be positioned, by getting netcdf info like this; localhost:8080/geoserver/wms?Service=WMS&version=1.3&bbox=23.75,32.75,24.25,33.25&layers=it

Sencha Touch, OpenLayers, GeoServer: Wrong encoding on devices using Android 2.2

血红的双手。 提交于 2019-12-06 04:36:40
This question was migrated from Geographic Information Systems Stack Exchange because it can be answered on Stack Overflow. Migrated 8 years ago . I have created a small test page using Sencha Touch , OpenLayers and I am recieving WMS/WFS data from a GeoServer . I have set the encoding on my HTML page to UTF-8: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> I pull some WFS data from my GeoServer using the following statement: var post = new OpenLayers.Request.POST({ url: 'dataprovider.ashx', data: ..., headers: { "Content-Type": "text/xml;charset=utf-8" }, callback:

unbuntu16.04安装geoserver运行环境

ぐ巨炮叔叔 提交于 2019-12-06 02:34:39
1.下载并上传 在windows下载 geoserver 2.15.1 Platform Independent Binary版本, 是zip文件,然后使用xfile将zip上传到/usr/geoserver文件夹下 2.使用unzip解压geoserver压缩包 apt-get install unzip unzip /usr/geoserver/geoserver-2.15.1.bin.zip 3.下载openjdk apt-get update apt-get install openjdk-8-jdk java -version openjdk version "1.8.0_222" OpenJDK Runtime Environment (build 1.8.0_222-8u222-b10-1ubuntu1~16.04.1-b10) OpenJDK 64-Bit Server VM (build 25.222-b10, mixed mode) 4.后台运行geoserver即可 运行bin下的startup.sh即可,这里使用nohub命令后台运行 nohup /usr/geoserver/geoserver-2.15.1/bin/startup.sh & 然后通过domain.com:8080/geoserver/web访问,默认账号密码 admin geoserver

geoserver jsonp 跨域获取数据

早过忘川 提交于 2019-12-05 13:33:05
geoserver jsonp 跨域获取数据 修改web.xml中的配置 <context-param> <param-name>ENABLE_JSONP</param-name> <param-value>true</param-value> </context-param> var tiled_01GKDw = new ol.layer.Tile({ visible: true, source: new ol.source.TileWMS({ url: 'http://geoserver.zhatu.jinan.czczh.cn/geoserver/ztc/wms', params: { 'FORMAT': 'image/png8', 'VERSION': '1.1.1', tiled: true, // 使用瓦片图 "LAYERS": 'ztc:ztc_road', // 使用的图层 "exceptions": 'application/vnd.ogc.se_inimage', }, projection: 'EPSG:4326' }) }); var map = new ol.Map({ target: 'map', maxResolution: "auto", layers: [ new ol.layer.Tile({ source: new ol.source.OSM(

Authenticate in geoserver with asp.net and iis

有些话、适合烂在心里 提交于 2019-12-05 12:51:10
I don't know if this is a dumb question, but how can I "combine" the asp.net authentication with openlayers? I created a Login page to authenticate in openlayers (in c#, server side), this is my code Uri uri = new Uri("http://"+username+":"+password+"@localhost:1979/geoserver/wms"); if (uri.Scheme == Uri.UriSchemeHttp) { HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create(uri); request.Method = WebRequestMethods.Http.Post; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); StreamReader reader = new StreamReader(response.GetResponseStream()); string tmp = reader

How deploy geoserver web archive with apache tomcat 8?

拈花ヽ惹草 提交于 2019-12-05 10:16:10
I want to run geoserver web archive in my tomcat web server. I'm using tomcat 8. I download GeoServer 2.7.1.1 web archive from geoserver . When I want to deploy the war file, Error occurs as follow: But when I deploy another war application, it deployed correctly. Where is problem? The reason for this is because, Tomcat WebServer has a size limit of 50 mb max which is smaller than Geoserver war file. All you need to do is to modify DIR\webapps\manager\WEB-INF\web.xml and modify the following lines: <multipart-config> <!-- 52MB max --> <max-file-size>52428800</max-file-size> <max-request-size

Display WFS layer in ol3

╄→尐↘猪︶ㄣ 提交于 2019-12-05 06:27:36
问题 I'm working with geoserver and openlayers 3, i have a hosted layer in geoserver that i want display using ol3 as a wfs layer. it doesn't show any errors, but i dont get the map. it works with wms, but not wfs. I'm using wamp server to host my application. Please can anyone help me to fix that? This is my code : var v=new ol.layer.Vector({ source: new ol.source.Vector({ format: new ol.format.WFS({ version: '1.1.0', url: 'http://localhost:8080/geoserver/wfs', featurePrefix: 'opengeo',

Javascript editing WFS from GeoServer using OpenLayers

て烟熏妆下的殇ゞ 提交于 2019-12-05 02:30:36
问题 After reading a very good tutorial on how to edit WFS with OpenLayers, I've tried replicating it but with my own WFS layer from Geoserver. Need some Javascript help finding what's wrong with it. I managed to load the WFS and my basemap successfully and managed to get the buttons to show up. The buttons appear correctly like in the working example from that page but, for some reason the geometry data isn't being saved. Every time a user draws something, a new id is created on the table but its