Re: [OpenMap Users] UTM Points

From: OpenMap Support <openmap@bbn.com>
Date: Tue Jul 01 2003 - 11:10:49 EDT

Hi Simon,

On Tuesday, July 1, 2003, at 10:31 AM, Simon Bowen wrote:

> Hello,
>
> Could someone please point me in the correct direction in solving this
> problem,
>
> I have an application that uses the OpenMap framework, and have had
> enormous success with OpenMap over the last few months.
>
> I use OpenMap with MapInfo MIF files using the following layer
> "com.bbn.openmap.layer.mif.MIFLayer"
> I also have some hand crafted layers where I create various OMGraphics
> from data returned from an Oracle database.
>
> To date all of the coordinates (MIF files and from our DB) have been
> in some Longitude Latitude format.
>
> I now have a requirement where we need to handle data from MIF files
> and from the database in Easting/Nothings (UTMPoints) with various
> Ellipsoids.
>
> I see that OpenMap has a UTMPoint class for converting between
> LatLon/UTM conversions.
>
> My question being, is there support currently within OpenMap where I
> can specify to the OpenMap framework to use say UTM with ellipsoid
> Bessel_1841, or are there any people who have had to use OpenMap with
> transparent support for UTM coordinate systems. Currently the only way
> I can see to achieve my goal is to extend the
> com.bbn.openmap.layer.mif.* package to test the MIF coordsys header
> and perform the necessary UTM conversion for each coordinate in the
> MIF file, plus have some conversion from my database from the UTM
> coordinates into Lat/Long.

This is the correct approach.

> As far as I can see (I may be wrong) OpenMap rendering only uses
> Lat/Long values?

Yes.

> Is there some property or Environment setting where I can say all the
> values for OMGraphics will be eastings/northings rather than lat/long?

Unfortunately, no. OMGraphics only accept screen xy values or decimal
degree lat/lon data.

Hope this helps,

- Don

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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 Tue Jul 1 11:11:27 2003

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