I have written this SQL view code in GeoServer:

select *  
from pilot
where ((Price between %MinPrice% and %MaxPrice%) 
and (area between %MinArea% and %MaxArea%));

So according to the changed parameters this Request is produced as follows:


My goal is that the user enters parameters in a form and then clicks on "submit" button and then results are displayed based on the parameters entered in my OpenLayers interface.

enter image description here.

Additional information is attached

closed as unclear what you're asking by PolyGeo Jul 23 '17 at 21:57

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Does anything on this page help? docs.geoserver.org/stable/en/user/data/database/sqlview.html – DPSSpatial Nov 8 '16 at 22:35
  • if you change the format to image/png and the put the url in an img tag do you get a map? – Ian Turton Nov 9 '16 at 9:40
  • Yes, when I change URL with image/png I get map (png). <!DOCTYPE html> <html> <body> <img src="http://localhost:8080/geoserver/pilot/wms?service=WMS&version=1.1.0&request=GetMap&layers=pilot:FilterAreaPrice&styles=&bbox=535410.289995867,3949726.85999973,536327.370000143,3950801.26000122&width=655&height=768&srs=EPSG:32639&format=image/png" alt="Smiley face" width="402" height="402"> </body> </html> – morteza omidipoor Nov 9 '16 at 19:57
  • Please use the edit button beneath your question to revise it with any requested clarifications. Always present both code and errors as text rather than pictures so that they are available to future searches. – PolyGeo Jul 23 '17 at 21:57