GeoServer

GeoServer安装与数据配置

给你一囗甜甜゛ 提交于 2019-11-26 11:48:31
1、 GeoServer 简介 GeoServer,顾名思义,是一“服务器”,用于发布和编辑地理数据。它是一款用Java语言开发的,在OGC标准下支持用户浏览和编辑数据的开源软件。利用它可以很好地提供和WMS服务。 GeoServer能够发布的数据类型: 地图或影象——应用WMS, 实时数据——应用WFS, 用户更新、删除和编辑的数据——应用WFS-T。 也可以说,GeoServer是一种提供在Web上显示地图,并且能够对其进行平移、缩放操作的工具。同时,作为服务器,它的功能一般通过与OpengLayers、Google Earth、uDig、GVSig等客户程序结合使用表现出来。它们的关系表示如图: 2、 安装( windons环境 ) 1) 安装 JDK 如果您的机器没有安装 JDK(不是JRE),那么,安装 GeoServer之前,要下一个装一下,最好是1.4的。 这里下载 下好后,启动安装程序,在安装过程中,下图的一步要看一下:不要安装公共的JRE。 安装路径采用默认的即可。 2) 安装GeoServer GeoServer目前最新版本是2.0,我们可以用1.6.3的就可以了。 下载这里 启动安装程序,如果弹出提示框如下: 意思是提示您要设置一个名为JAVA_HOME的环境变量,其值为您的JDK所在的路径,这里即C:\j2sdk1.4.2_07。 设置JAVA

The infamous java.sql.SQLException: No suitable driver found

谁都会走 提交于 2019-11-25 22:55:11
问题 I\'m trying to add a database-enabled JSP to an existing Tomcat 5.5 application (GeoServer 2.0.0, if that helps). The app itself talks to Postgres just fine, so I know that the database is up, user can access it, all that good stuff. What I\'m trying to do is a database query in a JSP that I\'ve added. I\'ve used the config example in the Tomcat datasource example pretty much out of the box. The requisite taglibs are in the right place -- no errors occur if I just have the taglib refs, so it\

geoserver jsonp 跨域获取数据

风格不统一 提交于 2019-11-25 21:14:02
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://127.0.0.1/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(), projection: 'EPSG