Re: Print out from drawing tool of Polygons

From: Don Dietrick <dietrick@bbn.com>
Date: Thu Sep 26 2002 - 10:32:59 EDT

You could sent the poly to a modified DrawingToolLayer, where, if the
OMGraphics is an OMPoly with RENDERTYPE_LATLON, you call:

System.out.println(poly.getLatLonArray());

in the drawingComplete() method.

-Don

On Tuesday, September 24, 2002, at 08:02 PM, Ed MacKerrow wrote:

> Dear Open Mappers,
>
> I am using the OpenMap Application (the one that comes with the OM
> distribution) to define some polygon regions with (lat,lon) rendering.
> Currently I am writing down the (lat,lon) coordinates of the polygon
> once I
> am done selecting a region on the map with the Drawing Tool. Is there
> a way
> to have the corners (i.e. selection points) of the user selected
> polygon
> dumped to a file or somewhere where they can be accessed? I realize
> that I
> can extend the Drawing tool layer etc, and I have looked over the
> JavaDoc,
> am looking for a fast a dirty method to do this since I will not be
> needing
> this functionality too often.
>
> Thanks in advance for any help that may be provided,
>
> ed
>
>
>
> Ed MacKerrow
> Theoretical Division, T-13, Complex Systems
> Mail Stop - B213 Los Alamos National Laboratory
> Los Alamos, NM 87545
> (505) 665-3491 (office)
> (505) 603-0352 (cell)
> (505) 665 - 3003 (fax)
> mackerrow@lanl.gov
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
>
> <winmail.dat>

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, BBN Technologies, dietrick@bbn.com
10 Moulton Street, Cambridge, MA 02138
617-873-3031 [fax]-2794
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

--
[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 Sep 26 10:35:37 2002

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