maposmatic-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Maposmatic-dev] [PATCH maposmatic] FIXED stupid st format bug


From: David Decotigny
Subject: [Maposmatic-dev] [PATCH maposmatic] FIXED stupid st format bug
Date: Wed, 23 Dec 2009 11:15:50 +0100

---
 www/maposmatic/views.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/www/maposmatic/views.py b/www/maposmatic/views.py
index 7862287..2bc6474 100644
--- a/www/maposmatic/views.py
+++ b/www/maposmatic/views.py
@@ -68,7 +68,8 @@ def _check_osm_id(osm_id, table="polygon"):
 
     try:
         cursor = conn.cursor()
-        cursor.execute("""select osm_id,st_astext(st_envelope(way))
+        cursor.execute("""select 
osm_id,st_astext(st_transform(st_envelope(way),
+                                                               4002))
                           from planet_osm_%s where
                           osm_id=%d""" % (table,int(osm_id)))
         result = cursor.fetchall()
-- 
1.6.3.3





reply via email to

[Prev in Thread] Current Thread [Next in Thread]