Mercurial > hg > ChinaGisRestApi
comparison RestDbGisApi.py @ 153:cca88caad152
polygon-Layers
author | fknauft |
---|---|
date | Mon, 07 Feb 2011 11:25:13 +0100 |
parents | 7fddf8a60481 |
children | 8ef6fbc8b89a |
comparison
equal
deleted
inserted
replaced
152:7fddf8a60481 | 153:cca88caad152 |
---|---|
192 | 192 |
193 data = self.executeSQL(qstr,idList) | 193 data = self.executeSQL(qstr,idList) |
194 | 194 |
195 fieldMap = self.getFieldNameMap(data['fields']) | 195 fieldMap = self.getFieldNameMap(data['fields']) |
196 try: | 196 try: |
197 geomstr='select astext(st_simplify(transform(the_geom,4326),0.02)) from "%s"."%s"'%(schema,table) | 197 geomstr='select astext(st_simplify(transform(the_geom,4326),0.01)) from "%s"."%s"'%(schema,table) |
198 geomdata=self.executeSQL(geomstr) | 198 geomdata=self.executeSQL(geomstr) |
199 except: | 199 except: |
200 geomdata=None | 200 geomdata=None |
201 | 201 |
202 if (gisIdField is None) and (latField is None or lonField is None): | 202 if (gisIdField is None) and (latField is None or lonField is None): |