Mercurial > hg > ChinaGisRestApi
changeset 137:176864b3eceb
polygon-Layers
author | fknauft |
---|---|
date | Thu, 03 Feb 2011 10:49:11 +0100 |
parents | 42d7cd64e87c |
children | 771e7b3af615 |
files | RestDbGisApi.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/RestDbGisApi.py Thu Feb 03 10:45:35 2011 +0100 +++ b/RestDbGisApi.py Thu Feb 03 10:49:11 2011 +0100 @@ -298,8 +298,9 @@ coords=str(geom_list[1]).split('(')[4].split(',') coord_string='' for coord in coords: - x_coord=coord.split(' ')[0] - y_coord=coord.split(' ')[1] + coord=coord.split(' ') + x_coord=coord[0] + y_coord=coord[1] coord_string+=x_coord+','+y_coord+','+'0 \n' kmlPlace['LinearRing']=coord_string kmlPlace['LineColor']=colorField