Mercurial > hg > ChinaGisRestApi
comparison RestDbGisApi.py @ 65:2f477270cc0c
adding layers to maps works now
author | casties |
---|---|
date | Tue, 09 Nov 2010 20:49:36 +0100 |
parents | 3905385c8854 |
children | 9ec7e32e8ad3 9c66c0ab395c |
comparison
equal
deleted
inserted
replaced
64:3f6e32265c53 | 65:2f477270cc0c |
---|---|
215 logging.debug("gisidfield=%s idx=%s"%(gisIdField,gisIdIdx)) | 215 logging.debug("gisidfield=%s idx=%s"%(gisIdField,gisIdIdx)) |
216 | 216 |
217 # convert data | 217 # convert data |
218 kmlData = [] | 218 kmlData = [] |
219 for dataset in data['rows']: | 219 for dataset in data['rows']: |
220 xCoord = 0.0 | |
221 yCoord = 0.0 | |
220 if gisIdIdx is not None: | 222 if gisIdIdx is not None: |
221 gisID = dataset[gisIdIdx] | 223 gisID = dataset[gisIdIdx] |
222 coords=self.getPointForChGisId(gisID) | 224 coords=self.getPointForChGisId(gisID) |
223 if coords!=None: | 225 if coords!=None: |
224 xCoord=coords[0] | 226 xCoord=coords[0] |