Spatial Statistics on theGeospatial WebMatthias Hinz, Daniel Nüst, Benjamin Proß,Edzer Pebesma
AGILE 2013 - Spatial Statistics on the Geospatial Web 2Web Service (mediation layer)DomainScientistsScripting Environment(...
AGILE 2013 - Spatial Statistics on the Geospatial Web 3Run the script as aweb processUpload scriptto serverEnhancescript
AGILE 2013 - Spatial Statistics on the Geospatial Web 4The Annotation Conceptmetadatatechnical instructionshas name + para...
AGILE 2013 - Spatial Statistics on the Geospatial Web 5Four Annotation Typesgeneral process descriptiondynamic inputsproce...
AGILE 2013 - Spatial Statistics on the Geospatial Web 61) General Process Description# des: id = my42process, title= “my s...
AGILE 2013 - Spatial Statistics on the Geospatial Web 7# number for factorizationmyFactor <- 102) Dynamic Inputs
AGILE 2013 - Spatial Statistics on the Geospatial Web 82) Dynamic Inputs# number for factorizationmyFactor <- 10# in: id =...
AGILE 2013 - Spatial Statistics on the Geospatial Web 9# number for factorization# off;myFactor <- 10# on;# in: id = myFac...
AGILE 2013 - Spatial Statistics on the Geospatial Web 103) Process Outputs# number for factorizationmyResult <- myAlgorith...
AGILE 2013 - Spatial Statistics on the Geospatial Web 114) Resources# res: file1.data, file2.zip, file3.txt,...;# load aux...
AGILE 2013 - Spatial Statistics on the Geospatial Web 12Ignore flags# off;script.part.to = be_ignored_on_server()# on;scri...
AGILE 2013 - Spatial Statistics on the Geospatial Web 13Application Example: WPS4RRserveWPS ClientHTTPGET /POSTTCP /IPWeb ...
AGILE 2013 - Spatial Statistics on the Geospatial Web 14Example: Interpolation+Kappasys WPS-ClientQuantum GIS
AGILE 2013 - Spatial Statistics on the Geospatial Web 15WPS Process Description[…] <ProcessDescription statusSupported="tr...
AGILE 2013 - Spatial Statistics on the Geospatial Web 16
AGILE 2013 - Spatial Statistics on the Geospatial Web 17
AGILE 2013 - Spatial Statistics on the Geospatial Web 18Example: Live WeatheR Plotslive sensor dataanalysis on serverimage...
AGILE 2013 - Spatial Statistics on the Geospatial Web 19
AGILE 2013 - Spatial Statistics on the Geospatial Web 20Conclusionannotation frameworkscript-based web processingdemo with...
AGILE 2013 - Spatial Statistics on the Geospatial Web 21Outlooksecurityprovenancerightsfurther implementations / toolsusab...
AGILE 2013 - Spatial Statistics on the Geospatial Web 22Thanks for your Attention!
AGILE 2013 - Spatial Statistics on the Geospatial Web 23ResourcesWPS4R Website:https://wiki.52north.org/bin/view/Geostatis...
AGILE 2013 - Spatial Statistics on the Geospatial Web 24Further Information
AGILE 2013 - Spatial Statistics on the Geospatial Web 25Server Environment Variablesif(exists(“server”) && server == TRUE)...
AGILE 2013 - Spatial Statistics on the Geospatial Web 26Annotated R script: IDW
AGILE 2013 - Spatial Statistics on the Geospatial Web 27WPS Process Description[…]<Input minOccurs="1" maxOccurs="1"><ows:...
AGILE 2013 - Spatial Statistics on the Geospatial Web 28WPS Process Description[…]<DataInputs><Input minOccurs="1" maxOccu...
AGILE 2013 - Spatial Statistics on the Geospatial Web 29WPS Process Description[…]<Output><ows:Identifier>result</ows:Iden...
Upcoming SlideShare
Loading in …5
×

Spatial Statistics on the Geospatial Web

8,199 views

Published on

