3 CREATING A WFS SERVER



Similar documents
DISMAR implementing an OpenGIS compliant Marine Information Management System

Webservices Technological Evolutions. Peter Bogaert University of Ghent (Belgium) E Governement Academy 8 Geoservices 15 februari 2006 Kortrijk.

Setup a connection to RS Image Server using WMS MapBrowser

PostGIS Indexes. Geometries Require Special Index

CURSO Inspire INSPIRE. SPEAKER: Pablo Echamendi Lorente. JEUDI 23/ THURSDAY 23 rd W S V : G E O S P A T I A L D A T A A C C E S S

Data interchange between Web client based task controllers and management information systems using ISO and OGC standards

smespire - Exercises for the Hands-on Training on INSPIRE Network Services April 2014 Jacxsens Paul SADL KU Leuven

GEO 425, Spring 2012 LAB 3: Introduction to Web Map Services

Statusreport MapServer

How To Install The Arcgis For Inspire Server Extension On A Microsoft Gis For Inspire Server Extension (For Microsoft) On A Pc Or Macbook Or Ipa (For Macbook)

DEVELOPMENT OF THE INTEGRATING AND SHARING PLATFORM OF SPATIAL WEBSERVICES

Quality Assessment for Geographic Web Services. Pedro Medeiros (1)

GIS AS A DECISION SUPPORT FOR SUPPLY CHAIN MANAGEMENT

Transforming Data with FME for Inspire

Web Map Context Service for Adaptive Geospatial Data Visualization

Access to ESPON Database by third- party applications An expertise on the potentialities of web services for accessing the ESPON metadata and data

The ORIENTGATE data platform

Data Visualization Using Web GIS Software

Intro to evis: the event visualization tool

HTTP - METHODS. Same as GET, but transfers the status line and header section only.

ArcGIS ArcMap: Printing, Exporting, and ArcPress

Documentation of open source GIS/RS software projects

Create and share a map with GIScloud.com

GetLOD - Linked Open Data and Spatial Data Infrastructures

Shuffling Quantum GIS into the Open Source GIS Stack

Introduction to the Mapbender OWS Security Proxy

HELCOM Data and Map Service. User Manual

Integrating AJAX Approach into GIS Visualization Web Services

Chapter 6: Data Acquisition Methods, Procedures, and Issues

ORACLE BUSINESS INTELLIGENCE WORKSHOP

Step by Step Guide for GIS Cloud Applications

Web Mapping in Archaeology

Managing a Geographic Database From Mobile Devices Through OGC Web Services

10CS73:Web Programming

EVENT VIEWER IN WINDOWS 7

Open Source Visualisation with ADAGUC Web Map Services

TABLE OF CONTENTS. 7. shapefile..59. shapefile shapefile

Fireworks 3 Animation and Rollovers

Printing Bar Code and RFID Labels from Oracle

SuperGeo Rugged Personal GIS Solution - Mobile GIS Expert Specification

Tracking Campaigns with G-Lock Analytics

ArcGIS online Introduction Module 1: How to create a basic map on ArcGIS online Creating a public account with ArcGIS online...

Magento module Documentation

Downloading soft fonts to Zebra printers with Adobe Output Designer / Adobe Central Output Server.

AN OPENGIS WEB MAP SERVER FOR THE ESA MULTI-MISSION CATALOGUE

National Geothermal Data System and Global Geosciences Data Integration

Tutorial 3 - Map Symbology in ArcGIS

Combining Drupal Content Management System with OGC Web Services

Tableau Server Trusted Authentication

Lecture 2. Internet: who talks with whom?

Interoperable Solutions in Web-based Mapping

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

GEOENGINE MSc in Geomatics Engineering, Master Thesis Gina Campuzano

ArcGIS Server mashups

Publishing geospatial data to the web using the EEA infrastructure

Data Visualization. Prepared by Francisco Olivera, Ph.D., Srikanth Koka Department of Civil Engineering Texas A&M University February 2004

Chapter 1 Introduction to web development and PHP

Adding Links to Resources

Pcounter Administrator Reports Generator User Manual

Discoverer Training Guide

StreamServe Persuasion SP5 Ad Hoc Correspondence and Correspondence Reviewer

INT322. By the end of this week you will: (1)understand the interaction between a browser, web server, web script, interpreter, and database server.

Web Map Tile Service Developer Guide Cloud Services August 2013

General principles and architecture of Adlib and Adlib API. Petra Otten Manager Customer Support

Jozef Matula. Visualisation Team Leader IBL Software Engineering. 13 th ECMWF MetOps Workshop, 31 th Oct - 4 th Nov 2011, Reading, United Kingdom

WIRIS quizzes web services Getting started with PHP and Java

Monitoring Oracle Enterprise Performance Management System Release Deployments from Oracle Enterprise Manager 12c

Institute of Computational Modeling SB RAS

