781
지은이 GeoServer 개발자 커뮤니티 옮긴이 OSGeo한국어지부(권용찬, 김서인, 신상희, 이민파, 장병진) 한국어 사용자 설명서 GeoServer 2.4.x

GeoServer 2.4.x 한국어 사용자 지침서

Embed Size (px)

DESCRIPTION

Java 기반의 오픈 소스 GIS 맵서버인 GeoServer 2.4 버젼 한국어 사용자 지침서입니다. 본 사용자 지침서는 한국정보통신산업진흥원(NIPA)이 시행한 공개SW커뮤니티 출판·번역지원 사업을 통해 번역, 출판되었습니다. 본 문서의 라이선스는 Creative-Commons-Attribution 3.0 Unported를 따릅니다.

Citation preview

  • 1.GeoServer 2.4.x GeoServer OSGeo(, , , , )

2. GeoServer 2.4.x : GeoServer : OSGeo (, , , , ) : ()1. SW . 2. SW . 3. GeoServer 2.4.x 1 : 2013 12 9 1 : 2013 12 9 : GeoServer : OSGeo (, , , , ) : : : : OSGeo : : 1359 230 : 042-330-0400 : 042-330-0410 : 2012-000016 ISBN: 978-89-969532-2-7 . (CIP) (http://seoji.nl.go.kr) (http://www.nl.go.kr/kolisnet) .(CIP : CIP2013026870) 4. ..........................................................................................................................................iGeoServer .......................................................................................................................... 1 Chapter 1. ................................................................................................................................. 21.1. ............................................................................................................................................................................... 21.2.GeoServer ................................................................................................................................................... 21.3. ....................................................................................................................................................................... 31.4. ....................................................................................................................................................................... 5Chapter 2. ................................................................................................................................. 62.1. ........................................................................................................................................................................... 62.2. OS X ...................................................................................................................................................................... 152.3.Linux ........................................................................................................................................................................... 172.4.Web archive (WAR) ............................................................................................................................................. 192.5. ................................................................................................................................................................. 20Chapter 3. ........................................................................................................................ 223.1. ........................................................................................................................ 223.2.shape ..................................................................................................................................... 303.3.PostGIS ............................................................................................................................. 363.4. ................................................................................................................................................ 42Chapter 4.GeoServer ...................................................................................... 444.1. ................................................................................................................................................ 444.2. ............................................................................................................................................ 454.3. ........................................................................................................................................ 474.4. ................................................................................................. 51i 5. Chapter 5. ...................................................................................................... 555.1. ....................................................................................................................................................... 555.2. ............................................................................................................................................................................. 565.3. ....................................................................................................................................................... 665.4. ......................................................................................................................................................................... 705.5. ......................................................................................................................................................................... 975.6. ................................................................................................................................................................ 1035.7. .......................................................................................................................................................................... 1195.8. .......................................................................................................................................................................... 148Chapter 6. ............................................................................................. 1536.1.Shapefile ................................................................................................................................................................ 1536.2. ................................................................................................................................. 1556.3.Java Properties ................................................................................................................................................... 1566.4.GML ......................................................................................................................................................................... 1596.5.VPF........................................................................................................................................................................... 1606.6.Pregeneralized Features ................................................................................................................................. 161Chapter 7. ......................................................................................... 1637.1.GeoTIFF .................................................................................................................................................................. 1637.2.GTOPO30 .............................................................................................................................................................. 1647.3.WorldImage ......................................................................................................................................................... 1667.4.ImageMosaic ....................................................................................................................................................... 1677.5.ArcGrid ................................................................................................................................................................... 1687.6.GDAL .............................................................................................................................................. 1697.7.Oracle Georaster ................................................................................................................................................ 1757.8.Postgis Raster ..................................................................................................................................................... 1757.9.ImagePyramid ..................................................................................................................................................... 1757.10.Image Mosaic JDBC.......................................................................................................................................... 1767.11. Custom JDBC Access ............................................................................................ 178Chapter 8.Databases ............................................................................................ 1798.1.PostGIS................................................................................................................................................................... 1798.2.H2............................................................................................................................................................................. 1848.3.ArcSDE.................................................................................................................................................................... 1858.4.DB2 .......................................................................................................................................................................... 1938.5.MySQL .................................................................................................................................................................... 1968.6.Oracle ..................................................................................................................................................................... 1988.7.Microsoft SQL Server SQL Azure ........................................................................................................... 201 ii 6. 8.8.Teradata................................................................................................................................................................. 2048.9. ......................................................................................................................................... 2128.10.JNDI ......................................................................................................................................................................... 2138.11.SQL Views ............................................................................................................................................................. 2148.12. ID .................................................................................................. 2208.13. SQL / ................................................................................................... 2218.14. SQL ............................................................. 222Chapter 9. ............................................................................. 2249.1. ................................................................................................................................................................ 2249.2. .......................................................................................................................................................................... 2289.3.WFS ................................................................................................................................................. 2299.4. .......................................................................................................................................................................... 2309.5. ................................................................................................................................................................ 2319.6. ................................................................................................................................. 2409.7. GML ............................................................................................................................................ 2439.8.Secondary Namespaces.................................................................................................................................. 2459.9.CQL ............................................................................................................................................................... 2469.10. ................................................................................................................................................................ 2529.11. ........................................................................................................................................................ 2549.12. ................................................................................................................................................................ 2609.13. ...................................................................................................................................................................... 2699.14. .................................................................................................................................................. 2769.15.WMS ............................................................................................................................................................. 2789.16.WFS 2.0 ....................................................................................................................................................... 2839.17. join ................................................................................................................................ 2849.18. .................................................................................................................................................................. 286Chapter 10. ............................................................................................. 29510.1. Web Feature Server................................................................................................................................. 29510.2. Web Map Server ..................................................................................................................................... 298Chapter 11.GeoServer ......................................................................................... 30111.1. ..................................................................................................................................... 30111.2.Filter Encoding ............................................................................................................................... 30211.3.ECQL ................................................................................................................................................... 30811.4. ................................................................................................................................................................ 31211.5. ............................................................................................................................................. 314iii 7. Chapter 12. ................................................................................................................ 32312.1.SLD ................................................................................................................................................................ 32312.2.SLD ................................................................................................................................................... 32512.3.SLD ............................................................................................................................................................ 32812.4.SLD ........................................................................................................................................................ 39412.5.GeoServer SLD ........................................................................................................................... 44412.6.SLD ...................................................................................................................................................... 470Chapter 13. ......................................................................................................................... 47913.1.Web Feature Service ........................................................................................................................................ 47913.2.Web Map Service .............................................................................................................................................. 49813.3.Web Coverage Service .................................................................................................................................... 52913.4. OWS ............................................................................................................................................... 534Chapter 14.REST ....................................................................................... 53814.1.REST API ............................................................................................................................ 53814.2.REST ............................................................................................................................................ 565Chapter 15. GeoServer ............................................................................................... 58615.1. ........................................................................................................................................................ 58615.2. ...................................................................................................................................................... 59715.3.WMS ............................................................................................................................................................. 599Chapter 16. ............................................................................................................................. 60316.1. .................................................................................................................................................................... 60316.2. .......................................................................................................................................................................... 61516.3. .................................................................................................................................................................. 62716.4. ................................................................................................................................................................ 63116.5. ............................................................................................................................................................ 63116.6. ............................................................................................................................................................ 63416.7.REST .............................................................................................................................................................. 63816.8. ........................................................................................................................................................ 64016.9. .................................................................................................................................................................. 640Chapter 17. ................................................................................................ 67917.1. ........................................................................................................................................................ 67917.2. ................................................................................................................................................ 68117.3. ........................................................................................................................................................ 68217.4. .................................................................................................................................................... 684 iv 8. 17.5. ..................................................................................................................................... 68717.6. ........................................................................................................................................................ 68817.7. ................................................................................................................................................................ 688Chapter 18.GeoWebCache .................................................................................... 69618.1.GeoWebCache .................................................................................................................................. 69618.2. .......................................................................................................................................................................... 69918.3. .................................................................................................................................................. 70118.4.HTTP ................................................................................................................................................... 70118.5.GeoWebCache REST API ................................................................................................................................ 70418.6. ................................................................................................................................................................ 717Chapter 19. .................................................................................................................... 72219.1. .......................................................................................................................................................................... 72219.2. ................................................................................................................................................................ 72319.3.KML ....................................................................................................................................................... 72619.4. .................................................................................................................................................................. 74419.5. .......................................................................................................................................................................... 759v 9. GeoServer GeoServer Java (geospatial) GIS . (interoperability) , . GeoServer . , .1 10. Chapter 1 Chapter 1. GeoServer , GeoServer . GeoServer .1.1.GeoServer Java GIS . , . GeoServer , , . GeoServer Open Geospatial Consortium (OGC) Web Map Service (WMS) , Web Feature Service (WFS), Web Coverage Service (WCS) . GeoServer (GeoSpatial Web) .1.2.GeoServer GeoServer 2001 , The Open Planning Project (TOPP) . TOPP (open democracy) . GeoServer , . GeoServer (World Wide Web) (Geospatial Web) . . , .2 11. Chapter 1 GeoServer GIS Java GeoTools . GeoTools Shape , Oracle DB, ArcSDE , . GeoServer , OpenGIS ( Open Geospatial Consortium) Web Feature Service . WFS GML(Geographic Markup Language) . Web Map Service . . Refractions Research PostGIS , GeoServer . , MetaCarta OpenLayers . GeoServer . GeoServer 3 . GeoServer . . GeoServer .1.3.GeoServer . GeoServer , , .1.3.1.GeoServer . , . GeoServer . . . github .1.3.2. . .3 12. Chapter 1 1.3.3. GeoServer GeoServer Users GeoServer Developers, . , , GeoServer . GeoServer , . !1.3.4.IRCGeoServer Freenode #geoserver IRC . GeoServer , .1.3.5. GeoServer , . GeoServer JIRA . JIRA . GeoServer , . JIRA , github .1.3.6. , GeoServer . GeoServer Web Administration Interface . GeoServer . .1.3.7. GeoServer . IRC .1.3.8. GeoServer . , GeoServer .4 13. Chapter 1 1.3.9. GeoServer . GeoServer , GeoServer .1.4.GeoServer GNU General Public License . GeoServer, open geospatial information server Copyright (C) 2001 - 2011 The Open Planning Project dba OpenPlans http://openplans.org This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version (collectively, "GPL"). As an exception to the terms of the GPL, you may copy, modify, propagate, and distribute a work formed by combining GeoServer with the Eclipse Libraries, or a work derivative of such a combination, even if such copying, modification, propagation, or distribution would otherwise violate the terms of the GPL. Nothing in this exception exempts you from complying with the GPL in all respects for all of the code used other than the Eclipse Libraries. You may include this exception and its grant of permissions when you distribute GeoServer. Inclusion of this notice with such a distribution constitutes a grant of such permissions. If you do not wish to grant these permissions, remove this paragraph from your distribution. "GeoServer" means the GeoServer software licensed under version 2 or any later version of the GPL, or a work based on such software and licensed under the GPL. "Eclipse Libraries" means Eclipse Modeling Framework Project and XML Schema Definition software distributed by the Eclipse Foundation and licensed under the Eclipse Public License Version 1.0 ("EPL"), or a work based on such software and licensed under the EPL. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA Apache Software Foundation (http://www.apache.org/) , Apache License Version 2.0 Apache License Version 1.1 .5 14. Chapter 2 Chapter 2. GeoServer . .2.1.GeoServer.(Windows installer) , (OS-independent binary) . : (Tomcat) GeoServer Web archive (WAR) .2.1.1. GeoServer . GUI . 1.GeoServer (http://geoserver.org/display/GEOS/Download) .2.GeoServer.http://geoserver.org/display/GEOS/Stable (stable) . 3. (Windows installer) .6 15. Chapter 2 4. .5. (Welcome screen) Next . 6. I Agree .7 16. Chapter 2 GeoServer 7. Next .GeoServer 8. (Start Menu) Next .8 17. Chapter 2 9. Java Runtime Environment (JRE) . GeoServer JRE. %JAVA_HOME% . ,JRE.http://www.oracle.com/technetwork/java/javase/downloads/index.html JRE , GeoServer . JRE Next . : . C: Program FilesJavajre6: JRE bin . javaw.exe C:Program FilesJavajre6binjavaw.exe , C:Program FilesJavajre6 .: Oracle Java SE 6 . (GeoServer 2.2.x Oracle JRE 5 .) Java Development Kit (JDK) GeoServer . Java GeoServer Java Considerations 9 18. Chapter 2 JRE 10. GeoServer . GeoServer . GeoServer Default data directory . Next .GeoServer 11. GeoServer (administration) (username) (password) . GeoServer , . admin / geoserver . . Next . 10 19. Chapter 2 GeoServer 12. GeoServer (port) . GeoServer Web Administration Interface , GeoServer Web Map Service Web Feature Service (endpoints) . 8080 . Next .GeoServer 13. GeoServer , (service) . , GeoServer . . , 11 20. Chapter 2 GeoServer Install as a service . Run manually . Next .GeoServer 14. Back . Install . 15. GeoServer . Finish .12 21. Chapter 2 16. GeoServer . GeoServer Start GeoServer . 17. GeoServerWebAdministrationInterfacehttp://[SERVER_URL]:[PORT]/geoserver/ (: http://localhost:8080/geoserver/) . , . GeoServer !GeoServer 2.1.2.: . Windows Installer .GeoServer . JettyGeoServer(webapp). .2.1.2.1. 1.GeoServer Download page .2. OS-independent binary .3. . C:Files .13 22. Chapter 2 2.1.2.2. JAVA_HOME . %JAVA_HOME%.exe JDK/JRE . JRE http://www.oracle.com/technetwork/java/javase/downloads/index.html . : Oracle Java SE 6 . (GeoServer 2.2.x Oracle JRE 5 .) GeoServer Java Development Kit (JDK) . Java GeoServer Java Considerations .1. .2. .3. JAVA_HOME, JDK/JRE .4. .:GeoServerGEOSERVER_HOMEGeoServerGEOSERVER_DATA_DIR ( %GEOSERVER_HOME_dir) . GeoServer . . GeoServer Data Directory .2.1.2.3. : ( ) .1.GeoServer bin .2.startup.bat . . . . GeoServer .3.Web Administration Interface http://localhost:8080/geoserver .2.1.2.4. Stopping GeoServer bin shutdown.bat .14 23. Chapter 2 2.1.2.5. Uninstallation 1.GeoServer .2.GeoServer . OS X2.2.OS X GeoServer . OS X (OS X installer) , (OS-independent binary) . : (Tomcat) GeoServer Web archive (WAR) .2.2.1. OS X 1.GeoServer Download GeoServer (Stable), (Latest) (Nightly) .2. GeoServer Mac OS X Installer .3..dmg .GeoServer Mac OS X Installer 4.GeoServer Applications .5.Applications GeoServer .15 24. Chapter 2 : GeoServer .3.GeoServer , Server Start GeoServer .GeoServer 4. GeoServer . GeoServer http://localhost:8080/geoserver . GeoServer ! OS X 2.2.2.: . OS X Mac OS X Installer .GeoServer . JettyGeoServer(webapp). .2.2.2.1. 1.GeoServer Download GeoServer (Stable), (Latest) (Nightly) .16 25. Chapter 2 2. GeoServer OS independent Binary . : GeoServer . GeoServer Desktop . GeoServer Desktop .3.Geoserver . Applications Utitlies Terminal , . cd Desktop/4..GeoServer-2.4.0-bin.zip GeoServer , . ls l5./usr/local/geoserverGeoServer-2.4.0-bin.zip . unzip $geoserver-2.4.0-bin.zip . sudo mv geoserver-2.4.0-bin/ geoserver: . .6. GeoServer . echo "export GEOSERVER_HOME=/usr/local/geoserver" >> ~/.profile . ~/.profile7. geoserver . USER_NAME . sudo chown -R USER_NAME /usr/local/geoserver/8.geoserver/bin startup.sh . cd geoserver/bin sh startup.sh9.2.3. http://localhost:8080/geoserver .Linux17 26. Chapter 2 : GeoServer Java . Oracle Java SE 6 . (GeoServer 2.2.x Oracle JRE 5 .) Java Development Kit (JDK) GeoServer . Java GeoServer Java Considerations . GeoServer . JettyGeoServer(webapp). .2.3.1. Debian Debian wheezy/sid tomcat7 GeoServer .2.3.1.1. 1.Web archive (WAR) 3 .2. . su .3. Debian system (WAS) , tomcat7 (synaptic, apt-get, aptitude ) . aptitude . aptitude install tomcat72.3.1.2. 1. GeoServer webapp . cp geoserver.war /var/lib/tomcat7/webapps2. WAR . . ! local geoserver .18 27. Chapter 2 2.4.Web archive (WAR)GeoServer Apache Tomcat Jetty . : GeoServer Tomcat , .2.4.1. Java GeoServer Java . Oracle Java SE 6 . (GeoServer 2.2.x Oracle JRE 5 .) Java Development Kit (JDK) GeoServer . Java GeoServer Java Considerations .2.4.2. 1. GeoServer Download page .2. Web archive .3. . geoserver.war webapps .4. web archive GeoServer . : .2.4.3. GeoServer (webapps) . 1.Web Administration Interface , http://container_application_URL/geoserver . Tomcat localhost 8080 (port) , URL http://localhost:8080/geoserver .2.4.4. 1. .19 28. Chapter 2 2. (webapps) GeoServer (geoserver.war) .2.5. GeoServer . . GeoServer .2.2 2.5.1.2.5.1.1. GeoServer 2.2 Security . (authentication) . GeoServer security . .2.5.1.2. Geoserver 2.2 (master password) . root Geoserver (key store) . , Geoserver . . (admin) geoserver . 8 . . 1.admin . .2.ROLE_ADMINISTRATOR (role) . .3. 8 .masterpw.info security , .20. 29. Chapter 2 This file was created at 2012/08/11 15:57:52 Master password is identical to the password of user: admin Test the master password by logging in as user "root" This file should be removed after reading !!!. , . This file was created at 2012/08/11 15:57:52 The generated master password is: pw?"9bWL Test the master password by logging in as user "root" This file should be removed after reading !!! , .2.5.1.3. RESTconfig (workspace) (administrative access) (access mode) . , UI RESTconfig API . Layer security . RESTconfig API . URLREST./(administrative workspace/layer) . REST , . / ROLE_ADMINISTRATOR (role) . REST URL , . (anonymous) REST API . REST URL . REST API . .21 30. Chapter 3 Chapter 3. GeoServer .3.1. (Web Administration Tool) GeoServer . http://:/geoserver ( (local host) http://localhost:8080/geoserver/web ) . , . 3.1.1. , . GeoServer . admin geoserver . GeoServer Data Directory security/users.properties .22 31. Chapter 3 , . .3.1.2.Server GeoServer . , . Server Status (run-time status) .Server Status Contact Information WMS (Capabilities document) .23 32. Chapter 3 Contact Information Global Settings , , , .24 33. Chapter 3 Global Settings JAI Settings WMS WCS JAI .25 34. Chapter 3 JAI Settings About GeoServer GeoServer , , .About GeoServer 3.1.3.Services GeoServer (request) . (Web Coverage Service), WCS WCS, WFS, WMS . (Web Feature Service), WFS , , 26 35. Chapter 3 GML . (Web Map Service), WMS (raster) SVG .3.1.4.Data , , (data type) . . Styles , (indexed table) .Styles . Layers Workspace, Store, Layer Name .Layers 27 36. Chapter 3 3 . (sorting), (searching), (scrolling). (column) (header) . , , (search criteria) Enter . top . (view table) . Stores , .28 37. Chapter 3 Stores Add . Remove . ( ) Stores3.1.5.Demos GeoServer SRS , WMS, WCS, WFS GeoServer (request) . GeoServer .Demos 29 38. Chapter 3 3.1.6.Layer Preview OpenLayers KML (output) (layer previews) . .Layer (row) Type, Name, Title . Type . Name , Title Edit Layer Data . Common Formats OpenLayers, KML, GML , All Formats .Single Layer 3.2.shape GeoServer shapefile . : GeoServer http://localhost:8080/geoserver/web .3.2.1. 1.nyc_roads.zip . shapefile .30 39. Chapter 3 2.nyc_roads.zip . nyc_roads 4 . nyc_roads.shp nyc_roads.shx nyc_roads.dbf nyc_roads.prj#.nyc_roads/data. GeoServer . GeoServer geoserver/data_dir/data/nyc_roads . 3.2.2. shapefile (workspace) . . 1. http://localhost:8080/geoserver/web .2.Logging In GeoServer .3. Data Workspaces .Workspaces 4. Add new workspace , Name Namespace URI .31 40. Chapter 3 5.Name nyc_roads , Namespace URI http://opengeo.org/nyc_roads . (identifier) , 10 . Namespace URI(Uniform Resource Identifier) URL , .NYC Roads 6.Submit . nyc_roads Workspaces . 3.2.3. 1. Data Stores .2.nyc_roads Shapefile Store . Add new store . GeoServer .32 41. Chapter 3 3.Shapefile - ESRI(tm) Shapefiles (.shp) . New Vector Data Source .4. Basic Store Info . nyc_roads . Data Source Name NYC Roads , Description (Roads in New York City ) .5.ConnectionParametersURLShapefilefile:data/nyc_roads/nyc_roads.shp .Basic Store Info Connection Parameters 33 42. Chapter 3 6.Save , nyc_roads New Layer chooser . 3.2.4. 1.New Layer chooser nyc_roads .New Layer chooser 2.Edit Layer Data Publishing . Title Abstract nyc_roads .Basic Resource Information 3. bounding boxes Compute from data Compute from Native bounds .Bounding Boxes 34 43. Chapter 3 4.Publishing .5.Default Style line . 6. Save . 3.2.5. 1.nyc_roads . Layer Preview nyc_roads:nyc_roads . 2.Common Formats OpenLayers .35 44. Chapter 3 3.! OpenLayers line shapefile . (pan) , (feature) (attribute) .nyc_roads PostGIS 3.3. GeoServer PostGIS . : GeoServer http://localhost:8080/geoserver/web .: PostGIS .3.3.1. 1.nyc_buildings.zip . PostGIS (dump) .2.nyc PostGIS . . createdb -T template_postgis nyc36 45. Chapter 3 PostGIS postgis_template , . ...3.nyc_buildings.zip . nyc_buildings.sql .4.nyc_buildings.sql nyc (import). psql -f nyc_buildings.sql nyc3.3.2. PostGIS nyc (data store) . GeoServer . 1. http://localhost:8080/geoserver .2. Data Stores . Data Source 3.PostGIS NG .4.Basic Store Info . Workspace , Data Source Name nyc_buildings , Description .37 46. Chapter 3 Basic Store Info 5.PostGIS (Connection Parameters) . Dbtype Host Post database schema Userpostgisng localhost 5432 nyc public PostgreSQL passwdPostgreSQL validate connections : user passwd PostGIS . PostgreSQL passwd .38 47. Chapter 3 6.Save . 3.3.3. 1. Data Layers .2.Add a new resource .3.New Layer chooser cite:nyc_buidings .39 48. Chapter 3 Layer 4. , nyc_buildings . Layer 5.Edit Layer Data Publishing . Title Abstract nyc_buildings .Basic Resource Info 40 49. Chapter 3 6. bounding boxes Compute from data Compute from Native bounds .Bounding Boxes 7.Publishing .8.Default Style polygon . 9. Save . 3.3.4. 1.nyc_buildings . Layer Preview cite:nyc_buildings .41 50. Chapter 3 2.Common Formats OpenLayers .3.! OpenLayers polygon . (pan) , (feature) (attribute) .nyc_buildings 3.4. GeoServer . .42 51. Chapter 3 GeoServer , Styled Layer Descriptor(SLD) . : Publishing a Shapefile Publishing a PostGIS Table .3.4.1. SLD .3.4.2. .43 52. Chapter 4 GeoServer GeoServer Chapter 4.GeoServer (data directory) GeoServer . GeoServer , , WFS WMS . GeoServer (support files) . ,GeoServer(instances) . GeoServer . GeoServer . GeoServer , . .4.1. GeoServer . GeoServer Standalone /data_dir . :C:ProgramFilesGeoServer .GeoServer Web Archive , /data . , . GeoServer .44 53. Chapter 4 GeoServer 4.2. GeoServer GeoServer . . : GeoServer , data_dir GeoServer .4.2.1. GeoServerGEOSERVER_DATA_DIR. .4.2.1.1. XP 1.(MyComputer)(Properties) . 2. (Advanced) (EnvironmentVariables) . 3. (New) GEOSERVER_DATA_DIR , .4.2.1.2. Vista .45 54. Chapter 4 GeoServer 4.2.2. Linux GeoServer GEOSERVER_DATA_DIR . (bash shell) . % export GEOSERVER_DATA_DIR=/var/lib/geoserver_data .bash_profile .bashrc ( ) . GeoServer . OS X4.2.3.4.2.3.1. OS X GeoServer , .4.2.3.2. OS X Mac OS X , GEOSERVER_DATA_DIR .MacOSXhttps://developer.apple.com/legacy/library/qa/qa1067/_index.html .4.2.4.Web Archive GeoServer WAR . servlet context parameter . Java system property .4.2.4.1. Servlet context parameter Servlet context parameter , GeoServer WEB-INF/web.xml . ... GEOSERVER_DATA_DIR/var/lib/geoserver_data ... 46 55. Chapter 4 GeoServer 4.2.4.2. Java system property Java system property . GeoServer . : Java system property GeoServer .Java system property . Tomcat : Tomcat bin/setclasspath.sh . CATALINA_OPTS GEOSERVER_DATA_DIR (system property) . CATALINA_OPTS="-DGEOSERVER_DATA_DIR=/var/lib/geoserver_data"Glassfish : Glassfish domains//config/domain.xml . GeoServer . . ... ... -DGEOSERVER_DATA_DIR=/var/lib/geoserver_data ...4.3. GeoServer . , GeoServer . , REST API . logs, palettes, templates, user-projection, www . GeoServer . / global.xml logging.xml 47 56. Chapter 4 GeoServer wms.xml wfs.xml wcs.xml data/ demo/ geosearch/ gwc/ layergroups/ logs/ palettes/ plugIns/ security/ styles/ templates/ user_projections/ workspaces/ | +- workspace dirs... | +- datastore dirs... | +- layer dirs... www/4.3.1. The .xml files (top-level) .xml . global.xmllogging.xml , , (stdout) , JAI , , (verbosity) . .wcs.xmlWCS .wfs.xmlWFS .wms.xmlWMS .4.3.2. workspaces (workspaces) GeoServer . . (datastores) . . 48 57. Chapter 4 GeoServer layer.xml , (raster) (vector) coverage.xml featuretype.xml .4.3.3.datadata (geospatial) . ( GeoServer data directory .) shapefile , . data (portability) . C:gis_datafoo.shp shapefile , catalog.xml shapefile datastore . GeoServer(port). C:gis_datafoo.shp . , catalog.xml . foo.shp data . catalog.xml datastore . value data . (location independence) data .4.3.4.demodemo Sample Request Tool(http://localhost:8080/geoserver/demoRequest.do) sample requests . Demos .49 58. Chapter 4 GeoServer 4.3.5.geosearchgeosearch KML (regionation) . KML Regionation .4.3.6.gwcgwc GeoWebCache (cache) .4.3.7.layergroupslayergroups (layergroup) .4.3.8.logslogs (logging profiles) geoserver.log . Advanced log configuration .4.3.9.palettespalettes(pre-computed) (Image Palettes) . GeoServer WMS . Paletted Images .4.3.10. security security GeoServer . (access roles) (property) , . Security .4.3.11. styles styles GeoServer WMS Styled Layer Descriptor(SLD) . catalog.xml . SLD Styling .50 59. Chapter 4 GeoServer 4.3.12. templates templates GeoServer templating . GeoServer . Freemarker Templates .4.3.13. user_projections user_projections (custom spatial reference systems) epsg.properties . EPSG . Custom CRS Definitions .4.3.14. www www GeoServer . http://geoserver/www . , (client-side) . Serving Static Files .4.4. 4.4.1. GeoServer ( 2.0.0 2.0.1 , 1.6.x 1.7.x ) .4.4.2.GeoServer 1.7.x 2.0.x GeoServer 2.0.x 1.7.x , 1.7.x ! .4.4.2.1. wfs.xml wcs.xml wms.xml logging.xml global.xml51 60. Chapter 4 GeoServer workspaces/* layergroups/* styles/*.xml4.4.2.2. catalog.xml catalog.xml.old .services.xml services.xml.old .GeoServer 2.0.x 1.7.x 4.4.3.1.7.x , 1.GeoServer .2. . wfs.xml wcs.xml wms.xml logging.xml global.xml workspaces/* layergroups/* styles/*.xml3. 4.4.4.4.catalog.xml.old catalog.xml . services.xml.old services.xml .GeoServer 2.1.x 2.2.x GeoServer 2.2.x GeoServer security .4.4.4.1. security/*.xml security/masterpw.* security/geoserver.jceks security/auth/* security/filter/* security/masterpw/* security/pwpolicy/* security/role/* security/usergroup/* 52 61. Chapter 4 GeoServer 4.4.4.2. security/users.properties security/users.properties.old .GeoServer 2.2.x 2.1.x 4.4.5.GeoServer 2.1.x , 1.GeoServer .2.users.properties.old users.properties .3. ( ) . security/ config.xml geoserver.jceks masterpw.xml masterpw.digest masterpw.info auth/ filter/ masterpw/ pwpolicy/ role/ usergroup/4.4.6.GeoServer 2.2.x 2.3.x GeoServer 2.3.x GeoServer security .4.4.6.1. security/filter/roleFilter/config.xml4.4.6.2. security/ filter /formLogout/config.xml security/config.xml4.4.6.3. security/filter/formLogout/config.xml.2.2.x security/config.xml.2.2.x53 62. Chapter 4 GeoServer 4.4.7. GeoServer 2.3.x GeoServer 2.2.x , 1.GeoServer .2.security/config.xml.2.2.x security/config.xml .3.security/filter/formLogout/config.xml.2.2.x security/filter/formLogout/config.xml .4. ( ) . security/ filter/ roleFilter/ config.xml formLogout/ config.xml.2.2.x config.xml.2.2.x54 63. Chapter 5 Chapter 5. (Web Administration Interface) GeoServer .GeoServer,http://localhost:8080/geoserver/web . URL .5.1. .5.1.1. GeoServer (localhost) 8080 (port) . URL . http://localhost:8080/geoserver/web: URL GeoServer . WAR URL . URL , (welcome page) . 55 64. Chapter 5 GeoServer . Server About GeoServer GeoServer , , . GeoServer (console) . GeoServer . admin geoserver . GeoServer Data Directory security/users.properties .(Login) , Demo Layer Preview . Demos , Layer Preview (spatial data) (output) . . Geoserver WCS(Web Coverage Service), WFS(Web Feature Service), WMS(Web Map Service) . Services .5.2.Web Administration Interface GeoServer , .56 65. Chapter 5 5.2.1. (Server Status) (run-time status) . . 5.2.1.1. Status (current status indicators) . Locks WFS . WFS . (post) WFS . locks 0 . locks 0 , free locks , locks 0 .Connections (vector stores) , 4 57 66. Chapter 5 Memory UsageGeoServer . 28 MB(garbage.collector)FreeMemory(marked fordeletion) . JVM Version JVM(Java Virtual Machine) . Sun Microsystems Inc. JVM 1.7.0 ..Native JAIGeoServer (image rendering) (coverage manipulation) Java Advanced Imaging (JAI) . JAI true , WCS WMS .Native JAI ImageIOGeoServer (load) JAI Image IO (JAI) . JAI true , JAI Image I/O WCS WMS .JAI Maximum Memory (tile cache) (byte) . 377 MB . JAI Maximum Memory 0.0 {0} .JAI Memory Usage (Run-time) . Free Memory , (flushing) JAI memory .JAI Memory Threshold (tile removal) . JAI Memory Threshold 0.0 100 .Number of JAI Tile Threads(thread). JAI Tile Thread Priority . 5 , 1 10 . Update Sequence .Resource cacheGeoServer (cache) , , (feature type definitions), , , CRS . Clear GeoServer,${GEOSERVER_DATA_DIR}/user_projections/epsg.properties CRS . Configuration and catalogGeoServer . ( ) , Reload GeoServer .58 67. Chapter 5 5.2.1.2. Timestamps GeoServerConfiguration . .XML .5.2.2. . GeoServer . WMS (Capabilities document) , . . 5.2.2.1. Contact Information ContactOrganization Position Address Type : , Address : CityState()Zip codeCountryTelephoneFax Email 59 68. Chapter 5 5.2.3. Global Setting , , , .Global Setting 5.2.3.1. Verbose Messages (Verbose Messages) GeoServer XML . XML . .5.2.3.2. Verbose Exception Reporting (Verbose Exception Reporting) Java (full Java stack traces) . GeoServer , . GeoServer .60 69. Chapter 5 5.2.3.3. Enable Global Services global services virtual services . virtual services . GeoServer , . .5.2.3.4. Resource Error Handling , GeoServer . ( ) (capabilities document) , . , GeoServer offline . (administrator) GeoServer , . 2 . OGC_EXCEPTION_REPORT:.(service exception) . SKIP_MISCONFIGURED_LAYERS: , GeoServer , . .5.2.3.5. Number of Decimals GetFeature ( ) . . 8 .5.2.3.6. Character Set XML . UTF-8 , . GeoServer IANA Charset Registry .5.2.3.7. Proxy Base URL GeoServer (proxy) . Proxy Base URL (reverse proxy) URL(base URL) .61 70. Chapter 5 5.2.3.8. Logging Profile Logging Profile GeoServer log4j . (Apache log4j Java .) GeoServer (Logging Profile) 5 . log4j . 6 . TRACE DEBUG, INFO, WARN, ERROR FATAL . GeoServer . Global Setting 5 . 1.Default Logging (DEFAULT_LOGGING) (verbose) . Default Logging GeoTools GeoServer INFO , WARN ( ) GeoTools .2.GeoServer Developer Logging (GEOSERVER_DEVELOPER_LOGGING) GeoServer VFNY DEBUG (verbose) . GeoServer .3.GeoTools Developer Logging (GEOTOOLS_DEVELOPER_LOGGING) GeoTools DEBUG (verbose) . GeoTools .4.Production Logging (PRODUCTION_LOGGING) GeoTools GeoServer WARN . .5.Verbose Logging (VERBOSE_LOGGING) GeoTools, GeoServer, VFNY DEBUG .5.2.3.9. Log to StdOut (StdOut) . GeoServer Log to StdOut . J2EE GeoServer , GeoServer . GeoServer FATAL (exception) .5.2.3.10.Log Location . Log Location , (absolute path) ( C:GeoServerGeoServer.log) (relative path) ( GeoServer.log) . GeoServer . logs/geoserver.log .62 71. Chapter 5 5.2.3.11.XML POST request log buffer , GeoServer XML ( ) POST . GeoServer (buffer) , (initial part) . . 0 .5.2.3.12.Feature type cache sizeGeoServer (datastore connection) (schema) (cache) . (featuretypes) . . (out-of-memory) .5.2.4. Web Administration Interface Coverage Access Settings (thread pool executors) ImageIO (caching memory) .Coverage Access Settings 5.2.4.1. Thread Pool Executor imageMosaic reader ThreadPoolExecutor . (concurrent reads) (reader) ThreadPoolExecutor . Coverage Access Settings ThreadPoolExecutor . Core Pool Size . .63 72. Chapter 5 Maximum Pool Size . . Keep Alive Time corePoolSize , (idle) .. Queue Type BlockingQueue . (pending) (unbounded) . (direct) , maximumPoolSize . : corePoolSize , . corePoolSize .: corePoolSize , maximumPoolSize .: corePoolSize , keepAliveTime .: corePoolSize maximumPoolSize , . (unbounded) , corePoolSize keepAliveTime .: corePoolSize maximumPoolSize , .5.2.4.2. ImageIO WMS , WCS . , . ( WCS ) . GeoServer MemoryCacheImageOutputStream FileCacheImageOutputStream (threshold image size) . ImageIO Cache Memory Threshold GeoServer (KiloByte) . , MemoryCacheImageOutputStream 64 73. Chapter 5 . , FileCacheImageOutputStream .5.2.5.JAIJava Advanced Imaging(JAI) Sun Microsystems (manipulation) . JAI Image I/O Tools Java Image I/O Framework (reader), (writer), (stream plug-in) . WMS WCS JAI JAI Settings .JAI Settings 5.2.5.1. (subsets) . (tessellation) . (tile) , (tile-caching) . JAI JAI . Memory Capacity JAI TileCache . Memory Capacity JAI TileCache . 0 1 . Memory Capacity Memory Capacity . ,65 74. Chapter 5 (interactive) . , . Memory Threshold JAI TileCache . . JAI Memory Threshold 0.0 1.0 . Memory Threshold Status . Tile Threads JAI TileScheduler . (multithreading) . Tile Threads TileScheduler , . Tile Threads Priority JAI TileScheduler . 1() 10() . 5() . Tile Recycling JAI Cache Tile Recycling . JAI , . Native Acceleration , JAI Java (native code) . Java Virtual Machine(JVM) , Java . JAI . JPEG Native Acceleration JAI JPEG Native Acceleration . JPEG , (crash) . PNG Native Acceleration JAI PNG Native Acceleration . PNG , (crash) . Mosaic Native Acceleration (overhead time) . . JAI . , .5.3. . (preview) .66 75. Chapter 5 Layer Preview (type), (name), (title), . () () Name , Title Edit Layer Data . nurc , Arc_Sample , A sample ArcGrid field Edit Later Data . 5.3.1. Layer Preview . 3 OpenLayers KML . , All formats 7 AtomPub, GIF, GeoRss, JPEG, KML (compressed), PDF, PNG, SVG, TIFF . WFS . GML CSV, GML3, GeoJSON, shapefile . , , .67 76. Chapter 5 5.3.1.1. WMS , , GetMap . WMS . KML KML(KeyholeMarkup(EarthBrowser)Language) XML (schema). KML (tag) . GeoServer KML KMZ , KML . JPEGWMS . JPEG , . . GIFWMS . GIF(Graphics Interchange Format) (sharp-edged) (line art) . . ( JPEG .) GIF 8 (8-bit) , 256 .SVGWMS . SVG(Scalable Vector Graphics) XML 2 . GIF JPEG .TIFFWMS . TIFF(Tagged Image File Format) . GeoTIFF TIFF .PNGWMS . PNG(Portable Network Graphics) GIF . GIF 256 , PNG (truecolor, 1,600 ) . PNG .OpenLayersWMS GetMap OpenLayers . OpenLayers JavaScript . OpenLayers OpenLayers (standalone version) . , (display) (header) .PDFPDF(Portable Document Format) , , , 2 , 2 .68 77. Chapter 5 - nurc:Pk50095 OpenLayers 5.3.1.2. AtomPub XLM WMS . AtomPub(Atom Publishing Protocol) HTTP XML . (content syndication) RSS Atom (subscription) .GeoRssWMS GetMap XLM . RSS(Rich Site Summary) XML . GeoRss RSS (feed) . Layers Preview Atom GeoRSS Simple Geometries RSS 2.0 .GeoJSONJavaScript Object Notation(JSON) JavaScript (data-interchange format). JSON javascript , . GeoJSON JSON .CSVWFSGetFeature(comma-delimited). CSV(Comma Separated Values) . . CSV (value ordering) , . GeoServer CSV .69 78. Chapter 5 nurc:Pk50095 Atom GeoRSS . Pk50095Feed auto-generated by GeoServer> fid--f04ca6b_1226f8d829e_-7ff446.722110379286 13.00635746384126 46.72697223230676 13.308182612644663 46.91359611878293 13.302316867622581 46.90870264238999 12.999446822650462 46.722110379286 13.00635746384126 5.3.1.3. WFS GetFeature . GML2/3 GML(Geography Markup Language) Open Geospatial Consortium(OGC) XML . GML . GML2 () , GML3 All Formats .ShapefileESRI shapefile, shapefile GIS . GeoServer zip shapefile , zip .cst, .dbf, .prg, .shp, .shx .5.4. Web Administration Interface , . (add), (edit), (delete) . , .70 79. Chapter 5 Layers (column) . , , (search criteria) Enter . GeoServer Search Results . top .71 80. Chapter 5 5.4.1. Workspaces . (namespace) , . GeoServer . , (:), . topp:states . , . sf:states, topp:states . 5.4.1.1. Workspace , . topp URI(Namespace Uniform Resource Identifier) . 10 . URI URL , (unique identifier) . URI , 72 81. Chapter 5 URL . topp http://www.openplans.org/topp URI .5.4.1.2. Workspace Workspaces View . Add new workspace , Name Namespace URI .New Workspace . , . Remove selected workspaces(s) . . OK . 73 82. Chapter 5 5.4.2.Stores(store) (data source) . , DB , , . Vector Product Format . . .Stores View , (store) 4 . . , , . (web feature server)5.4.2.1. Store Store Name . . ( , Working with Raster Data, .) nurc:ArcGridSample .74 83. Chapter 5 , . Workspace . (nurc) . Data Source Name . Description (administration interface) . Enabled , .5.4.2.2. Adding a Store Workspaces View . Add new workspace . . GeoServer , (extensions) . .75 84. Chapter 5 . ( ArcGrid .) , . , , .ArcGrid 5.4.2.3. Removing a Store . .76 85. Chapter 5 Remove selected Stores . . OK , Stores . 5.4.3.LayersGeoserver (layer) (feature) . (feature type) (coverage) . . (store) .77 86. Chapter 5 , ( ) . , Layer View . Status Native SRS View .Layers View 5.4.3.1. Layer 2 . . (point) x,y , (line) x,y , (polygon) x,y . (cell) . (distinct) , . () ()5.4.3.2. . Data , .78 87. Chapter 5 Layers Data View 5.4.3.2.1. Basic Resource Info, Keywords Metadata WCS, WFS, WMS Service Metadata . (data about the data), . Name WMS . Title , . () Abstract . Keywords , . Metadata Link . , TC211FGDC2.TC211ISOTechnicalCommitteeforGeographicInformation/Geomatics(ISO/TC211) , FGDC Federal Geographic Data Committee(FGDC) .79 88. Chapter 5 FGDC 5.4.3.2.2.Coordinate Reference Systems ()Coordinate Reference System(CRS) (georeferenced) . CRS Spatial Reference System(SRS) . SRS . Geoserver CRS . Bounding Box / WMS WFS .Coordinate Reference Systems Native SRS (projection) . Projection SRS . Declared SRS GeoServer SRS . SRS Handling 2 SRS GeoServer .5.4.3.2.3.Bounding BoxesBounding Box . Native Bounding Box Native SRS . Compute from data . Lat/Long Bounding Box / . Compute from native bounds .80 89. Chapter 5 sf:archsites Bounding Box5.4.3.2.4.Coverage Parameters () . WorldImage ReadGridGeometry2D 2 . ImageMosaic , ThresholdingTransparencyInputImageThresholdValue, InputTransparentColor, OutputTransparentColor .5.4.3.2.5.Feature Type Details () Feature Type Details , Property Type . sf:archsites Type point, Property the_geom .sf:archsites Feature Type DetailsNillable Property (value) , null . Min/Max Occurrences (field) . Nillable Min/Max Occurrences true 0/1 , complex features .5.4.3.3. Publishing HTTP WCS .81 90. Chapter 5 Publishing Data Enabled , ( REST-config ) .Advertised . ( WMS GetMap, WMS GetFeature ) , (capabilities document) .HTTP Settings HTTP (cache) . Response Cache Headers , GeoServer Cache Time . Cache Time 1 , (3600 ) . WMS Settings WMS Publishing .82 91. Chapter 5 WMS Settings Default style GetMap .Additional styles . (GeoServer ) .Default rendering buffer (2.0.3 ) GetMap/GetFeatureInfo (vendor) buffer . WMS .Default WMS path WMS (WMS capabilities layer tree) . (non-opaque) .WMS Attribution (data providers) publishing .WMS Attribution 83 92. Chapter 5 Attribution Text , . .Attribution Link URL .Logo URL URL .Logo Content Type, Width, and Height . Auto-detect image size and type GeoServer . Text, Link, URL , WMS . WMS . , . WFS Settings ( ) WFS GetFeature . WCS Settings SRS . New Request SRS SRS . Interpolation Methods . Formats . Default Style . . Geosearch Google Geo search crawler . Geo Sitemap ? . KML Format Settings Regionation , . Default Regionating Attribute . Regionating Methods 4 . external-sorting GeoServer . .geometry Line , Polygon .native-sorting (backend) . PostGIS .random , .84 93. Chapter 5 5.4.3.4. Layer Layers View . , Resource . . Add a new resource New Layer Chooser . . . , . NYC giant_polygon, poi, poly_landmarks, tiger_roads . 85 94. Chapter 5 , Edit Layer Data . . . . nurc:Img_Sample, sf:restricted, sf:streams . () Remove selected resources . . OK .86 95. Chapter 5 5.4.4. Layer Groups . , WMS . 4 Mode . single .named tree , .container tree . WMS containing category .Earth Observation tree WMS Earth Observation . (Root) preview layer . Root Layer UI . (single) , .Layer Groups 5.4.4.1. Layer Group . Name, Title, Abstract, Workspace, Bounds, Projection, Mode . Bounding Box , Generate Bounds . bounding box . Find . : . GeoServer .87 96. Chapter 5 Layer Groups Edit , . Publishable Elements . , publishable elements publishable elements . Publishable Element Position . Style . . . .88 97. Chapter 5 publishable element Remove . . Add Layer... . . publishable elements . 89 98. Chapter 5 Add Layer Group... . . publishable elements . Layer Preview .90 99. Chapter 5 tasmania Openlayers 5.4.4.2. Layer Group Layer Groups . Add a new layer group . .91 100. Chapter 5 Submit . . , Add layer... . , Generate Bounds bounding box . Save . 92 101. Chapter 5 5.4.4.3. Layer Group , . . Remove selected layer group(s) . . OK . 5.4.5. Styles (style) . GeoServer XML Styled Layer Descriptor(SLD) . . , .Styles 93 102. Chapter 5 5.4.5.1. Style Style Editor . Name . SLD 2 . EditArea . . Toggle Editor 2 .EditArea 94 103. Chapter 5 , , , (syntax highlighting) . . (undo) (redo) / (toggle) (highlight) ( ) (about) SLD SLD Validate . . : GeoServer , . 5.4.5.2. Style Styles .Adding or removing a style95 104. Chapter 5 Add a new style . . . SLD 2 . SLD , SLD . SLD , Styles .5.4.5.3. Style . . Remove selected style(s) . . OK . 96 105. Chapter 5 5.5. GeoServer Open Geospatial Consortium(OGC) . Web Coverage Service(WCS) () , () , Web Map Service(WMS) . GeoServer .5.5.1. WCS Web Coverage Service(WCS) (functionality) . WFS WMS , WCS . WCS, WFS, WMS Service Metadata .WCS 5.5.1.1. Service Metadata WCS, WFS, WMS . 9 . , . 97 106. Chapter 5 . , WFS Enable WFS WCS WMS . Enabled WCS, WFS WMS . , .Strict CITE compliance , OGC Compliance Interoperability Testing Initiative(CITE) . (conformance) .Maintainer Online Resource HTTP URL . Online Resource URL . ()Title , . ()Abstract .Fees . NONE , . Access Constraints . NONE , .Keywords .5.5.2. WFS Web Feature Service(WFS) , , GML .WFS 5.5.2.1. Service Metadata Service Metadata .98 107. Chapter 5 5.5.2.2. Features Open Geospatial Consortium(OGC) Web Feature Service(WFS) . WFS (attribute values) . WFS (query) (retrieval) . WFS (limits) (bounding) . Maximum number of features WFS GetFeature . WFS , () . (feature type) . 1,000,000 . Return bounding box GetFeature GML . Bounding Box .5.5.2.3. Service Levels GeoServer OGC Transactional Web Feature Server(WFS-T) . WFS Geoserver , WFS-T . WFS Service Level (bitmask), WFS . , . Basic Basic GetCapabilities, DescribeFeatureType, GetFeatureservice . OGC WFS , (READ-ONLY) WFS . Transactional WFS , Transactional (transaction) . WFS-T , , . Complete Transactional LockFeature . LockFeature (lock) (resolve) .5.5.2.4. GML Geography Markup Language(GML) OGC XML . GML . GML GML2 / . GML3 GML2 3D ( ) . GML3 GML2 (modular superset), . GML3 (complex geometries), (spatial99 108. Chapter 5 and temporal reference systems), (topology), (units of measure), , (gridded data), . GML3 GML2 . WFS 1.1.0 GML3 GML , Uniform Resource Name(URN) Spatial Reference System(SRS) . WFS 1.0.0 GML2 , XML Normal SRS . /(x/y) , . Normal EPSG , EPSG:XXXX . /(x/y) . XML EPSG URL, http://www.opengis.net/gml/srs/epsg.xml#XXXX . /(x/y) . URN (WFS 1.1.1 ) (:) SRS , urn:x-ogc:def:crs:EPSG:XXXX . , /(y/x) .5.5.3. WMS Web Map Service(WMS) SVG .WMS 5.5.3.1. Service Metadata Service Metadata .100 109. Chapter 5 5.5.3.2. Raster Rendering Options WMS , . (pan) /(zoom) , WMS .(resampling),(interpolation)(down-sampling) . GeoServer (cell) 3 . Nearest Neighbor, Bilinear Interpolation, Bicubic Default Interpolation . Nearest Neighbor . . . Nearest Neighbor (interpolation) (categorical) . Bilinear (linear weighting) 4 . . Bilinear . Bilinear Nearest Neighbor 5 . Bicubic 16 . Bicubic . Bicubic , .5.5.3.3. Watermark Settings (Watermarking) . , , (watermark) . WMS Watermark Settings . Enable Watermark . . . WatermarkURL.(C:GeoServerwatermark.png), GeoServer ( watermark.png) URL( http://www.example.com/images/watermark.png) . . GeoServer . , GeoServer . URL I/O . GeoServer WMS . URL . Watermark Transparency . 0() 100() .101 110. Chapter 5 WatermarkPositionWMS.(top-left, top-center, top-right ) 9 . . (boundary) . . WMS , View , . WMS , WMS . ( .) 3 , , . ( , 0) ( , 90)102 111. Chapter 5 ( , 90)5.5.3.4. SVG Options GeoServer WMS Scalable Vector Graphics(SVG) . GeoServer SVG 2 , SVG Producer . 1.Simple Simple SVG SLD .2.Batik (Batik SVG Framework ) Batik SLD .Enable Anti-aliasing Anti-aliasing . Anti-aliasing . Anti-aliasing , . Anti-aliasing , anti-aliasing (halo) .5.6. Web Administration Interface GeoServer (tile caching) . GeoServer GeoWebCache . GeoServer GeoWebCache .103 112. Chapter 5 Tile Caching .Tile Caching 5.6.1. Tile Layers GeoWebCache . GeoWebCache Layer Preview .: GeoWebCache .5.6.1.1. Layer information GeoWebCache .5.6.1.1.1.Disk Quota . Disk Quotas , N/A() .104 113. Chapter 5 5.6.1.1.2.Disk Used .5.6.1.1.3.Enabled . (Layer Properties ) .5.6.1.1.4.PreviewLayer Preview , / OpenLayers . OpenLayers .5.6.1.1.5.Seed/TruncateGeoWebCache (seed) (truncate). .5.6.1.1.6.Empty . (full truncate) .5.6.1.2. GeoServer . GeoServer (component) . , Remove selected cached layers . GeoWebCache . : .105 114. Chapter 5 ( ) GeoServer Add a new cached layer . 2 . () . Configure selected layers with caching defaults . layer configuration . .5.6.2. Demo page Tile Layers , ( ) (reload),(seed)(refresh) Demo . GeoWebCache , Tile Layers .106 115. Chapter 5 Built-in Demo 5.6.2.1. Demo GeoServer /gwc/demo . GeoServer , http://localhost:8080/geoserverGeoWebCache Demo . http://localhost:8080/geoserver/gwc/demo Using GeoWebCache .5.6.2.2. Demo GeoWebCache . , GeoServer WMS . GeoServer , GeoWebCache . GeoWebCache Reload Configuration . GeoServer , (administration) username password . Web Administration Interface username password . ( Interface basics .) .107 116. Chapter 5 5.6.2.3. Layer GeoWebCache (projection) . EPSG:4326(/)EPSG:900913 PNG, PNG8, GIF, JPEG OpenLayers . EPSG:4326 (kml) KML output . Seed this layer . .5.6.2.4. Seeding Web Administration Interface . Tile Layers . Demo page . Seed this layer . GeoServer . Web Administration Interface username password . ( .) . . Number of threads to use Type of operation 1 16 . (operation) . 3 . Seed ( , ), Reseed (Seed ), Truncate ( )SRS . ( EPSG:4326 108 117. Chapter 5 EPSG:900913 .) Format . application/vnd.google-earth.kml+xml (Google Earth KML), image/gif (GIF), image/jpeg (JPEG), image/png (24 bit PNG), image/png8 (8 bit PNG).Zoom start (zoom) . . (seed) GeoWebCache Zoom stop .Zoom stop (zoom) . . (seed) GeoWebCache Zoom start .Bounding box(optional) . . Xmin, Ymin, Xmax, Ymax 4 .: (progress bar) , . , . Disk quota .5.6.3. Caching defaults Caching Defaults GeoServer (tile caching) GeoWebCache . : GeoWebCache .5.6.3.1. GWC Provided Services GeoServer (endpoint) GeoWebCache OGC . GeoServer WMS , http://GEOSERVER_URL/wms?...GeoWebCache WMS . http://GEOSERVER_URL/gwc/service/wms?...109 118. Chapter 5 GeoWebCache .5.6.3.1.1.GeoServer WMS Direct integration GeoServer WMS GeoWebCache . , GeoServer WMS . GeoWebCache . Direct integration tiled=true WMS . . , Disk Quotas .5.6.3.1.2.WMS-C Service Cached Web Map Service(WMS-C) . GeoWebCache WMS-C . http://GEOSERVER_URL/gwc/service/wms?SERVICE=WMS&VERSION=1.1.1&TILED=true&... , Service is disabled .110 119. Chapter 5 5.6.3.1.3.GeoWebCacheTMS Service TiledMapService(TMS).TMSGeoWebCache TMS . http://GEOSERVER/URL/gwc/service/tms/1.0.0 , Service is disabled .5.6.3.1.4.WMTS Service GeoWebCache Web Map Tiled Service(WMTS) . GeoWebCache WMTS . http://GEOSERVER/URL/gwc/service/wmts?... , Service is disabled .5.6.3.2. Default Caching Options for GeoServer Layers GeoServer .Default Caching 5.6.3.2.1.Automatically configure a GeoWebCache layer for each new layer or layer group GeoServer GeoWebCache . GeoServer GeoWebCache . GeoWebCache (catalog) . ( .)111 120. Chapter 5 5.6.3.2.2.Automatically cache non-default styles, . . .5.6.3.2.3.Default metatile size (metatile) . ( ) . (label) , . . , . . . . GeoServer 4x4 , , , .5.6.3.2.4.Default gutter sizeGutter Size () . .5.6.3.2.5.Default Cache Formats . 4 . PNG (24-bit PNG)PNG8 (8-bit PNG)JPEGGIF112 121. Chapter 5 , , . 3 4 . GeoServer / , GeoWebCache . . 5.6.3.2.6.Default Cached Gridsets . , 2 . . EPSG:4326 (geographic) : 22 256x256 EPSG:900913 (spherical Mercator) : 31 256x256 Add default grid set Add ( ) .113 122. Chapter 5 Gridsets .5.6.4. Gridsets (spatial reference system), Bounding Box(), ( ), . , . . 5 , EPSG:4326 EPSG:900913 2 (CRS) . CRS . . 5.6.4.1. Creating a new gridset Create new gridset .114 123. Chapter 5 5.6.4.2. Name .5.6.4.3. Description .5.6.4.4. Coordinate Reference System (Coordinate Reference System). GeoServer CRS . CRS (, , () ) .5.6.4.5. Gridset bounds . CRS , . Compute from maximum extent of CRS .5.6.4.6. Tile width and height . 256x256 . 16 2048 . .115 124. Chapter 5 5.6.4.7. Tile matrix set Tile matrix set( ) . 3 (slot) . tile matrix . Add zoom level . . (Pixel Size), (Scale), (Name) . (Name) . 2 , 4 . Add zoom level . , . Save . . properties . Caching defaults .Tile matrix set5.6.4.8. Editing a gridset . , .116 125. Chapter 5 5.6.4.9. Copying a gridset , . , Create a copy .5.6.4.10.Removing a gridset Remove selected gridsets . : .117 126. Chapter 5 5.6.5. Disk Quotas Disk Quotas , (disk quota) . properties . . , Direct WMS integration ( Disk Quotas ), . . Submit . (disk quota)5.6.5.1. Enable disk quota . . 5.6.5.2. Disk block size . (disk block size) . 4096 bytes .118 127. Chapter 5 5.6.5.3. Disk quota check frequency . ( ) , ( ) . 10 .5.6.5.4. Maximum tile cache size . GeoServer . mebibytes (MiB) ( 1.05MB), gibibytes (GiB) ( 1.07GB), tebibytes (TiB) ( 1.10TB) . 500 MiB . .5.6.5.5. Tile removal policy . Least Frequently Used ( ), Least Recently Used ( ) 2 . .5.7. GeoServer Spring Security security subsystem . Web Administration Interface . GeoServer .5.7.1. Settings Settings GeoServer .119 128. Chapter 5 Security Settings 5.7.1.1. Active role service role service( ) . Users, Groups, Roles (role service) . .5.7.1.2. Encryption GeoServer (UI) URL . URL . , Encrypt web admin URL parameters . GeoServer PBE Password encryption . URL http://GEOSERVER/web/?wicket:bookmarkablePage=:org.geoserver.security.web.Secur itySettingsPage URL . http://GEOSERVER/web/?x=hrTNYMcF3OY7u4NdyYnRanL6a1PxMdLxTZcY5xK5ZXyi617EFEFCagM wHBWhrlg*ujTOyd17DLSn0NO2JKO1Dw5.7.1.3. Password encryption Password encryption . Plain text, Weak PBE, Strong PBE 3 .120 129. Chapter 5 JVM Strong PBE , . Strong PBE JAR . Password encryption .Strong PBE 5.7.2. Authentication (authentication provider) (authentication chain) .5.7.2.1. Anonymous authentication GeoServer Web Administration Interface (anonymous) . Layer Preview, (capabilities documents), GeoServer . Allow anonymous authentication . GeoServer HTTP 401 status code , . : Authenticating to the Web Admin Interface .Anonymous authentication checkbox5.7.2.2. Authentication providers Authentication providers(, ) . username/password authentication . JDBC LDAP . Add new . .121 130. Chapter 5 5.7.2.2.1.Username/password provider user/group . NameUser Group Service user/group . user/group . .5.7.2.2.2.JDBC providerJDBC .122 131. Chapter 5 JDBC NameUser Group Service user/groupGeoServer JDBC (connection) . .Driver class name JDBC driver .ConnectionURL JDBC URL .5.7.2.2.3.LDAP providerLDAP . (role assignment) LDAP groups , user/group . .123 132. Chapter 5 LDAP groups LDAP 124 133. Chapter 5 user/group LDAP NameServer URLLDAP URLGeoServer LDAP . . (protocol),(host) (port) LDAP tree (root) distinguished name(DN) . TLSSTARTTLS.(SecureLDAPconnections.) User DN patternLDAP DN . uid {0} . uid={0},ou=people . Server URL DN .User FilterLDAPLDAP. User DN User Format (bind) (user data extraction handling) . (userPrincipalName={0}) . . 2 . {0} DN uid=bob,ou=people,dc=acme,dc=com .125 134. Chapter 5 {1} DN uid bob . User Format (binding) username String formatter . User DN User Filter (bind) (user data extraction handling) . {0}@domain . username . . {0} username , bob .Use LDAP groups for authorization Bind before group search LDAP groups . LDAP .Group search baseLDAP groups (tree) (node) . ou=groups . Server URL DN . Use LDAP groups for authorization .Group search filter LDAP groups . 2 . {0} DN uid=bob,ou=people,dc=acme,dc=com . {1} DN uid bob . Use LDAP groups for authorization .Admin Group(Administratorrole).ADMINISTRATOR . ADMIN . ADMIN( ) ROLE_ADMINISTRATOR . Group Admin GroupName of the group to be mapped to (Group Administrator) . GROUP_ADMIN . GROUPADMIN . GROUPADMIN()ROLE_GROUP_ADMIN . User Group Service user/group . Use LDAP groups for authorization .5.7.2.3. Authentication chain . (default) . Authentication chain .126 135. Chapter 5 5.7.3. Passwords Passwords, Master password, Password policies . : Users, Groups, Roles Users .5.7.3.1. Active master password provider (active) . Change password .127 136. Chapter 5 5.7.3.2. Master Password Providers , , . 5.7.3.3. Password policies GeoServer Password policies . , . default master 2 . default GeoServer , . master (Root account) , 8 . user/group .128 137. Chapter 5 , Add new . 5.7.4. Users, Groups, Roles User/group services Role services . , , . .129 138. Chapter 5 5.7.4.1. User Group Services user/group . GeoServer user/group , XML . Weak PBE password policy . JNDI JDBC user/group .User/group user/group , Add new user/group . Settings, Users, Groups 3 . : user/group Settings .5.7.4.2. Add new XML user/group service XML user/group Add new . XML . XML user/group .130 139. Chapter 5 XML user/group NamePassword encryptionPassword encryption . Plain text, Weak PBE, Strong PBE, Digestuser/group . 4 .Password policyPassword policy . Passwords .XML filename.security/usergroup/ users.xml . Enable schema validation XML (schema validation) . XML .File reload intervalGeoServer XML (1/000 ) . GeoServer 131 140. Chapter 5 user/group . (web admin interface) , XML . 1/1000 . 0 .5.7.4.3. Add new JDBC user/group service JDBC user/group Add new , JDBC . JDBC user/group .JDBC user/group Name GeoServer JDBC user/group .132 141. Chapter 5 Password encryption .Password policy .JNDI . JNDI .Driver class name JDBC driver .Connection URL JDBC URL .Username .Password .Create database tables(underlying) .Data Definition (DDL) fileLanguage (default) DDL , DDL . .Data Manipulation Language (DML) file (default) DML , DML . . , JNDI .133 142. Chapter 5 JNDI JDBC user/group JNDI resource name JNDI .134 143. Chapter 5 5.7.4.4. Edit user/group service (XML JDBC) user/group , user/group . Settings, Users, Groups 3 . Settings user/group , 2 . Users user/group .Users , Add new user .135 144. Chapter 5 5.7.4.4.1.Add user 136 145. Chapter 5 User nameEnabled .Password . .. Confirm password 2 .User properties Key/Value . .Group list . (toggle) .Add a new group . Groups .Role list . (toggle) .Add a new role .List of current roles for the user . .Groups user/group . , .Groups 137 146. Chapter 5 5.7.4.4.2.Add group Group nameEnabled .Role list . . (toggle) . Add a new role . user/group . GeoServer user/group , XML . Weak PBE password policy . JNDI JDBC user/group . 5.7.4.5. Role services . GeoServer XML , JNDI JDBC . (Administrator role) ROLE_ADMINISTRATOR .138 147. Chapter 5 , Add new . Settings Roles 2 . : Settings .5.7.4.6. Add new XML role service XML Add new . XML . XML .XML 139 148. Chapter 5 NameAdministrator role .XML filename . .security/role/ roles.xml . File reload intervalGeoServer XML (1/000 ) . GeoServer .(webadmininterface) , XML . 1/1000 . 0 .5.7.4.7. Add new JDBC role service JDBC Add new , JDBC . JDBC .140 149. Chapter 5 JDBC NameAdministrator role .JNDI . GeoServer JDBC . JNDI . Driver class name JDBC driver .Connection URL JDBC URL .141 150. Chapter 5 Username .Password .Create database tables(underlying) .Data Definition Language (DDL) file (default) DDL , DDL . .Data Manipulation Language (DML) file (default) DML , DML . . , JNDI .JNDI JDBC 142 151. Chapter 5 JNDI resource name JNDI .5.7.4.8. Edit role service (XML JDBC) , user/group . Settings, Roles 2 . Settings , Roles .Roles , Add new .143 152. Chapter 5 5.7.4.8.1.Add role Role name . , .Parent roles (inherit) . Roles .Role parameters Key/Value . .5.7.5. Data Layer security . , .5.7.5.1. Rules 2 (rule) (access) . *.*.r , (read) . *.*.w , (write) .144 153. Chapter 5 , Add a new rule . Workspace . * .Layer . * . 145 154. Chapter 5 . Access mode (Read) (Write) .Grant access to any role .Role list . (toggle) . Grant access to any role .Add a new role .5.7.5.2. Catalog Mode GeoServer , . HIDE, MIXED, CHALLENGE 3 . Layer security .Catalog 5.7.6. Services Service Security . GeoServer OWS (WFS, WMS ) (GetCapabilities, GetMap, ) . GeoServer . . Add a new rule .146 155. Chapter 5 Service OWS . * wcs, wfs, wms .Method . Service , * Capabilities, Transaction, GetMap GeoServer .Grant access to any role .Role list . (toggle) . Grant access to any role .Add a new role .5.7.7. File Browsing GeoServer GeoServer . (home) . . GEOSERVER_FILEBROWSER_HIDEFS . true GeoServer .147 156. Chapter 5 . web.xml GEOSERVER_FILEBROWSER_HIDEFStrue -DGEOSERVER_FILEBROWSER_HIDEFS=true export GEOSERVER_FILEBROWSER_HIDEFS=true5.8. GeoServer . GeoServer .Demos 5.8.1.Demo Requests GeoServer WMS, WCS, WFS . .148 157. Chapter 5 WFS(Web Feature Service) WCS(Web Coverage Service) URL XML . WMS(Web Map Service) URL .WFS 1.1 DescribeFeatureType 149 158. Chapter 5 Submit GeoServer . WFS WCS GeoServer XML .WFS 1.1 DescribeFeatureType XML WMS GetMap .OpenLayers WMS GetMap WMS GetFeatureInfo .150 159. Chapter 5 WMS GetFeatureInfo 5.8.2.SRSGeoServer 4,000 (SRS), (projection) , . SRS (ellipsoid) (datum) (geocentric) (geographic) (projection) . GeoServer SRS .GeoServer SRS 151 160. Chapter 5 Code SRS (author) SRS (unique) . .SRS EPSG:2000 SRS SRS () . European Petroleum Survey Group(EPSG) 2000 . . Description SRS . WKT SRS (string). WKT Well Known Text . Area of Validity SRS (bounding box).152 161. Chapter 6 Chapter 6. GeoServer . GeoServer . ShapefileDirectory of spatial filesJava PropertiesGeoServer (extension) . GeoServer , GeoServer download page . : GeoServer .6.1. Shapefile Shapefile . : GeoServer shapefile , . PostGIS , . Running in a Production Environment .6.1.1.shapefile Shapefile (.shp, .dbf, .shx, .prj ) . GeoServer . GeoServer shapefile Web Administration Interface (Stores) . : .prj , GeoServer . .prj GeoServer shapefile !153 162. Chapter 6 Shapefile Stores Add a new store Shapefile . shapefile Workspace . (prefix) .Data Source NameGeoServer shapefile . . (: topp:states) .Descriptionshapefile/store .Enabled . shapefile .URLshapefile . (: file:C:.shp) (: file:data/shapefile.shp) .namespaceshapefile . .create spatial index (spatial index) .charset.dbf (string) .memory mapped buffer I/O . Save .154 163. Chapter 6 6.1.2.shapefile Shapefile , GeoServer . Layers .6.2. (directory store) GeoServer shapefile . shapefile , shapefile GeoServer . : GeoServer shapefile , . PostGIS , . .6.2.1. Stores Add a new store Directory of spatial files . Workspace .shapefile (prefix) .155 164. Chapter 6 Data Source NameGeoServer . . . shapefile Enabled . . (: file:C:_directory) URL (: file:data/shapefile_directory . . namespace.Shapefile 6.2.2. shapefile . GeoServer . Layers .6.3. Java Properties (properties) Java () . Java . Properties GeoServer . GeoTools . (packaging process) GeoServer , . Properties . Properties . . (point) . Properties .Properties GeoServer . Properties Properties .156 165. Chapter 6 6.3.1.Adding a Properties data store Vector Data Sources Properties . Properties 6.3.2.Properties Properties WorkspaceData Source Name .Description . ( () (prefix) ..) Enabled .directory . /usr/local/geoserver/data/ex .157 166. Chapter 6 Properties TYPENAME.properties TYPENAME( .properties ) . () (bounding box) .Property 6.3.3.Properties Java properties format . KEY=VALUE . stations.properties 4 () stations . _=id:Integer,code:String,name:String,location:Geometry:srid=4326 stations.27=27|ALIC|Alice Springs|POINT(133.8855 -23.6701) stations.4=4|NORF|Norfolk Island|POINT(167.9388 -29.0434) stations.12=12|COCO|Cocos|POINT(96.8339 -12.1883) stations.31=31|ALBY|Albany|POINT(117.8102 -34.9502) . _= (type) .NAME:TYPE (,) .Name WFS .Integer, String, Float, Geometry 4 Type .Geometry :srid=XXXX , SRS EPSG 4 . / . . = ID(WFS fid gml:id). NCName .= (|) . .null . . srid=4326 SRS EPSG:4326 , / . GML3 GeoServer URN SRS urn:x-ogc:def:crs:EPSG:4326 / . SRS WFS .158 167. Chapter 6 6.4. GML : GeoServer GML GML (extension) . GML .: GML . .Geographic Markup Language(GML) XML .6.4.1. GML 2 .6.4.2. GML 1.GeoServer download page GML . : GeoServer !2.6.4.3. GeoServer WEB-INF/lib .GML Vector Data Sources GML . GML 159 168. Chapter 6 6.4.4.GML GML 6.5. VPF : GeoServer VPF VPF (extension) . VPF .Vector Product Format(VPF) . The National Geospatial-Intelligence Agency .6.5.1.VPF 1.GeoServer download page VPF . : GeoServer !2. GeoServer WEB-INF/lib .160 169. Chapter 6 6.5.2.VPF Vector Data Sources Vector Product Format Library . VPF 6.5.3.VPF VPF 6.6. Pregeneralized Features : GeoServer Pregeneralized Features (extension) .6.6.1.Pregeneralized Features 1.GeoServer download page Pregeneralized Features . : GeoServer !161 170. Chapter 6 2.6.6.2. GeoServer WEB-INF/lib .Pregeneralized Features Vector Data Sources Generalized Data Store . Generalized Data Store 6.6.3.Pregeneralized Features Pregeneralized Features Tutorial .162 171. Chapter 7 Chapter 7. GeoServer () . GeoServer . GeoTIFFGTOPO30WorldImageImageMosaicGeoServer (extension) . GeoServer , GeoServer download page . : GeoServer .7.1. GeoTIFF GeoTIFF (georeferenced) TIFF(Tagged Image File Format) .7.1.1.GeoTIFF Raster Data Sources GeoTIFF . GeoTIFF 163 172. Chapter 7 7.1.2.GeoTIFF GeoTIFF Workspace GeoTIFF . (prefix) .Data Source NameGeoServer GeoTIFF . . (: world:landbase) .DescriptionGeoTIFF .Enabled . GeoTIFF .URLGeoTIFF . (: file:C:.tif) Geoserver (: file:data/landbase.tif) .7.2. GTOPO30 GTOPO3030(arcsecond)DigitalElevationModel(DEM). : GTOPO30 http://edc.usgs.gov/products/elevation/gtopo30/gtopo30.html .164 173. Chapter 7 7.2.1.GTOPO30 Raster Data Sources GTOPO30 . GTOPO30 7.2.2.GTOPO30 GTOPO30 165 174. Chapter 7 7.3. WorldImage (world) . ( .jgw .tfw) (.jpg .tif) . GeoServer WorldImage .7.3.1.WorldImage Raster Data Sources WorldImage . WorldImage 7.3.2.WorldImage WorldImage 166 175. Chapter 7 7.4. ImageMosaic ImageMosaic . GeoTIFF (PNG .pgw , JPG .jgw , ) . Mosaic 2 . , . . ImageMosaic Using the ImageMosaic plugin Tutorial .7.4.1.ImageMosaic Raster Data Sources ImageMosaic . ImageMosaic 7.4.2.ImageMosaic ImageMosaic 167 176. Chapter 7 7.5. ArcGrid ArcGrid ESRI .7.5.1.ArcGrid Raster Data Sources