<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>It works! Thanks much!</div><div>That was definitely the issue. Thanks also to Josh for spending a lot of time trying to help me figure this out.</div><div><br class="webkit-block-placeholder"></div><div>Here is a summary of the problem for the record:</div><div><br class="webkit-block-placeholder"></div><div>I was trying to get the WMS GetFeatureInfo request working on my mapserver copy. I kept getting a response that looked like this:</div><div><br class="webkit-block-placeholder"></div><div><blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: normal normal normal 13px/normal Courier; ">GetFeatureInfo results:</font></div><div style="min-height: 16px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Courier; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: normal normal normal 13px/normal Courier; ">Layer 'ira_fill2'</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: normal normal normal 13px/normal Courier; ">Feature 689:</font></div></blockquote></div><div><br class="webkit-block-placeholder"></div><div>The solution was to put 'wms_include_items' 'all' in the METADATA block for the layer.</div><div><br class="webkit-block-placeholder"></div><div>You can see the results here: <a href="http://roadlessland.org">http://roadlessland.org</a></div><div>It is a site that allows users to get info about inventoried roadless areas in US Forest Service lands. The spatial data is a shapefile that is about 32mb. The site uses Google maps and overlays the map with a wms layer from mapserver. User clicks on the map are processed with a GetFeatureInfo request to mapserver.</div><div><br class="webkit-block-placeholder"></div><div>Thanks for all your help, everyone.</div><div><br class="webkit-block-placeholder"></div><div>nelson</div><div><br class="webkit-block-placeholder"></div><br><div><div>On Jan 6, 2008, at 9:35 AM, Arnd Wippermann wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"> <div dir="ltr" align="left"><span class="890173315-06012008"><font face="Arial" color="#0000ff" size="2">Hi Nelson,</font></span></div> <div dir="ltr" align="left"><span class="890173315-06012008"><font face="Arial" color="#0000ff" size="2"></font></span> </div> <div dir="ltr" align="left"><span class="890173315-06012008"><font face="Arial" color="#0000ff" size="2">put this </font></span></div> <div dir="ltr" align="left"><span class="890173315-06012008"><font face="Arial" color="#0000ff" size="2"></font></span> </div> <div dir="ltr" align="left"><span class="890173315-06012008"><font face="Arial" color="#0000ff" size="2"> 'wms_include_items' 'all'<br></font></span></div> <div dir="ltr" align="left"><span class="890173315-06012008"><font face="Arial" color="#0000ff" size="2">in the METADATA block for your layer.</font></span></div> <div dir="ltr" align="left"><span class="890173315-06012008"><font face="Arial" color="#0000ff" size="2"></font></span> </div> <div dir="ltr" align="left"><span class="890173315-06012008"><font face="Arial" color="#0000ff" size="2"><!-- Converted from text/plain format --><p><font size="2">Mit freundlichen Grüssen<br><br>Arnd Wippermann<br><a href="http://gis.ibbeck.de/ginfo/">http://gis.ibbeck.de/ginfo/</a><br><br></font></p></font></span></div><br> <div class="OutlookMessageHeader" lang="de" dir="ltr" align="left"> <hr tabindex="-1"> <font face="Tahoma" size="2"><b>Von:</b> UMN MapServer Users List [<a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">mailto:MAPSERVER-USERS@LISTS.UMN.EDU</a>] <b>Im Auftrag von </b>nelson guda<br><b>Gesendet:</b> Freitag, 4. Januar 2008 22:59<br><b>An:</b> <a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU">MAPSERVER-USERS@LISTS.UMN.EDU</a><br><b>Betreff:</b> Re: [UMN_MAPSERVER-USERS] WFS request options<br></font><br></div> <div></div> <div>Thanks Josh, </div> <div><br class="webkit-block-placeholder"></div> <div>I looked over the WMS GetFeatureInfo request, and this is exactly what I need. For some reason, though the only data I am getting back looks like this:</div> <div> <div style="MARGIN: 0px"><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div> <div style="MARGIN: 0px"> <div style="MARGIN: 0px"><font style="FONT: 13px Courier" face="Courier" size="4">GetFeatureInfo results:</font></div> <div style="MIN-HEIGHT: 16px; MARGIN: 0px; FONT: 13px Courier"><br></div> <div style="MARGIN: 0px"><font style="FONT: 13px Courier" face="Courier" size="4">Layer 'ira_fill2'</font></div> <div style="MARGIN: 0px"><font style="FONT: 13px Courier" face="Courier" size="4">Feature 689: </font></div> <div style="MARGIN: 0px"><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div> <div style="MARGIN: 0px"><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div></div></div> <div>The feature number appears to correspond to the correct place in the dbf file, but none of the rest of the feature data is being returned. I don't understand. Does anyone have any ideas? </div> <div><br class="webkit-block-placeholder"></div> <div>thanks,</div> <div>nelson</div> <div><br class="webkit-block-placeholder"></div> <div><br class="webkit-block-placeholder"></div> <div>Here is the mapfile and request that I made:</div> <div><br class="webkit-block-placeholder"></div> <div><b>Request:</b></div> <div><a href="http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira.map&REQUEST=GetFeatureInfo&SERVICE=WMS&reaspect=false&VERSION=1.1.1&LAYERS=ira_fill2&STYLES=default&FORMAT=image/gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&WIDTH=256&HEIGHT=256&QUERY_LAYERS=ira_fill2&x=254&y=165&BBOX=-122.16796875,46.37725420510028,-122.080078125,46.4378568950242">http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira.map&REQUEST=GetFeatureInfo&SERVICE=WMS&reaspect=false&VERSION=1.1.1&LAYERS=ira_fill2&STYLES=default&FORMAT=image/gif&BGCOLOR=0xFFFFFF&TRANSPARENT=TRUE&SRS=EPSG:4326&WIDTH=256&HEIGHT=256&QUERY_LAYERS=ira_fill2&x=254&y=165&BBOX=-122.16796875,46.37725420510028,-122.080078125,46.4378568950242</a></div> <div><br class="webkit-block-placeholder"></div> <div><b>Mapfile:</b></div> <div> <div><br class="webkit-block-placeholder"></div> <div>MAP</div> <div><br class="webkit-block-placeholder"></div> <div>NAME "Roadless"</div> <div>STATUS ON</div> <div>SIZE 800 600</div> <div>STATUS ON</div> <div>EXTENT -124.40950012207 18.2457218170166 -65.7071533203125 49.0011405944824</div> <div>IMAGETYPE PNG</div> <div>SHAPEPATH "../shapefiles"</div> <div>FONTSET ../fonts/fonts.txt</div> <div><br class="webkit-block-placeholder"></div> <div><br class="webkit-block-placeholder"></div> <div>PROJECTION</div> <div>"init=epsg:54004"</div> <div>END</div> <div><br class="webkit-block-placeholder"></div> <div>WEB</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>IMAGEPATH "/tmp/"</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>IMAGEURL "/tmp/"</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>METADATA</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>"wms_title" "ira_wms"</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>"wms_onlineresource" "<a href="http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira.map&">http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira.map&</a>"</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>"wms_srs" "EPSG:4326 EPSG:54004 EPSG:4269"</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>END </div> <div>END</div> <div><br class="webkit-block-placeholder"></div> <div><br class="webkit-block-placeholder"></div> <div>LAYER</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>NAME "ira_fill2"</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>TYPE POLYGON</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>METADATA</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>"wms_title" "ira_fill2" </div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>"wms_srs" "EPSG:4326 EPSG:54004"</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>END</div> <div><br class="webkit-block-placeholder"></div> <div><br class="webkit-block-placeholder"></div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>PROJECTION</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>"init=epsg:4269"</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>END</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>DATA ira_by_name_nad83</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>STATUS ON</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>TRANSPARENCY 75</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>LABELITEM "NAME"</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>LABELMAXSCALE 1000000</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span></div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>TEMPLATE "query.html" </div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>TOLERANCE 3</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>TOLERANCEUNITS PIXELS</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>DUMP TRUE</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span></div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>CLASSITEM "ID"</div> <div><br class="webkit-block-placeholder"></div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>CLASS</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>STYLE </div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>COLOR 0 255 0</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>END</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span></div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>LABEL</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>COLOR 0 0 0</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>OUTLINECOLOR 255 255 255</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>MINFEATURESIZE 40</div> <div><br class="webkit-block-placeholder"></div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>TYPE TRUETYPE</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>FONT arial-narrow-italic</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>SIZE 8</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>ANTIALIAS TRUE</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>POSITION cc</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>PARTIALS FALSE</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>MINDISTANCE 300</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>WRAP '/'</div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>END </div> <div><br class="webkit-block-placeholder"></div> <div><span class="Apple-tab-span" style="WHITE-SPACE: pre"></span>END</div> <div>END </div> <div><br class="webkit-block-placeholder"></div> <div><br class="webkit-block-placeholder"></div> <div>END</div></div> <div><br class="webkit-block-placeholder"></div> <div><br class="webkit-block-placeholder"></div> <div><br class="webkit-block-placeholder"></div><br> <div> <div>On Jan 4, 2008, at 10:48 AM, Josh Livni wrote:</div><br class="Apple-interchange-newline"> <blockquote type="cite"> <div style="MARGIN: 0px">Nelson,</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">Using this method, you don't want to make a WFS request - you want to make a WMS request.<span class="Apple-converted-space"> </span>The mapserver site has documentation on how to set up your mapfile to respond to WMS requests<span class="Apple-converted-space"> </span>(<a href="http://mapserver.gis.umn.edu/docs/howto/wms_server">http://mapserver.gis.umn.edu/docs/howto/wms_server</a>) as well as the template (which can be very simple for your use case).</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">There's a thread on the google groups list about using getFeatureInfo, but since the guy's WMS is down it's probably not the best example (though you could still look at his code).</div> <div style="MARGIN: 0px"><a href="http://openlayers.org/dev/examples/getfeatureinfo.html">http://openlayers.org/dev/examples/getfeatureinfo.html</a> is another example that you could probably start with for assistance on the client side -- you'd need to modify it to work with Google Maps (eg using Google's methods to get at their bbox and other criteria while creating the queryUrl, and to parse the result) but the concept is the same, so this should get you started.</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">Also - glad to hear my old comments helped on the roadlessland site - it looks nice.</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">Cheers,</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">-Josh</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">PS - Please be sure to CC the mapserver list if this doesn't make sense - others here may well have better ideas on how to help than me, and chances are if you want to know something, others may be in the same boat, and thus find the thread helpful.</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">nelson guda wrote:</div> <blockquote type="cite"> <div style="MARGIN: 0px">Hi again, Josh,</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">I just tried "DescribeFeatureType", which works but the response only give the names of the variables.<span class="Apple-converted-space"> </span>Any idea on how to get the actual data about those variables?</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">many thanks,</div> <div style="MARGIN: 0px">nelson</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">DescribeFeatureType response:</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span><element name="ira"</div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span>type="ms:iraType"</div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span>substitutionGroup="gml:_Feature" /></div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span><complexType name="iraType"></div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span><complexContent></div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span><extension base="gml:AbstractFeatureType"></div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span><sequence></div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span><element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/></div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span><element name="NAME" type="string"/></div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span><element name="ID" type="string"/></div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span></sequence></div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span></extension></div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span></complexContent></div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span></complexType></div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">On Jan 4, 2008, at 8:53 AM, Josh Livni wrote:</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <blockquote type="cite"> <div style="MARGIN: 0px">This doesn't answer you question exactly, but have you considered using a WMS getFeatureInfo request instead?<span class="Apple-converted-space"> </span>Then you can use a simple template.html to decide which attributes you want to return for later parsing.<span class="Apple-converted-space"> </span>I've done this a few times myself with Google Maps.</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px"><span class="Apple-converted-space"></span>-Josh</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">nelson guda wrote:</div> <blockquote type="cite"> <div style="MARGIN: 0px">Hi all,</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">I have an odd request regarding WFS capabilities.<span class="Apple-converted-space"> </span>Is it possible to have a WFS mapserver request return gml results without the geometry data?</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">I know that this seems odd, but it makes sense for what I am doing.<span class="Apple-converted-space"> </span>I am using a WMS overlay to serve tiles for a large dataset to an overlay on google maps.<span class="Apple-converted-space"> </span>In order to query specific polygons from that dataset (a shapefile), I am using a WFS GetFeature request.<span class="Apple-converted-space"> </span>All I need is the id and other parameters of the feature, but not the geometry data (because it is already there from the WMS.<span class="Apple-converted-space"> </span>Right now I am just parsing out the info I need from the gml at the server level, but it would be much faster if I could get the WFS to return only the feature info minus the geometry data.<span class="Apple-converted-space"> </span>Is this possible?</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">Thanks, and thanks for your previous help.</div> <div style="MIN-HEIGHT: 14px; MARGIN: 0px"><br></div> <div style="MARGIN: 0px">nelson</div></blockquote></blockquote></blockquote></blockquote></div><br></blockquote></div><br></body></html>