The Virtual Database A Tool for Integrated Data Processing in a Distributed Environment

Design Requirements for an AJAX and Web-Service Based Generic Internet GIS Client

Data Visualization. Brief Overview of ArcMap

ESRI China (Hong Kong) Limited

WebGD: Framework for Web-Based GIS/Database Applications

Data Integration for ArcGIS Users Data Interoperability. Charmel Menzel, ESRI Don Murray, Safe Software

Printing Guide. MapInfo Pro Version Contents:

INTRODUCTION to ESRI ARCGIS For Visualization, CPSC 178

This document does not represent a commitment to implement any portion of this specification in any company s products.

GENERAL ADMINISTRATION - SHOPPING CART

Creating Figure Ground Maps in ArcMap 10.x: Basic procedures to download, open, manipulate and print spatial data

ArcGIS Server Best Practices and Guidelines

Outlook Profile Setup Guide Exchange 2010 Quick Start and Detailed Instructions

MapInfo Professional Version Printing Guide

Intro to Web Programming. using PHP, HTTP, CSS, and Javascript Layton Smith CSE 4000

PyQGIS developer cookbook

deskspace responsive web builder: Instructions

Testing the API behind a mobile app. Tutorial Marc van t Veer

Web Development. Owen Sacco. ICS2205/ICS2230 Web Intelligence

PoSHServer Documentation AUTHOR: YUSUF OZTURK (MVP)

TAMS 2.1 User s Manual. Utah LTAP Center. Contact: Utah LTAP 4111 Old Main Hill Logan, UT

RSS Feed from an Access Database

WEBMAIL User s Manual

elprolog MONITOR-WebAccess Operation Manual

Transcription:

APPIX A: INSTRUCTIONS MANUAL 3 CREATING A WFS SERVER 3.1 MAP-FILE FOR SINTANA The ARK system allows for some useful spatial features for the input data. For example the map view allows an overview of all the maps inserted while the micro view will show a map with the chosen feature in the middle. In order to use the spatial functions of the ARK program it is necessary to setup a map-file for the project. 1. The first part of the map file presents the over all map features like the physical size of the map and the real world extent together with the background colour, output formats and paths to other features. MAP EXTENT 1.621540 44.150600 37.955200 56.989600 SIZE 600 400 SHAPEPATH "C:/ms4w/Apache/htdocs/students/hro106/sintana/data/mapping/" IMAGECOLOR 171 214 205 FONTSET "C:/ms4w/Apache/htdocs/students/hro106/sintana/mapserver/fonts/fonts.list" SYMBOLSET "C:/ms4w/Apache/htdocs/students/hro106/sintana/mapserver/symbols/symbols35.sym" DEBUG ON OUTPUTFORMAT NAME PNGNOINT DRIVER "GD/PNG" MIMETYPE "image/png" IMAGEMODE PC256 FORMATOPTION "INTERLACE=OFF" EXTENSION "png" IMAGETYPE PNG WEB IMAGEPATH 'C:/ms4w/Apache/htdocs/students/hro106/sintana/mapserver/tmp/' IMAGEURL 'mapserver/tmp/' MAXSCALE 75000 MINSCALE 10 LOG 'mapserver/mapfiles/ms_errorlog.txt' 2. The projection is WGS 84 ( code 4326) PROJECTION "init=epsg:4326" 3. The scalebar feature SCALEBAR IMAGECOLOR 182 189 199 COLOR 0 0 0 SIZE LARGE 1 SIZE 200 2 29

APPIX A: INSTRUCTIONS MANUAL COLOR 0 0 0 INTERVALS 2 TRANSPARENT TRUE STATUS EMBED POSITION lr 4. The legendfeature LEG KEYSIZE 12 12 FONT arial TYPE TRUETYPE SIZE 10 COLOR 0 0 0 5. The first ( bottom) layer with country map of Europe using the field Country as label NAME "Europe" STATUS DEFAULT "C:/ms4w/Apache/htdocs/students/hro106/sintana/data/mapping/Europe.shp" GROUP "cor" ITEM "Country" "lyrname" "Countries" "grpname" "Europe" TRANSPARENCY 0 TYPE POLYGON NAME "Countries" COLOR 236 238 172 OUTLINECOLOR 97 97 97 SIZE 12 TYPE truetype FONT arial COLOR 97 97 97 6. The two layers covering a line and a polygon shapefile for the rivers and lakes in Europe NAME "Rivers_poly" STATUS DEFAULT "C:/ms4w/Apache/htdocs/students/hro106/sintana/data/mapping/Rivers_poly.shp" GROUP "cor" "lyrname" "Rivers poly" "grpname" "Europe" 30

