<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-15">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR></HEAD>
<BODY defanghtml_style="MARGIN: 4px 4px 1px">
<DIV>Thanks very much David. I was just about to post a message that I had solved it. Last time I was dealing with annotation. This time a GPS point reprojected into x,y. This is what works:</DIV>
<DIV> </DIV>
<DIV>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 - using a default value<BR> POINTS 1748411 5427899 END<BR> END<BR> CLASS<BR> STYLE<BR> SYMBOL "marker"<BR> END<BR> END<BR> END</DIV>
<DIV> </DIV>
<DIV>URL:</DIV>
<DIV> </DIV>
<DIV><A href="http://10.65.192.1/cgi-bin/mapserv.exe?mode=map&layers=linz_orthos+crs_parcels+gps_point&map.layer[gps_point]=FEATURE+POINTS+1748637.58606+5439001.11023+END+END&MINX=1747637.58606&MINY=5438001.11023&MAXX=1749637.58606&MAXY=5440001.11023&mapsize=1200+1200">http://10.65.192.1/cgi-bin/mapserv.exe?mode=map&layers=linz_orthos+crs_parcels+gps_point&map.layer[gps_point]=FEATURE+POINTS+1748637.58606+5439001.11023+END+END&MINX=1747637.58606&MINY=5438001.11023&MAXX=1749637.58606&MAXY=5440001.11023&mapsize=1200+1200</A><BR></DIV>
<DIV>regards,</DIV>
<DIV> </DIV>
<DIV>Robert <BR>>>> "Fawcett, David" <David.Fawcett@state.mn.us> 3/12/2008 10:01 a.m. >>><BR></DIV>
<DIV><DEFANGHTML_SPAN class=112475820-02122008><FONT face=Arial color=#0000ff size=2>Robert, </FONT></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=112475820-02122008><FONT face=Arial color=#0000ff size=2></FONT></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_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></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=112475820-02122008><FONT face=Arial color=#0000ff size=2></FONT></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_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></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=112475820-02122008><FONT face=Arial color=#0000ff size=2></FONT></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_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></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=112475820-02122008><FONT face=Arial color=#0000ff size=2></FONT></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=112475820-02122008><FONT face=Arial color=#0000ff size=2>David.</FONT></DEFANGHTML_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><BR><BR><FONT style="BACKGROUND-COLOR: #ffffff">
<P align=center><FONT style="BACKGROUND-COLOR: #ffffff">Click <A href="https://www.mailcontrol.com/sr/IRYj+ENRsNjTndxI!oX7Ul1c07CFB6vt3ifm3envFewlh8ABdpMRbcn9WIii7DFNLEE2u8gV0TCh35PDdlVduQ==">here</A> to report this email as spam.</FONT></P></FONT><br><br><table bgcolor=white style="color:black"><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></table></BODY></HTML>