Hi,<br><br>There should be a layerObj.addFeature( <a class="reference internal" href="http://mapserver.org/mapscript/mapscript.html#shapeobj">shapeObj</a> shape )<br><br>to accomplish this task.<br><br>Best regards,<br><br>
Tamas<br><br><br><br><br><div class="gmail_quote">2009/3/4 julien <span dir="ltr">&lt;<a href="mailto:julien.trolet@ifremer.fr">julien.trolet@ifremer.fr</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div bgcolor="#ffffff" text="#000000">
Hi, <br>
<br>
I am using the latest mapscript version 5.4.0beta2 for JAVA to build
on-demand mapfiles through a website.<br>
My goal here is to put a symbol and an associated text on a specific
location on the maps.<br>
<br>
I was successful with a static mapfile and the shp2img command with the
following code :<br>
<br>
LAYER<br>
  NAME Test<br>
  TYPE POINT<br>
  STATUS DEFAULT<br>
  <font color="#cc0000">FEATURE<br>
    POINTS<br>
      10 10<br>
    END<br>
  TEXT &quot;Blablabla&quot;<br>
  END</font><br>
  CLASS<br>
    STYLE<br>
        SYMBOL &quot;kreis&quot;<br>
         SIZE 50<br>
         COLOR 0 0 0<br>
        END<br>
      LABEL<br>
        TYPE BITMAP<br>
            SIZE MEDIUM<br>
        COLOR 0 0 0<br>
        POSITION UC<br>
      END<br>
  END<br>
END<br>
<br>
However, when I tried to translated this mapfile into JAVA, I did not
found any function or any object for the feature part (in red):<br>
<font color="#cc0000">FEATURE<br>
    POINTS<br>
      10 10<br>
    END<br>
  TEXT &quot;Blablabla&quot;<br>
END</font><br>
The remaining code can be coded with layerObj, classObj, styleObj and
LabelObj. But there is no featureObj.<br>
<br>
Did I missed something or this is not possible to do it with JAVA?<br>
<br>
Thanks in advance<br>
<br>
Trolet Julien<br>
<br>
PS : If someone knows another way to put a symbol and an associated
text on a specific (and dynamic) location on a map, he is welcome to
let me know. ;)<br>
</div>

<br>_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
<br></blockquote></div><br>