APPIX A: INSTRUCTIONS MANUAL TRANSPARENCY 0 TYPE POLYGON NAME "Rivers poly" COLOR 171 214 205 OUTLINECOLOR 106 173 181 NAME "Rivers_lines" STATUS DEFAULT "C:/ms4w/Apache/htdocs/students/hro106/sintana/data/mapping/Rivers_lines.shp" GROUP "cor" "lyrname" "Rivers lines" "grpname" "Europe" TRANSPARENCY 0 TYPE LINE NAME "Rivers lines" COLOR 106 173 181 WIDTH 2 7. The last (top) laver covers the points of the Sintana project finds NAME "Sintana" "C:/ms4w/Apache/htdocs/students/hro106/sintana/data/mapping/Sintana.shp" GROUP "sin" ITEM "Place_name" MAXSCALE 51 "lyrname" "Sintana Mapping" "grpname" "Sintana" TYPE POINT NAME "Sintana" COLOR 204 51 51 SYMBOL "square" SIZE 5 SIZE 10 31

APPIX A: INSTRUCTIONS MANUAL TYPE truetype FONT arial COLOR 97 97 97 # end of map file In order to serve the data which has been setup and described in the map-file it is necessary to build a WFS server. This one is built by Stuart Eve from L P : Archaeology who has generously allowed me to include it to this development. The script basically receives requests through HTTP GET and returns and image or a GML file: dl('php_mapscript.dll'); $request = ms_newowsrequestobj(); //now we need to set up the request parameters and loop through them adding them to the request object foreach ($_REQUEST as $key =>$value){ $request->setparameter($key,$value); ms_ioinstallstdouttobuffer(); //this mapfile path is set in config/settings if($request->getvaluebyname('service') == 'WMS'){ $omap = ms_newmapobj("$wms_map"); if($request->getvaluebyname('service') == 'WFS'){ $omap = ms_newmapobj("$wfs_map"); $omap->owsdispatch($request); $contenttype = ms_iostripstdoutbuffercontenttype(); if ($contenttype == 'image/png'){ header('content-type: image/png; mode=24bit'); ms_iogetstdoutbufferbytes(); if ($contenttype == 'image/png; mode=24bit'){ header('content-type: image/png; mode=24bit'); ms_iogetstdoutbufferbytes(); if ($contenttype == 'application/vnd.ogc.wms_xml'){ header('content-type: text/xml'); if ($contenttype == 'application/vnd.ogc.gml'){ 32

APPIX A: INSTRUCTIONS MANUAL header('content-type: text/xml'); if ($contenttype == 'text/xml'){ header('content-type: text/xml'); if ($contenttype == 'text/html'){ header('content-type: text/html'); ms_ioresethandlers();?> 3.2 USING MAPSERVER TO CREATE A WFS SERVER THROUGH A MAP-FILE Through a few additions to the map-file already set up for the Sintana project to show the spatial data in the ARK system in addition to a WFS server, it is possible to setup a WFS server. The extra stuff to make map-file server WFS could be added to the map-file, however, this breaks the spatial setup of the ARK system so instead a copy (sintana_wfs.map) is used and the following code is added: 1. Under the WEB part the metadata stating the WFS title, the online resource which is the WFS server called and at least one projection should be set. "wfs_title" "Sintana wfs service" "wfs_onlineresource" "http://ark.lparchaeology.com/examples/sintana/sintana_wfs.php?" "wfs_srs" "EPSG:4326 EPSG:42101 EPSG:4269 EPSG:4326" 2. For each layer the metadata stating the layer title, the feature id ( which is the field name in the shape-file like the one used as label) and whether to include all the features in the map should all be set. "wfs_title" "Europe" ## REQUIRED "gml_featureid" "Country" ## REQUIRED "gml_include_items" "all" 33

APPIX A: INSTRUCTIONS MANUAL 3. It is also a good idea to set the projection for each layer: PROJECTION "init=epsg:4326" 4. Each layer must have dump set to true: DUMP TRUE With all these things added to the original map-file the last thing needed is to add the actual WFS server which is a PHP script that receives the requested URL in much the same way as the above web-service for textual data and outputs GML (geographic markup language) which is a sort of XML. This server is the same as the online resource above: http://ark.lparchaeology.com/examples/sintana/sintana_wfs.php Online or on the university network only: http://ay-dehus:8080/students/hro106/sintana/sintana_wfs.php This file uses the mapscript extension and can be called with the following three requests: 1. The getcapabilities request receives a GML document describing the capabilities and the feature types of the WFS server. sintana/sintana_wfs.php?service=wfs&version=1.0.0&request=getcapabilities 2. The getfeature request receives a similar document with the features and their spatial data depending on the feature type called with the TYPENAME part of the URL. sintana/sintana_wfs.php?service=wfs&version=1.0.0&request=getfeature&typename=europe 3. Finally it is possible to call the describefeaturetype request which returns a GML document with all the feature types and their elements. sintana/sintana_wfs.php?service=wfs&version=1.0.0&request=describefeaturetype 34