changeset 208:267c84193e3c

Repair: loading of chgis-polys
author fknauft
date Thu, 03 Mar 2011 12:08:10 +0100
parents dd235873514b
children 7f327e106745
files RestDbGisApi.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/RestDbGisApi.py	Thu Mar 03 11:18:09 2011 +0100
+++ b/RestDbGisApi.py	Thu Mar 03 12:08:10 2011 +0100
@@ -194,11 +194,11 @@
         
         fieldMap = self.getFieldNameMap(data['fields'])
         try:
-            geomstr='select astext(st_simplify(transform(the_geom,4326),0.01)) from "%s"."%s"'%(schema,table)
+            geomstr='select astext(st_simplify(transform(the_geom,4326),0.02)) from "%s"."%s"'%(schema,table)
             geomdata=self.executeSQL(geomstr)
         except:
             try:
-                geomstr='select chgis.astext(chgis.st_simplify(chgis.transform(the_geom,4326),0.01)) from "%s"."%s"'%(schema,table)
+                geomstr='select chgis.astext(chgis.st_simplify(chgis.transform(the_geom,4326),0.02)) from "%s"."%s"'%(schema,table)
                 geomdata=self.executeSQL(geomstr)                
             except:
                 geomdata=None