GeoServer: Unterschied zwischen den Versionen
Aus Geoinformation HSR
Stefan (Diskussion | Beiträge) |
Stefan (Diskussion | Beiträge) K (→Notizen) |
||
(30 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
Programm und Open Source-Projekt für einen Kartenserver. Dieser kann - im Gegensatz zum [[UMN MapServer]] - speziell auch zur Aktualisierung von Vektordaten ([[WFS]]-T) verwendet werden. | Programm und Open Source-Projekt für einen Kartenserver. Dieser kann - im Gegensatz zum [[UMN MapServer]] - speziell auch zur Aktualisierung von Vektordaten ([[WFS]]-T) verwendet werden. | ||
− | GeoServer ist in Java geschrieben und nutzt verschiedene Basisbibliotheken, wie z.B. die Java Topology Suite (JTS). | + | GeoServer ist in Java geschrieben und nutzt verschiedene Basisbibliotheken, wie z.B. die Java Topology Suite (JTS). Der GeoServer kann kein WMS als Datenquelle lesen. |
+ | |||
+ | Siehe auch: | ||
+ | * [[Open Geo-Stack]] | ||
+ | * [[UMN MapServer]], [[FeatureServer]], [[QGIS Server]], [[WFS]]-T, [[SLD]]. | ||
+ | * Web map caching [[MapProxy]] (Python) und [[MapCache| MapCache (UMN MapServer)]] (C++). | ||
− | |||
− | |||
− | |||
− | |||
== Software und Tools == | == Software und Tools == | ||
− | * ... | + | * Homepage: http://geoserver.org |
+ | * Tiling & Caching: http://geowebcache.org/trac - GeoWebCache is a cache for WMS tiles implemented in Java | ||
+ | * Anwendungsbeispiel: [[OpenStreetMap-in-a-Box]] | ||
+ | |||
+ | == How To Install == | ||
+ | * run Tomcat with export JAVA_OPTS='-Djava.awt.headless=true' (see [http://docs.codehaus.org/display/GEOSDOC/Running+the+WMS+on+Linux GEOSDOC]) | ||
+ | * deploy it in webapps by moving the war file there and restart Tomcat | ||
+ | |||
+ | High performance coverage/raster data serving: | ||
+ | * To use a geoserver in a production environnent (i.e. with large raster data), the documentation [http://geoserver.org/display/GEOSDOC/2.6+GeoServer+in+Production+Environment GEOSDOC] tells that the JAI extension should be natively installed. | ||
+ | * The documentation also says that the best file format to use is tiled GeoTIFF. | ||
+ | * See [[GDAL]] and [http://geoserver.org/display/GEOSDOC/High+performance+coverage+serving GEOSDOC] | ||
+ | |||
+ | == Dokumentation/Hilfe == | ||
+ | |||
+ | GeoWebCache | ||
+ | * [http://workshops.opengeo.org/stack-intro/geowebcache.html Introduction to an Open Source Geostack: GeoWebCache] | ||
+ | |||
+ | GeoServer: | ||
+ | * [http://workshops.opengeo.org/stack-intro/install-geoserver.html Introduction to an Open Source Geostack: GeoServer] | ||
+ | * [http://www.fossgis.de/konferenz/w/images/7/72/Workshop_GeoServer_WFS_FOSSGIS2010.pdf GeoServer Workshop mit Schwerpunkt OGC WFS, A. Emde. FOSSGIS2010] | ||
+ | |||
+ | Tipps & Tricks: | ||
+ | * java.lang.OutOfMemoryError: Java heap space problems: On JVM (within Tomcat) to "-Xms48m -Xmx256M -XX:MaxPermSize=128m" | ||
+ | * Given several points with a point symbolizer using an external graphic (icon), icons may overlap. How can I avoid this? Answer: SLD does not have official support for this but you can use a TextSymbolizer extension we added to get something similar. Basically TextSymbolizer in GeoServer also accepts a Graphics object, so if you use an empty label (single space using a CDATA section so that it won't be eaten away) and the graphics you should get what you're looking for. | ||
+ | * The way to ensure a certain rendering order is by using separate FeatureTypeStyle elements in your SLD. Put all the road outlines in a separate FTS that occurs first in the document. | ||
+ | * Howto use a SLD within a request? This requires some matching between the SLD and the layer. You have to give the NamedLayer the proper name: <Name>topp:shape_CH</Name> and then either: mark the style as the default one (<UserStyle> should have <default>true</default> element) - or give the user style a name and refer to it in your request (&sld=...&styles=styleName). As a final alternative, don't mention neither the layer names and styles in the GetMap request and put everything in the SLD with proper names. | ||
+ | |||
+ | === Was sind die Datenquellen von GeoServer? === | ||
+ | |||
+ | Geodaten: | ||
+ | * [[Vektordaten]] | ||
+ | ** [[Shapefile]] | ||
+ | |||
+ | Darstellungsdaten: | ||
+ | * [[Symbole]]/Signaturen (siehe [[SLD]]) | ||
+ | |||
+ | Konfiguration: | ||
+ | * <geoserver-path>\WEB-INF\web.xml | ||
+ | * XML... | ||
+ | |||
+ | == Weblinks == | ||
+ | * [http://oegeo.wordpress.com/2008/05/20/the-5-minute-guide-to-setting-up-geoserver-and-geowebcache-on-windows/#more-44 The 5 minute guide to setting up GeoServer and GeoWebCache on Windows]. | ||
+ | * [http://blog.geoserver.org/2009/01/30/geoserver-and-openstreetmap/ GeoServer and OpenStreetMap] (mit PostGIS und grossem [[SLD]]). | ||
+ | |||
+ | == Notizen == | ||
+ | Der GeoServer kann u.a. ...: | ||
+ | * Generating clickable (html) image maps with [http://geoserver.org/display/GEOS/HTML+ImageMap+support GeoServer webpage]. | ||
+ | |||
+ | Der GeoServer kann u.a. (noch) *keine*...: | ||
+ | * keine Shapefiles einlesen (lieber ab DB) | ||
+ | |||
+ | [[Kategorie:Vektor]] | ||
+ | [[Kategorie:Raster]] | ||
+ | [[Kategorie:Software]] |
Aktuelle Version vom 20. April 2013, 16:11 Uhr
Programm und Open Source-Projekt für einen Kartenserver. Dieser kann - im Gegensatz zum UMN MapServer - speziell auch zur Aktualisierung von Vektordaten (WFS-T) verwendet werden.
GeoServer ist in Java geschrieben und nutzt verschiedene Basisbibliotheken, wie z.B. die Java Topology Suite (JTS). Der GeoServer kann kein WMS als Datenquelle lesen.
Siehe auch:
- Open Geo-Stack
- UMN MapServer, FeatureServer, QGIS Server, WFS-T, SLD.
- Web map caching MapProxy (Python) und MapCache (UMN MapServer) (C++).
Inhaltsverzeichnis
Software und Tools
- Homepage: http://geoserver.org
- Tiling & Caching: http://geowebcache.org/trac - GeoWebCache is a cache for WMS tiles implemented in Java
- Anwendungsbeispiel: OpenStreetMap-in-a-Box
How To Install
- run Tomcat with export JAVA_OPTS='-Djava.awt.headless=true' (see GEOSDOC)
- deploy it in webapps by moving the war file there and restart Tomcat
High performance coverage/raster data serving:
- To use a geoserver in a production environnent (i.e. with large raster data), the documentation GEOSDOC tells that the JAI extension should be natively installed.
- The documentation also says that the best file format to use is tiled GeoTIFF.
- See GDAL and GEOSDOC
Dokumentation/Hilfe
GeoWebCache
GeoServer:
- Introduction to an Open Source Geostack: GeoServer
- GeoServer Workshop mit Schwerpunkt OGC WFS, A. Emde. FOSSGIS2010
Tipps & Tricks:
- java.lang.OutOfMemoryError: Java heap space problems: On JVM (within Tomcat) to "-Xms48m -Xmx256M -XX:MaxPermSize=128m"
- Given several points with a point symbolizer using an external graphic (icon), icons may overlap. How can I avoid this? Answer: SLD does not have official support for this but you can use a TextSymbolizer extension we added to get something similar. Basically TextSymbolizer in GeoServer also accepts a Graphics object, so if you use an empty label (single space using a CDATA section so that it won't be eaten away) and the graphics you should get what you're looking for.
- The way to ensure a certain rendering order is by using separate FeatureTypeStyle elements in your SLD. Put all the road outlines in a separate FTS that occurs first in the document.
- Howto use a SLD within a request? This requires some matching between the SLD and the layer. You have to give the NamedLayer the proper name: <Name>topp:shape_CH</Name> and then either: mark the style as the default one (<UserStyle> should have <default>true</default> element) - or give the user style a name and refer to it in your request (&sld=...&styles=styleName). As a final alternative, don't mention neither the layer names and styles in the GetMap request and put everything in the SLD with proper names.
Was sind die Datenquellen von GeoServer?
Geodaten:
Darstellungsdaten:
Konfiguration:
- <geoserver-path>\WEB-INF\web.xml
- XML...
Weblinks
- The 5 minute guide to setting up GeoServer and GeoWebCache on Windows.
- GeoServer and OpenStreetMap (mit PostGIS und grossem SLD).
Notizen
Der GeoServer kann u.a. ...:
- Generating clickable (html) image maps with GeoServer webpage.
Der GeoServer kann u.a. (noch) *keine*...:
- keine Shapefiles einlesen (lieber ab DB)