Re: [mapserver-users] ICON Placing co-ordinates.....
You'd use the icon as a symbol like so: LAYER NAME 'TheIcon' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS x y END END CLASS STYLE SYMBOL 2.gif END END END Steve On 12/1/2008 at 11:08 PM, in message [EMAIL PROTECTED], Vikas KM [EMAIL PROTECTED] wrote: Hi.. i have loaded a tiff image on mapserver and placed an ICON on that... but the thing i can't get the icon placed at the required co-ordinates its taking the extent as its reference..? my Map File --- MAP NAME Tiff Image SIZE 1900 1200 EXTENT 0.0 0.0 1920.0 1200.0 SHAPEPATH /home/nms/mapserverdemo/tif/data/ IMAGETYPE JPEG WEB TEMPLATE /home/nms/mapserverdemo/tif/tif.html IMAGEPATH /home/nms/mapserverdemo/tif/ IMAGEURL /tif/ END LAYER STATUS default TYPE RASTER DATA 1.tif END#END LAYER LAYER STATUS default TYPE RASTER /// size of the icon is 800,500 DATA 2.gif END#END LAYER END#END MAPFILE how to I place an icon at x,y given position on the reference map... that is 1.tif -- Regards Vikas KM ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
Re: [mapserver-users] ICON Placing co-ordinates.....
I am having some trouble too. I want to pass in the x y as variables. Here is the section in my map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS %gpsx% %gpsy% END END CLASS STYLE SYMBOL marker END END END Here is the section in my symbols.sym, file: #21 SYMBOL NAME marker TYPE PIXMAP IMAGE marker.png #TRANSPARENT 8 END and here is my mapserver URL: http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985gpsy=5427898.99793mode=maplayers=linz_orthos+crs_parcels+gps_pointMINX=1747411.13985MINY=5426898.99793MAXX=1749411.13985MAXY=5428898.99793mapsize=1200+1200 Unfortunately I get an error: loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) How can I pass in the x y? Many thanks, Robert Sanson Steve Lime [EMAIL PROTECTED] 3/12/2008 6:20 a.m. You'd use the icon as a symbol like so: LAYER NAME 'TheIcon' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS x y END END CLASS STYLE SYMBOL 2.gif END END END Steve On 12/1/2008 at 11:08 PM, in message [EMAIL PROTECTED], Vikas KM [EMAIL PROTECTED] wrote: Hi.. i have loaded a tiff image on mapserver and placed an ICON on that... but the thing i can't get the icon placed at the required co-ordinates its taking the extent as its reference..? my Map File --- MAP NAME Tiff Image SIZE 1900 1200 EXTENT 0.0 0.0 1920.0 1200.0 SHAPEPATH /home/nms/mapserverdemo/tif/data/ IMAGETYPE JPEG WEB TEMPLATE /home/nms/mapserverdemo/tif/tif.html IMAGEPATH /home/nms/mapserverdemo/tif/ IMAGEURL /tif/ END LAYER STATUS default TYPE RASTER DATA 1.tif END#END LAYER LAYER STATUS default TYPE RASTER /// size of the icon is 800,500 DATA 2.gif END#END LAYER END#END MAPFILE how to I place an icon at x,y given position on the reference map... that is 1.tif -- Regards Vikas KM ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- 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. -- This message has been scanned for malware by SurfControl plc. www.surfcontrol.com ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] ICON Placing co-ordinates.....
Robert, 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. http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.h tml If you can use the URL vars in the points obj, that would be nice and clean... David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Sanson Sent: Tuesday, December 02, 2008 2:36 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] ICON Placing co-ordinates. I am having some trouble too. I want to pass in the x y as variables. Here is the section in my map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS %gpsx% %gpsy% END END CLASS STYLE SYMBOL marker END END END Here is the section in my symbols.sym, file: #21 SYMBOL NAME marker TYPE PIXMAP IMAGE marker.png #TRANSPARENT 8 END and here is my mapserver URL: http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985gpsy=5427898.9 9793mode=maplayers=linz_orthos+crs_parcels+gps_pointMINX=1747411.1398 5MINY=5426898.99793MAXX=1749411.13985MAXY=5428898.99793mapsize=1200+ 1200 Unfortunately I get an error: loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) How can I pass in the x y? Many thanks, Robert Sanson Steve Lime [EMAIL PROTECTED] 3/12/2008 6:20 a.m. You'd use the icon as a symbol like so: LAYER NAME 'TheIcon' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS x y END END CLASS STYLE SYMBOL 2.gif END END END Steve On 12/1/2008 at 11:08 PM, in message [EMAIL PROTECTED], Vikas KM [EMAIL PROTECTED] wrote: Hi.. i have loaded a tiff image on mapserver and placed an ICON on that... but the thing i can't get the icon placed at the required co-ordinates its taking the extent as its reference..? my Map File --- MAP NAME Tiff Image SIZE 1900 1200 EXTENT 0.0 0.0 1920.0 1200.0 SHAPEPATH /home/nms/mapserverdemo/tif/data/ IMAGETYPE JPEG WEB TEMPLATE /home/nms/mapserverdemo/tif/tif.html IMAGEPATH /home/nms/mapserverdemo/tif/ IMAGEURL /tif/ END LAYER STATUS default TYPE RASTER DATA 1.tif END#END LAYER LAYER STATUS default TYPE RASTER /// size of the icon is 800,500 DATA 2.gif END#END LAYER END#END MAPFILE how to I place an icon at x,y given position on the reference map... that is 1.tif -- Regards Vikas KM ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- 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. -- This message has been scanned for malware by SurfControl plc. www.surfcontrol.com http://www.surfcontrol.com/ ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users
RE: [mapserver-users] ICON Placing co-ordinates.....SOLVED
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: Map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map - using a default value POINTS 1748411 5427899 END END CLASS STYLE SYMBOL marker END END END URL: http://10.65.192.1/cgi-bin/mapserv.exe?mode=maplayers=linz_orthos+crs_parcels+gps_pointmap.layer[gps_point]=FEATURE+POINTS+1748637.58606+5439001.11023+END+ENDMINX=1747637.58606MINY=5438001.11023MAXX=1749637.58606MAXY=5440001.11023mapsize=1200+1200 regards, Robert Fawcett, David [EMAIL PROTECTED] 3/12/2008 10:01 a.m. Robert, 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. http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.html If you can use the URL vars in the points obj, that would be nice and clean... David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Sanson Sent: Tuesday, December 02, 2008 2:36 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] ICON Placing co-ordinates. I am having some trouble too. I want to pass in the x y as variables. Here is the section in my map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS %gpsx% %gpsy% END END CLASS STYLE SYMBOL marker END END END Here is the section in my symbols.sym, file: #21 SYMBOL NAME marker TYPE PIXMAP IMAGE marker.png #TRANSPARENT 8 END and here is my mapserver URL: http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985gpsy=5427898.99793mode=maplayers=linz_orthos+crs_parcels+gps_pointMINX=1747411.13985MINY=5426898.99793MAXX=1749411.13985MAXY=5428898.99793mapsize=1200+1200 Unfortunately I get an error: loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) How can I pass in the x y? Many thanks, Robert Sanson Steve Lime [EMAIL PROTECTED] 3/12/2008 6:20 a.m. You'd use the icon as a symbol like so: LAYER NAME 'TheIcon' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS x y END END CLASS STYLE SYMBOL 2.gif END END END Steve On 12/1/2008 at 11:08 PM, in message [EMAIL PROTECTED], Vikas KM [EMAIL PROTECTED] wrote: Hi.. i have loaded a tiff image on mapserver and placed an ICON on that... but the thing i can't get the icon placed at the required co-ordinates its taking the extent as its reference..? my Map File --- MAP NAME Tiff Image SIZE 1900 1200 EXTENT 0.0 0.0 1920.0 1200.0 SHAPEPATH /home/nms/mapserverdemo/tif/data/ IMAGETYPE JPEG WEB TEMPLATE /home/nms/mapserverdemo/tif/tif.html IMAGEPATH /home/nms/mapserverdemo/tif/ IMAGEURL /tif/ END LAYER STATUS default TYPE RASTER DATA 1.tif END#END LAYER LAYER STATUS default TYPE RASTER /// size of the icon is 800,500 DATA 2.gif END#END LAYER END#END MAPFILE how to I place an icon at x,y given position on the reference map... that is 1.tif -- Regards Vikas KM ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- 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. -- This message has been scanned for malware by SurfControl plc. www.surfcontrol.com ( http://www.surfcontrol.com/ ) Click here ( https://www.mailcontrol.com/sr/IRYj+ENRsNjTndxI!oX7Ul1c07CFB6vt3ifm3envFewlh8ABdpMRbcn9WIii7DFNLEE2u8gV0TCh35PDdlVduQ== ) to report this email as spam. -- 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
RE: [mapserver-users] ICON Placing co-ordinates.....SOLVED
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. David. -Original Message- From: Robert Sanson [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2008 3:06 PM To: mapserver-users@lists.osgeo.org; David Fawcett Subject: RE: [mapserver-users] ICON Placing co-ordinates.SOLVED 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: Map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map - using a default value POINTS 1748411 5427899 END END CLASS STYLE SYMBOL marker END END END URL: http://10.65.192.1/cgi-bin/mapserv.exe?mode=maplayers=linz_orthos+crs_p arcels+gps_pointmap.layer[gps_point]=FEATURE+POINTS+1748637.58606+54390 01.11023+END+ENDMINX=1747637.58606MINY=5438001.11023MAXX=1749637.5860 6MAXY=5440001.11023mapsize=1200+1200 regards, Robert Fawcett, David [EMAIL PROTECTED] 3/12/2008 10:01 a.m. Robert, 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. http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.h tml If you can use the URL vars in the points obj, that would be nice and clean... David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Sanson Sent: Tuesday, December 02, 2008 2:36 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] ICON Placing co-ordinates. I am having some trouble too. I want to pass in the x y as variables. Here is the section in my map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS %gpsx% %gpsy% END END CLASS STYLE SYMBOL marker END END END Here is the section in my symbols.sym, file: #21 SYMBOL NAME marker TYPE PIXMAP IMAGE marker.png #TRANSPARENT 8 END and here is my mapserver URL: http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985gpsy=5427898.9 9793mode=maplayers=linz_orthos+crs_parcels+gps_pointMINX=1747411.1398 5MINY=5426898.99793MAXX=1749411.13985MAXY=5428898.99793mapsize=1200+ 1200 Unfortunately I get an error: loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) How can I pass in the x y? Many thanks, Robert Sanson Steve Lime [EMAIL PROTECTED] 3/12/2008 6:20 a.m. You'd use the icon as a symbol like so: LAYER NAME 'TheIcon' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS x y END END CLASS STYLE SYMBOL 2.gif END END END Steve On 12/1/2008 at 11:08 PM, in message [EMAIL PROTECTED], Vikas KM [EMAIL PROTECTED] wrote: Hi.. i have loaded a tiff image on mapserver and placed an ICON on that... but the thing i can't get the icon placed at the required co-ordinates its taking the extent as its reference..? my Map File --- MAP NAME Tiff Image
RE: [mapserver-users] ICON Placing co-ordinates.....SOLVED
Thanks - I hadn't spotted that. Mapfile section now has STATUS OFF. Robert Fawcett, David [EMAIL PROTECTED] 3/12/2008 10:12 a.m. 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. David. -Original Message- From: Robert Sanson [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 02, 2008 3:06 PM To: mapserver-users@lists.osgeo.org; David Fawcett Subject: RE: [mapserver-users] ICON Placing co-ordinates.SOLVED 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: Map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map - using a default value POINTS 1748411 5427899 END END CLASS STYLE SYMBOL marker END END END URL: http://10.65.192.1/cgi-bin/mapserv.exe?mode=maplayers=linz_orthos+crs_parcels+gps_pointmap.layer[gps_point]=FEATURE+POINTS+1748637.58606+5439001.11023+END+ENDMINX=1747637.58606MINY=5438001.11023MAXX=1749637.58606MAXY=5440001.11023mapsize=1200+1200 regards, Robert Fawcett, David [EMAIL PROTECTED] 3/12/2008 10:01 a.m. Robert, 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. http://lists.osgeo.org/pipermail/mapserver-users/2008-September/057900.html If you can use the URL vars in the points obj, that would be nice and clean... David. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Sanson Sent: Tuesday, December 02, 2008 2:36 PM To: mapserver-users@lists.osgeo.org Subject: Re: [mapserver-users] ICON Placing co-ordinates. I am having some trouble too. I want to pass in the x y as variables. Here is the section in my map file: LAYER NAME 'gps_point' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS %gpsx% %gpsy% END END CLASS STYLE SYMBOL marker END END END Here is the section in my symbols.sym, file: #21 SYMBOL NAME marker TYPE PIXMAP IMAGE marker.png #TRANSPARENT 8 END and here is my mapserver URL: http://10.65.192.1/cgi-bin/mapserv.exe?gpsx=1748411.13985gpsy=5427898.99793mode=maplayers=linz_orthos+crs_parcels+gps_pointMINX=1747411.13985MINY=5426898.99793MAXX=1749411.13985MAXY=5428898.99793mapsize=1200+1200 Unfortunately I get an error: loadFeaturePoints(): Unknown identifier. Parsing error near (%gpsx%):(line 727) How can I pass in the x y? Many thanks, Robert Sanson Steve Lime [EMAIL PROTECTED] 3/12/2008 6:20 a.m. You'd use the icon as a symbol like so: LAYER NAME 'TheIcon' STATUS DEFAULT TYPE POINT FEATURE # This is where you specify position on the map POINTS x y END END CLASS STYLE SYMBOL 2.gif END END END Steve On 12/1/2008 at 11:08 PM, in message [EMAIL PROTECTED], Vikas KM [EMAIL PROTECTED] wrote: Hi.. i have loaded a tiff image on mapserver and placed an ICON on that... but the thing i can't get the icon placed at the required co-ordinates its taking the extent as its reference..? my Map File --- MAP NAME Tiff Image SIZE 1900 1200 EXTENT 0.0 0.0 1920.0 1200.0 SHAPEPATH /home/nms/mapserverdemo/tif/data/ IMAGETYPE JPEG WEB TEMPLATE /home/nms/mapserverdemo/tif/tif.html IMAGEPATH /home/nms/mapserverdemo/tif/ IMAGEURL /tif/ END LAYER STATUS default TYPE RASTER DATA 1.tif END#END LAYER LAYER STATUS default TYPE RASTER /// size of the icon is 800,500 DATA 2.gif END#END LAYER END#END MAPFILE how to I place an icon at x,y given position on the reference map... that is 1.tif -- Regards Vikas KM ___ mapserver-users mailing list mapserver-users@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/mapserver-users -- 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. -- This message has been scanned for malware