XPath for Querying GML-Based Representation of Urban Maps

  • Jesús M. Almendros-Jiménez
  • Antonio Becerra-Terón
  • Francisco García-García
Part of the Lecture Notes in Computer Science book series (LNCS, volume 6782)


Geography Markup Language (GML) has been established as the standard language for the transport, storage and modelling of geographic information. In this paper we study how to adapt the XPath query language to GML documents. With this aim, we have defined a XPath based query language which handles the “semantic structure” of GML. Our approach focuses on querying urban maps whose representation is based on GML. We have developed a system called UALGIS, in order to implement the approach. Such system stores GML documents by means of the PostGIS RDBMS. In order to execute semantic-based XPath queries we have defined a translation of the queries into SQL. Such translation takes into account the GML schema. Finally, the system allows to visualize the result. With this aim, the result of a query is exported to the Keyhole Markup Language (KML) format.


Query languages GML XPath KML GIS SQL 


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Iso 19136, Encyclopedia of Database Systems (2009)Google Scholar
  2. 2.
    Apache Software Foundation. Apache Maven,
  3. 3.
    Berglund, A., Boag, S., Chamberlin, D., Fernandez, M.F., Kay, M., Robie, J., Siméon, J.: XML path language (XPath) 2.0. W3C (2007)Google Scholar
  4. 4.
    Boucelma, O., Colonna, F.M.: GQuery: a Query Language for GML. In: Proc. of the 24th Urban Data Management Symposium, pp. 27–29 (2004)Google Scholar
  5. 5.
    Chamberlin, D., Draper, D., Fernández, M., Kay, M., Robie, J., Rys, M., Simeon, J., Tivy, J., Wadler, P.: XQuery from the Experts. Addison Wesley, Boston, USA (2004)Google Scholar
  6. 6.
    OpenGIS Consortium. KML 2.2 Reference - An OGC Best Practice (2008),
  7. 7.
    OpenGIS Consortium. GML Specifications (2010),
  8. 8.
    Córcoles, J.E., González, P.: GML as Database. Handbook of Research on Geoinformatics (2009)Google Scholar
  9. 9.
  10. 10.
    Eclipse Foundation. Eclipse,
  11. 11.
    Egenhofer, M.J.: Spatial SQL: A Query and Presentation Language. IEEE Transactions on Knowledge and Data Engeneering 6(1), 86–95 (1994)CrossRefGoogle Scholar
  12. 12.
    European Union. InspireE,
  13. 13.
    Wang, F., Sha, J., Chen, H., Yang, S.: GeoSQL:a Spatial Query Language for Object-Oriented GIS. In: Proc. of the 2nd International Workshop on Computer Science and Information Technologies (2000)Google Scholar
  14. 14.
    Huang, C.H., Chuang, T.R., Deng, D.P., Lee, H.M.: Building GML-native web-based geographic information systems. Computers & Geosciences (2009)Google Scholar
  15. 15.
    Junta de Andalucia. IDEAndalucia,
  16. 16.
    Kay, M., Limited, S.: Ten reasons why Saxon XQuery is fast. IEEE Data Engineering Bulletin (1990)Google Scholar
  17. 17.
    Lake, R.: Geography mark-up language (GML). Wiley, Chichester (2004)Google Scholar
  18. 18.
    Li, Y., Li, J., Zhou, S.: GML Storage: A Spatial Database Approach. In: ER (Workshops) On Spatial Database Approach. LNCS, vol. 3289, pp. 55–66. Springer, Heidelberg (2001)Google Scholar
  19. 19.
    Lu, C.T., Dos Santos, R.F., Sripada, L.N., Kou, Y.: Advances in GML for geospatial applications. Geoinformatica 11(1), 131–157 (2007)CrossRefGoogle Scholar
  20. 20.
    Need, A.P.: Querying GML. Handbook of Research on Geoinformatics, 11 (2009)Google Scholar
  21. 21.
    OpenGis Consortium (OGC). OpenGis Specifications (2003),
  22. 22.
    OpenGis Consortium (OGC). WMS Specifications (2008),
  23. 23.
    PostGis. PostGis, Geographic Objects for Postgres (2003),
  24. 24.
    Ravada, S., Sharma, J.: Oracle8i Spatial: Experiences with Extensible Databases. In: Güting, R.H., Papadias, D., Frederick Lochovsky, H. (eds.)SSD, LNCS, vol. 1651, pp. 355–359. Springer, Heidelberg (2001)Google Scholar
  25. 25.
    Shekhar, S., Xiong, H.: Java Topology Suite (JTS). In: Encyclopedia of GIS, p. 601. Springer, Heidelburg (2008)CrossRefGoogle Scholar
  26. 26.
    W3C. Extensible Markup Language (XML). Technical report, W3C (2007)Google Scholar
  27. 27.
    W3C Recommendation. Scalable Vector Graphics (SVG) 1.0 Specification (2001)Google Scholar
  28. 28.
    Wei, S., Joos, G., Reinhardt, W.: Management of Spatial Features with GML. In: Proceedings of the 4th AGILE Conference on Geographic Information Science, pp. 370–375. Brno, Czech Republic (2001)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2011

Authors and Affiliations

  • Jesús M. Almendros-Jiménez
    • 1
  • Antonio Becerra-Terón
    • 1
  • Francisco García-García
    • 1
  1. 1.Information Systems GroupUniversity of AlmeríaSpain

Personalised recommendations