It doesn't seem to be working for me<br><br>I get the following error from apache:<br><br> [MapServer Error]: msAddImageSymbol(): Error opening image file /var/www/htdocs/maps/[symbol].<br><br>I am using the symbol as:<br>
<br>SYMBOL "[symbol]"<br><br>I also tried<br><br>SYMBOL [symbol]<br><br>neitehr works<br><br>Is this only possible with mapserver 5? I believe I am using 4.10<br><br>Thank you<br><br>-Adam<br><br><div class="gmail_quote">
On Wed, May 27, 2009 at 2:26 PM, Steve Lime <span dir="ltr"><<a href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
You can bind a style symbol to an attribute. The value needs to be the name of a<br>
system already loaded by MapServer or the name of a local image. You cannot<br>
reference a image url.<br>
<br>
Steve<br>
<br>
>>> On 5/27/2009 at 12:26 PM, in message<br>
<<a href="mailto:a3cc80ca0905271026p141e3f92mf817e0e596f74ec@mail.gmail.com">a3cc80ca0905271026p141e3f92mf817e0e596f74ec@mail.gmail.com</a>>, Adam Eskreis<br>
<div><div></div><div class="h5"><<a href="mailto:aeskreis@gmail.com">aeskreis@gmail.com</a>> wrote:<br>
> I am trying to create a layer that has a symbol, however, I want the symbol<br>
> for each geometry to be based on a field from the database.  For instance, I<br>
> am trying to make a layer that would look something like this:<br>
><br>
> LAYER<br>
>    GROUP symbol_layer<br>
>    TYPE point<br>
>    STATUS on<br>
>    CONNECTIONTYPE postgis<br>
>    CONNECTION "<connection string>"<br>
>    DATA "the_geom from (SELECT the_geom, symbol_img_url from foo) as foo<br>
> using unique id using SRID=-1"<br>
>    CLASS<br>
>       STYLE<br>
>           SYMBOL "[symbol_img_url]"<br>
>       END<br>
>    END<br>
>  END<br>
><br>
> Is something like this possible?  If not, what part of the source would I<br>
> have to edit in order to make it possible?<br>
><br>
> Thank you<br>
><br>
> -Adam<br>
<br>
</div></div></blockquote></div><br>