WFS Tutorial OGC Interoperability Day - Toluca mexico - May 30 2013

871 views
683 views

Published on

0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
871
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
6
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

WFS Tutorial OGC Interoperability Day - Toluca mexico - May 30 2013

  1. 1. TALLER WFS: INTERFACES WEBPARA INFORMACIONGEOGRAFICA VECTORIAL (WFSTutorial - Web Interface forGeospatial Vector Data)
  2. 2. Agenda• OGC• Motivation and Web Services• Features• GML• WFS
  3. 3. Open Geospatial Consortium (OGC)• Funded in 1994• Voluntary consensus• Standards organization• Leads the development of standards for geospatial and locationbased services.
  4. 4. OGC MissionTo serve as a global forum for the collaboration of developers and usersof spatial data products and services, and to advance the development ofinternational standards for geospatial interoperability.
  5. 5. Miembros OGCMas de 450 a nivel mundialEn México:
  6. 6. Publishing Geospatial Data
  7. 7. Publishing Geospatial Data
  8. 8. What changed?
  9. 9. What changed?
  10. 10. What is this?
  11. 11. Internet
  12. 12. Internet enables the World Wide Web
  13. 13. The Web = All Information fromComputers connected around theworld.
  14. 14. How do we connect to the Web?Protocols• TCP/IP• HTTP (GET, POST)
  15. 15. Lets Try - SetupTo view HTTP requests, we can use Firefox:• Open: Tools / Web Developer / Web Console• Select Net
  16. 16. Lets Try - Test• Open any page• Open a wrong URL• Inspect the console• Click on example petition: "Get http:// ...."
  17. 17. What Should I get back if I ask a serverfor a "Toluca"• A Map of Toluca• A video• A picture• The history• List of Hotels• ???
  18. 18. We need to design specialized systemsPor ejemplo - Servicio de restaurantes:• Encuentrame todos los restaurantes a 5 km de distancia• Encuentrame el restaurante con el mejor guacamole y chorizo verde• Agrega mi comentario - comida salada, servicio terrible - alrestaurante X• Reserva el restaurante YY a las 8 PM y preparen un ponque con 30velas
  19. 19. Heterogeneous Services
  20. 20. Heterogeneous Services
  21. 21. Lack of agreement looks bad
  22. 22. Agreement of Interfaces- Great!
  23. 23. Feature
  24. 24. Geospatial Feature
  25. 25. Feature has Properties
  26. 26. GeneralizationClass = TreeProperties of Tree:• Height• Location
  27. 27. Feature InstanceMy favorite tree in Cartagena is the one in front of the hotel Colombia.
  28. 28. Features Modeling
  29. 29. Geographic Markup Languaae (GML)<Bridge><span>100</span><height>200</height><gml:centerLineOf><gml:LineString><gml:pos>100 200</gml:pos><gml:pos>200 200</gml:pos></gml:LineString></gml:centerLineOf></Bridge>
  30. 30. Feature Instance of Type Bridge<Bridge><span>100</span><height>200</height><gml:centerLineOf><gml:LineString><gml:pos>100 200</gml:pos><gml:pos>200 200</gml:pos></gml:LineString></gml:centerLineOf></Bridge>
  31. 31. Feature Types are defined in GML<xs:complexType name="BridgeType"><xs:complexContent><xs:extension base="gml:AbstractFeatureType"><xs:sequence><xs:element name="span" type="xs:integer"/><xs:element name="height" type="xs:integer"/><xs:element ref="gml:centerLineOf"/></xs:sequence></xs:extension></xs:complexContent></xs:complexType>
  32. 32. GML Provides• Defines an abstract feature model• Provides XML Schemas• Provides primitives:• Geometry• Feature Types• Coordinate Reference Systems
  33. 33. GML Geometries
  34. 34. How can I model a radio station?
  35. 35. How can I model a radio station?point - when looking at a country map
  36. 36. How can I model a radio station?polygon - location of the building
  37. 37. How can I model a radio station?Multipolygon - Area of Transmition
  38. 38. Communities develop their ownApplication Schemas• AIXM – Aviation• CAAML – Canadian avalanches• CityGML – 3D city models• CSML – Climate Science Modelling• DAFIF – Defense aviation• GeoSciML - Geoscience• ...
  39. 39. Web Feature Service (WFS)• Service (Protocol)• Do the following with Geographic Features:• publish• access• manipulate
  40. 40. WFS Operations• getCapabilities - summary of the service• DescribeFeatureType - structure of the feature types• GetFeature - get the feature instance• Transaction - create, update and delete geographic features• Lock Feature - Protects feature record when updating it.
  41. 41. GeoServer Demo• GeoServer is the reference implementation for WFS 1.1.0.• Open and free software• Java-based
  42. 42. GeoServer Demo• http://localhost:8080/geoserver/web/• click on Demos• Explore Operations
  43. 43. Example getCapabilitieshttp://localhost:8080/geoserver/topp/ows?service=WFS&version=1.0.0&request=GetCapabilitieshttp://localhost:8080/geoserver/topp/ows?service=WFS&version=1.0.0&request=GetCapabilities
  44. 44. Example DescribeFeaturehttp://localhost:8080/geoserver/topp/ows?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=topp:tasmania_water_bodieshttp://localhost:8080/geoserver/topp/ows?service=WFS&version=1.1.0&request=DescribeFeatureType&typeName=topp:tasmania_water_bodieslink
  45. 45. Example getFeaturehttp://localhost:8080/geoserver/topp/ows?service=WFS&version=1.1.0&request=getFeature&TypeName=topp:tasmania_water_bodieshttp://localhost:8080/geoserver/topp/ows?service=WFS&version=1.1.0&request=getFeature&TypeName=topp:tasmania_water_bodies
  46. 46. Query based on values of propertiesLakes with area > 1067000000 cm. Request:http://localhost:8080/geoserver/topp/ows?service=WFS&version=1.1.0&request=getFeature&TypeName=topp:tasmania_water_bodies&FILTER=<Filter xmlns="http://www.opengis.net/ogc"><PropertyIsGreaterThan><PropertyName>AREA</PropertyName><Literal>1067000000</Literal></PropertyIsGreaterThan></Filter>http://localhost:8080/geoserver/topp/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=topp:tasmania_water_bodies&maxFeatures=50&outputFormat=GML2&&FILTER=%3CFilter%20xmlns=%22http://www.opengis.net/ogc%22%3E%3CPropertyIsGreaterThan%3E%3CPropertyName%3EAREA%3C/PropertyName%3E%3CLiteral%3E1067000000%3C/Literal%3E%3C/PropertyIsGreaterThan%3E%3C/Filter%3E`link <http://localhost:8080/geoserver/topp/ows?service=WFS&version=1.0.0&request=GetFeature&typeName=topp:tasmania_water_bodies&maxFeatures=50&outputFormat=GML2&&FILTER=%3CFilter%20xmlns=%22http://www.opengis.net/ogc%22%3E%3CPropertyIsGreaterThan%3E%3CPropertyName%3EAREA%3C/PropertyName%3E%3CLiteral%3E1067000000%3C/Literal%3E%3C/PropertyIsGreaterThan%3E%3C/Filter%3E>`_
  47. 47. Client - Server Demo• Open uDIG• Connect with geoserver:http://localhost:8080/geoserver/topp/ows
  48. 48. ReferencesOGC Standardshttp://www.opengeospatial.org/standardsGML Application Profileshttp://www.ogcnetwork.net/gmlprofilesGeoServerhttp://docs.geoserver.org/stable/en/user/data/vector/index.htmluDIGhttp://udig.refractions.net
  49. 49. The EndVentajas de unirse al consorcio OGChttp://www.opengeospatial.org/ogc/join/levelsLuis Bermudez, Ph.D.lbermudez@opengeospatial.org@berdez on Twitterhttp://www.linkedin.com/in/bermudez

×