<!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 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> </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 my code:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>****start</FONT></DIV>
<DIV><FONT face=Arial size=2>require 'config.php';<BR>$dfMinX =
$CUREXTENT[minx];<BR> $dfMinY = $CUREXTENT[miny];<BR> $dfMaxX
= $CUREXTENT[maxx];<BR> $dfMaxY =
$CUREXTENT[maxy];<BR> $mapObj = ms_newMapObj("$dataPath/" . $map .
".map");<BR>
$mapObj->setExtent($CUREXTENT[minx],$CUREXTENT[miny],$CUREXTENT[maxx],$CUREXTENT[maxy]);<BR>
$nClickGeoX = GMapPix2Geo(intval($map_x), 0, $width, $dfMinX, $dfMaxX,
0);<BR> $nClickGeoY = GMapPix2Geo(intval($map_y), 0, $height,
$dfMinY, $dfMaxY, 1);<BR> $ptClicked =
ms_newPointObj();<BR>
$ptClicked->setXY($nClickGeoX,
$nClickGeoY);<BR># $queryObj =
$mapObj->queryByPoint( $ptClicked,MS_SINGLE,0
);<BR> # $gbShowQueryResults =
TRUE;<BR>#print" $map $map_x $map_y $dataPath \n";</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>$img = $mapObj->drawReferenceMap();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </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->saveImage("",MS_PNG,0,0,
100);<BR>********end</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>-jim</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----- Original Message ----- </FONT>
<DIV><FONT face=Arial size=2>From: "Stephen Lime" <</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>></FONT></DIV>
<DIV><FONT face=Arial size=2>To: <</FONT><A
href="mailto:jimburnett@ntelos.net"><FONT face=Arial
size=2>jimburnett@ntelos.net</FONT></A><FONT face=Arial size=2>></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>>>> "Jim Burnett"
<</FONT><A href="mailto:jimburnett@ntelos.net"><FONT face=Arial
size=2>jimburnett@ntelos.net</FONT></A><FONT face=Arial size=2>> 08/20/01
01:24PM >>><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 "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" <</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>><BR>To:
<</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>>;
<</FONT><A href="mailto:jimburnett@ntelos.net"><FONT face=Arial
size=2>jimburnett@ntelos.net</FONT></A><FONT face=Arial size=2>><BR>Sent:
Monday, August 20, 2001 12:12 PM<BR>Subject: Re: [mapserver-users]
Feature_ID<BR><BR><BR>> What version, datatype etc? Assuming there is an item
called feature_id<BR>there's no reason it<BR>> shouldn't work. That said
being able to use a psuedo id in classes is not<BR>a bad idea. That id<BR>>
is already a part of the internal shape structures but it's not trivial
to<BR>add that to the expression<BR>> handler. Would you add this as a
feature request to Bugzilla?<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>> >>> "Jim Burnett" <</FONT><A
href="mailto:jimburnett@ntelos.net"><FONT face=Arial
size=2>jimburnett@ntelos.net</FONT></A><FONT face=Arial size=2>> 08/17/01
12:55PM >>><BR>> Why can't I use Feature_ID as a CLASSITEM?<BR>>
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>><BR>><BR>>
-jim<BR>><BR>><BR>><BR><BR><BR></FONT></BODY></HTML>