[mapserver-users] JAVA Mapscript LayerObj issues

Venkat Rao Tammineni vtammineni at roulacglobal.com
Wed Mar 4 07:05:02 EST 2009


HI,

 

  According to knowledge there is no feature class or object. You have to
use  PointObj to get points

 

Like  

 

PointObj point = new pointObj(retuns some x, y  dosomething herer);

 

Point.x=10;   or  setX()

Point.y=10;  oe setY();

 

 

 

Something like this ... Think in this way.

 

I hope this helps you .

 

 

Thanks

Venkat.

 

From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of julien
Sent: Wednesday, March 04, 2009 4:56 PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] JAVA Mapscript LayerObj issues

 

Hi, 

I am using the latest mapscript version 5.4.0beta2 for JAVA to build
on-demand mapfiles through a website.
My goal here is to put a symbol and an associated text on a specific
location on the maps.

I was successful with a static mapfile and the shp2img command with the
following code :

LAYER
  NAME Test
  TYPE POINT
  STATUS DEFAULT
  FEATURE
    POINTS
      10 10
    END
  TEXT "Blablabla"
  END
  CLASS
    STYLE
        SYMBOL "kreis"
         SIZE 50
         COLOR 0 0 0
        END
      LABEL
        TYPE BITMAP
            SIZE MEDIUM
        COLOR 0 0 0
        POSITION UC
      END
  END
END

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):
FEATURE
    POINTS
      10 10
    END
  TEXT "Blablabla"
END
The remaining code can be coded with layerObj, classObj, styleObj and
LabelObj. But there is no featureObj.

Did I missed something or this is not possible to do it with JAVA?

Thanks in advance

Trolet Julien

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. ;)

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20090304/78433ef9/attachment.html


More information about the mapserver-users mailing list