I have on my geoserver 2 shp files : pipes and buildings. I would like to put a form on my openlayers page that when user click it , he can choose distance (10m , 20m, etc...) and get a result of => all pipes in distance X from buildings.

How can I do that using geoserver (I don't wish to upload my shp files to any database because they are being updated regularly)?


I would recommend you to read something about CQL. Good starting point might be here and there. You should be probably the most interested in DWITHIN geometric predicate.

PS: And there.

  • Thank you , I will read it. Is there any online example for GUI that will go with it - for doing dynamic queries..
    – Alophind
    Jan 12 '14 at 20:24
  • Not that I know of. But you should be OK with simple HTML form having change events binding. Jan 13 '14 at 7:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.