GeoServer

Geoserver generate web archive file

一个人想着一个人 提交于 2019-12-12 14:10:00
问题 I'm doing some changes in Geoserver source. I used quick start guide from here. I done all steps in guide and it works fine. When I run as java project with web-app/org.geoserver.web/start.java file , It works fine. But I want to produce war file similar to geoserver.war in geoserver releases. I didn't find any documentation or example about it. 回答1: I solved the problem with geoserver developer manual.There wasn't a spesific topic but thanks to geoserver developer Jody Garnett ,I found this

Change the visibility of layer by using variable instead of layer's name itself

坚强是说给别人听的谎言 提交于 2019-12-12 06:58:48
问题 This is my select option. <select id="sel_dist" onChange="seldist();"> <option value="layer1" selected=selected>None</option> <option value="layer2">1</option> <option value="layer3">2</option> </select> This is my layer in Openlayers layer1 = new OpenLayers.Layer.WMS("Map",serverWMS, {layers: 'test:Layer1',transparent: true}, {isBaseLayer:false, visibility: false}); What i want to do is when i select option "Layer 1", layer 1 should be visible. function seldist() { var layer_name=$("#sel

Geowebcache + Openlayers3 with XYZ source: error by zooming the map

非 Y 不嫁゛ 提交于 2019-12-12 04:25:53
问题 I'm trying the do the same map as here: Openlayers3: tile grid incorrect with pixelratio=3 using Geoserver/Geowebcache as backend but using the TMS protocol instead of WMS. The map works good but there is a little problem by zooming in, only by changing from zoom level 4 to zoom level 5: the map seems to "jump upwards". The problem occurs with all pixel ratio. This is my source code. Any help is appreciated: <!DOCTYPE html> <html> <head> <title>WMS Tiles</title> <link rel="stylesheet" href=

How can I stop the geoserver?

梦想与她 提交于 2019-12-12 03:17:41
问题 Actually I want to enable_jsonp in my geoserver. For this I have to change the code as suggested by this answer. When I tried to stop the geoserver (located inside geoserver2..15.0/bin/shutdown.bat folder), the cmd was crashed. I am not able to enable the jsonp unless the geoserver was stoped. I know, I install the geoserver install as service in installation process. I think this issue may be arises from there. Any help? 回答1: You can stop the service. Launch Windows Services (type services

C# How to solve Web Client Upload file “The remote server returned an error: (405) Method Not Allowed.”?

痞子三分冷 提交于 2019-12-12 01:52:43
问题 Hello I want to upload a html file that is in my local to a remote folder in a server that contains a data dir with geoserver elements, and here is my code: public void CopyWS(string SourcePath, string DestinationPath) { try { string SourcePath = Path.GetFullPath("Result.html"); string DestinationPath = @"http://xx.xx.xxx.:8080/geoserver/rest/workspaces/"; string authInfo = "admin:geoserver"; WebClient client = new WebClient(); client.Headers["Authorization"] = "Basic " + Convert

GeoServer发布Shapfile、PostGIS数据

一个人想着一个人 提交于 2019-12-12 00:11:05
GeoServer发布Shapfile、PostGIS数据 一、GeoServer发布Shapfile数据 1.1 创建工作区 1.1.1 工作区 1.2 在工作区中加入新的数据存储 1.2.1 数据存储 1.3 发布图层 1.4 预览图层 二、GeoServer发布PostGIS中的数据 相关博文原文地址: CSDN:不睡觉的怪叔叔: 使用GeoServer发布Shapfile数据 CSDN:不睡觉的怪叔叔: 使用GeoServer发布PostGIS中的数据 一、GeoServer发布Shapfile数据 浏览器进入:http://localhost:8084/geoserver/web/ 界面。 进入Geoserver的Web管理页面。在Geoserver的Web管理页面中输入用户名与密码进行登录。如果是默认安装,那么用户名为"admin",密码为"geoserver"。 1.1 创建工作区 在GeoServer中发布和部署地图数据涉及到的几个重要概念—— 工作区(WorkSpace)、数据存储(Store)和图层组 等。 1.1.1 工作区 工作区 (有时又称为命名空间)是一个用于组织类似图层数据(数据集)的容器。常常会把某个项目或工程的相关图层数据存放到一个工作区里。通过工作区的使用,可以避免相同图层名的冲突。例如,在名为beijing工作区中的streets图层

OpenLayers3 no refresh WMS in zoom-in

徘徊边缘 提交于 2019-12-11 15:29:18
问题 I have an aplication, made with OpenLayers3, GeoServer and ReactJS, showing some WMS. And for a strange reason I can't manage to refresh the image when I zoom in ONLY if the screen resolution is wider that 1314px. It's very strange, if the resolution is for example 1310, I can do normally zoom-in and zoom-out and the wms got refreshed after every zoom, BUT, if the resolution is wider than 1315px, ONLY zoom out works, but not zoom in. Any one had experimented something like this before? This

Liferay + Geoserver

断了今生、忘了曾经 提交于 2019-12-11 11:37:39
问题 I've geoserver 2.1.3 and Liferay 6 ga1 the problem is .. I'm using 2 different ports for each , geoserver running on 8080 and Liferay running on 8082. This is a waste since its possible to have geoserver running in Liferay , right? The problem is How can I integrate GeoServer with Liferay? Thanks 回答1: Liferay is just a web application, just like any other regular web application is. Don't let yourself be tricked by the fact that you can download tomcat bundles: You can also download the WAR

Geoserver - filtering points using DWITHIN

前提是你 提交于 2019-12-11 11:29:07
问题 First of all I am new to Geoserver and Openlayers. I have been trying to get this working on the Geoserver side using the Layer preview page to view my layer using the Openlayer viewer. I would be implementing it as an Openlayers WFS GET request in the end. What I am trying to accomplish is to return features that are within a certain distance of different points. (ie. within 5km of a school) I am using the Layer preview page on Geoserver . I have added the CQL filter of "DWITHIN(GEOM, POINT(

Geoserver - Connect to a SQL Server 2008 Express and fetch data

荒凉一梦 提交于 2019-12-11 10:45:18
问题 - Bref history: - I was using MapServer, everything was working fine except that when I was drawing a marker directly on a layer using a PixMap it was cut between tile. So, I decided to change to GeoServer which looks to work correctly to draw tiles where you have some image/pixmap between tiles. - End of history - Ok, I am able to connect to my data store which is Ms Sql Server 2008 (Express edition). Perhaps, I am not able to show anything on my OpenLayer map. Example of point in my