Changeset 917 for trunk/zoo-project/zoo-services/ogr/base-vect-ops-py
- Timestamp:
- May 7, 2019, 2:17:08 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property
svn:mergeinfo
set to
False
/branches/prototype-v0 merged eligible
-
Property
svn:mergeinfo
set to
False
-
trunk/zoo-project/zoo-services/ogr/base-vect-ops-py/cgi-env/ogr_sp.py
r465 r917 95 95 96 96 def extractInputs(conf,obj): 97 if obj.keys().count("cache_file"): 98 print >> sys.stderr,obj 99 geometry=[] 100 ds = osgeo.ogr.Open(obj["cache_file"]) 101 lyr = ds.GetLayer(0) 102 feat = lyr.GetNextFeature() 103 while feat is not None: 104 geometry+=[feat.Clone()] 105 feat.Destroy() 106 feat = lyr.GetNextFeature() 107 ds.Destroy() 108 return geometry 97 109 if obj["mimeType"]=="application/json": 98 110 return createLayerFromJson(conf,obj["value"])
Note: See TracChangeset
for help on using the changeset viewer.