Mercurial > hg > ChinaGisRestApi
changeset 134:649681baae76
polygon-Layers
author | fknauft |
---|---|
date | Wed, 02 Feb 2011 17:16:16 +0100 |
parents | 8a4201f31ca9 |
children | ac22bb1e3212 |
files | RestDbGisApi.py |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/RestDbGisApi.py Wed Feb 02 17:10:22 2011 +0100 +++ b/RestDbGisApi.py Wed Feb 02 17:16:16 2011 +0100 @@ -292,11 +292,13 @@ kmlPlace['coord_x'] = str(xCoord) kmlPlace['coord_y'] = str(yCoord) kmlPlace['coord_z'] = '0' + kmlData.append(kmlPlace) if geomField=='poly': - kmlPlace['LinearRing']=geomdata.split('(')[4] + for value in geomdata: + alert(str(value)) + kmlPlace['LinearRing']=str(value).split('(')[4] + kmlData.append(kmlPlace) kmlPlace['LineColor']=colorField - kmlData.append(kmlPlace) - #logging.debug("kmlData=%s"%(repr(kmlData))) return kmlData