Ignore:
Timestamp:
Jan 11, 2013, 3:43:44 PM (11 years ago)
Author:
djay
Message:

Fix issue in OGR python services, thanks to Farkas to point this issue. Update Java support to handle properly the error messages coming from the JVM. Fix segfault when ZCFG file doesn't exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-services/ogr/base-vect-ops-py/cgi-env/ogr_sp.py

    r382 r388  
    163163        i+=1
    164164    outputResult(conf,outputs["Result"],rgeometries)
    165     return zoo.SUCCEEDED
     165    return zoo.SERVICE_SUCCEEDED
    166166
    167167def ConvexHullPy(conf,inputs,outputs):
     
    177177        i+=1
    178178    outputResult(conf,outputs["Result"],rgeometries)
    179     return zoo.SUCCEEDED
     179    return zoo.SERVICE_SUCCEEDED
    180180
    181181
     
    201201        j=0
    202202        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]
    206209            j+=1
    207210        geometry1[i].Destroy()
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png