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 want to use a Php script to retrieve information from the .db file of a shapefile saved as a layer in Geoserver. I need to retrieve attribute data from the layer and present it at the client side.

Is this possible with the functionality provided by the geoserver?

share|improve this question
    
you can try mapbender its link is mapbender.org/Mapbender_Wiki –  msi_g Oct 14 '12 at 16:13

3 Answers 3

up vote 1 down vote accepted

Is this possible with the functionality provided by the geoserver?

If this is your specific question, no. Geoserver is a Java application, PHP is a language/server environment. They do not mix, in any way besides PHP, for instance, requesting things from Geoserver via REST or some OGC standard.

If your question is whether PHP can read attributes from shapefiles, the answer is a kind of, see its dbase support.

share|improve this answer

yes it is very possible and called web feature service, you can make wfs requests to geoserver with curl library and pass that information to your client. data from geoserver is served as GML,JSON etc. you need to parse this information

share|improve this answer

I can get some very basic results from WFS using curl in my PHP-webapplication.

So basically, it works for me. But be aware, that sending a request to WFS in the adress line of a browser is not the same as sending the very same request using PHP and curl.

You will have to try, the best results for me are simple getfeature - requests with CSV as output-format, filtering does not work for me...

share|improve this answer

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.