<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 - I hadn't spotted that. Mapfile section now has STATUS OFF.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert<BR><BR>&gt;&gt;&gt; "Fawcett, David" &lt;David.Fawcett@state.mn.us&gt; 3/12/2008 10:12 a.m. &gt;&gt;&gt;<BR></DIV>
<DIV><DEFANGHTML_SPAN class=691201021-02122008><FONT face=Arial color=#0000ff size=2>If you set the layer status to ON or OFF, your 'gps_point' layer won't show up on the map (at the default, unintended location) until you add the layer name explicitly in your URL call.&nbsp; </FONT></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=691201021-02122008><FONT face=Arial color=#0000ff size=2></FONT></DEFANGHTML_SPAN></DIV>
<DIV><DEFANGHTML_SPAN class=691201021-02122008><FONT face=Arial color=#0000ff size=2>David.</FONT></DEFANGHTML_SPAN></DIV>
<BLOCKQUOTE 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> Robert Sanson [mailto:SansonR@asurequality.com] <BR><B>Sent:</B> Tuesday, December 02, 2008 3:06 PM<BR><B>To:</B> mapserver-users@lists.osgeo.org; David Fawcett<BR><B>Subject:</B> RE: [mapserver-users] ICON Placing co-ordinates.....SOLVED<BR><BR></FONT></DIV>
<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>&nbsp;</DIV>
<DIV>Map file:</DIV>
<DIV>&nbsp;</DIV>
<DIV>LAYER<BR>&nbsp; NAME 'gps_point'<BR>&nbsp; STATUS DEFAULT<BR>&nbsp; TYPE POINT<BR>&nbsp; FEATURE<BR>&nbsp;&nbsp;&nbsp; # This is where you specify position on the map - using a default value<BR>&nbsp;&nbsp;&nbsp; POINTS 1748411 5427899 END<BR>&nbsp; END<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL "marker"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END<BR>&nbsp;END</DIV>
<DIV>&nbsp;</DIV>
<DIV>URL:</DIV>
<DIV>&nbsp;</DIV>
<DIV><A href="http://10.65.192.1/cgi-bin/mapserv.exe?mode=map&amp;layers=linz_orthos+crs_parcels+gps_point&amp;map.layer[gps_point]=FEATURE+POINTS+1748637.58606+5439001.11023+END+END&amp;MINX=1747637.58606&amp;MINY=5438001.11023&amp;MAXX=1749637.58606&amp;MAXY=5440001.11023&amp;mapsize=1200+1200">http://10.65.192.1/cgi-bin/mapserv.exe?mode=map&amp;layers=linz_orthos+crs_parcels+gps_point&amp;map.layer[gps_point]=FEATURE+POINTS+1748637.58606+5439001.11023+END+END&amp;MINX=1747637.58606&amp;MINY=5438001.11023&amp;MAXX=1749637.58606&amp;MAXY=5440001.11023&amp;mapsize=1200+1200</A><BR></DIV>
<DIV>regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert <BR>&gt;&gt;&gt; "Fawcett, David" &lt;David.Fawcett@state.mn.us&gt; 3/12/2008 10:01 a.m. &gt;&gt;&gt;<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.&nbsp; Funny thing, it was a thread that you started!&nbsp; The solution was to create the feature on the fly through a URL configuration.&nbsp; </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>&nbsp;</DIV>
<DIV>&nbsp;LAYER<BR>&nbsp; NAME 'gps_point'<BR>&nbsp; STATUS DEFAULT<BR>&nbsp; TYPE POINT<BR>&nbsp; FEATURE<BR>&nbsp;&nbsp;&nbsp; # This is where you specify position on the map<BR>&nbsp;&nbsp;&nbsp; POINTS %gpsx% %gpsy% END<BR>&nbsp; END<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL "marker"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END<BR>&nbsp;END</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here is the section in my symbols.sym, file:</DIV>
<DIV>&nbsp;</DIV>
<DIV>#21<BR>SYMBOL<BR>&nbsp; NAME "marker"<BR>&nbsp; TYPE PIXMAP<BR>&nbsp; IMAGE "marker.png"<BR>&nbsp; #TRANSPARENT 8<BR>END</DIV>
<DIV>&nbsp;</DIV>
<DIV>and here is my mapserver URL:</DIV>
<DIV>&nbsp;</DIV>
<DIV><A href="http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985&amp;gpsy=5427898.99793&amp;mode=map&amp;layers=linz_orthos+crs_parcels+gps_point&amp;MINX=1747411.13985&amp;MINY=5426898.99793&amp;MAXX=1749411.13985&amp;MAXY=5428898.99793&amp;mapsize=1200+1200">http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985&amp;gpsy=5427898.99793&amp;mode=map&amp;layers=linz_orthos+crs_parcels+gps_point&amp;MINX=1747411.13985&amp;MINY=5426898.99793&amp;MAXX=1749411.13985&amp;MAXY=5428898.99793&amp;mapsize=1200+1200</A></DIV>
<DIV><BR>Unfortunately I get an error: </DIV>
<DIV>&nbsp;</DIV>
<DIV>loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) </DIV>
<DIV>&nbsp;</DIV>
<DIV>How can I pass in the x y?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Many thanks,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Robert Sanson</DIV>
<DIV><BR>&gt;&gt;&gt; "Steve Lime" &lt;Steve.Lime@dnr.state.mn.us&gt; 3/12/2008 6:20 a.m. &gt;&gt;&gt;<BR>You'd use the icon as a symbol like so:<BR><BR>LAYER<BR>&nbsp; NAME 'TheIcon'<BR>&nbsp; STATUS DEFAULT<BR>&nbsp; TYPE POINT<BR>&nbsp; FEATURE<BR>&nbsp;&nbsp;&nbsp; # This is where you specify position on the map<BR>&nbsp;&nbsp;&nbsp; POINTS x y END<BR>&nbsp; END<BR>&nbsp; CLASS<BR>&nbsp;&nbsp;&nbsp; STYLE<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SYMBOL "2.gif"<BR>&nbsp;&nbsp;&nbsp; END<BR>&nbsp; END<BR>END<BR><BR>Steve<BR><BR>&gt;&gt;&gt; On 12/1/2008 at 11:08 PM, in message<BR>&lt;5cf1344b0812012108y730f048u24ce4f3d6b6680eb@mail.gmail.com&gt;, "Vikas KM"<BR>&lt;vikki.km@gmail.com&gt; wrote:<BR>&gt; Hi.. i have loaded a tiff image on mapserver and placed an ICON on that...<BR>&gt; but the thing i can't get the icon placed at the required co-ordinates its<BR>&gt; taking the extent as its reference..?<BR>&gt; <BR>&gt; <BR>&gt; my Map File<BR>&gt; -------------------<BR>&gt; MAP<BR>&gt; <BR>&gt; NAME "Tiff Image"<BR>&gt; SIZE 1900 1200<BR>&gt; EXTENT 0.0 0.0 1920.0 1200.0<BR>&gt; SHAPEPATH "/home/nms/mapserverdemo/tif/data/"<BR>&gt; IMAGETYPE JPEG<BR>&gt; <BR>&gt; WEB<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; TEMPLATE&nbsp;&nbsp;&nbsp;&nbsp; "/home/nms/mapserverdemo/tif/tif.html"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEPATH&nbsp;&nbsp;&nbsp;&nbsp; "/home/nms/mapserverdemo/tif/"<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; IMAGEURL&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "/tif/"<BR>&gt; END<BR>&gt; <BR>&gt; LAYER<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; STATUS default<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; TYPE RASTER<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; DATA "1.tif"<BR>&gt; END&nbsp;&nbsp;&nbsp; #END LAYER<BR>&gt; <BR>&gt; LAYER<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; STATUS default<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; TYPE RASTER<BR>&gt;&nbsp;&nbsp; /// size of the icon is 800,500<BR>&gt;&nbsp;&nbsp;&nbsp;&nbsp; DATA "2.gif"<BR>&gt; END&nbsp;&nbsp;&nbsp; #END LAYER<BR>&gt; <BR>&gt; END&nbsp;&nbsp;&nbsp; #END MAPFILE<BR>&gt; <BR>&gt; <BR>&gt; how to I place an icon at x,y given position on the reference map... that<BR>&gt; is&nbsp; 1.tif ????<BR>&gt; <BR>&gt; <BR>&gt; --------------<BR>&gt; Regards<BR>&gt; <BR>&gt; 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&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;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/wQw0zmjPoHdJTZGyOCrrhg==">here</A> to report this email as spam.</FONT></P></FONT><BR><BR>
<TABLE style="COLOR: black" bgColor=white>
<TBODY>
<TR>
<TD><BR>------------------------------------------------------------------<BR>The&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;message.<BR>------------------------------------------------------------------</TD></TR></TBODY></TABLE></BLOCKQUOTE><br><br><table bgcolor=white style="color:black"><tr><td><br>------------------------------------------------------------------<br>
The&nbsp;contents&nbsp;of&nbsp;this&nbsp;email&nbsp;are&nbsp;confidential&nbsp;to&nbsp;AsureQuality.&nbsp;If&nbsp;you&nbsp;have&nbsp;received&nbsp;this&nbsp;communication&nbsp;in&nbsp;error&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;immediately&nbsp;and&nbsp;delete&nbsp;the&nbsp;message&nbsp;and&nbsp;any&nbsp;attachments.&nbsp;The&nbsp;opinions&nbsp;expressed&nbsp;in&nbsp;this&nbsp;email&nbsp;are&nbsp;not&nbsp;necessarily&nbsp;those&nbsp;of&nbsp;AsureQuality.&nbsp;This&nbsp;message&nbsp;has&nbsp;been&nbsp;scanned&nbsp;for&nbsp;known&nbsp;viruses&nbsp;before&nbsp;delivery.&nbsp;AsureQuality&nbsp;supports&nbsp;the&nbsp;Unsolicited&nbsp;Electronic&nbsp;Messages&nbsp;Act&nbsp;2007.&nbsp;If&nbsp;you&nbsp;do&nbsp;not&nbsp;wish&nbsp;to&nbsp;receive&nbsp;similar&nbsp;communications&nbsp;in&nbsp;future,&nbsp;please&nbsp;notify&nbsp;the&nbsp;sender&nbsp;of&nbsp;this&nbsp;message.<br>
------------------------------------------------------------------</td></tr></table></BODY></HTML>