Petascope_Support encoded POST WCPS query
|Reported by:||bphamhuu||Owned by:||bphamhuu|
there is a WcpsServlet?.java in Petascope which serve for WCPS query (e.g: by accessing in address http://localhost:8080/rasdaman/ows/wcps and paste the query in the first text box) or using Python to make a POST request to this Servlet.
The problem is it only support the plain WCPS query now, example:
for c in (mr) return encode (c[i(0:20),j(0:20)] + 5, "png")
instead of encoded WCPS query (which is needed in Python POST request by urllib library).
This problem will needed in case of big WCPS query which has more characters than GET request can support and user will need to change to POST request which can be encoded (i.e by Python library).
The fix is just need to decode the query before send to WCPS parser ( which is only support the plain WCPS query).