[OpenLayers-Users] getting Feature Info data directly from .shp files

sunny74 sb.ray at hotmail.com
Mon Mar 22 05:53:28 EDT 2010


Hi,

I had already seen it.
But it does not work bec' of 2 reasons:

1) The Required Query_Layers parameter for GetFeatureInfo is not
mentioned.This has to be done in the map file.

2) The code for infocontrol is:

 infoControls = {
            click: new OpenLayers.Control.WMSGetFeatureInfo({
                url: 'http://demo.opengeo.org/geoserver/wms', 
                title: 'Identify features by clicking',
                layers: [water],
                queryVisible: true
            }),
            hover: new OpenLayers.Control.WMSGetFeatureInfo({
                url: 'http://demo.opengeo.org/geoserver/wms', 
                title: 'Identify features by clicking',
                layers: [water],
                hover: true,
                // defining a custom format options here
                formatOptions: {
                    typeName: 'water_bodies', 
                    featureNS: 'http://www.openplans.org/topp'
                },
                queryVisible: true
            })
        }

The url of WMSGetFeatureInfo is an external url i.e accessing some external
data.
What if I'm using mapserver and its pointing to shape(.shp) files.
-- 
View this message in context: http://n2.nabble.com/getting-Feature-Info-data-directly-from-shp-files-tp4767879p4776900.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list