Mercurial > hg > ChinaGisRestApi
comparison RestDbGisApi.py @ 152:7fddf8a60481
polygon-Layers
author | fknauft |
---|---|
date | Mon, 07 Feb 2011 11:17:45 +0100 |
parents | 348a11a5e49c |
children | cca88caad152 |
comparison
equal
deleted
inserted
replaced
151:348a11a5e49c | 152:7fddf8a60481 |
---|---|
316 polys=str(geom_value).split('(') | 316 polys=str(geom_value).split('(') |
317 aaa=len(polys) | 317 aaa=len(polys) |
318 for poly in polys: | 318 for poly in polys: |
319 kmlPlace = {} | 319 kmlPlace = {} |
320 kmlPlace['description'] = desc | 320 kmlPlace['description'] = desc |
321 coords=poly.replace(')','').split(',') | 321 coords=poly.replace(')','').replace("'","").split(',') |
322 coord_string='' | 322 coord_string='' |
323 if len(coords)>1: | 323 if len(coords)>1: |
324 for coord in coords: | 324 for coord in coords: |
325 coord=coord.split(' ') | 325 coord=coord.split(' ') |
326 try: | 326 try: |