[mapserver-users] Different image for each point
Ian Walberg
ian.walberg at airborne.aero
Thu Aug 23 11:27:49 PDT 2012
Stephen,
This looks perfect, I need to look closer but I had thought the symbols
needed to be defined separately.
Regards
Ian
-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Stephen
Woodbridge
Sent: Thursday, August 23, 2012 11:21 AM
To: mapserver-users at lists.osgeo.org
Subject: Re: [mapserver-users] Different image for each point
On 8/23/2012 1:31 PM, Ian Walberg wrote:
> Hello folks,
>
> We need to be able to display a different small image from each point
> in a data set, say along the lines of a thumbnail.
>
> From what I can see this could be done my defining each image as a
> symbol and then referencing that.
>
> However what we would like to be able to do is get the image file name
> as part of the query and display the image based on that.
>
> Is this possible?
I have done this by creating a column with the filename in it. You can
then use the column as a symbol name or symbol path or as attribute
column in wfs to OpenLayers that can then be used to point to a
thumbnail directory of fullsize directory of images.
LAYER
NAME "images"
TYPE POINT
DATA "myImagePoints"
CLASS
STYLE
SYMBOL ("/path/to/thumbs/"+'[FILENAME]')
END
END
END
Where column FILENAME has something like 'myimage.png' and to do this
you are probably limited to gif, jpg, and png images only. svg will NOT
work.
-Steve W
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list