How to use OMGraphics classes like OMPoly?

From: <NVohra@eq-technologic.com>
Date: Thu Jun 28 2001 - 08:16:47 EDT

Hello Don,
    I am new to openmap and until now i am successful in drawing and
plotting points on a map using csv file.
   Now when i give same points to OMPoly so that they get connected, the
figure appears above the points i.e
   not exactly on the points

float points[] = { 28.4f, 77.2f,
          23.03f, 72.40f,
          18.55f, 72.54f,
          11.0f, 77.0f,
          22.34f, 88.24f,
          28.4f, 77.2f};
OMPoly poly = new OMPoly(points, OMGraphic.DEGREES,
OMGraphic.LINETYPE_STRAIGHT);
poly.setVisible(true);
poly.setLinePaint(Color.black);
poly.generate(map.getProjection());

I have given the points in the similar fashion in csv .
Loc1,28.4,77.2
Loc2,23.03,72.40 and so on.

I am not able to understand the reason behind it..is it that OMPoly
converts points array to Radians and due to that
something happens?

Thanx in advance

-Nischal

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Jun 28 08:20:47 2001

This archive was generated by hypermail 2.1.8 : Thu May 12 2005 - 07:18:31 EDT