<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body 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>
&nbsp; NAME Test<br>
&nbsp; TYPE POINT<br>
&nbsp; STATUS DEFAULT<br>
&nbsp; <font color="#cc0000">FEATURE<br>
&nbsp;&nbsp;&nbsp; POINTS<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10 10<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; TEXT "Blablabla"<br>
&nbsp; END</font><br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; SYMBOL "kreis"<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; SIZE 50<br>
&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; COLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; END<br>
&nbsp; &nbsp;&nbsp;&nbsp; LABEL<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; TYPE BITMAP<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; SIZE MEDIUM<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; COLOR 0 0 0<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; POSITION UC<br>
&nbsp; &nbsp;&nbsp;&nbsp; END<br>
&nbsp; 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>
&nbsp;&nbsp;&nbsp; POINTS<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10 10<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; TEXT "Blablabla"<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>
</body>
</html>