From 5e3183bf6517ce2705be0284db94f588d57bad96 Mon Sep 17 00:00:00 2001 From: JasonSanford Date: Tue, 31 Jul 2012 22:35:13 -0700 Subject: [PATCH] Updated PostGIS (markdown) --- PostGIS.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PostGIS.md b/PostGIS.md index 03f627e..1dd16b4 100644 --- a/PostGIS.md +++ b/PostGIS.md @@ -80,7 +80,7 @@ If you want to do complex queries you can nest subselects in the `table` argumen If you want to add something after the query (for example ORDER BY) you must use !bbox! dynamic map variable: - lyr = Layer('Order by st_lenght from PostGIS') + lyr = Layer('Order by st_length from PostGIS') BUFFERED_TABLE = 'table_line where way && !bbox! ORDER BY st_LENGTH(way) DESC' lyr.datasource = PostGIS(host='localhost',user='postgres',password='',dbname='your_postgis_database',table=BUFFERED_TABLE, srid='your_srid', geometry_field='way', extent='your_extent') ```