Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm looking to build an application similar to this ArcGIS Server JS example which does a find task against a layer in the map. However i want to do this with OpenLayers, Geoserver and PostGIS. Some pointers would be great.



share|improve this question
up vote 1 down vote accepted

you can do this with OpenLayers, Geoserver and PostGIS and Geodjango too. There is a tutorial here. if you desing a good database with logical index, you can get search tool as google map.

i hope it helps you.

share|improve this answer

I did this, my notes are here.

share|improve this answer

We're looking for long answers that provide some explanation and context. Don't just give a one-line answer; explain why your answer is right, ideally with citations. Answers that don't include explanations may be removed.

Thanks for this. Can i PM you if i have any queries? – geosmiles Feb 26 '12 at 21:11
Ian - i've been able to follow your notes up to the point BUILDING A CLIENT (searchtest.html). I can query my wfs layer using the WFS_getFeature-1.1.xml demo but when i change your code to reflect my geoserver location and attibute details the search doesnt return anything. Firebug says: OPTIONS wfs 403 forbidden then gives the url of my geoserver. Interestingly though the url of my geoserver, it doesnt contain the port number? – geosmiles Feb 28 '12 at 10:26
you probably need a proxy – iant Feb 28 '12 at 17:44
I've got a proxy page set up (OpenLayers.ProxyHost = "/cgi-bin/proxy.cgi?url=";) for WMSGetFeatureInfo. Do i need to do something else to allow wfs through? – geosmiles Feb 28 '12 at 19:12
I'm pretty sure it's probably on of your property settings in the OpenLayers.Protocol.WFS. Take a look at this and this – CaptDragon Apr 27 '12 at 13:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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