GeoServer

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
第109行: 第109行:
 
  http://localhost:8080/geoserver/config/data/store.do
 
  http://localhost:8080/geoserver/config/data/store.do
 
and click on the "New" link, you should see the MIFDataStore in the combo box of available DataStores.
 
and click on the "New" link, you should see the MIFDataStore in the combo box of available DataStores.
 +
 +
error
 +
geometryFactory 必须是有效的 class 
 +
com.vividsolutions.jts.geom.GeometryFactory: java.io.IOException: Could
 +
not create com.vividsolutions.jts.geom.GeometryFactory from text
 +
提供的参数无法被处理
  
 
===Oracle===
 
===Oracle===

2008年2月29日 (五) 09:02的版本

GeoServer项目基于J2EE平台,实现OpenGIS联合会的WFS(Web Feature Server)和WCS(Web Coverage Server)标准,并提供集成的WMS(Web Map Server)。

  • WFS(Web Feature Server) 网络: Communicates real geographic data (roads, rivers etc.) to and from the user in the form og GML(Geography Markup Language).
  • WCS(Web Coverage Server) 网络覆盖服务:
  • WMS(Web Map Server) 网络地图服务: Displays geographic data as raster(栅格) images (maps).如 Google Map

目录

Coverage Plugins

GeoServer 1.6.0 支持的Coverage

  • ImageMosaic / 1.0 Image mosaicking plugin
  • ArcGrid / 1.0 Arc Grid Coverage Format
  • Gtopo30 / 1.0 Gtopo30 Coverage Format
  • GeoTIFF / 1.1 Tagged Image File Format with Geographic information
  • WorldImage / 1.0 A raster file accompanied by a spatial data file

File Type

如:

  • cities.avl
  • cities.dbf
  • cities.fix
  • cities.prj
  • cities.qix
  • cities.shp
  • cities.shx

一些格式和源数据定义:

Features

  • Fully compliant to WMS, WFS (1.0 and 1.1) and WCS specifications, as tested by the CITE conformance tests.
  • Easy to use web-based configuration tool - no need to touch long, complicated config files.
  • Mature support for PostGIS, Shapefile, ArcSDE, DB2 and Oracle.
  • VPF, MySQL, MapInfo, and Cascading WFS are also supported formats.
  • On the fly reprojection, with an embedded EPSG database supporting hundreds of projections by default.
  • Web Map output as jpeg, gif, png, SVG, GeoJSON GeoRSS.
  • Excellent Google Earth Support
  • Raw vector data available as GML and zipped Shapefiles through the WFS.
  • WCS and WMS Raster support, including support for
  • Anti-aliased images.
  • Integrated OpenLayers as a default ajax viewer.
  • Standards compliant 'by default' - no need to figure out complex configuration options just to serve basic data.
  • Streaming data readers: no memory bound limit to the amount of data that can be returned.
  • Full SLD support, both user defined (POST and GET), as well as used in styling configuration.
  • Full Filter support on all data formats in WFS (but optimized for backend format where possible).
  • Support for atomic database transactions through the standard WFS-T protocol, available on all data formats.
  • Long Transactions through a full implementation of the Locking portion of the WFS specification.
  • Innovative Validation Engine that checks inserted features against a configured set of topological and attributed based rules, to maintain backend integrity.
  • Java (J2EE) servlet-based, can run in any servlet container.
  • Designed for extension, source code that's a pleasure to read.
  • Easy to write new data formats with GeoTools DataStore interfaces and helper classes, making GeoServer the standards based interface to legacy data.
  • No need to recompile to support more data formats, GeoTools DataStores instantly plug-in to GeoServer, even showing up as an option in the configuration gui.
  • True open source development style, built by a strong community, that you can join and become a part of, tailoring GeoServer for your needs.
  • Documentation that details everything in easy to understand language.
  • Active email lists for quick support.
  • Commercial grade installation, support, customization and improvements available from an eco-system of companies, non-profits, and consulting individuals.

from http://docs.codehaus.org/display/GEOS/Features

Install

获得 geoserver-1.6.0-RC2.exe, 包含 Jetty Web Server
安装后启动服务
服务端: http://localhost:8080/geoserver
用户名是 'admin',密码是'geoserver'
客户端: http://localhost:8080/geoserver/mapPreview.do
GeoServer Architecture

Maven

svn checkout https://svn.codehaus.org/geoserver/trunk/geoserver geoserver
cd geoserver
mvn compile
mvn install
cd ..
mkdir configuration
cd configuration
svn checkout https://svn.codehaus.org/geoserver/trunk/configuration/release
mvn install -DconfigId=release -DconfigDirectory=../../configuration
mvn jetty:run
http://localhost:8080/geoserver/welcome.do
or
mvn -o jetty:run // Offline Mode
or 
mvn install // Alternate data_dir configuration
mvn run -DGEOSERVER_DATA_DIR=/Users/cholmes/gs-dir

more detail: http://docs.codehaus.org/display/GEOSDOC/2+Maven+Quickstart

DataStore

geoserver支持的数据源有:PostGIS、Shapefile、ArcSDE、Oracle、VPF、MySQL、MapInfo

MySQL

MySQL DataStore Extensions

如: http://prdownloads.sourceforge.net/geoserver/geoserver-1.4.1-mysql-plugin.zip?download
  • 1. Copy included gt2-mysql and mysql-connector-java jars included to your GeoServer library directory. In a binary install this is at [GEOSERVER_HOME]/server/geoserver/WEB-INF/lib/ In a war install this is [container]/webapps/geoserver/WEB-INF/lib/
  • 2. Restart GeoServer.

MySQL should now show up as an option in the web admin tool at Config -> Data -> Stores -> New. Fill out the appropriate params.

http://docs.codehaus.org/display/GEOSDOC/MySQL+DataStore

from http://sourceforge.net/projects/opengeodb/

CREATE DATABASE opengeodb DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON opengeodb.* TO opengeodb@localhost IDENTIFIED BY 'opengeodb';
flush privileges;
use opengeodb;
\. opengeodb-02513_2007-10-02.sql // 45.5 MB的数据,要导入比较长的时间
或使用 mysql opengeodb < opengeodb-02513_2007-10-02.sql -uroot -p // 不知是否要快些

PostGIS

PostGIS View as a FeatureType

Create the view, which must contain the oid field from the source table:

CREATE OR REPLACE  VIEW test AS SELECT oid, key, country, geom FROM countries;

insert a record into the geometry_columns table:

INSERT INTO "geometry_columns" VALUES (,'public','test','geom',2,4326,'MULTIPOLYGON');

more detail: http://docs.codehaus.org/display/GEOSDOC/PostGIS+DataStore

MapInfo

There's a new MIFDataStore available that let's you read and write in Mapinfo MIF/MID format.To get more information about it see

http://localhost:8080/geoserver/config/data/store.do

and click on the "New" link, you should see the MIFDataStore in the combo box of available DataStores.

error

geometryFactory 必须是有效的 class  
com.vividsolutions.jts.geom.GeometryFactory: java.io.IOException: Could
not create com.vividsolutions.jts.geom.GeometryFactory from text
提供的参数无法被处理

Oracle

more detail: http://docs.codehaus.org/display/GEOSDOC/PostGIS+DataStore

Open Data

中国

国家基础地理信息系统数据下载服务来源 :

http://nfgis.nsdi.gov.cn/nfgis/chinese/c_xz.htm

Data Loading

Load NASA Blue Marble Data: 2.78G

http://www.geotorrent.org/torrents/61.torrent

Links

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