<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body bgcolor=white lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>HI,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>&nbsp; According to knowledge there is no feature class or
object. You have to use &nbsp;PointObj to get points<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Like &nbsp;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>PointObj point = new pointObj(retuns some x, y&nbsp; dosomething
herer);<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Point.x=10; &nbsp;&nbsp;or &nbsp;setX()<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Point.y=10;&nbsp; oe setY();<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Something like this &#8230;.. Think in this way&#8230;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I hope this helps you &#8230;<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Venkat.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif";
color:windowtext'>From:</span></b><span style='font-size:10.0pt;font-family:
"Tahoma","sans-serif";color:windowtext'>
mapserver-users-bounces@lists.osgeo.org
[mailto:mapserver-users-bounces@lists.osgeo.org] <b>On Behalf Of </b>julien<br>
<b>Sent:</b> Wednesday, March 04, 2009 4:56 PM<br>
<b>To:</b> mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> [mapserver-users] JAVA Mapscript LayerObj issues<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>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; <span style='color:#CC0000'>FEATURE<br>
&nbsp;&nbsp;&nbsp; POINTS<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10 10<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; TEXT &quot;Blablabla&quot;<br>
&nbsp; END</span><br>
&nbsp; CLASS<br>
&nbsp;&nbsp;&nbsp; STYLE<br>
&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; SYMBOL &quot;kreis&quot;<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>
<span style='color:#CC0000'>FEATURE<br>
&nbsp;&nbsp;&nbsp; POINTS<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10 10<br>
&nbsp;&nbsp;&nbsp; END<br>
&nbsp; TEXT &quot;Blablabla&quot;<br>
END</span><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. ;)<o:p></o:p></p>

</div>

</body>

</html>