That's probably more a question to ask the underlying WMS (in your case geoserver?) ; Eg. I know that when using Mapserver as a WMS, I would change the &INFO_FORMAT=text/plain To &INFO_FORMAT=text/html
And then make sure I have HTML templates that provide only the attributes I want, layed out and styled like I want... -- Barend Köbben International Institute for Geo-Information Sciences and Earth Observation (ITC) PO Box 6, 7500AA Enschede, The Netherlands +31 (0)53 4874253 On 02-11-09 15:30, "stash" <[email protected]> wrote: > > > hello, > > I have the following code, which shows me featureinfo of a map: > > map.events.register('click', map, function(e) { > var url = "http://...:8080/geoserver/wms" + "?REQUEST=GetFeatureInfo" + > "&EXCEPTIONS=application/vnd.ogc.se_xml" > + "&BBOX=" + map.getExtent().toBBOX() > + "&X=" + e.xy.x > + "&Y=" + e.xy.y > + "&INFO_FORMAT=text/plain" > + "&QUERY_LAYERS=topp_mylayer" > + "&LAYERS=topp:topp_mylayer" > + "&FEATURE_COUNT=50" > + "&SRS=EPSG:4326" > + "&STYLES=" > + "&WIDTH=" + map.size.w > + "&HEIGHT=" + map.size.h; > > window.open(url, "getfeatureinfo", > "location=0,status=0,scrollbars=1,width=800,height=400"); > > This is working fine so far. But there is one thing I dont like. With this > code I get every feature of the clicked entry on the map (every entry in my > database like id, name, date, coordinates...). > > Is it possible, that I only get back a certain value like only the name of > the clicked entry or only the coordinates? > > Furthermore is it possible, that i can store the getfeatureinfo request in a > variable? > > Thanks for your help. > > Regards > stash > > -- > View this message in context: > http://n2.nabble.com/split-WMS-GetFeatureInfo-results-tp3932043p3932043.html > Sent from the OpenLayers Users mailing list archive at Nabble.com. > _______________________________________________ > Users mailing list > [email protected] > http://openlayers.org/mailman/listinfo/users International Institute for Geo-Information Science and Earth Observation (ITC) Chamber of Commerce: 410 27 560 E-mail disclaimer The information in this e-mail, including any attachments, is intended for the addressee only. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or action in relation to the content of this information is strictly prohibited. If you have received this e-mail by mistake, please delete the message and any attachment and inform the sender by return e-mail. ITC accepts no liability for any error or omission in the message content or for damage of any kind that may arise as a result of e-mail transmission. _______________________________________________ Users mailing list [email protected] http://openlayers.org/mailman/listinfo/users
