<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR></HEAD>
<BODY style="MARGIN: 4px 4px 1px">
<DIV><SPAN class=112475820-02122008><FONT face=Arial color=#0000ff
size=2>Robert, </FONT></SPAN></DIV>
<DIV><SPAN class=112475820-02122008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=112475820-02122008><FONT face=Arial color=#0000ff size=2>I
thought that I remembered posting an example to fix a similar issue and went
back into the archives to find it. Funny thing, it was a thread that you
started! The solution was to create the feature on the fly through a URL
configuration. </FONT></SPAN></DIV>
<DIV><SPAN class=112475820-02122008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=112475820-02122008><FONT face=Arial color=#0000ff size=2><A
href="http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.html">http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.html</A></FONT></SPAN></DIV>
<DIV><SPAN class=112475820-02122008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=112475820-02122008><FONT face=Arial color=#0000ff size=2>If you
can use the URL vars in the points obj, that would be nice and
clean...</FONT></SPAN></DIV>
<DIV><SPAN class=112475820-02122008><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=112475820-02122008><FONT face=Arial color=#0000ff
size=2>David.</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <B>On Behalf Of </B>Robert
Sanson<BR><B>Sent:</B> Tuesday, December 02, 2008 2:36 PM<BR><B>To:</B>
mapserver-users@lists.osgeo.org<BR><B>Subject:</B> Re: [mapserver-users] ICON
Placing co-ordinates.....<BR><BR></FONT></DIV>
<DIV>I am having some trouble too. I want to pass in the x y as variables.
Here is the section in my map file:</DIV>
<DIV> </DIV>
<DIV> LAYER<BR> NAME 'gps_point'<BR> STATUS DEFAULT<BR>
TYPE POINT<BR> FEATURE<BR> # This is where you specify
position on the map<BR> POINTS %gpsx% %gpsy% END<BR>
END<BR> CLASS<BR>
STYLE<BR> SYMBOL "marker"<BR>
END<BR> END<BR> END</DIV>
<DIV> </DIV>
<DIV>Here is the section in my symbols.sym, file:</DIV>
<DIV> </DIV>
<DIV>#21<BR>SYMBOL<BR> NAME "marker"<BR> TYPE PIXMAP<BR>
IMAGE "marker.png"<BR> #TRANSPARENT 8<BR>END</DIV>
<DIV> </DIV>
<DIV>and here is my mapserver URL:</DIV>
<DIV> </DIV>
<DIV><A
href="http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985&gpsy=5427898.99793&mode=map&layers=linz_orthos+crs_parcels+gps_point&MINX=1747411.13985&MINY=5426898.99793&MAXX=1749411.13985&MAXY=5428898.99793&mapsize=1200+1200">http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985&gpsy=5427898.99793&mode=map&layers=linz_orthos+crs_parcels+gps_point&MINX=1747411.13985&MINY=5426898.99793&MAXX=1749411.13985&MAXY=5428898.99793&mapsize=1200+1200</A></DIV>
<DIV><BR>Unfortunately I get an error: </DIV>
<DIV> </DIV>
<DIV>loadFeaturePoints(): Unknown identifier. Parsing error near
(%gpsx%):(line 727) </DIV>
<DIV> </DIV>
<DIV>How can I pass in the x y?</DIV>
<DIV> </DIV>
<DIV>Many thanks,</DIV>
<DIV> </DIV>
<DIV>Robert Sanson</DIV>
<DIV><BR>>>> "Steve Lime" <Steve.Lime@dnr.state.mn.us>
3/12/2008 6:20 a.m. >>><BR>You'd use the icon as a symbol like
so:<BR><BR>LAYER<BR> NAME 'TheIcon'<BR> STATUS DEFAULT<BR>
TYPE POINT<BR> FEATURE<BR> # This is where you specify
position on the map<BR> POINTS x y END<BR>
END<BR> CLASS<BR>
STYLE<BR> SYMBOL "2.gif"<BR>
END<BR> END<BR>END<BR><BR>Steve<BR><BR>>>> On 12/1/2008 at
11:08 PM, in
message<BR><5cf1344b0812012108y730f048u24ce4f3d6b6680eb@mail.gmail.com>,
"Vikas KM"<BR><vikki.km@gmail.com> wrote:<BR>> Hi.. i have loaded a
tiff image on mapserver and placed an ICON on that...<BR>> but the thing i
can't get the icon placed at the required co-ordinates its<BR>> taking the
extent as its reference..?<BR>> <BR>> <BR>> my Map File<BR>>
-------------------<BR>> MAP<BR>> <BR>> NAME "Tiff Image"<BR>>
SIZE 1900 1200<BR>> EXTENT 0.0 0.0 1920.0 1200.0<BR>> SHAPEPATH
"/home/nms/mapserverdemo/tif/data/"<BR>> IMAGETYPE JPEG<BR>> <BR>>
WEB<BR>> TEMPLATE
"/home/nms/mapserverdemo/tif/tif.html"<BR>>
IMAGEPATH
"/home/nms/mapserverdemo/tif/"<BR>>
IMAGEURL "/tif/"<BR>> END<BR>> <BR>>
LAYER<BR>> STATUS
default<BR>> TYPE
RASTER<BR>> DATA "1.tif"<BR>>
END #END LAYER<BR>> <BR>>
LAYER<BR>> STATUS
default<BR>> TYPE RASTER<BR>> ///
size of the icon is 800,500<BR>> DATA
"2.gif"<BR>> END #END LAYER<BR>> <BR>>
END #END MAPFILE<BR>> <BR>> <BR>> how to I place an
icon at x,y given position on the reference map... that<BR>> is 1.tif
????<BR>> <BR>> <BR>> --------------<BR>> Regards<BR>> <BR>>
Vikas
KM<BR><BR>_______________________________________________<BR>mapserver-users
mailing list<BR>mapserver-users@lists.osgeo.org<BR><A
href="http://lists.osgeo.org/mailman/listinfo/mapserver">http://lists.osgeo.org/mailman/listinfo/mapserver</A>-users<BR><BR></DIV><BR><BR>
<TABLE style="COLOR: black" bgColor=white>
<TBODY>
<TR>
<TD><BR>------------------------------------------------------------------<BR>The contents of this email are confidential to AsureQuality. If you have received this communication in error please notify the sender immediately and delete the message and any attachments. The opinions expressed in this email are not necessarily those of AsureQuality. This message has been scanned for known viruses before delivery. AsureQuality supports the Unsolicited Electronic Messages Act 2007. If you do not wish to receive similar communications in future, please notify the sender of this message.<BR>------------------------------------------------------------------</TD></TR></TBODY></TABLE><BR><BR>
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">This message has been
scanned for malware by SurfControl plc. </FONT><A
href="http://www.surfcontrol.com/"><FONT style="BACKGROUND-COLOR: #ffffff"
color=#000000>www.surfcontrol.com</FONT></A></P></BLOCKQUOTE></BODY></HTML>