Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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.

Regards

Med

share|improve this question
add comment

2 Answers

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
add comment

I did this, my notes are here.

share|improve this answer
    
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
show 1 more comment

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.

Your Answer

 
discard

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.