- Timestamp:
- Jan 11, 2013, 3:43:44 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-services/ogr/base-vect-ops-py/cgi-env/ogr_sp.py
r382 r388 163 163 i+=1 164 164 outputResult(conf,outputs["Result"],rgeometries) 165 return zoo.S UCCEEDED165 return zoo.SERVICE_SUCCEEDED 166 166 167 167 def ConvexHullPy(conf,inputs,outputs): … … 177 177 i+=1 178 178 outputResult(conf,outputs["Result"],rgeometries) 179 return zoo.S UCCEEDED179 return zoo.SERVICE_SUCCEEDED 180 180 181 181 … … 201 201 j=0 202 202 while j < len(geometry2): 203 tres=geometry1[i].Union(geometry2[j]) 204 if not(tres.IsEmpty()): 205 rgeometries+=[tres] 203 tmp=geometry1[j].Clone() 204 resg=geometry2[i].GetGeometryRef() 205 resg=resg.Union(geometry1[i].GetGeometryRef()) 206 tmp.SetGeometryDirectly(resg) 207 if not(resg.IsEmpty()): 208 rgeometries+=[tmp] 206 209 j+=1 207 210 geometry1[i].Destroy()
Note: See TracChangeset
for help on using the changeset viewer.