The Geospatial Web provides data as well as processing functionality using web interfaces. Typical examples of such processes are models and predictions for spatial data, known as spatial statistics. Such analyses are written by domain experts in scripting languages and rarely exposed as web services. We present a concept of script annotations for automatic deployment in server runtime environments and demonstrate it with an implementation based on the open standards and open source components OGC Web Processing Service and R.

Short paper:
http://www.agile-online.org/Conference_Paper/CDs/agile_2013/Short_Papers/SP_S3.1_Hinz.pdf

Published in: Technology
  • Be the first to comment

Spatial Statistics on the Geospatial Web

  1. 1. Spatial Statistics on theGeospatial WebMatthias Hinz, Daniel Nüst, Benjamin Proß,Edzer Pebesma
  2. 2. AGILE 2013 - Spatial Statistics on the Geospatial Web 2Web Service (mediation layer)DomainScientistsScripting Environment(software / languages)Web Developer /AdminHeterogeneousAudience…browser clientscommunity platformsGIS-applicationsservicesProcess Sharingmobile devicesGeospatial Web
  3. 3. AGILE 2013 - Spatial Statistics on the Geospatial Web 3Run the script as aweb processUpload scriptto serverEnhancescript
  4. 4. AGILE 2013 - Spatial Statistics on the Geospatial Web 4The Annotation Conceptmetadatatechnical instructionshas name + parameter listas code commentslocally and on a server
  5. 5. AGILE 2013 - Spatial Statistics on the Geospatial Web 5Four Annotation Typesgeneral process descriptiondynamic inputsprocess outputsresources
  6. 6. AGILE 2013 - Spatial Statistics on the Geospatial Web 61) General Process Description# des: id = my42process, title= “my script”,# abstract = “analyze 42 things”,# author= “me”;# myRuntime.des: id = …
  7. 7. AGILE 2013 - Spatial Statistics on the Geospatial Web 7# number for factorizationmyFactor <- 102) Dynamic Inputs
  8. 8. AGILE 2013 - Spatial Statistics on the Geospatial Web 82) Dynamic Inputs# number for factorizationmyFactor <- 10# in: id = myFactor, type = integer,# title = “numerical factor”,# abstract = “the number to be used# for factorization”,# value = 1,# minOccurs = 0, maxOccurs = 1;
  9. 9. AGILE 2013 - Spatial Statistics on the Geospatial Web 9# number for factorization# off;myFactor <- 10# on;# in: id = myFactor, type = integer,# title = “numerical factor”,# abstract = “the number to be used# for factorization”,# value = 1,# minOccurs = 0, maxOccurs = 1;2) Dynamic Inputs
  10. 10. AGILE 2013 - Spatial Statistics on the Geospatial Web 103) Process Outputs# number for factorizationmyResult <- myAlgorithm(1, 2, myDataSet)# out: id = myResult, type = string,# title = “factorized output”,# abstract = “output number as text in# scientific notation (a x 10^b)”;
  11. 11. AGILE 2013 - Spatial Statistics on the Geospatial Web 114) Resources# res: file1.data, file2.zip, file3.txt,...;# load auxiliary datadata1 <- foo("file2.zip")data2 <- bar(“fixed_path/file3.txt")
  12. 12. AGILE 2013 - Spatial Statistics on the Geospatial Web 12Ignore flags# off;script.part.to = be_ignored_on_server()# on;script.part.to = run_on_the_server()
  13. 13. AGILE 2013 - Spatial Statistics on the Geospatial Web 13Application Example: WPS4RRserveWPS ClientHTTPGET /POSTTCP /IPWeb Admin Console- Upload R scripts- Manage processes- Config parametersWPS4RXMLRequests /ResponsesRHTTPGET /POSTUser AdministratorApache Tomcat ServerProcessingService
  14. 14. AGILE 2013 - Spatial Statistics on the Geospatial Web 14Example: Interpolation+Kappasys WPS-ClientQuantum GIS
  15. 15. AGILE 2013 - Spatial Statistics on the Geospatial Web 15WPS Process Description[…] <ProcessDescription statusSupported="true"storeSupported="true" wps:processVersion="1.0.0"><ows:Identifier>org.n52.wps.server.r.Idw</ows:Identifier><ows:Title>Inverse distance weightedinterpolation</ows:Title><ows:Abstract>A simple interpolation carried out by R,uses packages gstat, sp and rgdal</ows:Abstract><ows:Metadata xlin:title="R Script used for this process"xlin:href="http://localhost:8080/wps/R/scripts/Idw.R"/><ows:Metadata xlin:title="Resource Directory URL"xlin:href="http://localhost:8080/wps/R/resources" /><ows:Metadata xlin:title="R Session Info"xlin:href="http://localhost:8080/wps/R/sessioninfo.jsp"/><DataInputs> […]# wps.des: id = idw,# title = "Inverse distance weighted interpolation",# abstract = "A simple interpolation carried out# by R, uses packages gstat, sp and rgdal",# author = "Matthias Hinz";
  16. 16. AGILE 2013 - Spatial Statistics on the Geospatial Web 16
  17. 17. AGILE 2013 - Spatial Statistics on the Geospatial Web 17
  18. 18. AGILE 2013 - Spatial Statistics on the Geospatial Web 18Example: Live WeatheR Plotslive sensor dataanalysis on serverimage output
  19. 19. AGILE 2013 - Spatial Statistics on the Geospatial Web 19
  20. 20. AGILE 2013 - Spatial Statistics on the Geospatial Web 20Conclusionannotation frameworkscript-based web processingdemo with open source frameworkopen approachreproducibility
  21. 21. AGILE 2013 - Spatial Statistics on the Geospatial Web 21Outlooksecurityprovenancerightsfurther implementations / toolsusabilitybidirectional communication
  22. 22. AGILE 2013 - Spatial Statistics on the Geospatial Web 22Thanks for your Attention!
  23. 23. AGILE 2013 - Spatial Statistics on the Geospatial Web 23ResourcesWPS4R Website:https://wiki.52north.org/bin/view/Geostatistics/WPS4R
  24. 24. AGILE 2013 - Spatial Statistics on the Geospatial Web 24Further Information
  25. 25. AGILE 2013 - Spatial Statistics on the Geospatial Web 25Server Environment Variablesif(exists(“server”) && server == TRUE){srv.metadata = get_server_url();}
  26. 26. AGILE 2013 - Spatial Statistics on the Geospatial Web 26Annotated R script: IDW
  27. 27. AGILE 2013 - Spatial Statistics on the Geospatial Web 27WPS Process Description[…]<Input minOccurs="1" maxOccurs="1"><ows:Identifier>attributename</ows:Identifier><ows:Title>Attribute name</ows:Title><ows:Abstract>Name of the attribute to beinterpolated, musst match theobservations</ows:Abstract><LiteralData><ows:DataType ows:reference="xs:string" /><ows:AnyValue /></LiteralData></Input>[…]# wps.in: attributename, string, "Attribute name",# "Name of the attribute to be interpolated,# must match the observations";
  28. 28. AGILE 2013 - Spatial Statistics on the Geospatial Web 28WPS Process Description[…]<DataInputs><Input minOccurs="1" maxOccurs="1"><ows:Identifier>points</ows:Identifier><ows:Title>Observations</ows:Title><ows:Abstract>The point observations andmeasurementsto be interpolated</ows:Abstract><ComplexData><Default><Format><MimeType>application/x-zipped-shp</MimeType></Format></Default><Supported><Format><MimeType>text/xml;subtype=gml/3.0.0</MimeType><Encoding>UTF-8</Encoding><Schema>http://schemas.opengis.net/gml/3.0.0/base/feature.xsd</Schema></Format><Format> […]
  29. 29. AGILE 2013 - Spatial Statistics on the Geospatial Web 29WPS Process Description[…]<Output><ows:Identifier>result</ows:Identifier><ows:Title>Interpolated predictions</ows:Title><ows:Abstract>A raster file that containspredictions for the observed area</ows:Abstract><ComplexOutput><Default><Format><MimeType>image/geotiff</MimeType></Format></Default><Supported><Format><MimeType>application/image-ascii-grass</MimeType><Encoding>base64</Encoding></Format> […]# wps.out: result, image/geotiff,# "Interpolated predictions",# "A raster file that contains predictions# for the observed area";

×