<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4616.200" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Arial size=2>OK I think I get it.</FONT></DIV>
<DIV><FONT face=Arial size=2>So I should add an "ID" field to&nbsp;the shape 
file. </FONT></DIV>
<DIV><FONT face=Arial size=2>It makes sense, because I am not querying anything 
on this shape file ( river and contouer lines), so thats why there isnt any 
fields.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Also,</FONT></DIV>
<DIV><FONT face=Arial size=2>I can get a refresnce map to show up in JPG and 
PNG, but it looks like it is <STRONG>always</STRONG> in full extent. Once in a 
while it will move, but not much at all.</FONT></DIV>
<DIV><FONT face=Arial size=2>Here is&nbsp;my code:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>****start</FONT></DIV>
<DIV><FONT face=Arial size=2>require 'config.php';<BR>$dfMinX = 
$CUREXTENT[minx];<BR>&nbsp; $dfMinY = $CUREXTENT[miny];<BR>&nbsp;&nbsp; $dfMaxX 
= $CUREXTENT[maxx];<BR>&nbsp;&nbsp;&nbsp; $dfMaxY = 
$CUREXTENT[maxy];<BR>&nbsp;$mapObj = ms_newMapObj("$dataPath/" . $map . 
".map");<BR>&nbsp; 
$mapObj-&gt;setExtent($CUREXTENT[minx],$CUREXTENT[miny],$CUREXTENT[maxx],$CUREXTENT[maxy]);<BR>&nbsp;&nbsp; 
$nClickGeoX = GMapPix2Geo(intval($map_x), 0, $width, $dfMinX, $dfMaxX, 
0);<BR>&nbsp;&nbsp;&nbsp; $nClickGeoY = GMapPix2Geo(intval($map_y), 0, $height, 
$dfMinY, $dfMaxY, 1);<BR>&nbsp;&nbsp;&nbsp;&nbsp; $ptClicked = 
ms_newPointObj();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
$ptClicked-&gt;setXY($nClickGeoX, 
$nClickGeoY);<BR>#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $queryObj = 
$mapObj-&gt;queryByPoint( $ptClicked,MS_SINGLE,0 
);<BR>&nbsp;#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $gbShowQueryResults = 
TRUE;<BR>#print" $map $map_x $map_y $dataPath \n";</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>$img = $mapObj-&gt;drawReferenceMap();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>header("Cache-Control: no-cache, 
must-revalidate");<BR>header("Pragma: no-cache");<BR>header("content-type: 
image/png");<BR>$img-&gt;saveImage("",MS_PNG,0,0, 
100);<BR>********end</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>-jim</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Stephen Lime" &lt;</FONT><A 
href="mailto:steve.lime@dnr.state.mn.us"><FONT face=Arial 
size=2>steve.lime@dnr.state.mn.us</FONT></A><FONT face=Arial 
size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>To: &lt;</FONT><A 
href="mailto:jimburnett@ntelos.net"><FONT face=Arial 
size=2>jimburnett@ntelos.net</FONT></A><FONT face=Arial size=2>&gt;</FONT></DIV>
<DIV><FONT face=Arial size=2>Sent: Tuesday, August 21, 2001 1:55 PM</FONT></DIV>
<DIV><FONT face=Arial size=2>Subject: Re: [mapserver-users] 
Feature_ID</FONT></DIV></DIV>
<DIV><FONT face=Arial><BR><FONT size=2></FONT></FONT></DIV><FONT face=Arial 
size=2>No, there is a single classitem for a given layer. That is, you can pick 
a single<BR>item to compare expressions against. That works for straight string 
comparisons<BR>and regular expressions. You can also use logical expressions 
that operate on<BR>many items although there is a performance hit for doing 
so.<BR><BR>Feature_id may be a virtual ID, one maintained by the application 
rather than<BR>something actually in the shapefile. By their very nature each 
shape in a shapefile<BR>has an sequential index number (shape 0, shape 1 and so 
on) so that may be <BR>whay you're refering to. At the moment MapServer doesn't 
allow you to use that<BR>value in an expression.<BR><BR>Steve<BR><BR>Stephen 
Lime<BR>Internet Applications Analyst<BR><BR>Minnesota DNR<BR>500 Lafayette 
Road<BR>St. Paul, MN 55155<BR>651-297-2937<BR><BR>&gt;&gt;&gt; "Jim Burnett" 
&lt;</FONT><A href="mailto:jimburnett@ntelos.net"><FONT face=Arial 
size=2>jimburnett@ntelos.net</FONT></A><FONT face=Arial size=2>&gt; 08/20/01 
01:24PM &gt;&gt;&gt;<BR>so there are diferent types of "class items" ?<BR>I was 
just looking for an item to use, based on ArcExplorers output.<BR>feature_id 
seems to be in all the shape files I have been working with, but<BR>wont work, I 
have had to use other id's such as&nbsp;&nbsp; "road_id" for my roads<BR>shape 
file and "building_id" for my building ID. But this doesnt have a<BR>"river_id", 
or a custom ID besides the feature_id and some other id<BR>fields...<BR><BR>I am 
still new to GIS, been doing it for about 3 months now.<BR><BR>-jim<BR><BR>----- 
Original Message -----<BR>From: "Stephen Lime" &lt;</FONT><A 
href="mailto:steve.lime@dnr.state.mn.us"><FONT face=Arial 
size=2>steve.lime@dnr.state.mn.us</FONT></A><FONT face=Arial size=2>&gt;<BR>To: 
&lt;</FONT><A href="mailto:mapserver-users@lists.gis.umn.edu"><FONT face=Arial 
size=2>mapserver-users@lists.gis.umn.edu</FONT></A><FONT face=Arial size=2>&gt;; 
&lt;</FONT><A href="mailto:jimburnett@ntelos.net"><FONT face=Arial 
size=2>jimburnett@ntelos.net</FONT></A><FONT face=Arial size=2>&gt;<BR>Sent: 
Monday, August 20, 2001 12:12 PM<BR>Subject: Re: [mapserver-users] 
Feature_ID<BR><BR><BR>&gt; What version, datatype etc? Assuming there is an item 
called feature_id<BR>there's no reason it<BR>&gt; shouldn't work. That said 
being able to use a psuedo id in classes is not<BR>a bad idea. That id<BR>&gt; 
is already a part of the internal shape structures but it's not trivial 
to<BR>add that to the expression<BR>&gt; handler. Would you add this as a 
feature request to Bugzilla?<BR>&gt;<BR>&gt; Steve<BR>&gt;<BR>&gt; Stephen 
Lime<BR>&gt; Internet Applications Analyst<BR>&gt;<BR>&gt; Minnesota DNR<BR>&gt; 
500 Lafayette Road<BR>&gt; St. Paul, MN 55155<BR>&gt; 
651-297-2937<BR>&gt;<BR>&gt; &gt;&gt;&gt; "Jim Burnett" &lt;</FONT><A 
href="mailto:jimburnett@ntelos.net"><FONT face=Arial 
size=2>jimburnett@ntelos.net</FONT></A><FONT face=Arial size=2>&gt; 08/17/01 
12:55PM &gt;&gt;&gt;<BR>&gt; Why can't I use Feature_ID as a CLASSITEM?<BR>&gt; 
I have a line layer, which has other attribute data, but no matter which<BR>of 
the fields I use, none work. Why cant I just use the standard FeatureID.<BR>its 
just for display only.<BR>&gt;<BR>&gt;<BR>&gt; 
-jim<BR>&gt;<BR>&gt;<BR>&gt;<BR><BR><BR></FONT></BODY></HTML>