[OpenLayers-Users] How to Load data with Openlayers By User Form Input

Matt Priour mpriour at kestrelcomputer.com
Fri Dec 14 09:30:28 PST 2012


We, on this list, are not here to build or write your application for you.
However, a few key points should help you:

 1. WMS transfers an image to the browser. There is not inherent data in
    that image.
 2. You will need the actual data for a feature or features to do what
    you describe you want to do
 3. There are a number of ways to get the data, you will have to choose
    what is best for you:
      * WMS GetFeatureInfo - click or hover on the map and a request is
        sent to the WMS server and a response is sent back with 1 or
        more features from 1 or more layers depending on if you actually
        "hit" a feature and if you requested data from only 1 or several
        layers at once.
      * WFS GetFeature - similar idea as above, but the request itself
        tends to be simpler
      * Vector features retrieved through WFS protocol either all at
        once (Fixed strategy) or view limited (BBOX strategy)
 4. You will need some other service on the server to allow you to talk
    to the MySQL server. This is totally out of scope for the OpenLayers
    list and you can do that in whatever way, framework, and language
    works for you.

Hope that helps point you in the right direction to do your own 
investigations and application development.

Matt Priour


On 12/14/2012 4:57 AM, Shariful Islam wrote:
> Hi all ,
>  It may be very basic question for you,but i am in suspense with it.
>
> I have a postgis shapefile loaded as WMS in geoserver.This shapefile 
> (through geocode field in attribute table) has many more interrelated 
> tables located in mysql.
>
> Now i want to build some form (multi 5-10,one form options selection 
> sorts the following form options and thus goes to the last form - just 
> going in deep) in openlayers that will query the mysql.
>
>
> In this scenario what to do.
>
> Plz response
>
> Thanks in advance.
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20121214/5be5608d/attachment-0001.html>


More information about the Users mailing list