Welcome to the GeoWeb 2007 Conference Blog! We invite you to post your stories, comments, ideas and issues and join us as we gear up for the GeoWeb conference in Vancouver.

The Need for Restful Services for Geospatial Information

So far the OGC has mainly interpreted Web Services in non-restful terms. While the idea of linking to remote resources has been part of GML since version 1., it has not been exploited in a restful sense in anything beyond the most simple experiments. As pointed out by Sean Gillies and others (see geo-web-rest@googlegroups.com ) rest depends on having a consistent http interface. Sean has already described this very well, so I will just quote his e-mail here:

“A uniform interface is the “core tenet” of REST:

(http://rest.blueoxen.net/cgi-bin/wiki.pl?RestInPlainEnglish)

For the Web, it is:

- GET: “give me a representation of the resource”;
- PUT: “replace the resource’s representation with this one”;
- POST: “create a new resource from this representation”;
- DELETE: “eliminate the resource”.

The closest thing WxS has to resources are the service endpoints specified by the online resource URLs. What is their HTTP interface?

- GET: “get a capabilities document, a feature collection, or some other thing depending on the values of ’service’, ‘request’, and other parameters”;
- PUT: undefined
- POST: “get a capabilities document, or a feature collection, *or* create, update, or delete features, or do almost anything depending on the values of ’service’, ‘request’, and other parameters”;
- DELETE: undefined

GET and POST are more or less interchangeable, depending on the particular implementation. What’s important to WxS are the other request arameters: “service”, “request”, “typename”, etc. WxS has *no* uniform HTTP interface, and is therefore *not* RESTful.”

So by this definition, our OGC WxS services do NOT appear to be restful. One might wonder if we could also advance toward a more restful architecture by eliminating capabilities documents – factoring these into additional interfaces?

-Ron

(Visit Sean Gillies’ Blog http://zcologia.com/news/)

5 Responses to “The Need for Restful Services for Geospatial Information”

  1. mpg Says:

    I’ve read over the new RESTful book, and while I [would like to think that I] understand the underlying goals of REST, I still have a little trouble with wedging “parameters” into URLs — some of their examples seem a little forced to me.

    I can’t cite any of their examples now, though, as I’ve already loaned the book out. So let’s put WMS under the microscope instead. How does the output bbox gets RESTified? It seems to me that request params are best RESTed when they correspond to a bounded, enumerable list (e.g. EPSG codes or layer names) — a bbox doesn’t fit that criteria, obviously. Way not helpfully cacheable, for example.

    Using the Tile Map Service seems to nicely solve this problem, but that solution is a significant departure from the WMS-style architecture of allowing arbitrary-sized response bboxes.

    So, to deliberately overly simplify Ron’s question, does this imply that just eliminating capabilities documents is as insufficient means to RESTifying WxS?

    -mpg

  2. Sean Gillies Says:

    mpg,

    The Tile Map Service proposes a design that promotes caching and makes it more likely, but there is nothing inherently RESTless about using a bbox parameter. So, no, this does not imply that eliminating capabilities documents is insufficient (true, but for other reasons). First, you need to adopt a uniform interface. Stop overloading POST, and move away from service-specific methods like “GetMap” and “GetFeatures”. GET should be all that’s required.

  3. Sean Gillies Says:

    I’d also like to point out that the Geo-Web-REST discussion group

    http://groups.google.com/group/geo-web-rest

    is open to public participation.

  4. Ron Says:

    The OGC is now actively considering the expression of its web services such as WFS, WRS, WMS and WCS using a REST model. It should also be noted that the OGC Web Registry Service might also be used as a means to store temporary resources (e.g. queries) subsequently invoked by GET etc. requests.

  5. rajsingh.org blog » REST and GIS Says:

    […] think there’s any one clear explanation (despite some nice pieces of the puzzle here and here) available, and there has certainly been little effort to analyze the REST architecture in relation […]

Leave a Reply

  • Geography MattersGeography Matters is an official ESRI blog, Geography Matters Blog started bringing you information about how geography and GIS matter.

  • Mapping CenterMapping Center is an official ESRI blog that is provides information on the creation of maps.

  • Google Earth BlogThis blog is not officially affiliated with Google. Google Earth Blog is dedicated to sharing the best news, interesting sights, technology, and happenings for Google Earth.

  • Google Lat Long BlogThis is the official Google Earth and Google Maps blog.

  • Google Earth HacksA blog all about Google Earth

  • Microsoft Virtual Earth/Live Map BlogThis is the official Virtual Earth and Live Maps blog by Microsoft.

  • Microsoft Virtual Earth, A Developer BlogVirtual Earth, a developer blog,  is intended to provide you with updated information on building solutions on the Virtual Earth platform, which includes the Map Control and the MapPoint Web Service.

  • Ron Lake's BlogThis is Ron Lake’s blog. Ron is the creator of Geography Markup Language and Founder and Chairman of Galdos Systems Inc.

  • James Fee GIS BlogJames Fee’s personal blog focused on geospatial technology. Most of the focus is on the large players in the field such as ESRI, Microsoft, Google, NAVTEQ, Mapquest, Oracle and open source GIS (OSGeo).

  • Gisblog.netGISblog is a general blog on geospatial information science, trends tools and technologies.

  • AnyGeo - Anything GeospatialGISblog is a general blog on geospatial information science, trends tools and technologies.

  • QGISThis blog is basically written in dev speak and QGIS ramblings

  • Surveying Mapping/GISThis site has been developed to discuss a wide variety of topics revolving around acquisition, maintenance and development of surveying, mapping, and GIS data and applications.

  • Mapperz - The Mapping News BlogThis blog is for Map and GIS News finding blog... for UK, Europe and Worldwide Maps.

  • Yahoo! Local BlogThe Official Yahoo! Local blog.

  • Between the PolesThis is Geoff Zeiss, Director of Technology for Autodesk Inc, personal blog.

  • The Geospatial Semantic Web BlogThis blog is created by Dr. Harry Chen, a Computer Scientist at Image Matters LLC. This blog tracks the latest news and development that encourage the cross-fertilization of these technologies.

  • All Points BlogAll Points Blog, from Directions Media, is an information and news source on location technology.

  • SlashgeoSlashgeo is a bridge across space and time to gather the community of the geospatially interested.

  • Ed ParsonsThe personal blog of Ed Parsons, Geospatial Technologist of Google and ex-CTO of Ordnance Survey.

  • OGLE EarthNews about virtual globes, with a special focus on Google Earth”

  • ArcGIS ExplorerThe ArcGIS Explorer Blog is an official ESRI blog that is published by the ArcGIS Explorer Team.

  • Peter BattyThoughts on geospatial and location technology from Peter Batty

  • CFISCfis is blog about creating software.

  • ArcGIS Server Development BlogThis blog is has been created to present tips and best practices that will help developers become more effective using ArcGIS Server.

  • CartoblogMaking, understanding and looking at maps.

  • Digital Earth BlogI’m simply a big fan of all of the digital earth products out there, especially Google Earth and Virtual Earth, and this blog is meant to simply highlight the great new features coming out on those products.

  • Open GeoDataA blog about opening up geographic data, maps, openstreetmap and freethepostcode.

  • CarbonCloudCarbonCloud – This is The Carbon Project’s Blog about Geosocial Networking

  • Christopher Hunt’s BlogBlog focused on software development

  • SciSpace Geobrowsers CommunityThis Community exists to help scientists, data providers and software developers work together to share and visualize data effectively using new tools.

  • Sean Gillies’ BlogA GIS blog by Sean Gillies.

  • Globe Explorer’s Earth Mapping BlogThis blog provides insight into GlobeXplorer's online mapping and earth imagery services. Its purpose is to track company events as they relate to online geographic content, spatial technology, and web services in production at business websites, consumer portals, and in any location-aware devices or applications.

  • GeoInformation Online * English VersionA blog dedicated to integrating the GIS Markets of Brazil and Portugal

  • Virtual Earth for Government A place to share information and ideas on the Virtual Earth platform as a tool that allows Governments to visualize their data within the context of location.