<br><font size=2 face="sans-serif">Hello there,</font>
<br>
<br><font size=2 face="sans-serif">My first time on the list and I wonder
if someone could answer this question.</font>
<br>
<br><font size=2 face="sans-serif">We have a java (v1.4.2) mapscript application
built on MS4W 1.5.1 with Mapserver 4.8.3. We are trying to display symbolised
points. The application populates a mapObj and then draws an output file
in PNG format. Our problem is that the PNG image does not show the selected
symbol but simply displays a coloured pixel. However, if we load the map
file which was created by a .save call into a browser then the symbol is
displayed correctly.</font>
<br>
<br><font size=2 face="sans-serif">Our code is as follows:</font>
<br>
<br><font size=2 face="sans-serif"> mapObj map
= new mapObj(null);</font>
<br><font size=2 face="sans-serif"> map.setStatus(mapscriptConstants.MS_ON);</font>
<br><font size=2 face="sans-serif"> map.setName("JustDrawMe");</font>
<br><font size=2 face="sans-serif"> map.setProjection("init=epsg:27700");</font>
<br><font size=2 face="sans-serif"> map.setSymbolSet("/PATH/symLib.sym");</font>
<br><font size=2 face="sans-serif"> map.setFontSet("/PATH/fonts.txt");
</font>
<br>
<br><font size=2 face="sans-serif"> //Create
layer</font>
<br><font size=2 face="sans-serif"> layerObj
layer2 = new layerObj(map);</font>
<br><font size=2 face="sans-serif"> layer2.setName("TEST_POINT");</font>
<br><font size=2 face="sans-serif"> layer2.setType(MS_LAYER_TYPE.MS_LAYER_POINT);</font>
<br><font size=2 face="sans-serif"> layer2.setStatus(mapscriptConstants.MS_ON);</font>
<br><font size=2 face="sans-serif"> layer2.setTransform(0);</font>
<br>
<br><font size=2 face="sans-serif"> //Add Point</font>
<br><font size=2 face="sans-serif"> shapeObj
shapePt = new shapeObj(0);</font>
<br><font size=2 face="sans-serif"> lineObj
line2 = new lineObj();</font>
<br><font size=2 face="sans-serif"> line2.add(new
pointObj(150,150,0));</font>
<br><font size=2 face="sans-serif"> shapePt.add(line2);</font>
<br><font size=2 face="sans-serif"> shapePt.setType(1);</font>
<br><font size=2 face="sans-serif"> layer2.addFeature(shapePt);</font>
<br>
<br><font size=2 face="sans-serif"> classObj
mapclass2 = new classObj(layer2);</font>
<br><font size=2 face="sans-serif"> mapclass2.setName("TEST
CLASS");</font>
<br><font size=2 face="sans-serif"> styleObj
style2 = new styleObj(mapclass2);</font>
<br><font size=2 face="sans-serif"> style2.setOutlinecolor(new
colorObj(0,0,255,2));</font>
<br><font size=2 face="sans-serif"> style2.setColor(new
colorObj(0,0,255,2));</font>
<br><font size=2 face="sans-serif"> style2.setWidth(2);</font>
<br><font size=2 face="sans-serif"> style2.setSize(20);</font>
<br><font size=2 face="sans-serif"> style2.setAngle(0);</font>
<br><font size=2 face="sans-serif"> style2.setAntialias(0);</font>
<br><font size=2 face="sans-serif"> style2.setSymbolname("CrossGeometryV");</font>
<br>
<br><font size=2 face="sans-serif"> map.setSize(600,
600);</font>
<br><font size=2 face="sans-serif"> map.setExtent(0,
0, 300, 300);</font>
<br><font size=2 face="sans-serif"> map.setTransparent(mapscriptConstants.MS_OFF);</font>
<br><font size=2 face="sans-serif"> map.selectOutputFormat("PNG");
</font>
<br>
<br><font size=2 face="sans-serif"> /* Saves
map file */</font>
<br><font size=2 face="sans-serif"> map.save(OUT_PATH
+ MAP_FILE_OUT);</font>
<br><font size=2 face="sans-serif"> </font>
<br><font size=2 face="sans-serif"> /* Saves
image */</font>
<br><font size=2 face="sans-serif"> map.draw().save(OUT_PATH
+ IMAGE_OUT,map);</font>
<br>
<br>
<br><font size=2 face="sans-serif">Hope someone can help this beginner</font>
<br>
<br>
<br><font size=2 face="sans-serif">Matt Cross</font>