<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<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-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px Courier">GetFeatureInfo results:</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font: normal normal normal 13px/normal Courier; min-height: 16px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Courier" size="4" style="font: 13.0px 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: 13.0px Courier">  Feature 689: </font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font class="Apple-style-span" face="Courier"><br class="webkit-block-placeholder"></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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&amp;REQUEST=GetFeatureInfo&amp;SERVICE=WMS&amp;reaspect=false&amp;VERSION=1.1.1&amp;LAYERS=ira_fill2&amp;STYLES=default&amp;FORMAT=image/gif&amp;BGCOLOR=0xFFFFFF&amp;TRANSPARENT=TRUE&amp;SRS=EPSG:4326&amp;WIDTH=256&amp;HEIGHT=256&amp;QUERY_LAYERS=ira_fill2&amp;x=254&amp;y=165&amp;BBOX=-122.16796875,46.37725420510028,-122.080078125,46.4378568950242">http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira.map&amp;REQUEST=GetFeatureInfo&amp;SERVICE=WMS&amp;reaspect=false&amp;VERSION=1.1.1&amp;LAYERS=ira_fill2&amp;STYLES=default&amp;FORMAT=image/gif&amp;BGCOLOR=0xFFFFFF&amp;TRANSPARENT=TRUE&amp;SRS=EPSG:4326&amp;WIDTH=256&amp;HEIGHT=256&amp;QUERY_LAYERS=ira_fill2&amp;x=254&amp;y=165&amp;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&amp;">http://thewildwoodstudios.com/cgi-bin/mapserv?map=../roadlessland/maps/ira.map&amp;</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-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Nelson,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Also - glad to hear my old comments helped on the roadlessland site - it looks nice.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Cheers,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">-Josh</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">nelson guda wrote:</div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi again, Josh,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">many thanks,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">nelson</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">DescribeFeatureType response:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">  </span>&lt;element name="ira"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">           </span>type="ms:iraType"</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">           </span>substitutionGroup="gml:_Feature" /&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">  </span>&lt;complexType name="iraType"&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">    </span>&lt;complexContent&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">      </span>&lt;extension base="gml:AbstractFeatureType"&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">        </span>&lt;sequence&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">          </span>&lt;element name="msGeometry" type="gml:GeometryPropertyType" minOccurs="0" maxOccurs="1"/&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">          </span>&lt;element name="NAME" type="string"/&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">          </span>&lt;element name="ID" type="string"/&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">        </span>&lt;/sequence&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">      </span>&lt;/extension&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">    </span>&lt;/complexContent&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space">  </span>&lt;/complexType&gt;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">On Jan 4, 2008, at 8:53 AM, Josh Livni wrote:</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span class="Apple-converted-space"> </span>-Josh</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">nelson guda wrote:</div> <blockquote type="cite"><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi all,</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 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="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Thanks, and thanks for your previous help.</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">nelson</div> </blockquote></blockquote></blockquote></blockquote></div><br></body></html>