PostGIS Indexes 11 0 Geometries Require Special Index Sortable in two dimensions Cover range of values R-Tree Index (GiST Implementation) Linear Time Picksplit Algorithm http://postgis.refractions.net/rtree.pdf
11 1
Kartenserver 11 2 Proprietary ArcIMS MapExtreme Open Source GeoServer DeeGree UMN Mapserver
UMN Mapserver 11 3 mapserver.gis.umn.edu Multiple Format Support Shape, TAB, Coverage, DGN, PostGIS, More Multiple Projection Support Standards Support OpenGIS Web Map Server OpenGIS Web Feature Server OpenGIS Styled Layer Descriptor
UMN Mapserver 11 4 Format A Projection 1 Format B Projection 1 Mapserver Format C Projection 2 Map File ourmap.map
MAP EXTENT 1192130 379840 1199560 385520 SIZE 400 400 SHAPEPATH "/Users/pramsey/Sites" PROJECTION "init=epsg:42102" # BC Albers LAYER NAME "Lakes" STATUS ON DATA "lakes" TYPE POLYGON PROJECTION "init=epsg:42102" # Geographic CLASS NAME "Lakes" COLOR 205 223 255 11 5
UMN Mapserver & PostGIS 11 6 PostGIS / PostgreSQL Spatial Database Mapserver GIS Data Map File kartendef.map
Interoperabilität 11 7 Web Browser Kombination unterschiedlicher Kartenebenen zu einer neuen Karte Web Server WMS Interface UMN MapServer Data Data Data WMS Interface ArcIMS Data Data Data
Interoperabilität(kaskadierend) 11 8 Web Browser Web Server Ein kaskadierender WMS Server hat neben der Anfragekomponente auch Clientfunktionalität. Als Ergebnis wird ein einzelnes Bild gesendet GetMap request WMS Interface WMS Interface Cubewerx GetMap ArcIMS request Data Data WMS Data Data Data
Web Dienste 11 9 Client 1 Mapserver web Application Implementation (Server) WMS* WFS** The Internet Client 2 Mapserver Web Application with WMS and WFS service Client n * Web map service ** Web feature service
Terminologie 12 0 WMS Web map service / server WFS Web Feature service / server OGC Open GIS Consortium Mapserver University of Minnesota s Internet Mapping Software GML Geographic markup language
Standards 12 1 1) Wer ist verantwortlich für die WMS/ WFS Standards? OpenGIS Consortium (OGC) Organization ist analog der IEEE oder ANSI zuständig für GIS relelvante Entwicklungen. 2) Informationen zu WMS/WFS? WMS 1.0.0 specification: http://www.opengis.org/docs/00-028.pdf WMS 1.1.0 specification: http://www.opengis.org/docs/01-047r2.pdf WMS 1.1.1 specification: http://www.opengis.org/docs/01-068r2.pdf WMS FAQ: http://www.intlinterfaces.net/cookbook/wms/faq/faqw.py?req=home WMS Cookbook: http://www.intl-interfaces.net/cookbook/wms/ WFS specification: http://www.opengis.org/techno/specs/02-058.pdf GML specification: http://www.opengis.net/gml/02-069/gml2-12.html
Web Map Server 12 2 GetCapabilities WMS CGI Implementation Request Types GetMap GetFeatureInfo DescribeLayer Mandatory requests supported per OGC recommendations Optional requests of some implementations Client s Computer
Client Request Types GetCapabilities XML document with metadata of the WMS 12 3 Client GetMap Client Clicks on map GetFeatureInfo Send request Text/ Plain attribute information Text/ Plain using Mapserver query templates set in wms_feature_info_mime_type GML features Client DescribeLayer* XML description of One or more layers (currently supported Only in SLD servers) * NOT SUPPORTED IN MAPSERVER
WMS Server mit dem UMN 12 4 UMN mit der with_wms Option kompilieren Ergebnis: Bei der Abfrage mit dem Kommando mapserv v solllte der unterstützte Service auch WMS_SERVER beinhalten Beispiel: Wechseln in das Verzeichnis cgi-bin $./mapserv v Ergebnis: MapServer version 4.2-beta1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE
WMS konfigurieren 12 5 http://mapserver.gis.umn.edu/doc/wms-server-howto.html Hinzufügen der WMS Informationen zur Karte und zu jedem Layer Map NAME Map PROJECTION Map Metadata (in the WEB Object): wms_title wms_onlineresource wms_srs (unless PROJECTION object is defined using "init=epsg:...") Layer NAME Layer PROJECTION Layer Metadata wms_title wms_srs (optional since the layers inherit the map's SRS value)
Testen des WMS Servers 12 6 Testen der Konfiguration 1. GetCapabilities: In a web browser, type in the URL, http://spree.geogr.uni-jena.de/cgibin/mapserv?map=/opt/janus/www/htdocs/itasca/demo.map&re QUEST=GetCapabilities Result: XML Datei mit der Beschreibung 2. GetMap http://spree.geogr.uni-jena.de/cgibin/mapserv?map=/opt/janus/www/htdocs/itasca/demo.map&ver SION=1.1.1 &REQUEST=GetMap&layers=autobahn&FORMAT=image/png Resultat: Bild
Sample Map file: 3.3 WMS Samples 1. MAP PARAMETERS NAME TAMILNADU.. WEB EMPTY norecords.htm" TEMPLATE tamilnadumap.htm" IMAGEPATH /tmp/" IMAGEURL "/tmp/" METADATA "wms_title TamilNadu WMS Server" "wms_abstract" Tamilnadu" "wms_extent" "-633771.227805 1060738.573036 152927.340425 1689379.870746" "wms_accesscontraints" "none" "wms_contactperson" Mahalakshmi" "wms_contactorganization" Tamil Nadu" "wms_contactposition" "Software Engineer" "wms_fees" "none" "wms_onlineresource" "http://localhost/cgi-bin/mapserv.cgi?map=tnmap.map&" "wms_srs" "EPSG:99999" 2. LAYER PARAMETERS LAYER NAME state TYPE POLYGON STATUS DEFAULT DATA county PROJECTION #GEOGRAPHIC NAD83 proj=longlat ellps=grs80 no_defs CLASS COLOR 255 255 255 METADATA "wms_title" "State" "wms_srs" "EPSG:4019" 12 7
3.2 GetMap Parameters 12 8 VERSION REQUEST LAYERS STYLE SRS BBOX WIDTH HEIGHT FORMAT WMS Server (mapserver cgi location) Map file WMS request version Map layers Spatial reference system from EPSG file Width of returned map image Format of returned map image Request- GetMap Rendering Style for SLD support. Mapserver currently does not support this, leave empty Bounding box corners (lower left, upper right) in SRS units Height of returned map image