<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16608" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi Ben</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>well, basically one row of data equal one ID, so if you know
the id of the data you want, mapserver will display it (as long as your data
contains at least one unique ID (key) for each objects/features).</FONT></DIV>
<DIV><FONT size=2>It is the basis of the query plugin, when doing a query by
id.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>You can also directly do that in the mapfile, with class
selector, if you want to have one layer display only one feature.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>And lastly, you can do that dynamicaly if needed with the
mapOverlay plugin, to change the class selector of a layer.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>So it mostly depends of what you want.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=bmw@benwyss.com href="mailto:bmw@benwyss.com">bmw@benwyss.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=oliver.christen@camptocamp.com
href="mailto:oliver.christen@camptocamp.com">oliver.christen@camptocamp.com</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Cc:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, February 14, 2008 6:00
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> query a row from a layer</DIV>
<DIV><BR></DIV>
<P class=MsoNormal>Hello Oliver, I have kind of a funny question. I was
wondering if there is a way to create a query that will allow me to view only
one row of a layer? <BR>To give this question some context, lets say that I
have a layer containing three rows: <ST1:CITY w:st="on">Moscow</ST1:CITY>,
<ST1:STATE w:st="on">New York</ST1:STATE>, and <ST1:CITY
w:st="on">Paris</ST1:CITY>, I would like only <ST1:CITY w:st="on"><ST1:PLACE
w:st="on">Moscow</ST1:PLACE></ST1:CITY> to be displayed, is this
possible?<BR><BR>Thank you, and I apologies in advance for such a odd
question.<BR><BR>Ben<O:P></O:P></P></BLOCKQUOTE></BODY></HTML>