<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
It works nicely!<br>
Thank you very much.<br>
<br>
Ludovico<br>
<br>
Steve Lime ha scritto:
<blockquote cite="mid:49707FF7.5157.008F.0@dnr.state.mn.us" type="cite">
  <pre wrap="">You could bind the symbol to the photo_path item:

  CLASS
     STYLE
       SYMBOL [photo_path]
     END
  END

Assuming the file pointed to by photo path is usable by MapServer as a marker (e.g. a gif or png) then
this might work nicely. You wouldn't need the various classes in this scenario.

Steve

  </pre>
  <blockquote type="cite">
    <blockquote type="cite">
      <blockquote type="cite">
        <pre wrap="">On 1/10/2009 at 2:09 AM, in message <a class="moz-txt-link-rfc2396E" href="mailto:496857C3.7020404@yahoo.it"><496857C3.7020404@yahoo.it></a>, Ludovico
        </pre>
      </blockquote>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->Bianchini <a class="moz-txt-link-rfc2396E" href="mailto:metlud@yahoo.it"><metlud@yahoo.it></a> wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">- Windows Vista Home Premium
- Postgres 8.1
- jvm 1.6.0
- tomcat 5.5
- struts2
- ms4w 2.3.0 (mapscript.jar, mapscript.dll, all other dlls taken from this
pack)
- postgresql-8.2-505.jdbc4.jar

Hi all,
I have a database table of this type:
TB_POINT (id NUMBER,
geo GEOMETRY,
title VARCHAR,
icon VARCHAR,
photo_path VARCHAR)

and a mapfile's layer as:
LAYER
                NAME "tb_point"
                STATUS off
                TYPE POINT
                TRANSFORM true
                POSTLABELCACHE true
                CONNECTION "user=xxxxx password=xxxxx dbname=xxxxx host=xxxxx port=xxxxx"
                CONNECTIONTYPE postgis
                DATA "geo from xxxxx.tb_point"
                MAXSCALE 50000
                CLASSITEM "icon"
                
                CLASS
                        EXPRESSION "1"
                        STYLE
                                BACKGROUNDCOLOR 255 255 255
                                COLOR 0 0 0
                                SYMBOL "a"
                                MAXSIZE 10
                        END
                END
                
                CLASS
                        EXPRESSION "2"
                        STYLE
                                BACKGROUNDCOLOR 255 255 255
                                COLOR 0 0 0
                                SYMBOL "b"
                                MAXSIZE 10
                        END
                END
                
END

Based on value of field "icon" mapserver draw symbol "a" or symbol "b".
What I am trying to do is to draw, based on value on field "photo_path",
an image saved in file system.
I'll appreciate very much any suggestions, ideas or links to tutorials
and related documentation.

Thanks in advance
Ludovico

Chiacchiera con i tuoi amici in tempo reale! 
 <a class="moz-txt-link-freetext" href="http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com">http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com</a> 

_______________________________________________
mapserver-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a> 
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a>
    </pre>
  </blockquote>
  <pre wrap=""><!---->


  </pre>
</blockquote>
<br>
</body>
</html>