Hi Aglaia, You need to add an another bracket at the end of the query. Good luck with postgis! Apostolis -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osgeo.org/pipermail/postgis-users/attachments/20110322/637927f6/attachment.html>