Closed Zeitsperre closed 5 years ago
Try passing featureids as a list of strings.
Passing along ['USGS_HydroBASINS_lake_na_lev12.94396', 'USGS_HydroBASINS_lake_na_lev12.94436', 'USGS_HydroBASINS_lake_na_lev12.94437']
yields:
Traceback (most recent call last):
File "/home/tjs/git/flyingpigeon/src/pywps/pywps/app/Process.py", line 208, in _run_process
self.handler(wps_request, wps_response) # the user must update the wps_response.
File "/home/tjs/git/flyingpigeon/flyingpigeon/processes/wps_subset_wfs_polygon.py", line 70, in _handler
for res in self.parse_resources(request):
File "/home/tjs/git/flyingpigeon/flyingpigeon/processes/subset_base.py", line 104, in parse_resources
yield path
UnboundLocalError: local variable 'path' referenced before assignment
While passing [94396, 94436, 94437] yields the same errors as above. Getting somewhere!
Please check with branch fix-287
@Zeitsperre Ping
Confirmed. Your changes fix the issue!
I'm trying to run the
subset_wfs_polygon
process on some NetCDFs from a locally running FlyingPigeon instance but I keep running into the same errors:The method I'm applying to try to run this process is roughly as follows:
There doesn't seem to be any tests for this function as of yet, but I imagine there is a way of triggering it properly. I know that WFS requests using 2.0.0 protocol don't work well in PyWPS (I've employed workarounds using
requests
andlxlml
to format a request to GeoServer in Raven), and I get the impression that the algorithm insubset_base.py
expects a particular data structure (feature['crs']['properties']['name']
) that I'm certain is not standard within the table of features I'm trying to grab (e.g.crs
is not a field).Is there an obvious reason why this process keeps failing?