From mail Fri Jan  5 06:25:44 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l05BPiC07081
	for openmap-users-archive; Fri, 5 Jan 2007 06:25:44 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l05BPdP07078
	for <openmap-users@openmap.bbn.com>; Fri, 5 Jan 2007 06:25:40 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H2n7y-0008E0-5G; Fri, 05 Jan 2007 06:20:50 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l05BGe812316
	for openmap-users-outgoing; Fri, 5 Jan 2007 06:16:40 -0500 (EST)
Date: Fri,  5 Jan 2007 12:15:54 +0100
Message-Id: <JBE7AI$780966BA0086A6843811BFC600A8A166@laposte.net>
Subject: [OpenMap Users] priority on a layer
MIME-Version: 1.0
X-Sensitivity: 3
Content-Type: text/plain; charset=iso-8859-1
From: "Camille Blondiaux" <camille.blondiaux@laposte.net>
To: "openmap-users" <openmap-users@bbn.com>
X-XaM3-API-Version: 4.1 (B103)
X-SenderIP: 127.0.0.1
Old-X-Spam-Score: 0.3 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l05BGca12308
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi all !

I'm sorry but didn't find help on the archives.

My question is simple :

How could I force one Layer (MyEsriLayer extends EsriLayer) to
be the most important to redraw when a projection changed occurs ?

I would like it to redraw fast cause other layers are very
slow WMSPlugIn and I can't wait for all the layers to be
loaded. It seems they slow down my MyEsriLayer's loading.

Thanks in advance and a happy new year to all of you !

Kmouille

Envoyez vos cartes de voeux depuis www.laposte.net 
Elles seront ensuite distribuées par le facteur : pratique et malin !

--
[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"]


From mail Fri Jan  5 06:58:10 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l05BwAm07200
	for openmap-users-archive; Fri, 5 Jan 2007 06:58:10 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l05Bw5P07197
	for <openmap-users@openmap.bbn.com>; Fri, 5 Jan 2007 06:58:05 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H2neg-00006K-5q; Fri, 05 Jan 2007 06:54:38 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l05Brag12887
	for openmap-users-outgoing; Fri, 5 Jan 2007 06:53:36 -0500 (EST)
Date: Fri,  5 Jan 2007 12:52:50 +0100
Message-Id: <JBE902$3D10EA0102355FE41567F7B10F17610B@laposte.net>
Subject: [OpenMap Users] Access to Tool's Editable Fields
MIME-Version: 1.0
X-Sensitivity: 3
Content-Type: text/plain; charset=iso-8859-1
From: "Camille Blondiaux" <camille.blondiaux@laposte.net>
To: "openmap-users" <openmap-users@bbn.com>
X-XaM3-API-Version: 4.1 (B103)
X-SenderIP: 127.0.0.1
Old-X-Spam-Score: -0.1 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l05BrYa12879
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi,

One other question. In my toolbar I put a zoomPanel. Sometime
this one becomes not editable, I can select the text in it by
double clicking but writing is impossible, the cursor is not
here. 
It comes to a normal behavior after some operations (resizing
the windows, clicking on the map...) I can't determine what
really happens. Any idea ?

Thanks in advance.

Kmouille

Envoyez vos cartes de voeux depuis www.laposte.net 
Elles seront ensuite distribuées par le facteur : pratique et malin !

--
[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"]


From mail Fri Jan 12 10:48:28 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0CFmSs05624
	for openmap-users-archive; Fri, 12 Jan 2007 10:48:28 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0CFmNP05621
	for <openmap-users@openmap.bbn.com>; Fri, 12 Jan 2007 10:48:24 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H5OXm-0007XZ-3E; Fri, 12 Jan 2007 10:42:14 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0CFbSl21913
	for openmap-users-outgoing; Fri, 12 Jan 2007 10:37:28 -0500 (EST)
In-Reply-To: <20070111123050.GA15053@metacarta.com>
References: <9434696D-7C82-4A05-B7CA-A193C8F0C9D0@pvv.ntnu.no> 
	<20070111123050.GA15053@metacarta.com>
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed
Message-Id: <4C7E2B6E-8C34-4DA4-9A2A-8975D3273C74@pvv.ntnu.no>
Cc: openmap questions <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Tore Halset <halset@pvv.ntnu.no>
Subject: [OpenMap Users] Re: [OpenLayers-Users] layer on top of google maps stretched
Date: Fri, 12 Jan 2007 16:05:23 +0100
To: Christopher Schmidt <crschmidt@metacarta.com>
X-Mailer: Apple Mail (2.752.3)
X-OriginalArrivalTime: 12 Jan 2007 15:06:02.0742 (UTC) 
	FILETIME=[2CF36160:01C7365B]
X-imss-version: 2.045
X-imss-result: Passed
X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5
X-imss-settings: Baseline:2 C:2 M:2 S:2 R:2 (0.1500 0.1500)
Old-X-Spam-Score: -0.5 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Thanks for the answer!

Currently, it is two projections, google for the base map and EPSG: 
4326 for the overlay. I was just thinking of implementing the google  
projection in my wms-service to prevent openlayers from stretching  
the image and thereby reducing the number of projections to one.

It is not that important, I am very pleased by the current  
functionality. Thanks a lot for openlayers!

  - Tore.

On Jan 11, 2007, at 13:30 , Christopher Schmidt wrote:

> On Thu, Jan 11, 2007 at 01:24:02PM +0100, Tore Halset wrote:
>> Hello.
>>
>> I am drawing a wms (transparent png) on top of google maps in
>> openlayers. Openlayers use EPSG:4326 in the WMS request and stretch
>> the returned image to fit pretty well. Circles in the WMS layer are
>> stretched more and more as I navigate to the North of equator.
>>
>> Is it possible to specify a projection for the WMS-layer that will
>> reduce the stretching?
>
> OpenLayers does not currently have the capability you are looking for.
> (Essentially, this would require having a map in two different
> projections, which is both difficult technically and more complex than
> just making it work for Google.)
>
> This functionality is something that I would like to see at some  
> point,
> but it's non-trivial implementation, and implementing it in a way that
> is:
>  * Generally useful
>  * Doens't hurt the general case
>
> is kind of hard.
>
> Regards,
> -- 
> Christopher Schmidt
> MetaCarta

--
[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"]


From mail Fri Jan 12 13:43:58 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0CIhw506234
	for openmap-users-archive; Fri, 12 Jan 2007 13:43:58 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0CIhpP06231
	for <openmap-users@openmap.bbn.com>; Fri, 12 Jan 2007 13:43:52 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H5RIN-0005Mj-6B; Fri, 12 Jan 2007 13:38:31 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0CIamA25020
	for openmap-users-outgoing; Fri, 12 Jan 2007 13:36:48 -0500 (EST)
Mime-Version: 1.0 (Apple Message framework v752.3)
In-Reply-To: <4C7E2B6E-8C34-4DA4-9A2A-8975D3273C74@pvv.ntnu.no>
References: <9434696D-7C82-4A05-B7CA-A193C8F0C9D0@pvv.ntnu.no>  <20070111123050.GA15053@metacarta.com> <4C7E2B6E-8C34-4DA4-9A2A-8975D3273C74@pvv.ntnu.no>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <B92283F8-C8E0-40C2-9556-EFE92C48A1D2@pvv.ntnu.no>
Content-Transfer-Encoding: 7bit
From: Tore Halset <halset@pvv.ntnu.no>
Subject: Re: [OpenMap Users] Re: [OpenLayers-Users] layer on top of google maps stretched
Date: Fri, 12 Jan 2007 19:36:36 +0100
To: openmap questions <openmap-users@bbn.com>
X-Mailer: Apple Mail (2.752.3)
Old-X-Spam-Score: -0.6 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello.

Sorry for sending this to the wrong list. I got confused by all the  
projects starting with "open"..

  - Tore.

Den Jan 12, 2007 kl. 16:05 skrev Tore Halset:

> Thanks for the answer!
>
> Currently, it is two projections, google for the base map and EPSG: 
> 4326 for the overlay. I was just thinking of implementing the  
> google projection in my wms-service to prevent openlayers from  
> stretching the image and thereby reducing the number of projections  
> to one.
>
> It is not that important, I am very pleased by the current  
> functionality. Thanks a lot for openlayers!
>
>  - Tore.
>
> On Jan 11, 2007, at 13:30 , Christopher Schmidt wrote:
>
>> On Thu, Jan 11, 2007 at 01:24:02PM +0100, Tore Halset wrote:
>>> Hello.
>>>
>>> I am drawing a wms (transparent png) on top of google maps in
>>> openlayers. Openlayers use EPSG:4326 in the WMS request and stretch
>>> the returned image to fit pretty well. Circles in the WMS layer are
>>> stretched more and more as I navigate to the North of equator.
>>>
>>> Is it possible to specify a projection for the WMS-layer that will
>>> reduce the stretching?
>>
>> OpenLayers does not currently have the capability you are looking  
>> for.
>> (Essentially, this would require having a map in two different
>> projections, which is both difficult technically and more complex  
>> than
>> just making it work for Google.)
>>
>> This functionality is something that I would like to see at some  
>> point,
>> but it's non-trivial implementation, and implementing it in a way  
>> that
>> is:
>>  * Generally useful
>>  * Doens't hurt the general case
>>
>> is kind of hard.
>>
>> Regards,
>> -- 
>> Christopher Schmidt
>> MetaCarta
>
> --
> [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"]

--
[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"]


From mail Tue Jan 16 13:33:34 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0GIXYi06920
	for openmap-users-archive; Tue, 16 Jan 2007 13:33:34 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0GIXTP06917
	for <openmap-users@openmap.bbn.com>; Tue, 16 Jan 2007 13:33:30 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H6szz-0007dw-4R; Tue, 16 Jan 2007 13:25:31 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0GILZO22291
	for openmap-users-outgoing; Tue, 16 Jan 2007 13:21:35 -0500 (EST)
Message-ID: <45AD14B8.3030307@io.com>
Date: Tue, 16 Jan 2007 12:08:56 -0600
From: JR Andreassen <janrune@io.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: OpenMap MList <openmap-users@bbn.com>
Subject: [OpenMap Users] QuadTree bounds..
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on smtp.prismnet.com
X-Virus-Status: Clean
Old-X-Spam-Score: -0.2 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk


Hi...

I was wondering if there was a reason the QuadTree bounds is unavailable ??

It seams it would be convinient to get the bounds like:

        // 
------------------------------------------------------------------------------
   /**
     * Get the bounding box of the object
     * @return QuadTreeRect Bounds of QuadTree
     */
    public QuadTreeRect getBounds()
    {
            QuadTreeRect retVal = null;
            if(top != null)
            {    retVal = top.bounds;
                retVal = new QuadTreeRect(retVal.north, retVal.west, 
retVal.south, retVal.east);
            }       
            else
            {    retVal = new QuadTreeRect(0f,0f,0f,0f);}
            return retVal;
        } // QuadTreeRect getBounds()

--
[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"]


From mail Wed Jan 17 10:35:31 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0HFZVl12580
	for openmap-users-archive; Wed, 17 Jan 2007 10:35:31 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0HFZOP12577
	for <openmap-users@openmap.bbn.com>; Wed, 17 Jan 2007 10:35:24 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H7CjK-0002BL-3E; Wed, 17 Jan 2007 10:29:38 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0HFS3L06964
	for openmap-users-outgoing; Wed, 17 Jan 2007 10:28:03 -0500 (EST)
Date: Wed, 17 Jan 2007 16:27:45 +0100
Message-Id: <JC0QY9$E9856933DE0D4F9B4F6EC2335DFBB0B8@laposte.net>
Subject: [OpenMap Users] EditableOMGraphics, known BUG ??
MIME-Version: 1.0
X-Sensitivity: 3
Content-Type: text/plain; charset=iso-8859-1
From: "Camille Blondiaux" <camille.blondiaux@laposte.net>
To: "openmap-users" <openmap-users@bbn.com>
X-XaM3-API-Version: 4.1 (B103)
X-SenderIP: 127.0.0.1
Old-X-Spam-Score: -0.2 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l0HFS1a06953
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi all !

I'm currently trying to program a synchronised polygon edition
with a View of my program ! I wrote a MyEditableOMPoly witch
canGrabGraphic value is false.

When I select an OMPoly, the grabPoints appear and all goes
well. The graphic is not entirely moveable.

But I found that when no graphics are selected and I'm in a
mousemode my layer responds to, if I press the mouse on a poly
then drag, the poly moves. Then it's selected and I can grab
the entire poly. 

If deselect then reselect, the behavior returns to normal !

Any idea ?

thanx

Kmouille

Envoyez vos cartes de voeux depuis www.laposte.net 
Elles seront ensuite distribuées par le facteur : pratique et malin !

--
[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"]


From mail Thu Jan 18 06:29:20 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0IBTKE24731
	for openmap-users-archive; Thu, 18 Jan 2007 06:29:20 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0IBTFP24728
	for <openmap-users@openmap.bbn.com>; Thu, 18 Jan 2007 06:29:16 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H7VMe-0001Nj-5l; Thu, 18 Jan 2007 06:23:28 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0IBLEb21593
	for openmap-users-outgoing; Thu, 18 Jan 2007 06:21:14 -0500 (EST)
Message-ID: <45AF55EC.2000304@oogis.ru>
Date: Thu, 18 Jan 2007 14:11:40 +0300
From: Ru <sorokin@oogis.ru>
User-Agent: Thunderbird 1.5.0.8 (X11/20061115)
MIME-Version: 1.0
To: openmap-users <openmap-users@bbn.com>
Subject: [OpenMap Users] OpenMap as WMS server for OpenLayers
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Old-X-Spam-Score: -1.0 (-)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello Don and Tore!

Is it possible now to use OpenMap as WMS server for OpenLayers?
Having quick look around openmap CVS I did not find corresponding code.
Ping :) 
(http://openmap.bbn.com/mailArchives/openmap-users/2006-12/5100.html)

Sincerely,
  Ru.

--
[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"]


From mail Thu Jan 18 09:04:19 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0IE4J525591
	for openmap-users-archive; Thu, 18 Jan 2007 09:04:19 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0IE4FP25588
	for <openmap-users@openmap.bbn.com>; Thu, 18 Jan 2007 09:04:15 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H7Xo4-0002hw-3j; Thu, 18 Jan 2007 08:59:56 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0IDwYb22840
	for openmap-users-outgoing; Thu, 18 Jan 2007 08:58:34 -0500 (EST)
In-Reply-To: <45AF55EC.2000304@oogis.ru>
References: <45AF55EC.2000304@oogis.ru>
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <31BA236E-D383-4D04-A728-ECB6A9DEFD5C@pvv.ntnu.no>
Cc: openmap-users <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Tore Halset <halset@pvv.ntnu.no>
Subject: Re: [OpenMap Users] OpenMap as WMS server for OpenLayers
Date: Thu, 18 Jan 2007 14:58:35 +0100
To: Ru <sorokin@oogis.ru>
X-Mailer: Apple Mail (2.752.3)
Old-X-Spam-Score: -0.6 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello.

I do not think the code has been included in cvs yet. I have done  
some more improvements in my local copy that I will try to make a new  
patch from.

  * projection codes was duplicated in both java code and properties- 
file. fixed.
  * fixed transparent png images.

It still does not work with all WMS-clients. I am using OpenLayers to  
overlay WMS-layers from OpenMap over Google Maps. Pretty cool.

  - Tore.

Den Jan 18, 2007 kl. 12:11 skrev Ru:

> Hello Don and Tore!
>
> Is it possible now to use OpenMap as WMS server for OpenLayers?
> Having quick look around openmap CVS I did not find corresponding  
> code.
> Ping :) (http://openmap.bbn.com/mailArchives/openmap-users/ 
> 2006-12/5100.html)
>
> Sincerely,
>  Ru.
>
> --
> [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"]

--
[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"]


From mail Fri Jan 19 07:11:25 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0JCBPP06744
	for openmap-users-archive; Fri, 19 Jan 2007 07:11:25 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0JCBKP06741
	for <openmap-users@openmap.bbn.com>; Fri, 19 Jan 2007 07:11:21 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H7sVP-00017V-5Z; Fri, 19 Jan 2007 07:06:03 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0JBxxu07710
	for openmap-users-outgoing; Fri, 19 Jan 2007 06:59:59 -0500 (EST)
In-Reply-To: <005BC18C-300D-4333-92BC-19DAD271F2DA@pvv.ntnu.no>
References: <005BC18C-300D-4333-92BC-19DAD271F2DA@pvv.ntnu.no>
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed
Message-Id: <60BECB62-6563-484C-97B4-A080D0A9133A@pvv.ntnu.no>
Cc: Ru <sorokin@oogis.ru>
Content-Transfer-Encoding: 7bit
From: Tore Halset <halset@pvv.ntnu.no>
Subject: Re: [OpenMap Users] WMS server - updated to current cvs++
Date: Fri, 19 Jan 2007 12:59:12 +0100
To: openmap questions <openmap-users@bbn.com>, Don Dietrick <dietrick@bbn.com>
X-Mailer: Apple Mail (2.752.3)
X-OriginalArrivalTime: 19 Jan 2007 11:59:28.0864 (UTC) 
	FILETIME=[45C56600:01C73BC1]
X-imss-version: 2.045
X-imss-result: Passed
X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5
X-imss-settings: Baseline:2 C:2 M:2 S:2 R:2 (0.1500 0.1500)
Old-X-Spam-Score: -0.5 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello.

Here is a new version of the WMS server patch. It is still not  
complete, but works well with OpenLayers and uDig. Please let me know  
of anything that must be changed for this patch to be accepted.

Changes since the prev version:
* Projections defined in openmap.properties are used in  
checkProjectionType as well. projections were hardcoded here.
* Case insensitive wms request parameter names. Needed by TileCache.
* Transparent images.

In addition, I have the following in openmap.properties. EPSG:4326 is  
safe, but I am not completly sure that I have found the correct code  
from Mercator.
###
# wms config
# separate aliases with space
# http://wiki.osgeo.org/index.php/WMS_Tiling_Client_Recommendation
# http://www.epsg.org/
# http://remotesensing.org/geotiff/proj_list/
# TODO: AUTO2:42001 projection units m or lat/lon degrees?
openmap.wms.projmap.Mercator=AUTO2:42001 EPSG:54004
openmap.wms.projmap.LLXY=EPSG:4326
openmap.wms.projmap.Orthographic=AUTO2:42003
###

Changes to existing files that are in CVS:
http://www.pvv.ntnu.no/~halset/tmp/20061128-openmap-wmsserver- 
changes.v2.patch
Files that are not in CVS:
http://www.pvv.ntnu.no/~halset/tmp/20061128-openmap-wmsserver-new- 
files.v2.zip

Regards,
  - Tore.

On Nov 29, 2006, at 16:55 , Tore Halset wrote:

> Hello.
>
> I have taken the latest version from the mail archive and done some  
> changes. I realy hope that this could be submitted to OpenMap CVS.  
> After my fixes, it works with OpenLayers and uDig.
>
> Changes to existing files that are in CVS:
> http://www.pvv.ntnu.no/~halset/tmp/20061128-openmap-wmsserver- 
> changes.patch
> Files that are not in CVS:
> http://www.pvv.ntnu.no/~halset/tmp/20061128-openmap-wmsserver-new- 
> files.zip
>
> The changes I have done:
> * removed MapServer.java as it had compile problems with PropUtils.  
> This is
>    only for use with SimpleHTTPServer and not the servlet
> * removed java 5 stuff like the enhanched for loop and generics
> * use ArrayList instead of Vector and HashMap instead of Hashtable
> * changed servlet init to take info from first request instead of init
> * openmap.props from /WEB-INF/.. (overridable by servlet subclasses)
> * default wms version 1.1.1 for clients that do not specify version nr
> * changed ProjectionFactory.getAvailableProjections to work while  
> the factory is being changed. this happended using the OpenLayers  
> wms client as it sends multiple simultanous requests
>
> To get the wmsservlet to work you need some more things to do:
>  * add the following to openmap.properties
> #openmap.wms.Title=Sample Title
> #openmap.wms.Abstract=Sample Abstract
> #openmap.wms.Keyword=a b c
> #openmap.wms.projmap.Mercator=
> #openmap.wms.projmap.Orthographic=
> #openmap.wms.projmap.CADRG=
> openmap.wms.projmap.LLXY=EPSG:4326
> #openmap.wms.projmap.Gnomonic=
>
> TODO:
> * standard build should include wmsservlet
> * find aliases for the other projections. esp Mercator.
> * include the aliases in Projection interface or some other place  
> in the java code.
>
>  - Tore.
>
> --
> [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"]

--
[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"]


From mail Fri Jan 19 12:38:56 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0JHcuM09529
	for openmap-users-archive; Fri, 19 Jan 2007 12:38:56 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0JHcqP09526
	for <openmap-users@openmap.bbn.com>; Fri, 19 Jan 2007 12:38:52 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H7xdI-0004z1-48; Fri, 19 Jan 2007 12:34:32 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0JHWpd11386
	for openmap-users-outgoing; Fri, 19 Jan 2007 12:32:51 -0500 (EST)
Message-ID: <45B100A5.4010206@io.com>
Date: Fri, 19 Jan 2007 11:32:21 -0600
From: JR Andreassen <janrune@io.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: OpenMap MList <openmap-users@bbn.com>
Subject: [OpenMap Users] Bug or Feature? OMRasterObject, not rendering 'RenderedImage'
References: <005BC18C-300D-4333-92BC-19DAD271F2DA@pvv.ntnu.no> <60BECB62-6563-484C-97B4-A080D0A9133A@pvv.ntnu.no>
In-Reply-To: <60BECB62-6563-484C-97B4-A080D0A9133A@pvv.ntnu.no>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on smtp.prismnet.com
X-Virus-Status: Clean
Old-X-Spam-Score: -1.5 (-)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi..
 I'm trying to use Icon Images with locations.
When I use Images loded from the disk it works fine.
When I  use the same image from BufferedImage it doesn't draw.
I've traced it to 'OMRasterObject.render.java' (line357)

//--------------------------------------------------------------------------------------
            if (g instanceof Graphics2D && bitmap instanceof 
RenderedImage) {
                // Affine translation for placement...
                ((Graphics2D) g).drawRenderedImage((BufferedImage) bitmap,
                        new AffineTransform(1f, 0f, 0f, 1f, point1.x, 
point1.y));
                // Undo the affine translation for future graphics??
                ((Graphics2D) g).translate(-point1.x, -point1.y);
            } else {
                g.drawImage(bitmap, point1.x, point1.y, this);
            }
//--------------------------------------------------------------------------------------
When I load the Image from disk it's a 'sun.awt.image.ToolitImage' and 
it renders just fine.
When It's loaded from memory(image I've drawn)  it's a 
'BufferedImage'/RenderedImage' it does not render.

Any Ideas ??
Any insight on this would be appriciated.
    Thanks
       JR

--
[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"]


From mail Fri Jan 19 15:24:30 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0JKOUd10191
	for openmap-users-archive; Fri, 19 Jan 2007 15:24:30 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0JKOQP10188
	for <openmap-users@openmap.bbn.com>; Fri, 19 Jan 2007 15:24:27 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H80E7-0007D3-42; Fri, 19 Jan 2007 15:20:43 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0JKI9n13130
	for openmap-users-outgoing; Fri, 19 Jan 2007 15:18:09 -0500 (EST)
Message-ID: <45B12766.80409@io.com>
Date: Fri, 19 Jan 2007 14:17:42 -0600
From: JR Andreassen <janrune@io.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414
X-Accept-Language: en-us, en
MIME-Version: 1.0
CC: OpenMap MList <openmap-users@bbn.com>
Subject: Re: [OpenMap Users] Bug or Feature? OMRasterObject, not rendering
 'RenderedImage'
References: <005BC18C-300D-4333-92BC-19DAD271F2DA@pvv.ntnu.no> <60BECB62-6563-484C-97B4-A080D0A9133A@pvv.ntnu.no> <45B100A5.4010206@io.com>
In-Reply-To: <45B100A5.4010206@io.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on smtp.prismnet.com
X-Virus-Status: Clean
Old-X-Spam-Score: -1.3 (-)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

JR Andreassen wrote:

> Hi..
> I'm trying to use Icon Images with locations.
> When I use Images loded from the disk it works fine.
> When I  use the same image from BufferedImage it doesn't draw.
> I've traced it to 'OMRasterObject.render.java' (line357)
>
> //-------------------------------------------------------------------------------------- 
>
>            if (g instanceof Graphics2D && bitmap instanceof 
> RenderedImage) {
>                // Affine translation for placement...
>                ((Graphics2D) g).drawRenderedImage((BufferedImage) bitmap,
>                        new AffineTransform(1f, 0f, 0f, 1f, point1.x, 
> point1.y));
>                // Undo the affine translation for future graphics??
>                ((Graphics2D) g).translate(-point1.x, -point1.y);
>            } else {
>                g.drawImage(bitmap, point1.x, point1.y, this);
>            }
> //-------------------------------------------------------------------------------------- 
>
> When I load the Image from disk it's a 'sun.awt.image.ToolitImage' and 
> it renders just fine.
> When It's loaded from memory(image I've drawn)  it's a 
> 'BufferedImage'/RenderedImage' it does not render.
>
> Any Ideas ??
> Any insight on this would be appriciated.
>    Thanks
>       JR
>
It works when I use:
Toolkit.getDefaultToolkit().createImage(BufferedImage.getSource());

  JR

--
[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"]


From mail Mon Jan 22 12:48:09 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0MHm9g05994
	for openmap-users-archive; Mon, 22 Jan 2007 12:48:09 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0MHm5P05989
	for <openmap-users@openmap.bbn.com>; Mon, 22 Jan 2007 12:48:05 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H93Bl-00036W-5T; Mon, 22 Jan 2007 12:42:37 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0MHbkA00988
	for openmap-users-outgoing; Mon, 22 Jan 2007 12:37:46 -0500 (EST)
Message-ID: <45B4F611.3060703@io.com>
Date: Mon, 22 Jan 2007 11:36:17 -0600
From: JR Andreassen <janrune@io.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: OpenMap MList <openmap-users@bbn.com>
Subject: [OpenMap Users] RFP/Subcontract: Changes to Shape layer
References: <005BC18C-300D-4333-92BC-19DAD271F2DA@pvv.ntnu.no> <60BECB62-6563-484C-97B4-A080D0A9133A@pvv.ntnu.no> <45B100A5.4010206@io.com> <45B12766.80409@io.com>
In-Reply-To: <45B12766.80409@io.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on smtp.prismnet.com
X-Virus-Status: Clean
Old-X-Spam-Score: -1.4 (-)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi...

 I'm looking to see if there is anyone that is intrested in 
subcontracting some work on Openmap.

We need some changes made to the Shape layer.
These changes are designed to make  interaction with Polylines/Roads better.
Specificly:

1) Better control of labeling.
    a) Ability to specify  label Column(s) in properyfile/GUI.
    b) Ability to specify more granular min/max zoomfactor based on 
attribute values.
    c) Decluttering of labels.
    d) Rotating labels to follow Polyline/Road.

2) Improve performance with large dataset.
    a) Change the shape layer to NOT project and draw all the objects 
that are offscreen.

There are other thinkgs to solve as well, but we can work out details at 
some later stage.
  If anyone is intrested, let me know. Also, please give me an 
indication of rates/costs.
   Thanks
       JR

--
[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"]


From mail Tue Jan 23 07:32:08 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0NCW8e01166
	for openmap-users-archive; Tue, 23 Jan 2007 07:32:08 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0NCW5P01163
	for <openmap-users@openmap.bbn.com>; Tue, 23 Jan 2007 07:32:06 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H9KgA-0006ha-5k; Tue, 23 Jan 2007 07:23:10 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0NCLYV04385
	for openmap-users-outgoing; Tue, 23 Jan 2007 07:21:34 -0500 (EST)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C73EE8.18009918"
Subject: [OpenMap Users] AreaShapeLayer question
Date: Tue, 23 Jan 2007 07:14:55 -0500
Message-ID: <2F740099AD5F8E4BA876BC6580B16D4808C538@server2.cra.lan>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: AreaShapeLayer question
Thread-Index: Acc+6Bftzt3Y9mlCRMCSwevjESufcQ==
From: "Chris Hopkins" <chopkins@cra.com>
To: <openmap-users@bbn.com>
Old-X-Spam-Score: -0.4 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO,HTML_30_40,
	HTML_MESSAGE autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multi-part message in MIME format.

------_=_NextPart_001_01C73EE8.18009918
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all -
=20
We are using an AreaShapeLayer to display provinces in Iraq. We =
generated a shapefile using ArcView and, using the generated .dbf file, =
we can get mouseover information about the name of the province, etc by =
setting up the appropriate properties to drive the AreaShapeLayer.
=20
Now, we are trying to do some computation about those areas. =
Specifically, we want to be able to create a new region based on the =
aggregation of several provinces. Using the United States as an example, =
we'd like to be able to outline New England by combining the shapes of =
Maine, New Hampshire, Vermont, Massachusetts and Connecticut. Once we =
have a combined shape, we want to draw that as an outlined polygon.
=20
We are trying to access the OMGeometryList objects that are part of the =
PoliticalArea objects but the lists are empty when we try to do that. =
Perhaps we are trying to access them too early in the pipeline? What we =
have tried to do is extend the AreaShapeLayer class and override =
something like paint() and access the PoliticalArea objects using =
findPoliticalArea of the AreaHandler class.
=20
Is there an easier way to do this (or rather a way that works)? :)
=20
Thanks
Chris
=20

------_=_NextPart_001_01C73EE8.18009918
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<HTML dir=3Dltr><HEAD>=0A=
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dunicode">=0A=
<META content=3D"MSHTML 6.00.2900.2995" name=3DGENERATOR></HEAD>=0A=
<BODY>=0A=
<DIV><FONT face=3DArial color=3D#000000 size=3D2>Hi all -</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV><FONT face=3DArial size=3D2>We are using an AreaShapeLayer to =
display provinces in Iraq. We generated a shapefile using ArcView and, =
using the generated .dbf file, we can get mouseover information about =
the name of the province, etc by setting up the appropriate properties =
to drive the AreaShapeLayer.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Now, we are trying to do some =
computation about those areas. Specifically, we want to be able to =
create a new region based on the aggregation of several provinces. Using =
the United States as an example, we'd like to be able to outline New =
England by combining the shapes of Maine, New Hampshire, Vermont, =
Massachusetts and Connecticut. Once we have a combined shape, we want to =
draw that as an outlined polygon.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV><FONT face=3DArial size=3D2>We are trying to access the =
OMGeometryList objects that are part of the PoliticalArea objects but =
the lists are empty when we try to do that. Perhaps we are trying to =
access them too early in the pipeline? What we have tried to do is =
extend the AreaShapeLayer class and override something like paint() and =
access the PoliticalArea objects using findPoliticalArea of the =
AreaHandler class.</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Is there an easier way to do this (or =
rather a way that works)? :)</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>=0A=
<DIV><FONT face=3DArial size=3D2>Chris</FONT></DIV>=0A=
<DIV>&nbsp;</DIV></BODY></HTML>
------_=_NextPart_001_01C73EE8.18009918--

--
[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"]


From mail Tue Jan 23 10:20:49 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0NFKnh01934
	for openmap-users-archive; Tue, 23 Jan 2007 10:20:49 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0NFKeP01931
	for <openmap-users@openmap.bbn.com>; Tue, 23 Jan 2007 10:20:42 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H9NEJ-0006bU-6K; Tue, 23 Jan 2007 10:06:36 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0NF4cS11715
	for openmap-users-outgoing; Tue, 23 Jan 2007 10:04:38 -0500 (EST)
Date: Tue, 23 Jan 2007 09:41:25 -0500
From: "Lepkowski, Thomas" <thomas.lepkowski@lmco.com>
Subject: [OpenMap Users] GoogleMaps-like layer
To: openmap-users@bbn.com
Message-id: <38FD1127C6D6D645B4B636825D09DAA62B85FEDD@emss09m09.us.lmco.com>
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft Exchange V6.5
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Thread-Topic: GoogleMaps-like layer
Thread-Index: Acc+/I5p3OEw3X3TSg+//Wh3XOwQ2g==
Content-class: urn:content-classes:message
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
X-OriginalArrivalTime: 23 Jan 2007 14:41:19.0918 (UTC) FILETIME=[8BA9A4E0:01C73EFC]
Old-X-Spam-Score: -0.6 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello All,

Please let me know if this sounds crazy.  I'd like to create a layer
that brings image tiles into view as I zoom in (like google Maps or
Google Earth).  The current basic earth layer (Political Boundaries) is
slow when zooming and panning.  I'm thinking a collection of
ortho-rectified png tiles that can be addressed by x,y, and z would
provide pretty fast zooming and panning.

Anybody have any experience with this kind of thing?

Thanks
-Tom

Thomas Lepkowski
Software Engineer
Information Management IRADS
Lockheed Martin IS&S

--
[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"]


From mail Tue Jan 23 11:31:25 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0NGVPr02320
	for openmap-users-archive; Tue, 23 Jan 2007 11:31:25 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0NGVMP02315
	for <openmap-users@openmap.bbn.com>; Tue, 23 Jan 2007 11:31:22 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H9OQr-0002Kz-5R; Tue, 23 Jan 2007 11:23:37 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0NGLxJ15582
	for openmap-users-outgoing; Tue, 23 Jan 2007 11:21:59 -0500 (EST)
Message-Id: <6.1.1.1.2.20070123164509.01c39aa0@pop.cls.fr>
X-Sender: swasserhardt@pop.cls.fr (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 6.1.1.1
Date: Tue, 23 Jan 2007 16:49:17 +0100
To: "Lepkowski, Thomas" <thomas.lepkowski@lmco.com>, openmap-users@bbn.com
From: =?iso-8859-1?Q?St=E9phane?= Wasserhardt <swasserhardt@cls.fr>
Subject: Re: [OpenMap Users] GoogleMaps-like layer
In-Reply-To: <38FD1127C6D6D645B4B636825D09DAA62B85FEDD@emss09m09.us.lmco
 .com>
References: <38FD1127C6D6D645B4B636825D09DAA62B85FEDD@emss09m09.us.lmco.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
Old-X-Spam-Score: -1.2 (-)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l0NGLua15566
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Thomas,

This doesn't sound crazy, but I think openMap wasn't designed to manage 
this kind of display system.
The idea of openMap is to draw a layer completely when its content is 
ready. Avoiding this principle means avoiding openMap imho...

Stephane

Le 15:41 23/01/2007,Lepkowski, Thomas écrit:
>Hello All,
>
>Please let me know if this sounds crazy.  I'd like to create a layer
>that brings image tiles into view as I zoom in (like google Maps or
>Google Earth).  The current basic earth layer (Political Boundaries) is
>slow when zooming and panning.  I'm thinking a collection of
>ortho-rectified png tiles that can be addressed by x,y, and z would
>provide pretty fast zooming and panning.
>
>Anybody have any experience with this kind of thing?
>
>Thanks
>-Tom
>
>Thomas Lepkowski
>Software Engineer
>Information Management IRADS
>Lockheed Martin IS&S
>
>--
>[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"]
>
>
>                            Cliquez sur l'url suivante
>https://www.mailcontrol.com/sr/qPkdvYrF8DTKuon4f9zLKw7r89FT2EnIv!5TWvqXgWdZGD7AiVaqw!3AZF+cI3fWWVlZT4AG51UrqSztWazdXIPYYLI5rbEreG3PlRpdvqVujA1Q3kNDWbnwn5libJM1Eh+Sr+QZRJzkAc09CahFINKSZgPhJQdzlz63Uk5fl87pIjP3eSHGEJNgURdRzmNvbEH3PNLo7wRvl0lVW7daClw1kG9AUq7M 
>
>                     si ce message est ind?sirable (pourriel).

--
[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"]


From mail Tue Jan 23 11:31:25 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0NGVP202323
	for openmap-users-archive; Tue, 23 Jan 2007 11:31:25 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0NGVOP02318
	for <openmap-users@openmap.bbn.com>; Tue, 23 Jan 2007 11:31:24 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H9ORv-0002N7-5z; Tue, 23 Jan 2007 11:24:43 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0NGMgv15619
	for openmap-users-outgoing; Tue, 23 Jan 2007 11:22:42 -0500 (EST)
X-Server-Uuid: 90CB8AE7-3E4E-4A99-82E1-C9C733D7F589
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: [OpenMap Users] GoogleMaps-like layer
Date: Tue, 23 Jan 2007 09:22:01 -0700
Message-ID: <46EAC19F3066C14BB20DF799A649C5F401ED532A@ES23SNLNT.srn.sandia.gov>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [OpenMap Users] GoogleMaps-like layer
Thread-Index: Acc+/I5p3OEw3X3TSg+//Wh3XOwQ2gADd5zQ
References: <38FD1127C6D6D645B4B636825D09DAA62B85FEDD@emss09m09.us.lmco.com>
From: "Bivens, Hugh P" <hpbiven@sandia.gov>
To: "Lepkowski, Thomas" <thomas.lepkowski@lmco.com>, openmap-users@bbn.com
X-TMWD-Spam-Summary: TS=20070123162204; SEV=2.2.0; DFV=B2007012307;
 IFV=2.0.4,4.0-9; AIF=B2007012307; RPD=5.02.0004; ENG=IBF;
 RPDID=7374723D303030312E30413031303230312E34354236333632432E303137442C73733D312C6667733D30;
 CAT=NONE; CON=NONE
X-MMS-Spam-Filter-ID: B2007012307_5.02.0004_4.0-9
X-WSS-ID: 69A8E9A62F83210005-01-01
Content-Type: text/plain;
 charset=us-ascii
Old-X-Spam-Score: -0.6 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l0NGMda15611
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

You might want to look at 

http://www.openmap.org/doc/api/com/bbn/openmap/plugin/CSVTiledImagePlugI
n.html
 


-----Original Message-----
From: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com]
On Behalf Of Lepkowski, Thomas
Sent: Tuesday, January 23, 2007 7:41 AM
To: openmap-users@bbn.com
Subject: [OpenMap Users] GoogleMaps-like layer

Hello All,

Please let me know if this sounds crazy.  I'd like to create a layer
that brings image tiles into view as I zoom in (like google Maps or
Google Earth).  The current basic earth layer (Political Boundaries) is
slow when zooming and panning.  I'm thinking a collection of
ortho-rectified png tiles that can be addressed by x,y, and z would
provide pretty fast zooming and panning.

Anybody have any experience with this kind of thing?

Thanks
-Tom

Thomas Lepkowski
Software Engineer
Information Management IRADS
Lockheed Martin IS&S

--
[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"]


--
[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"]


From mail Tue Jan 23 11:50:01 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0NGo1u02383
	for openmap-users-archive; Tue, 23 Jan 2007 11:50:01 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0NGnvP02380
	for <openmap-users@openmap.bbn.com>; Tue, 23 Jan 2007 11:49:58 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H9OjA-0002qU-5u; Tue, 23 Jan 2007 11:42:32 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0NGfRB16590
	for openmap-users-outgoing; Tue, 23 Jan 2007 11:41:27 -0500 (EST)
Message-ID: <45B63A3A.2020909@navicon.dk>
Date: Tue, 23 Jan 2007 17:39:22 +0100
From: =?ISO-8859-1?Q?=22Carsten_=D8=2E_Madsen=22?= <com@navicon.dk>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.6) Gecko/20060804 Fedora/1.0.4-0.4.2.fc4 SeaMonkey/1.0.4
MIME-Version: 1.0
To: "Lepkowski, Thomas" <thomas.lepkowski@lmco.com>
CC: openmap-users@bbn.com
Subject: Re: [OpenMap Users] GoogleMaps-like layer
References: <38FD1127C6D6D645B4B636825D09DAA62B85FEDD@emss09m09.us.lmco.com>
In-Reply-To: <38FD1127C6D6D645B4B636825D09DAA62B85FEDD@emss09m09.us.lmco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Old-X-Spam-Score: -1.0 (-)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Take a look at JXMapViewer and its TileFactory. There is already a WMS 
tile factory and it also works directly with Googles map thing (I think 
there are legal issues with this however). Combining it with the raster 
reprojection/scaling facilities off GDAL should make it possible to make 
an OM layer without doing to much work.

More on on JXMapViewer here

http://weblogs.java.net/blog/joshy/archive/2006/10/nasa_maps_in_yo.html

regards
/carsten

Lepkowski, Thomas wrote:
> Hello All,
>
> Please let me know if this sounds crazy.  I'd like to create a layer
> that brings image tiles into view as I zoom in (like google Maps or
> Google Earth).  The current basic earth layer (Political Boundaries) is
> slow when zooming and panning.  I'm thinking a collection of
> ortho-rectified png tiles that can be addressed by x,y, and z would
> provide pretty fast zooming and panning.
>
> Anybody have any experience with this kind of thing?
>
> Thanks
> -Tom
>
> Thomas Lepkowski
> Software Engineer
> Information Management IRADS
> Lockheed Martin IS&S
>
> --
> [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"]
>   

--
[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"]


From mail Tue Jan 23 12:33:41 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0NHXfk02530
	for openmap-users-archive; Tue, 23 Jan 2007 12:33:41 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0NHXcP02527
	for <openmap-users@openmap.bbn.com>; Tue, 23 Jan 2007 12:33:38 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H9PNh-0000x6-5o; Tue, 23 Jan 2007 12:24:25 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0NHN1I18545
	for openmap-users-outgoing; Tue, 23 Jan 2007 12:23:01 -0500 (EST)
In-Reply-To: <2F740099AD5F8E4BA876BC6580B16D4808C538@server2.cra.lan>
References: <2F740099AD5F8E4BA876BC6580B16D4808C538@server2.cra.lan>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <9B4A2FC1-FDA9-42DF-ABF0-AC44DF207E51@bbn.com>
Cc: <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] AreaShapeLayer question
Date: Tue, 23 Jan 2007 12:22:54 -0500
To: Chris Hopkins <chopkins@cra.com>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Chris,

You're probably trying to get the geometries before they are loaded.   
You can call getAreas().getGraphics() on the layer to get the  
AreaHandler to load the geometries.  That's usually done when the  
layer is added to the map for the first time.

- Don

On Jan 23, 2007, at 7:14 AM, Chris Hopkins wrote:

> Hi all -
>
> We are using an AreaShapeLayer to display provinces in Iraq. We  
> generated a shapefile using ArcView and, using the generated .dbf  
> file, we can get mouseover information about the name of the  
> province, etc by setting up the appropriate properties to drive the  
> AreaShapeLayer.
>
> Now, we are trying to do some computation about those areas.  
> Specifically, we want to be able to create a new region based on  
> the aggregation of several provinces. Using the United States as an  
> example, we'd like to be able to outline New England by combining  
> the shapes of Maine, New Hampshire, Vermont, Massachusetts and  
> Connecticut. Once we have a combined shape, we want to draw that as  
> an outlined polygon.
>
> We are trying to access the OMGeometryList objects that are part of  
> the PoliticalArea objects but the lists are empty when we try to do  
> that. Perhaps we are trying to access them too early in the  
> pipeline? What we have tried to do is extend the AreaShapeLayer  
> class and override something like paint() and access the  
> PoliticalArea objects using findPoliticalArea of the AreaHandler  
> class.
>
> Is there an easier way to do this (or rather a way that works)? :)
>
> Thanks
> Chris
>



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Tue Jan 23 13:36:06 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0NIa5T02732
	for openmap-users-archive; Tue, 23 Jan 2007 13:36:06 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0NIa2P02728
	for <openmap-users@openmap.bbn.com>; Tue, 23 Jan 2007 13:36:03 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H9QLs-000274-3s; Tue, 23 Jan 2007 13:26:36 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0NIMvq21630
	for openmap-users-outgoing; Tue, 23 Jan 2007 13:22:57 -0500 (EST)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Subject: RE: [OpenMap Users] AreaShapeLayer question
Date: Tue, 23 Jan 2007 13:21:35 -0500
Message-ID: <2F740099AD5F8E4BA876BC6580B16D4837CD08@server2.cra.lan>
In-Reply-To: <9B4A2FC1-FDA9-42DF-ABF0-AC44DF207E51@bbn.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [OpenMap Users] AreaShapeLayer question
Thread-Index: Acc/ExzpK+gXWS3fSBm48HpDi9jeiwABv+UA
From: "Chris Hopkins" <chopkins@cra.com>
To: "Don Dietrick" <dietrick@bbn.com>
Cc: <openmap-users@bbn.com>
Old-X-Spam-Score: -0.7 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l0NIMsa21620
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk


Thanks Don. I now get back an array of OMGraphicList objects, one list
for each defined area. Now, I have two questions:

1. How do I relate a particular OMGraphicList with one of the
PoliticalArea objects that I can access via id (e.g. "IRQ-AAN")?

2. Once I'm able to determine the mapping from id to OMGraphicList,
what's the best way to combine the shapes together to form a new shape
and then only draw the outline of that new shape?

Thanks,
Chris

p.s. Yes, this is the same issue that Karen Harper emailed the openmap
list about. Didn't realize she had done that. :)

-----Original Message-----
From: Don Dietrick [mailto:dietrick@bbn.com] 
Sent: Tuesday, January 23, 2007 12:23 PM
To: Chris Hopkins
Cc: openmap-users@bbn.com
Subject: Re: [OpenMap Users] AreaShapeLayer question

Hi Chris,

You're probably trying to get the geometries before they are loaded.   
You can call getAreas().getGraphics() on the layer to get the  
AreaHandler to load the geometries.  That's usually done when the  
layer is added to the map for the first time.

- Don

On Jan 23, 2007, at 7:14 AM, Chris Hopkins wrote:

> Hi all -
>
> We are using an AreaShapeLayer to display provinces in Iraq. We  
> generated a shapefile using ArcView and, using the generated .dbf  
> file, we can get mouseover information about the name of the  
> province, etc by setting up the appropriate properties to drive the  
> AreaShapeLayer.
>
> Now, we are trying to do some computation about those areas.  
> Specifically, we want to be able to create a new region based on  
> the aggregation of several provinces. Using the United States as an  
> example, we'd like to be able to outline New England by combining  
> the shapes of Maine, New Hampshire, Vermont, Massachusetts and  
> Connecticut. Once we have a combined shape, we want to draw that as  
> an outlined polygon.
>
> We are trying to access the OMGeometryList objects that are part of  
> the PoliticalArea objects but the lists are empty when we try to do  
> that. Perhaps we are trying to access them too early in the  
> pipeline? What we have tried to do is extend the AreaShapeLayer  
> class and override something like paint() and access the  
> PoliticalArea objects using findPoliticalArea of the AreaHandler  
> class.
>
> Is there an easier way to do this (or rather a way that works)? :)
>
> Thanks
> Chris
>



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Tue Jan 23 14:46:07 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0NJk7u02981
	for openmap-users-archive; Tue, 23 Jan 2007 14:46:07 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0NJk4P02978
	for <openmap-users@openmap.bbn.com>; Tue, 23 Jan 2007 14:46:05 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H9RS1-00064B-6L; Tue, 23 Jan 2007 14:37:02 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0NJZEs24569
	for openmap-users-outgoing; Tue, 23 Jan 2007 14:35:14 -0500 (EST)
In-Reply-To: <2F740099AD5F8E4BA876BC6580B16D4837CD08@server2.cra.lan>
References: <2F740099AD5F8E4BA876BC6580B16D4837CD08@server2.cra.lan>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <B88B7AD8-9059-43B5-9D9A-76546D014724@bbn.com>
Cc: <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] AreaShapeLayer question
Date: Tue, 23 Jan 2007 14:35:07 -0500
To: Chris Hopkins <chopkins@cra.com>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Chris,






On Jan 23, 2007, at 1:21 PM, Chris Hopkins wrote:

>
> Thanks Don. I now get back an array of OMGraphicList objects, one list
> for each defined area. Now, I have two questions:
>
> 1. How do I relate a particular OMGraphicList with one of the
> PoliticalArea objects that I can access via id (e.g. "IRQ-AAN")?


You should be able to call:

OMGraphic.getAttribute(ShapeConstants.SHAPE_INDEX_ATTRIBUTE);

which will return an Integer that is the index for that shape.  This  
number will correspond to the row number of attributes in the  
DbfTableModel.


>
> 2. Once I'm able to determine the mapping from id to OMGraphicList,
> what's the best way to combine the shapes together to form a new shape
> and then only draw the outline of that new shape?

There really isn't anything in OpenMap that will do this, but you  
should be able to retrieve the coordinates of the shapes from the  
OMGraphics.  For OMPolys, calling getLatLonArray() will return the  
lat/lon in *radians*.  You can covert them to decimal degrees if you  
like, but you probably want to make a copy of the array first.  With  
the coordinates, you have some options.  You might want to check the  
JTS part of the JUMP project (http://www.jump-project.org/project.php? 
PID=JTS&SID=OVER) to do geometry operations.  You could also iterate  
over the coordinates looking for common points in the opposite  
direction, and create a new coordinate array based on those findings,  
copying the unique coordinates into the new array.

Hope this helps,

- Don




>
> Thanks,
> Chris
>
> p.s. Yes, this is the same issue that Karen Harper emailed the openmap
> list about. Didn't realize she had done that. :)
>
> -----Original Message-----
> From: Don Dietrick [mailto:dietrick@bbn.com]
> Sent: Tuesday, January 23, 2007 12:23 PM
> To: Chris Hopkins
> Cc: openmap-users@bbn.com
> Subject: Re: [OpenMap Users] AreaShapeLayer question
>
> Hi Chris,
>
> You're probably trying to get the geometries before they are loaded.
> You can call getAreas().getGraphics() on the layer to get the
> AreaHandler to load the geometries.  That's usually done when the
> layer is added to the map for the first time.
>
> - Don
>
> On Jan 23, 2007, at 7:14 AM, Chris Hopkins wrote:
>
>> Hi all -
>>
>> We are using an AreaShapeLayer to display provinces in Iraq. We
>> generated a shapefile using ArcView and, using the generated .dbf
>> file, we can get mouseover information about the name of the
>> province, etc by setting up the appropriate properties to drive the
>> AreaShapeLayer.
>>
>> Now, we are trying to do some computation about those areas.
>> Specifically, we want to be able to create a new region based on
>> the aggregation of several provinces. Using the United States as an
>> example, we'd like to be able to outline New England by combining
>> the shapes of Maine, New Hampshire, Vermont, Massachusetts and
>> Connecticut. Once we have a combined shape, we want to draw that as
>> an outlined polygon.
>>
>> We are trying to access the OMGeometryList objects that are part of
>> the PoliticalArea objects but the lists are empty when we try to do
>> that. Perhaps we are trying to access them too early in the
>> pipeline? What we have tried to do is extend the AreaShapeLayer
>> class and override something like paint() and access the
>> PoliticalArea objects using findPoliticalArea of the AreaHandler
>> class.
>>
>> Is there an easier way to do this (or rather a way that works)? :)
>>
>> Thanks
>> Chris
>>
>
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don Dietrick, dietrick@bbn.com
> BBN Technologies, Cambridge, MA
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
> --
> [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"]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Tue Jan 23 17:40:26 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0NMeQn03610
	for openmap-users-archive; Tue, 23 Jan 2007 17:40:26 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0NMeLP03607
	for <openmap-users@openmap.bbn.com>; Tue, 23 Jan 2007 17:40:22 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H9UDG-0000GP-4c; Tue, 23 Jan 2007 17:33:58 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0NMWUn27467
	for openmap-users-outgoing; Tue, 23 Jan 2007 17:32:30 -0500 (EST)
Date: Tue, 23 Jan 2007 15:55:08 -0500
From: "Lepkowski, Thomas" <thomas.lepkowski@lmco.com>
Subject: RE: [OpenMap Users] GoogleMaps-like layer
To: "Bivens, Hugh P" <hpbiven@sandia.gov>, openmap-users@bbn.com
Message-id: <38FD1127C6D6D645B4B636825D09DAA62B860522@emss09m09.us.lmco.com>
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft Exchange V6.5
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Thread-Topic: [OpenMap Users] GoogleMaps-like layer
Thread-Index: Acc+/I5p3OEw3X3TSg+//Wh3XOwQ2gADd5zQAAlofsA=
Content-class: urn:content-classes:message
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
References: <38FD1127C6D6D645B4B636825D09DAA62B85FEDD@emss09m09.us.lmco.com>
 <46EAC19F3066C14BB20DF799A649C5F401ED532A@ES23SNLNT.srn.sandia.gov>
X-OriginalArrivalTime: 23 Jan 2007 20:55:31.0755 (UTC) FILETIME=[D20017B0:01C73F30]
Old-X-Spam-Score: -0.6 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk


Looks pretty close, but no altitude (z) is required in the data for
CSVTiledImagePlugIn.  That would put the icing on the cake.  We'd need
at least 3 images to accommodate min zoom to max zoom, without too much
pixilation.

Thanks for the pointer.

-----Original Message-----
From: Bivens, Hugh P [mailto:hpbiven@sandia.gov] 
Sent: Tuesday, January 23, 2007 11:22 AM
To: Lepkowski, Thomas; openmap-users@bbn.com
Subject: RE: [OpenMap Users] GoogleMaps-like layer

You might want to look at 

http://www.openmap.org/doc/api/com/bbn/openmap/plugin/CSVTiledImagePlugI
n.html
 


-----Original Message-----
From: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com]
On Behalf Of Lepkowski, Thomas
Sent: Tuesday, January 23, 2007 7:41 AM
To: openmap-users@bbn.com
Subject: [OpenMap Users] GoogleMaps-like layer

Hello All,

Please let me know if this sounds crazy.  I'd like to create a layer
that brings image tiles into view as I zoom in (like google Maps or
Google Earth).  The current basic earth layer (Political Boundaries) is
slow when zooming and panning.  I'm thinking a collection of
ortho-rectified png tiles that can be addressed by x,y, and z would
provide pretty fast zooming and panning.

Anybody have any experience with this kind of thing?

Thanks
-Tom

Thomas Lepkowski
Software Engineer
Information Management IRADS
Lockheed Martin IS&S

--
[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"]


--
[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"]


From mail Wed Jan 24 06:17:09 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0OBH9x06800
	for openmap-users-archive; Wed, 24 Jan 2007 06:17:09 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0OBH5P06797
	for <openmap-users@openmap.bbn.com>; Wed, 24 Jan 2007 06:17:06 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H9fzY-00014y-5G; Wed, 24 Jan 2007 06:08:36 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0OB6je05426
	for openmap-users-outgoing; Wed, 24 Jan 2007 06:06:45 -0500 (EST)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Subject: RE: [OpenMap Users] AreaShapeLayer question
Date: Wed, 24 Jan 2007 06:05:28 -0500
Message-ID: <2F740099AD5F8E4BA876BC6580B16D4837CDAD@server2.cra.lan>
In-Reply-To: <B88B7AD8-9059-43B5-9D9A-76546D014724@bbn.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [OpenMap Users] AreaShapeLayer question
Thread-Index: Acc/JZVfCpBhA7RyQv+723t9LslaUgAgahnw
From: "Chris Hopkins" <chopkins@cra.com>
To: "Don Dietrick" <dietrick@bbn.com>
Cc: <openmap-users@bbn.com>
Old-X-Spam-Score: -0.6 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l0OB6ga05418
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk


Thanks a lot Don! In case anyone was curious, this is the code I wrote
that performs the aggregation of areas. I wrote it using the
java.awt.geom package classes and, for now, have stuck it into my own
extension of the BasicMapPanel. I also realized that the OMPoly object's
have the Integer index set as their appObject and you can look up the
name of the OMPoly based on that Integer so that worked out well. In any
case, it's working the way we expect now.

  - Chris

------------------------------------------
package com.cra.openmap.gui;

import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.geom.Area;
import java.awt.geom.GeneralPath;
import java.awt.geom.PathIterator;
import java.util.ArrayList;

import com.bbn.openmap.gui.BasicMapPanel;
import com.bbn.openmap.layer.shape.areas.AreaHandler;
import com.bbn.openmap.omGraphics.OMGraphic;
import com.bbn.openmap.omGraphics.OMGraphicList;
import com.bbn.openmap.omGraphics.OMPoly;
import com.cra.openmap.layer.MyAreaShapeLayer;

public class OpenMapPanel extends BasicMapPanel
{
  private AreaHandler areaHandler;

  private MyAreaShapeLayer areaShapeLayer;

  private final BasicStroke REGION_STROKE = new BasicStroke(2.0f);
  
  public OpenMapPanel()
  {
    super(null);
  }

  @Override
  public void findAndInit(Object arg0)
  {
    super.findAndInit(arg0);

    if (arg0 instanceof MyAreaShapeLayer)
    {
      System.err.println("Got the area handler!!!");
      this.areaShapeLayer = (MyAreaShapeLayer)arg0;
      this.areaHandler = (AreaHandler)this.areaShapeLayer.getAreas();

      this.areaShapeLayer.addRegion(createRegion(Color.blue.brighter(),
"Al Anbar", "Karbala'",
          "Baghdad", "Babil", "An Najaf"));
      this.areaShapeLayer.addRegion(createRegion(Color.green.brighter(),
"Ninawa", "Dahuk",
          "Arbil", "As Sulaymaniyah", "At Ta'min", "Salah ad Din",
"Diyala"));
      this.areaShapeLayer.addRegion(createRegion(Color.red.brighter(),
"Wasit", "Maysan",
          "Al Qadisiyah", "Dhi Qar", "Al Basrah", "Al Muthanna"));

      this.areaShapeLayer.repaint();
    }
  }

  private OMPoly createRegion(Color polyColor, String... strings)
  {
    OMPoly regionPoly = null;

    if (strings != null && strings.length > 0)
    {
      // Create an AWT Area object from the first political area
      Area area = createAwtAreaFromPoliticalArea(strings[0]);

      if (area != null)
      {
        for (int i = 1; i < strings.length; i++)
        {
          Area nextArea = createAwtAreaFromPoliticalArea(strings[i]);
          if (nextArea != null)
          {
            area.add(nextArea);
          }
        }
      }

      regionPoly = createOMPolyFromArea(area, polyColor);
    }

    return regionPoly;
  }

  private OMPoly createOMPolyFromArea(Area area, Color polyColor)
  {
    ArrayList<Float> newpoints = new ArrayList<Float>();
    PathIterator pi = area.getPathIterator(null);
    float[] fpts = new float[6];
    while (!pi.isDone())
    {
      int type = pi.currentSegment(fpts);
      if (type == PathIterator.SEG_MOVETO || type ==
PathIterator.SEG_LINETO)
      {
        newpoints.add(fpts[0]);
        newpoints.add(fpts[1]);
      }

      pi.next();
    }

    float[] newfpts = new float[newpoints.size()];
    for (int i = 0; i < newpoints.size(); i++)
    {
      newfpts[i] = newpoints.get(i);
    }

    OMPoly newpoly = new OMPoly(newfpts, OMGraphic.RADIANS,
OMGraphic.LINETYPE_STRAIGHT);
    newpoly.setLinePaint(polyColor);
    newpoly.setStroke(REGION_STROKE);

    return newpoly;
  }

  private Area createAwtAreaFromPoliticalArea(String string)
  {
    Area newArea = null;
    OMPoly omp = getOMPolyForArea(string);
    if (omp != null)
    {
      newArea = new Area(createGeneralPath(omp.getLatLonArray()));
    }

    return newArea;
  }

  private GeneralPath createGeneralPath(float[] pts)
  {
    GeneralPath gp = new GeneralPath();
    gp.moveTo(pts[0], pts[1]);

    for (int i = 2; i < pts.length; i += 2)
    {
      gp.lineTo(pts[i], pts[i + 1]);
    }

    gp.closePath();

    return gp;
  }

  private OMPoly getOMPolyForArea(String string)
  {
    OMGraphicList omgl = this.areaHandler.getGraphics();
    for (int i = 0; i < omgl.size(); i++)
    {
      OMGraphic omg = omgl.getOMGraphicAt(i);
      if (omg instanceof OMGraphicList)
      {
        OMGraphicList omgl2 = (OMGraphicList)omg;
        for (int j = 0; j < omgl2.size(); j++)
        {
          OMGraphic omg2 = omgl2.getOMGraphicAt(j);
          if (omg2 instanceof OMPoly)
          {
            String name =
this.areaHandler.getName((Integer)omg2.getAppObject());
            if (name != null && name.equals(string))
            {
              return (OMPoly)omg2;
            }
          }
        }
      }
    }

    return null;
  }
}

--
[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"]


From mail Wed Jan 24 16:50:55 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0OLot214781
	for openmap-users-archive; Wed, 24 Jan 2007 16:50:55 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0OLorP14778
	for <openmap-users@openmap.bbn.com>; Wed, 24 Jan 2007 16:50:53 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1H9pvk-0001q1-3z; Wed, 24 Jan 2007 16:45:20 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0OLeHi13789
	for openmap-users-outgoing; Wed, 24 Jan 2007 16:40:17 -0500 (EST)
Mime-Version: 1.0 (Apple Message framework v752.3)
In-Reply-To: <60BECB62-6563-484C-97B4-A080D0A9133A@pvv.ntnu.no>
References: <005BC18C-300D-4333-92BC-19DAD271F2DA@pvv.ntnu.no> <60BECB62-6563-484C-97B4-A080D0A9133A@pvv.ntnu.no>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <12292E4E-32DB-4541-9835-3FC16BC79169@pvv.ntnu.no>
Content-Transfer-Encoding: 7bit
From: Tore Halset <halset@pvv.ntnu.no>
Subject: Re: [OpenMap Users] WMS server - updated to current cvs++
Date: Wed, 24 Jan 2007 22:39:58 +0100
To: openmap questions <openmap-users@bbn.com>
X-Mailer: Apple Mail (2.752.3)
Old-X-Spam-Score: -0.6 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello.

Here you have an updated version of the WMS patch. It revert a change  
from Vector to List in ProjectionFactory as at least  
com.bbn.openmap.gui.menu.ProjectionMenu need it to be a Vector.  
Thanks Ru for pointing out the problem.

Changes to existing files that are in CVS:
http://www.pvv.ntnu.no/~halset/tmp/20070124-openmap-wmsserver- 
changes.patch
Files that are not in CVS:
http://www.pvv.ntnu.no/~halset/tmp/20070124-openmap-wmsserver-new- 
files.zip

I have also tested this with ossimPlanet and it works well. Very cool!
http://www.ossim.org/OSSIM/ossimPlanet%20Overview.html

  - Tore.

On Jan 19, 2007, at 12:59, Tore Halset wrote:

> Hello.
>
> Here is a new version of the WMS server patch. It is still not  
> complete, but works well with OpenLayers and uDig. Please let me  
> know of anything that must be changed for this patch to be accepted.
>
> Changes since the prev version:
> * Projections defined in openmap.properties are used in  
> checkProjectionType as well. projections were hardcoded here.
> * Case insensitive wms request parameter names. Needed by TileCache.
> * Transparent images.
>
> In addition, I have the following in openmap.properties. EPSG:4326  
> is safe, but I am not completly sure that I have found the correct  
> code from Mercator.
> ###
> # wms config
> # separate aliases with space
> # http://wiki.osgeo.org/index.php/WMS_Tiling_Client_Recommendation
> # http://www.epsg.org/
> # http://remotesensing.org/geotiff/proj_list/
> # TODO: AUTO2:42001 projection units m or lat/lon degrees?
> openmap.wms.projmap.Mercator=AUTO2:42001 EPSG:54004
> openmap.wms.projmap.LLXY=EPSG:4326
> openmap.wms.projmap.Orthographic=AUTO2:42003
> ###
>
> Changes to existing files that are in CVS:
> http://www.pvv.ntnu.no/~halset/tmp/20061128-openmap-wmsserver- 
> changes.v2.patch
> Files that are not in CVS:
> http://www.pvv.ntnu.no/~halset/tmp/20061128-openmap-wmsserver-new- 
> files.v2.zip
>
> Regards,
>  - Tore.
>
> On Nov 29, 2006, at 16:55 , Tore Halset wrote:
>
>> Hello.
>>
>> I have taken the latest version from the mail archive and done  
>> some changes. I realy hope that this could be submitted to OpenMap  
>> CVS. After my fixes, it works with OpenLayers and uDig.
>>
>> Changes to existing files that are in CVS:
>> http://www.pvv.ntnu.no/~halset/tmp/20061128-openmap-wmsserver- 
>> changes.patch
>> Files that are not in CVS:
>> http://www.pvv.ntnu.no/~halset/tmp/20061128-openmap-wmsserver-new- 
>> files.zip
>>
>> The changes I have done:
>> * removed MapServer.java as it had compile problems with  
>> PropUtils. This is
>>    only for use with SimpleHTTPServer and not the servlet
>> * removed java 5 stuff like the enhanched for loop and generics
>> * use ArrayList instead of Vector and HashMap instead of Hashtable
>> * changed servlet init to take info from first request instead of  
>> init
>> * openmap.props from /WEB-INF/.. (overridable by servlet subclasses)
>> * default wms version 1.1.1 for clients that do not specify  
>> version nr
>> * changed ProjectionFactory.getAvailableProjections to work while  
>> the factory is being changed. this happended using the OpenLayers  
>> wms client as it sends multiple simultanous requests
>>
>> To get the wmsservlet to work you need some more things to do:
>>  * add the following to openmap.properties
>> #openmap.wms.Title=Sample Title
>> #openmap.wms.Abstract=Sample Abstract
>> #openmap.wms.Keyword=a b c
>> #openmap.wms.projmap.Mercator=
>> #openmap.wms.projmap.Orthographic=
>> #openmap.wms.projmap.CADRG=
>> openmap.wms.projmap.LLXY=EPSG:4326
>> #openmap.wms.projmap.Gnomonic=
>>
>> TODO:
>> * standard build should include wmsservlet
>> * find aliases for the other projections. esp Mercator.
>> * include the aliases in Projection interface or some other place  
>> in the java code.
>>
>>  - Tore.
>>
>> --
>> [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"]
>
> --
> [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"]

--
[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"]


From mail Thu Jan 25 05:01:50 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0PA1ow17860
	for openmap-users-archive; Thu, 25 Jan 2007 05:01:50 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0PA1mP17857
	for <openmap-users@openmap.bbn.com>; Thu, 25 Jan 2007 05:01:48 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HA1MT-0005qS-42; Thu, 25 Jan 2007 04:57:41 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0P9tiu22159
	for openmap-users-outgoing; Thu, 25 Jan 2007 04:55:44 -0500 (EST)
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:mime-version:content-type;
        b=qraG6pVd6I6oDdO1Q+RuyrI197R5QLC3JGqCtzLblSVta32SXpNcmtI8BlZe/pxSCfqEywRYH4jnu+PtRApsYlarfBrr2tysl19Y76JM1QyLQx//UH9yMxaaSKvI8dT4Ja86R1tMZn7kZ1dpsbmR7miinNlQk9WHv0aFJBZpYnA=
Message-ID: <940971c30701250154r166d0ed4mfc34622eb7e08afb@mail.gmail.com>
Date: Thu, 25 Jan 2007 10:54:56 +0100
From: "Erling Andreas Fagerlie" <erlingfagerlie@gmail.com>
To: openmap-users@bbn.com
Subject: [OpenMap Users] Projection problem
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_15549_7610679.1169718896762"
Old-X-Spam-Score: -0.8 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=HTML_50_60,HTML_MESSAGE,
	RCVD_BY_IP autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

------=_Part_15549_7610679.1169718896762
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi,
I've implemented a chart-plugin to ms-iis. This module is listening to
requests from users, and sends a png back to the user based on these
parameters;
LatLon-center, scale, image width and image height. The chart api is based
on Mercator-projection.

I have tried to implement this in openmap as a nearly-wms-service. I've made
a plugin like this;


public class CMAPPlugIn extends WebImagePlugIn implements
ImageServerConstants{

    /** Creates a new instance of CMAPPlugIn */
    public CMAPPlugIn() {

    }

    public String createQueryString(Projection p) {

        LatLonPoint center = p.getCenter();
        float center_lat = center.getLatitude();
        float center_lon = center.getLongitude();

        float scale = p.getScale();
        int height = p.getHeight();
        int width = p.getWidth();


        String url = "
http://www.myserver.com/init.dll?Render?CENTER_LAT="+center_lat+"&CENTER_LON="+center_lon+"&SCALE="+scale+"&IMG_WIDTH="+width+"&IMG_HEIGHT="+height+"&IMG_FORMAT=1
";
        return url;
    }

    public String getServerName() {
        return "name";
    }

}



this I add to a pluginlayer.

My problem is that it works almost fine, but there seems to be som problem
with the scale factor. Can anyone please help me with this?

-Erling

------=_Part_15549_7610679.1169718896762
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>Hi,</div>
<div>I&#39;ve implemented a chart-plugin to ms-iis. This module is listening to requests from users, and sends a png back to the user based on these parameters;</div>
<div>LatLon-center, scale, image width and image height. The chart api is based on Mercator-projection.</div>
<div>&nbsp;</div>
<div>I have tried to implement this in openmap as a nearly-wms-service. I&#39;ve made a plugin like this;</div>
<div>&nbsp;</div>
<div>
<p>public class CMAPPlugIn extends WebImagePlugIn implements ImageServerConstants{<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; /** Creates a new instance of CMAPPlugIn */<br>&nbsp;&nbsp;&nbsp; public CMAPPlugIn() {<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp; public String createQueryString(Projection p) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LatLonPoint center = p.getCenter();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float center_lat = center.getLatitude();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float center_lon = center.getLongitude();<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; float scale = p.getScale();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int height = p.getHeight();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; int width = p.getWidth();</p>
<p><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; String url = &quot;<a href="http://www.myserver.com/init.dll?Render?CENTER_LAT=&quot;+center_lat+&quot;&amp;CENTER_LON=&quot;+center_lon+&quot;&amp;SCALE=&quot;+scale+&quot;&amp;IMG_WIDTH=&quot;+width+&quot;&amp;IMG_HEIGHT=&quot;+height+&quot;&amp;IMG_FORMAT=1">
http://www.myserver.com/init.dll?Render?CENTER_LAT=&quot;+center_lat+&quot;&amp;CENTER_LON=&quot;+center_lon+&quot;&amp;SCALE=&quot;+scale+&quot;&amp;IMG_WIDTH=&quot;+width+&quot;&amp;IMG_HEIGHT=&quot;+height+&quot;&amp;IMG_FORMAT=1
</a>&quot;;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return url;<br>&nbsp;&nbsp;&nbsp; }</p>
<p>&nbsp;&nbsp;&nbsp; public String getServerName() {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return &quot;name&quot;;<br>&nbsp;&nbsp;&nbsp; }<br>&nbsp;&nbsp;&nbsp; <br>}</p>
<p>&nbsp;</p>
<p>this I add to a pluginlayer.</p>
<p>My problem is that it works almost fine, but there seems to be som problem with the scale factor. Can anyone please help me with this?</p>
<p>-Erling</p></div>

------=_Part_15549_7610679.1169718896762--

--
[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"]


From mail Thu Jan 25 09:31:20 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0PEVKO18900
	for openmap-users-archive; Thu, 25 Jan 2007 09:31:20 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0PEVGP18897
	for <openmap-users@openmap.bbn.com>; Thu, 25 Jan 2007 09:31:17 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HA5YY-00022V-5v; Thu, 25 Jan 2007 09:26:26 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0PEP2j24952
	for openmap-users-outgoing; Thu, 25 Jan 2007 09:25:02 -0500 (EST)
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:mime-version:content-type;
        b=dgW+Op2tMjaPJGZoM2+Zr+7taLBgtYu9OUOsXOLs3uB9DlF/pYs9t3+QnIgU/5cO3ECKDoULGllu1xei4yZGrR6kF0JgJJMsZFKn6jcGS+k4f4m3tmdCe4mApf+NS4gD+ULIPsJ/IbMDvnIqN3fLNEwjOcqFIPkmAbod+kLt8a8=
Message-ID: <940971c30701250624k43896e2fg54081ba484bdcc86@mail.gmail.com>
Date: Thu, 25 Jan 2007 15:24:12 +0100
From: "Erling Andreas Fagerlie" <erlingfagerlie@gmail.com>
To: openmap-users@bbn.com
Subject: Re: [OpenMap Users] Projection problem
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_17841_29706658.1169735052016"
Old-X-Spam-Score: -0.4 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.3 required=2.5 tests=HTML_10_20,HTML_MESSAGE,
	RCVD_BY_IP autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

------=_Part_17841_29706658.1169735052016
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Thanx, I've tried that, but it didn't work. The problem is that the
chartserver uses Transverse Mercator instead of Mercator. Anyone implemented
this projection?

------=_Part_17841_29706658.1169735052016
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>Thanx, I&#39;ve tried that, but it didn&#39;t work. The problem is that the chartserver uses Transverse Mercator instead of Mercator. Anyone implemented this projection?</div>

------=_Part_17841_29706658.1169735052016--

--
[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"]


From mail Thu Jan 25 17:19:17 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0PMJGB20780
	for openmap-users-archive; Thu, 25 Jan 2007 17:19:17 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0PMJDP20777
	for <openmap-users@openmap.bbn.com>; Thu, 25 Jan 2007 17:19:13 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HACsD-0000xy-4T; Thu, 25 Jan 2007 17:15:13 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0PMCZs04750
	for openmap-users-outgoing; Thu, 25 Jan 2007 17:12:35 -0500 (EST)
In-Reply-To: <12292E4E-32DB-4541-9835-3FC16BC79169@pvv.ntnu.no>
References: <005BC18C-300D-4333-92BC-19DAD271F2DA@pvv.ntnu.no> <60BECB62-6563-484C-97B4-A080D0A9133A@pvv.ntnu.no> <12292E4E-32DB-4541-9835-3FC16BC79169@pvv.ntnu.no>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <DC12905A-EEAE-4166-A7D2-7E25033CE772@bbn.com>
Cc: openmap questions <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] WMS server - updated to current cvs++
Date: Thu, 25 Jan 2007 17:12:28 -0500
To: Tore Halset <halset@pvv.ntnu.no>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Tore,

I've incorporated these updates into the code base.  Sorry for the  
delay in getting this done, and thanks for your persistence and updates!

- Don

On Jan 24, 2007, at 4:39 PM, Tore Halset wrote:

> Hello.
>
> Here you have an updated version of the WMS patch. It revert a  
> change from Vector to List in ProjectionFactory as at least  
> com.bbn.openmap.gui.menu.ProjectionMenu need it to be a Vector.  
> Thanks Ru for pointing out the problem.
>
> Changes to existing files that are in CVS:
> http://www.pvv.ntnu.no/~halset/tmp/20070124-openmap-wmsserver- 
> changes.patch
> Files that are not in CVS:
> http://www.pvv.ntnu.no/~halset/tmp/20070124-openmap-wmsserver-new- 
> files.zip
>
> I have also tested this with ossimPlanet and it works well. Very cool!
> http://www.ossim.org/OSSIM/ossimPlanet%20Overview.html
>
>  - Tore.
>
> On Jan 19, 2007, at 12:59, Tore Halset wrote:
>
>> Hello.
>>
>> Here is a new version of the WMS server patch. It is still not  
>> complete, but works well with OpenLayers and uDig. Please let me  
>> know of anything that must be changed for this patch to be accepted.
>>
>> Changes since the prev version:
>> * Projections defined in openmap.properties are used in  
>> checkProjectionType as well. projections were hardcoded here.
>> * Case insensitive wms request parameter names. Needed by TileCache.
>> * Transparent images.
>>
>> In addition, I have the following in openmap.properties. EPSG:4326  
>> is safe, but I am not completly sure that I have found the correct  
>> code from Mercator.
>> ###
>> # wms config
>> # separate aliases with space
>> # http://wiki.osgeo.org/index.php/WMS_Tiling_Client_Recommendation
>> # http://www.epsg.org/
>> # http://remotesensing.org/geotiff/proj_list/
>> # TODO: AUTO2:42001 projection units m or lat/lon degrees?
>> openmap.wms.projmap.Mercator=AUTO2:42001 EPSG:54004
>> openmap.wms.projmap.LLXY=EPSG:4326
>> openmap.wms.projmap.Orthographic=AUTO2:42003
>> ###
>>
>> Changes to existing files that are in CVS:
>> http://www.pvv.ntnu.no/~halset/tmp/20061128-openmap-wmsserver- 
>> changes.v2.patch
>> Files that are not in CVS:
>> http://www.pvv.ntnu.no/~halset/tmp/20061128-openmap-wmsserver-new- 
>> files.v2.zip
>>
>> Regards,
>>  - Tore.
>>
>> On Nov 29, 2006, at 16:55 , Tore Halset wrote:
>>
>>> Hello.
>>>
>>> I have taken the latest version from the mail archive and done  
>>> some changes. I realy hope that this could be submitted to  
>>> OpenMap CVS. After my fixes, it works with OpenLayers and uDig.
>>>
>>> Changes to existing files that are in CVS:
>>> http://www.pvv.ntnu.no/~halset/tmp/20061128-openmap-wmsserver- 
>>> changes.patch
>>> Files that are not in CVS:
>>> http://www.pvv.ntnu.no/~halset/tmp/20061128-openmap-wmsserver-new- 
>>> files.zip
>>>
>>> The changes I have done:
>>> * removed MapServer.java as it had compile problems with  
>>> PropUtils. This is
>>>    only for use with SimpleHTTPServer and not the servlet
>>> * removed java 5 stuff like the enhanched for loop and generics
>>> * use ArrayList instead of Vector and HashMap instead of Hashtable
>>> * changed servlet init to take info from first request instead of  
>>> init
>>> * openmap.props from /WEB-INF/.. (overridable by servlet subclasses)
>>> * default wms version 1.1.1 for clients that do not specify  
>>> version nr
>>> * changed ProjectionFactory.getAvailableProjections to work while  
>>> the factory is being changed. this happended using the OpenLayers  
>>> wms client as it sends multiple simultanous requests
>>>
>>> To get the wmsservlet to work you need some more things to do:
>>>  * add the following to openmap.properties
>>> #openmap.wms.Title=Sample Title
>>> #openmap.wms.Abstract=Sample Abstract
>>> #openmap.wms.Keyword=a b c
>>> #openmap.wms.projmap.Mercator=
>>> #openmap.wms.projmap.Orthographic=
>>> #openmap.wms.projmap.CADRG=
>>> openmap.wms.projmap.LLXY=EPSG:4326
>>> #openmap.wms.projmap.Gnomonic=
>>>
>>> TODO:
>>> * standard build should include wmsservlet
>>> * find aliases for the other projections. esp Mercator.
>>> * include the aliases in Projection interface or some other place  
>>> in the java code.
>>>
>>>  - Tore.
>>>
>>> --
>>> [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"]
>>
>> --
>> [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"]
>
> --
> [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"]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Fri Jan 26 05:56:21 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0QAuL624083
	for openmap-users-archive; Fri, 26 Jan 2007 05:56:21 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0QAuGP24080
	for <openmap-users@openmap.bbn.com>; Fri, 26 Jan 2007 05:56:16 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HAOhR-0007Ka-4r; Fri, 26 Jan 2007 05:52:53 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0Q9GPh11893
	for openmap-users-outgoing; Fri, 26 Jan 2007 04:16:25 -0500 (EST)
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:mime-version:content-type;
        b=clZYtUOFCwYQqNSdA3NPuRLLgvjZFuIBFI32917V76GtpbHqXjacmdgylblfYfWP/7NuPe62qy1iNCPetsTBh3pFuLmxVJilRUZNpxeKlix3IwmVsjY/6pYS8LLosc8jnFpr9DVnjv5wwnhDcxZ3GUJ7k4Rj1Gs96U1l8fnDPMU=
Message-ID: <940971c30701260114n726bf93ak1c1cda3bf4ab83d7@mail.gmail.com>
Date: Fri, 26 Jan 2007 10:14:31 +0100
From: "Erling Andreas Fagerlie" <erlingfagerlie@gmail.com>
To: openmap-users@bbn.com
Subject: Re: [OpenMap Users] Projection problem
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_28560_19931253.1169802871801"
Old-X-Spam-Score: -0.2 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.2 required=2.5 tests=HTML_00_10,HTML_MESSAGE,
	RCVD_BY_IP autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

------=_Part_28560_19931253.1169802871801
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi again,
The projection of my chart-api is indeed Mercator, not TMercator as I
thought. The center point of the map seems to be right, but when you place
icons around the map, it seems to be dislocated when you reach the corners.
When you zoom out it gets worse. Any ideas?

------=_Part_28560_19931253.1169802871801
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>Hi again,</div>
<div>The projection of my chart-api is indeed Mercator, not TMercator as I thought. The center point of the map seems to be right, but when you place icons around the map, it seems to be dislocated when you reach the corners. When you zoom out it gets worse. Any ideas?
</div>

------=_Part_28560_19931253.1169802871801--

--
[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"]


From mail Fri Jan 26 10:44:44 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0QFiiQ25425
	for openmap-users-archive; Fri, 26 Jan 2007 10:44:44 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0QFibP25422
	for <openmap-users@openmap.bbn.com>; Fri, 26 Jan 2007 10:44:38 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HATB3-00010G-4B; Fri, 26 Jan 2007 10:39:45 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0QFboB17568
	for openmap-users-outgoing; Fri, 26 Jan 2007 10:37:50 -0500 (EST)
In-Reply-To: <940971c30701260114n726bf93ak1c1cda3bf4ab83d7@mail.gmail.com>
References: <940971c30701260114n726bf93ak1c1cda3bf4ab83d7@mail.gmail.com>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <F00E4C04-2A4D-4E68-B7EC-CA53ECBBD304@bbn.com>
Cc: openmap questions <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] Projection problem
Date: Fri, 26 Jan 2007 10:37:44 -0500
To: Erling Andreas Fagerlie <erlingfagerlie@gmail.com>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Erling,

I does sound like the scale factor is doesn't match, which isn't that  
surprising because scale is kind of an arbitrary factor.  Is it  
possible to ask the server for an area based on a bounding box?  If  
you can get more information about the corner coordinates of the area  
returned from the server, you can use the ProjMath class to figure  
out what the 'openmap' scale of the image is, and either come up with  
a multiplier to use for future requests or use a OMScalingRaster to  
display the image based on the corner points.

Hope this helps,

Don


On Jan 26, 2007, at 4:14 AM, Erling Andreas Fagerlie wrote:

> Hi again,
> The projection of my chart-api is indeed Mercator, not TMercator as  
> I thought. The center point of the map seems to be right, but when  
> you place icons around the map, it seems to be dislocated when you  
> reach the corners. When you zoom out it gets worse. Any ideas?



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Fri Jan 26 10:49:03 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0QFn3e25458
	for openmap-users-archive; Fri, 26 Jan 2007 10:49:03 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0QFmxP25455
	for <openmap-users@openmap.bbn.com>; Fri, 26 Jan 2007 10:48:59 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HATHS-0001AQ-6D; Fri, 26 Jan 2007 10:46:22 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0QFjWY17803
	for openmap-users-outgoing; Fri, 26 Jan 2007 10:45:32 -0500 (EST)
In-Reply-To: <2F740099AD5F8E4BA876BC6580B16D4837CDAD@server2.cra.lan>
References: <2F740099AD5F8E4BA876BC6580B16D4837CDAD@server2.cra.lan>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <BCCD2078-DD52-47A8-BE45-EDA1641FA284@bbn.com>
Cc: <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] AreaShapeLayer question
Date: Fri, 26 Jan 2007 10:45:26 -0500
To: Chris Hopkins <chopkins@cra.com>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Chris,

Thanks for the update and for showing the code that worked out for you.

I'm moving away from using the AppObject in OMGraphics directly, and  
I'm using the putAttribute()/getAttribute() methods instead, so you  
might expect the OMPoly's appObject to be a hashtable in future  
releases.  If the index attribute isn't available from the  
getAttribute(SHAPE_INDEX_ATTRIBUTE) on the OMPolys, it will be for  
the next release.

Regards,

Don


On Jan 24, 2007, at 6:05 AM, Chris Hopkins wrote:

>
> Thanks a lot Don! In case anyone was curious, this is the code I wrote
> that performs the aggregation of areas. I wrote it using the
> java.awt.geom package classes and, for now, have stuck it into my own
> extension of the BasicMapPanel. I also realized that the OMPoly  
> object's
> have the Integer index set as their appObject and you can look up the
> name of the OMPoly based on that Integer so that worked out well.  
> In any
> case, it's working the way we expect now.
>
>   - Chris
>
> ------------------------------------------
> package com.cra.openmap.gui;
>
> import java.awt.BasicStroke;
> import java.awt.Color;
> import java.awt.geom.Area;
> import java.awt.geom.GeneralPath;
> import java.awt.geom.PathIterator;
> import java.util.ArrayList;
>
> import com.bbn.openmap.gui.BasicMapPanel;
> import com.bbn.openmap.layer.shape.areas.AreaHandler;
> import com.bbn.openmap.omGraphics.OMGraphic;
> import com.bbn.openmap.omGraphics.OMGraphicList;
> import com.bbn.openmap.omGraphics.OMPoly;
> import com.cra.openmap.layer.MyAreaShapeLayer;
>
> public class OpenMapPanel extends BasicMapPanel
> {
>   private AreaHandler areaHandler;
>
>   private MyAreaShapeLayer areaShapeLayer;
>
>   private final BasicStroke REGION_STROKE = new BasicStroke(2.0f);
>
>   public OpenMapPanel()
>   {
>     super(null);
>   }
>
>   @Override
>   public void findAndInit(Object arg0)
>   {
>     super.findAndInit(arg0);
>
>     if (arg0 instanceof MyAreaShapeLayer)
>     {
>       System.err.println("Got the area handler!!!");
>       this.areaShapeLayer = (MyAreaShapeLayer)arg0;
>       this.areaHandler = (AreaHandler)this.areaShapeLayer.getAreas();
>
>       this.areaShapeLayer.addRegion(createRegion(Color.blue.brighter 
> (),
> "Al Anbar", "Karbala'",
>           "Baghdad", "Babil", "An Najaf"));
>       this.areaShapeLayer.addRegion(createRegion 
> (Color.green.brighter(),
> "Ninawa", "Dahuk",
>           "Arbil", "As Sulaymaniyah", "At Ta'min", "Salah ad Din",
> "Diyala"));
>       this.areaShapeLayer.addRegion(createRegion(Color.red.brighter(),
> "Wasit", "Maysan",
>           "Al Qadisiyah", "Dhi Qar", "Al Basrah", "Al Muthanna"));
>
>       this.areaShapeLayer.repaint();
>     }
>   }
>
>   private OMPoly createRegion(Color polyColor, String... strings)
>   {
>     OMPoly regionPoly = null;
>
>     if (strings != null && strings.length > 0)
>     {
>       // Create an AWT Area object from the first political area
>       Area area = createAwtAreaFromPoliticalArea(strings[0]);
>
>       if (area != null)
>       {
>         for (int i = 1; i < strings.length; i++)
>         {
>           Area nextArea = createAwtAreaFromPoliticalArea(strings[i]);
>           if (nextArea != null)
>           {
>             area.add(nextArea);
>           }
>         }
>       }
>
>       regionPoly = createOMPolyFromArea(area, polyColor);
>     }
>
>     return regionPoly;
>   }
>
>   private OMPoly createOMPolyFromArea(Area area, Color polyColor)
>   {
>     ArrayList<Float> newpoints = new ArrayList<Float>();
>     PathIterator pi = area.getPathIterator(null);
>     float[] fpts = new float[6];
>     while (!pi.isDone())
>     {
>       int type = pi.currentSegment(fpts);
>       if (type == PathIterator.SEG_MOVETO || type ==
> PathIterator.SEG_LINETO)
>       {
>         newpoints.add(fpts[0]);
>         newpoints.add(fpts[1]);
>       }
>
>       pi.next();
>     }
>
>     float[] newfpts = new float[newpoints.size()];
>     for (int i = 0; i < newpoints.size(); i++)
>     {
>       newfpts[i] = newpoints.get(i);
>     }
>
>     OMPoly newpoly = new OMPoly(newfpts, OMGraphic.RADIANS,
> OMGraphic.LINETYPE_STRAIGHT);
>     newpoly.setLinePaint(polyColor);
>     newpoly.setStroke(REGION_STROKE);
>
>     return newpoly;
>   }
>
>   private Area createAwtAreaFromPoliticalArea(String string)
>   {
>     Area newArea = null;
>     OMPoly omp = getOMPolyForArea(string);
>     if (omp != null)
>     {
>       newArea = new Area(createGeneralPath(omp.getLatLonArray()));
>     }
>
>     return newArea;
>   }
>
>   private GeneralPath createGeneralPath(float[] pts)
>   {
>     GeneralPath gp = new GeneralPath();
>     gp.moveTo(pts[0], pts[1]);
>
>     for (int i = 2; i < pts.length; i += 2)
>     {
>       gp.lineTo(pts[i], pts[i + 1]);
>     }
>
>     gp.closePath();
>
>     return gp;
>   }
>
>   private OMPoly getOMPolyForArea(String string)
>   {
>     OMGraphicList omgl = this.areaHandler.getGraphics();
>     for (int i = 0; i < omgl.size(); i++)
>     {
>       OMGraphic omg = omgl.getOMGraphicAt(i);
>       if (omg instanceof OMGraphicList)
>       {
>         OMGraphicList omgl2 = (OMGraphicList)omg;
>         for (int j = 0; j < omgl2.size(); j++)
>         {
>           OMGraphic omg2 = omgl2.getOMGraphicAt(j);
>           if (omg2 instanceof OMPoly)
>           {
>             String name =
> this.areaHandler.getName((Integer)omg2.getAppObject());
>             if (name != null && name.equals(string))
>             {
>               return (OMPoly)omg2;
>             }
>           }
>         }
>       }
>     }
>
>     return null;
>   }
> }



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Fri Jan 26 10:54:29 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0QFsTO25489
	for openmap-users-archive; Fri, 26 Jan 2007 10:54:29 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0QFsPP25486
	for <openmap-users@openmap.bbn.com>; Fri, 26 Jan 2007 10:54:25 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HATLm-0002Xo-6N; Fri, 26 Jan 2007 10:50:51 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0QFnxo17856
	for openmap-users-outgoing; Fri, 26 Jan 2007 10:49:59 -0500 (EST)
In-Reply-To: <45B12766.80409@io.com>
References: <005BC18C-300D-4333-92BC-19DAD271F2DA@pvv.ntnu.no> <60BECB62-6563-484C-97B4-A080D0A9133A@pvv.ntnu.no> <45B100A5.4010206@io.com> <45B12766.80409@io.com>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <92D49356-EA96-4339-B703-DFDF0AC8AFF7@bbn.com>
Cc: OpenMap MList <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] Bug or Feature? OMRasterObject, not rendering 'RenderedImage'
Date: Fri, 26 Jan 2007 10:49:53 -0500
To: JR Andreassen <janrune@io.com>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi JR,

You should be able to use a BufferedImage directly.  I do this all  
the time, creating a new BufferedImage with a certain image type,  
getting the Graphics object from it an rendering into the image, and  
then sticking it in a OMRaster.

- Don

On Jan 19, 2007, at 3:17 PM, JR Andreassen wrote:

> JR Andreassen wrote:
>
>> Hi..
>> I'm trying to use Icon Images with locations.
>> When I use Images loded from the disk it works fine.
>> When I  use the same image from BufferedImage it doesn't draw.
>> I've traced it to 'OMRasterObject.render.java' (line357)
>>
>> //------------------------------------------------------------------- 
>> -------------------
>>            if (g instanceof Graphics2D && bitmap instanceof  
>> RenderedImage) {
>>                // Affine translation for placement...
>>                ((Graphics2D) g).drawRenderedImage((BufferedImage)  
>> bitmap,
>>                        new AffineTransform(1f, 0f, 0f, 1f,  
>> point1.x, point1.y));
>>                // Undo the affine translation for future graphics??
>>                ((Graphics2D) g).translate(-point1.x, -point1.y);
>>            } else {
>>                g.drawImage(bitmap, point1.x, point1.y, this);
>>            }
>> //------------------------------------------------------------------- 
>> -------------------
>> When I load the Image from disk it's a 'sun.awt.image.ToolitImage'  
>> and it renders just fine.
>> When It's loaded from memory(image I've drawn)  it's a  
>> 'BufferedImage'/RenderedImage' it does not render.
>>
>> Any Ideas ??
>> Any insight on this would be appriciated.
>>    Thanks
>>       JR
>>
> It works when I use:
> Toolkit.getDefaultToolkit().createImage(BufferedImage.getSource());
>
>  JR
>
> --
> [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"]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Fri Jan 26 11:00:46 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0QG0j525534
	for openmap-users-archive; Fri, 26 Jan 2007 11:00:46 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0QG0fP25531
	for <openmap-users@openmap.bbn.com>; Fri, 26 Jan 2007 11:00:42 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HATSY-0002gg-5Z; Fri, 26 Jan 2007 10:57:50 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0QFuv117934
	for openmap-users-outgoing; Fri, 26 Jan 2007 10:56:57 -0500 (EST)
Message-ID: <45BA2455.9090606@io.com>
Date: Fri, 26 Jan 2007 09:55:01 -0600
From: JR Andreassen <janrune@io.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414
X-Accept-Language: en-us, en
MIME-Version: 1.0
CC: OpenMap MList <openmap-users@bbn.com>
Subject: Re: [OpenMap Users] Bug or Feature? OMRasterObject, not rendering
 'RenderedImage'
References: <005BC18C-300D-4333-92BC-19DAD271F2DA@pvv.ntnu.no> <60BECB62-6563-484C-97B4-A080D0A9133A@pvv.ntnu.no> <45B100A5.4010206@io.com> <45B12766.80409@io.com> <92D49356-EA96-4339-B703-DFDF0AC8AFF7@bbn.com>
In-Reply-To: <92D49356-EA96-4339-B703-DFDF0AC8AFF7@bbn.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on smtp.prismnet.com
X-Virus-Status: Clean
Old-X-Spam-Score: -1.2 (-)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi thanks for getting back to me...
 
OK... Don't know why it's ot working...
I've managed to work arround it for now.
   Thanks
  JR

> Hi JR,
>
> You should be able to use a BufferedImage directly.  I do this all  
> the time, creating a new BufferedImage with a certain image type,  
> getting the Graphics object from it an rendering into the image, and  
> then sticking it in a OMRaster.
>
> - Don
>
> On Jan 19, 2007, at 3:17 PM, JR Andreassen wrote:
>
>> JR Andreassen wrote:
>>
>>> Hi..
>>> I'm trying to use Icon Images with locations.
>>> When I use Images loded from the disk it works fine.
>>> When I  use the same image from BufferedImage it doesn't draw.
>>> I've traced it to 'OMRasterObject.render.java' (line357)
>>>
>>> //------------------------------------------------------------------- 
>>> -------------------
>>>            if (g instanceof Graphics2D && bitmap instanceof  
>>> RenderedImage) {
>>>                // Affine translation for placement...
>>>                ((Graphics2D) g).drawRenderedImage((BufferedImage)  
>>> bitmap,
>>>                        new AffineTransform(1f, 0f, 0f, 1f,  
>>> point1.x, point1.y));
>>>                // Undo the affine translation for future graphics??
>>>                ((Graphics2D) g).translate(-point1.x, -point1.y);
>>>            } else {
>>>                g.drawImage(bitmap, point1.x, point1.y, this);
>>>            }
>>> //------------------------------------------------------------------- 
>>> -------------------
>>> When I load the Image from disk it's a 'sun.awt.image.ToolitImage'  
>>> and it renders just fine.
>>> When It's loaded from memory(image I've drawn)  it's a  
>>> 'BufferedImage'/RenderedImage' it does not render.
>>>
>>> Any Ideas ??
>>> Any insight on this would be appriciated.
>>>    Thanks
>>>       JR
>>>
>> It works when I use:
>> Toolkit.getDefaultToolkit().createImage(BufferedImage.getSource());
>>
>>  JR
>>
>> -- 
>> [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"]
>
>
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don Dietrick, dietrick@bbn.com
> BBN Technologies, Cambridge, MA
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>

--
[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"]


From mail Fri Jan 26 11:05:01 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0QG51225565
	for openmap-users-archive; Fri, 26 Jan 2007 11:05:01 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0QG4uP25561
	for <openmap-users@openmap.bbn.com>; Fri, 26 Jan 2007 11:04:57 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HATWJ-0001VY-4g; Fri, 26 Jan 2007 11:01:43 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0QG0gm18036
	for openmap-users-outgoing; Fri, 26 Jan 2007 11:00:42 -0500 (EST)
Message-ID: <45BA2551.80504@io.com>
Date: Fri, 26 Jan 2007 09:59:13 -0600
From: JR Andreassen <janrune@io.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414
X-Accept-Language: en-us, en
MIME-Version: 1.0
CC: OpenMap MList <openmap-users@bbn.com>
Subject: [OpenMap Users] Spatial Index
References: <005BC18C-300D-4333-92BC-19DAD271F2DA@pvv.ntnu.no> <60BECB62-6563-484C-97B4-A080D0A9133A@pvv.ntnu.no> <45B100A5.4010206@io.com> <45B12766.80409@io.com> <92D49356-EA96-4339-B703-DFDF0AC8AFF7@bbn.com>
In-Reply-To: <92D49356-EA96-4339-B703-DFDF0AC8AFF7@bbn.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on smtp.prismnet.com
X-Virus-Status: Clean
Old-X-Spam-Score: -1.1 (-)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi...
 I've created a Spatial Index package/class that does helps out a lot 
on  a ShapePlugin layer.
It's loosly based on the Shape.SpatialIndex, with minor changes.
It's only a lineas search right now, but it makes it concidderably 
qucker to redraw the screen.
I'll share it to be included if there is an intrest.

   JR

P.S. I also tried it with an R* tree, but the improvements were 
marginal, and creation time was exponential.


--
[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"]


From mail Wed Jan 31 12:00:39 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l0VH0dT23372
	for openmap-users-archive; Wed, 31 Jan 2007 12:00:39 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l0VH0dj23369
	for <openmap-users@openmap.bbn.com>; Wed, 31 Jan 2007 12:00:39 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HBDbl-0000p7-3q; Sun, 28 Jan 2007 12:14:25 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l0SH8W208063
	for openmap-users-outgoing; Sun, 28 Jan 2007 12:08:32 -0500 (EST)
In-Reply-To: <45BA5809.2020902@io.com>
References: <005BC18C-300D-4333-92BC-19DAD271F2DA@pvv.ntnu.no> <60BECB62-6563-484C-97B4-A080D0A9133A@pvv.ntnu.no> <45B100A5.4010206@io.com> <45B12766.80409@io.com> <92D49356-EA96-4339-B703-DFDF0AC8AFF7@bbn.com> <45BA2455.9090606@io.com> <45BA5809.2020902@io.com>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <282E5C61-0F8A-4CAC-972D-73384956DCF7@bbn.com>
Cc: OpenMap MList <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] Whats the right way to rotate a label
Date: Sun, 28 Jan 2007 12:08:24 -0500
To: JR Andreassen <janrune@io.com>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi JR,

On Jan 26, 2007, at 2:35 PM, JR Andreassen wrote:

> Hi...
>
> I'm back to trying to rotate Text labels to follow a OMGraphic.
> What is the correct way to get it done?

You can figure out the points you want the text to align itself with,  
and then find the azimuth between them using the  
com.bbn.openmap.proj.GreatCircle class method.

> Any samples anywhere ??

No, none in the OpenMap package itself.


>
> My goal is to put in Road/Street names, but make it  follow a segment.
> Also, at the same time I can ask the question again
> What are the possibilities of adding a couple of methods to the  
> OMLabeler interface.
>
>    /**
>     * Set the Object beeing labeled by this OMLabeler
>     * @param omg   The Object beeing labeled
>     */
>    public void setLabeledObject(OMGraphic omg);
>
>    /**
>     * Get the Object beeing labeled by this OMLabeler
>     * @return OMGraphic  The Object beeing labeled
>     */
>    public OMGraphic getLabeledObject();
>
> It would convinient for the labler to know what it was labeling.
> We could find the size the Graphic beeing labeled, was smaller than  
> the Label.
>    Don't label(Until it was)
> .In the case of roads or other plylines you can find out the path  
> and label along it
>    (Hopefully. I'm currenty trying to acomplish that)

I can see how you would use this in an OMLabeler, but it also seems  
like something a specific labeler implementation would use  
internally.  I think you could put these methods in any  
implementation of OMLabeler, or subclass of OMTextLabeler, without  
having to add them to the OMLabeler interface itself.

Regards,

Don

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Thu Feb  1 16:50:20 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l11LoKN31938
	for openmap-users-archive; Thu, 1 Feb 2007 16:50:20 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l11LoJj31935
	for <openmap-users@openmap.bbn.com>; Thu, 1 Feb 2007 16:50:19 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HCjk4-0002VC-6D; Thu, 01 Feb 2007 16:45:17 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l11Leax10227
	for openmap-users-outgoing; Thu, 1 Feb 2007 16:40:36 -0500 (EST)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="US-ASCII"
X-MimeOLE: Produced By Microsoft Exchange V6.5
Subject: RE: [OpenMap Users] Multiple LocationLayers with Popup Menus
Date: Thu, 1 Feb 2007 15:39:45 -0600
Message-ID: <297343D29C14AA4D822142893ABEAEF302B56917@srv1163ex1.flightsafety.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [OpenMap Users] Multiple LocationLayers with Popup Menus
Thread-Index: AcdGRTmEukk1q5EESaSB9vEohHc6bwAACRmQ
From: "Lin, Sunny (Shih-Hung)" <sunny.lin@FlightSafety.com>
To: "William M. Barber" <wbarber@lanl.gov>
Cc: "OpenMap MList" <openmap-users@bbn.com>
X-OriginalArrivalTime: 01 Feb 2007 21:39:47.0540 (UTC) FILETIME=[7EB07940:01C74649]
Old-X-Spam-Score: -0.8 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l11LeXa10219
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi, William,

Thank you for your response.  I found a way although not a desired one.
I chain these layers from top to bottom, with each layer knows the next
layer below.  I override "findClosestLocation" as following.  In this
way, an upper layer will get the priority.

LocationLayer nextLayer;
public Location findClosestLocation(MouseEvent e) {
  if ( ! isVisible()) {
    if (nextLayer == null)
      return null;
    else
      return nextLayer.findClosestLocation(e);
  }
  Location loc = super.findClosestLocation(e);
  if (loc == null) {
    if (nextLayer != null && nextLayer.isVisible())
      loc = nextLayer.findClosestLocation(e);
  }
  return loc;
}

-Sunny Lin

-----Original Message-----
From: William M. Barber [mailto:wbarber@lanl.gov] 
Sent: Thursday, February 01, 2007 3:09 PM
To: Lin, Sunny (Shih-Hung)
Cc: OpenMap MList
Subject: Re: [OpenMap Users] Multiple LocationLayers with Popup Menus

Hi Sunny,

don't know if anyone has responded to this yet.

It sounds as if your top-most layer is consuming the mouse events.
You need to tell either the mouse mode or the mouse listener methods not
to 
consume events. There is more than one way to do this I think, depending
on your 
event needs. Look at the mouse*() methods in MapMouseListener, and at 
setConsumeEvents() in AbstractMouseMode.

Hope this helps, Bill

On Tue, 30 Jan 2007, Lin, Sunny (Shih-Hung) wrote:

> Hi,
>
>
>
> I implemented multiple LocationLayers, each with a LocationHandler to
> allow pup-up menu for more information of Locations in the layer.
They
> work fine independently until I put them together.  It seems only the
> top-most enabled layer can get the mouse event.  I have to turn off a
> top layer in order to get detail information of the layer below.
Would
> someone please tell me what I have done wrong and how to fix it?
>
>
>
> Sunny Lin
>
>

--
[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"]


From mail Thu Feb  1 17:11:06 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l11MB6N32039
	for openmap-users-archive; Thu, 1 Feb 2007 17:11:06 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l11MB6j32036
	for <openmap-users@openmap.bbn.com>; Thu, 1 Feb 2007 17:11:06 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HCk6F-0002pJ-4k; Thu, 01 Feb 2007 17:08:11 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l11M7FR10467
	for openmap-users-outgoing; Thu, 1 Feb 2007 17:07:15 -0500 (EST)
Date: Thu, 1 Feb 2007 14:09:03 -0700 (MST)
From: "William M. Barber" <wbarber@lanl.gov>
To: "Lin, Sunny (Shih-Hung)" <sunny.lin@FlightSafety.com>
cc: OpenMap MList <openmap-users@bbn.com>
Subject: Re: [OpenMap Users] Multiple LocationLayers with Popup Menus
In-Reply-To: <297343D29C14AA4D822142893ABEAEF302ADDE17@srv1163ex1.flightsafety.com>
Message-ID: <Pine.LNX.4.64.0702011402440.5033@berg.lanl.gov>
References: <297343D29C14AA4D822142893ABEAEF302ADDE17@srv1163ex1.flightsafety.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-PMX-Version: 4.7.1.128075
Old-X-Spam-Score: -0.7 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Sunny,

don't know if anyone has responded to this yet.

It sounds as if your top-most layer is consuming the mouse events.
You need to tell either the mouse mode or the mouse listener methods not to 
consume events. There is more than one way to do this I think, depending on your 
event needs. Look at the mouse*() methods in MapMouseListener, and at 
setConsumeEvents() in AbstractMouseMode.

Hope this helps, Bill

On Tue, 30 Jan 2007, Lin, Sunny (Shih-Hung) wrote:

> Hi,
>
>
>
> I implemented multiple LocationLayers, each with a LocationHandler to
> allow pup-up menu for more information of Locations in the layer.  They
> work fine independently until I put them together.  It seems only the
> top-most enabled layer can get the mouse event.  I have to turn off a
> top layer in order to get detail information of the layer below.  Would
> someone please tell me what I have done wrong and how to fix it?
>
>
>
> Sunny Lin
>
>

--
[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"]


From mail Wed Feb  7 05:17:49 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l17AHnb25666
	for openmap-users-archive; Wed, 7 Feb 2007 05:17:49 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l17AHkj25663
	for <openmap-users@openmap.bbn.com>; Wed, 7 Feb 2007 05:17:46 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HEjnA-0004G0-5x; Wed, 07 Feb 2007 05:12:44 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l17A80I13214
	for openmap-users-outgoing; Wed, 7 Feb 2007 05:08:00 -0500 (EST)
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Transfer-Encoding: 7bit
Message-Id: <7648476D-1E30-4DBD-8BC0-7C54A55869CD@pvv.ntnu.no>
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed
To: openmap questions <openmap-users@bbn.com>
From: Tore Halset <halset@pvv.ntnu.no>
Subject: [OpenMap Users] Debug takes a lot of cpu
Date: Wed, 7 Feb 2007 11:06:10 +0100
X-Mailer: Apple Mail (2.752.3)
X-OriginalArrivalTime: 07 Feb 2007 10:07:33.0856 (UTC) 
	FILETIME=[C929BE00:01C74A9F]
X-imss-version: 2.046
X-imss-result: Passed
X-imss-scores: Clean:46.04749 C:2 M:3 S:5 R:5
X-imss-settings: Baseline:2 C:2 M:2 S:2 R:2 (0.1500 0.1500)
Old-X-Spam-Score: -0.5 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello.

I am doing some profiling of my app here and it looks like Debug is  
using way too much cpu. Ofthen used methods like Length.roRadians and  
LLXY.forward all calls Debug.debugging that does a  
Hashtable.containsKey.

I do not want and openmap debug output, but changing Debug.On to  
false is not possible as it is static final.

Here you see a screenshot from jprofiler. This is the CPU Hotspot  
view. Projection and drawing are taking most of the cpu, but I think  
Debug is taking way too much.
http://www.pvv.ntnu.no/~halset/tmp/20070207-openmap-jprofiler.png

Is there a master plan for logging in openmap? Like switching to a  
more common logging solution. Or should I hack my own Debug to set  
Debug.On to false?

  - Tore.

--
[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"]


From mail Wed Feb  7 08:21:00 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l17DL0026326
	for openmap-users-archive; Wed, 7 Feb 2007 08:21:00 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l17DKtj26323
	for <openmap-users@openmap.bbn.com>; Wed, 7 Feb 2007 08:20:55 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HEmg4-0005T5-3J; Wed, 07 Feb 2007 08:17:36 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l17DG4n14305
	for openmap-users-outgoing; Wed, 7 Feb 2007 08:16:04 -0500 (EST)
In-Reply-To: <7648476D-1E30-4DBD-8BC0-7C54A55869CD@pvv.ntnu.no>
References: <7648476D-1E30-4DBD-8BC0-7C54A55869CD@pvv.ntnu.no>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <BC137FC9-557D-4036-9619-B86C910E7ADE@bbn.com>
Cc: openmap questions <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] Debug takes a lot of cpu
Date: Wed, 7 Feb 2007 08:15:53 -0500
To: Tore Halset <halset@pvv.ntnu.no>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Tore,

Thanks for the profiling information.  It looks like those three  
com.bbn.openmap.proj methods are the main hotspots for Debug, so I  
can take a look at that to reduce the load on Debug for the next  
release.

The master plan for OpenMap logging is to move to the logging  
mechanism in the jdk.  For all of the new code I've written for  
OpenMap I've replaced Debug with Logger, and I'll be re-factoring the  
other classes for the 4.7 release.

I'm not sure why the Debug.On flag is final, it shouldn't be.

- Don


On Feb 7, 2007, at 5:06 AM, Tore Halset wrote:

> Hello.
>
> I am doing some profiling of my app here and it looks like Debug is  
> using way too much cpu. Ofthen used methods like Length.roRadians  
> and LLXY.forward all calls Debug.debugging that does a  
> Hashtable.containsKey.
>
> I do not want and openmap debug output, but changing Debug.On to  
> false is not possible as it is static final.
>
> Here you see a screenshot from jprofiler. This is the CPU Hotspot  
> view. Projection and drawing are taking most of the cpu, but I  
> think Debug is taking way too much.
> http://www.pvv.ntnu.no/~halset/tmp/20070207-openmap-jprofiler.png
>
> Is there a master plan for logging in openmap? Like switching to a  
> more common logging solution. Or should I hack my own Debug to set  
> Debug.On to false?
>
>  - Tore.
>
> --
> [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"]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Wed Feb  7 08:52:19 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l17DqJJ26423
	for openmap-users-archive; Wed, 7 Feb 2007 08:52:19 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l17DqJj26420
	for <openmap-users@openmap.bbn.com>; Wed, 7 Feb 2007 08:52:19 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HEnBB-0005nH-5O; Wed, 07 Feb 2007 08:49:45 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l17DmtN14506
	for openmap-users-outgoing; Wed, 7 Feb 2007 08:48:55 -0500 (EST)
X-AuditID: c1b4fb3e-b1ed7bb0000007e1-f5-45c9d24fc761 
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Disposition-Notification-To: =?iso-8859-1?Q?Geir_=D8vsttun_=28AS/ETO=29?= <geir.ovsttun@ericsson.com>
Subject: RE: [OpenMap Users] Debug takes a lot of cpu
Date: Wed, 7 Feb 2007 14:21:19 +0100
Message-ID: <891AE1CD3C5FF345BF8B3542D8D054CD02A48270@esealmw112.eemea.ericsson.se>
In-Reply-To: <BC137FC9-557D-4036-9619-B86C910E7ADE@bbn.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [OpenMap Users] Debug takes a lot of cpu
Thread-Index: AcdKumra0Xs3kAz5Q7CwQxQJVtF4lwAAEScA
From: =?iso-8859-1?Q?Geir_=D8vsttun_=28AS/ETO=29?= <geir.ovsttun@ericsson.com>
To: "Don Dietrick" <dietrick@bbn.com>, "Tore Halset" <halset@pvv.ntnu.no>
Cc: "openmap questions" <openmap-users@bbn.com>
X-OriginalArrivalTime: 07 Feb 2007 13:21:19.0778 (UTC) FILETIME=[DAC0A820:01C74ABA]
X-Brightmail-Tracker: AAAAAA==
Old-X-Spam-Score: -0.6 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l17Dmqa14498
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi,

What about Log4J instead of the jdk logging ?

/Geir 

-----Original Message-----
From: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com] On Behalf Of Don Dietrick
Sent: 7. februar 2007 14:16
To: Tore Halset
Cc: openmap questions
Subject: Re: [OpenMap Users] Debug takes a lot of cpu

Hi Tore,

Thanks for the profiling information.  It looks like those three com.bbn.openmap.proj methods are the main hotspots for Debug, so I can take a look at that to reduce the load on Debug for the next release.

The master plan for OpenMap logging is to move to the logging mechanism in the jdk.  For all of the new code I've written for OpenMap I've replaced Debug with Logger, and I'll be re-factoring the other classes for the 4.7 release.

I'm not sure why the Debug.On flag is final, it shouldn't be.

- Don


On Feb 7, 2007, at 5:06 AM, Tore Halset wrote:

> Hello.
>
> I am doing some profiling of my app here and it looks like Debug is 
> using way too much cpu. Ofthen used methods like Length.roRadians and 
> LLXY.forward all calls Debug.debugging that does a 
> Hashtable.containsKey.
>
> I do not want and openmap debug output, but changing Debug.On to false 
> is not possible as it is static final.
>
> Here you see a screenshot from jprofiler. This is the CPU Hotspot 
> view. Projection and drawing are taking most of the cpu, but I think 
> Debug is taking way too much.
> http://www.pvv.ntnu.no/~halset/tmp/20070207-openmap-jprofiler.png
>
> Is there a master plan for logging in openmap? Like switching to a 
> more common logging solution. Or should I hack my own Debug to set 
> Debug.On to false?
>
>  - Tore.
>
> --
> [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"]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]

--
[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"]


From mail Wed Feb  7 09:12:58 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l17ECwE26518
	for openmap-users-archive; Wed, 7 Feb 2007 09:12:58 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l17ECwj26515
	for <openmap-users@openmap.bbn.com>; Wed, 7 Feb 2007 09:12:58 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HEnTR-00027K-5Y; Wed, 07 Feb 2007 09:08:37 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l17E7f415118
	for openmap-users-outgoing; Wed, 7 Feb 2007 09:07:41 -0500 (EST)
In-Reply-To: <891AE1CD3C5FF345BF8B3542D8D054CD02A48270@esealmw112.eemea.ericsson.se>
References: <891AE1CD3C5FF345BF8B3542D8D054CD02A48270@esealmw112.eemea.ericsson.se>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed
Message-Id: <1D74ABB5-7A12-46B1-85E9-ABB06C8A782C@bbn.com>
Cc: "Tore Halset" <halset@pvv.ntnu.no>,
   "openmap questions" <openmap-users@bbn.com>
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] Debug takes a lot of cpu
Date: Wed, 7 Feb 2007 09:07:34 -0500
To: =?ISO-8859-1?Q?Geir_=D8vsttun_=28AS/ETO=29?= <geir.ovsttun@ericsson.com>
X-Mailer: Apple Mail (2.752.2)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l17E7da15110
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Geir,

I've used both, and also considered using the Commons Logging API,  
and decided to go with what's in the jdk in order to minimize  
OpenMap's dependencies on third party APIs.  I couldn't find a  
significant advantage for using log4j that offset the requirements of  
adding yet another jar to the classpath.

Regards,

Don

On Feb 7, 2007, at 8:21 AM, Geir Øvsttun (AS/ETO) wrote:

> Hi,
>
> What about Log4J instead of the jdk logging ?
>
> /Geir
>
> -----Original Message-----
> From: owner-openmap-users@bbn.com [mailto:owner-openmap- 
> users@bbn.com] On Behalf Of Don Dietrick
> Sent: 7. februar 2007 14:16
> To: Tore Halset
> Cc: openmap questions
> Subject: Re: [OpenMap Users] Debug takes a lot of cpu
>
> Hi Tore,
>
> Thanks for the profiling information.  It looks like those three  
> com.bbn.openmap.proj methods are the main hotspots for Debug, so I  
> can take a look at that to reduce the load on Debug for the next  
> release.
>
> The master plan for OpenMap logging is to move to the logging  
> mechanism in the jdk.  For all of the new code I've written for  
> OpenMap I've replaced Debug with Logger, and I'll be re-factoring  
> the other classes for the 4.7 release.
>
> I'm not sure why the Debug.On flag is final, it shouldn't be.
>
> - Don
>
>
> On Feb 7, 2007, at 5:06 AM, Tore Halset wrote:
>
>> Hello.
>>
>> I am doing some profiling of my app here and it looks like Debug is
>> using way too much cpu. Ofthen used methods like Length.roRadians and
>> LLXY.forward all calls Debug.debugging that does a
>> Hashtable.containsKey.
>>
>> I do not want and openmap debug output, but changing Debug.On to  
>> false
>> is not possible as it is static final.
>>
>> Here you see a screenshot from jprofiler. This is the CPU Hotspot
>> view. Projection and drawing are taking most of the cpu, but I think
>> Debug is taking way too much.
>> http://www.pvv.ntnu.no/~halset/tmp/20070207-openmap-jprofiler.png
>>
>> Is there a master plan for logging in openmap? Like switching to a
>> more common logging solution. Or should I hack my own Debug to set
>> Debug.On to false?
>>
>>  - Tore.
>>
>> --
>> [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"]
>
>
>
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don Dietrick, dietrick@bbn.com
> BBN Technologies, Cambridge, MA
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
> --
> [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"]
>
> --
> [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"]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Wed Feb  7 11:31:19 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l17GVJu26974
	for openmap-users-archive; Wed, 7 Feb 2007 11:31:19 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l17GVIj26971
	for <openmap-users@openmap.bbn.com>; Wed, 7 Feb 2007 11:31:18 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HEpdx-000879-5m; Wed, 07 Feb 2007 11:27:37 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l17GOSJ17214
	for openmap-users-outgoing; Wed, 7 Feb 2007 11:24:28 -0500 (EST)
Message-ID: <45C9FD30.8000100@io.com>
Date: Wed, 07 Feb 2007 10:24:16 -0600
From: JR Andreassen <janrune@io.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Don Dietrick <dietrick@bbn.com>, OpenMap MList <openmap-users@bbn.com>
Subject: [OpenMap Users] Process for Change ??
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on smtp.prismnet.com
X-Virus-Status: Clean
Old-X-Spam-Score: -1.4 (-)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi...
 I read that you're planning a new release here sometime(soon I hope :).
Is there a process for getting changes put into the next release.

I have a couple of chanegs that I'd like rolled in.
I've mentioned these before, though I've not gotten any response.
I understand we're all busy and don't have time to chatter, but there 
are some
changes that would be beneficial to those of us who rather not change 
the base source.
(I'm not critisizing, just trying to contribute)

1) In-Mem spatial Index, I posted the to some people already.
2) Object labler/formatter class. ( I have one for Shape labler )
3) Tracing Labels for polylines(only on shape files) that hides lables 
that are labeling object too mall)
      Here I could use access the calculated text/font metrics etc.
4) Filter on the Shape dbf stream to eliminate the columns we're not 
intrested in.
     (Would be very handy, some of the shape files I have are in the 
1/2-1 Gig range(200MB shape, 800MB dbf).
 
Anyways, there are some others to, but those are the ones off the top of 
my head.
I'll contribute the things I've done any way you want, just let me know 
how....
   Thanks
      JR

--
[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"]


From mail Wed Feb  7 17:28:24 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l17MSOa29763
	for openmap-users-archive; Wed, 7 Feb 2007 17:28:24 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l17MSNj29760
	for <openmap-users@openmap.bbn.com>; Wed, 7 Feb 2007 17:28:23 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HEvER-0004xE-4S; Wed, 07 Feb 2007 17:25:39 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l17MLrm24275
	for openmap-users-outgoing; Wed, 7 Feb 2007 17:21:53 -0500 (EST)
In-Reply-To: <45C9FD30.8000100@io.com>
References: <45C9FD30.8000100@io.com>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <055D6295-0C6A-49C2-AE51-5AF4D52D714F@bbn.com>
Cc: OpenMap MList <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] Process for Change ??
Date: Wed, 7 Feb 2007 17:21:43 -0500
To: JR Andreassen <janrune@io.com>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi JR,

On Feb 7, 2007, at 11:24 AM, JR Andreassen wrote:

> Hi...
> I read that you're planning a new release here sometime(soon I  
> hope :).
> Is there a process for getting changes put into the next release.

Sure, you would just sent them in to openmap-users@bbn.com or  
openmap@bbn.com.

>
> I have a couple of chanegs that I'd like rolled in.
> I've mentioned these before, though I've not gotten any response.
> I understand we're all busy and don't have time to chatter, but  
> there are some
> changes that would be beneficial to those of us who rather not  
> change the base source.
> (I'm not critisizing, just trying to contribute)

That's OK, we appreciate the contributes and criticisms.  Sometimes a  
feature isn't in a component because we wrote something we needed,  
and we didn't need a particular feature that is entirely obvious for  
a different use case.

>
> 1) In-Mem spatial Index, I posted the to some people already.

I am interested in seeing what the difference is between yours and  
the one in the toolkit.

> 2) Object labler/formatter class. ( I have one for Shape labler )

Sure, sounds interesting.

> 3) Tracing Labels for polylines(only on shape files) that hides  
> lables that are labeling object too mall)
>      Here I could use access the calculated text/font metrics etc.

I think you can get that stuff from an OMText, no?  Interesting idea  
for the tracing label, how does it affect performance (memory usage  
and generation)?

> 4) Filter on the Shape dbf stream to eliminate the columns we're  
> not intrested in.
>     (Would be very handy, some of the shape files I have are in the  
> 1/2-1 Gig range(200MB shape, 800MB dbf).

This one is interesting and needed, too.

They all sound like good improvements, please go ahead and mail in  
what you'd like to contribute.

Regards,

Don




=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Wed Feb  7 19:16:08 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l180G8U30728
	for openmap-users-archive; Wed, 7 Feb 2007 19:16:08 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l180G8j30725
	for <openmap-users@openmap.bbn.com>; Wed, 7 Feb 2007 19:16:08 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HEwv5-00061W-5T; Wed, 07 Feb 2007 19:13:47 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l180Bcg25454
	for openmap-users-outgoing; Wed, 7 Feb 2007 19:11:38 -0500 (EST)
Message-ID: <45CA6AAA.6080104@io.com>
Date: Wed, 07 Feb 2007 18:11:22 -0600
From: JR Andreassen <janrune@io.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: OpenMap MList <openmap-users@bbn.com>
Subject: Re: [OpenMap Users] Process for Change ??
References: <45C9FD30.8000100@io.com> <055D6295-0C6A-49C2-AE51-5AF4D52D714F@bbn.com>
In-Reply-To: <055D6295-0C6A-49C2-AE51-5AF4D52D714F@bbn.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on smtp.prismnet.com
X-Virus-Status: Clean
Old-X-Spam-Score: -0.8 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi...
Thanks for getting back to me.

>> I have a couple of chanegs that I'd like rolled in.
>> I've mentioned these before, though I've not gotten any response.
>> I understand we're all busy and don't have time to chatter, but  
>> there are some
>> changes that would be beneficial to those of us who rather not  
>> change the base source.
>> (I'm not critisizing, just trying to contribute)
>
>
> That's OK, we appreciate the contributes and criticisms.  Sometimes a  
> feature isn't in a component because we wrote something we needed,  
> and we didn't need a particular feature that is entirely obvious for  
> a different use case.

I do understand that, that is the way we work to.

>> 1) In-Mem spatial Index, I posted the to some people already.
>
> I am interested in seeing what the difference is between yours and  
> the one in the toolkit.

Well...
The only one in the toolkit i saw was 
com.bbn.openmap.layer.shape.SpatialIndex.
This one is based of that one, but it will index an arbitrary 
OMGraphicsList..
The reasong I created it was that I was using EsriPligin.
It ignores the shx, (which is reasonable if you're loading over the net) 
so it painted everything, even the offscreen stuff.
Given the size of our datasets, that made it unusable.
The Spatial Index is just a linear search(not even ordered), but it does 
wonders for the redraw...
It's pretty quick to "index" and performs OK on search
I tried the same approach with an R* tree implementation, but the 
creation time was horrendus.

> 2) Object labler/formatter class. ( I have one for Shape labler )
> Sure, sounds interesting.

OK... We've been using this approach for years with our DB GUI
UnitHandler is a LocationLayer
UnitHandler.colorFormat=Inactive:lightgray/Active:green:black/ALERT:red/STOPPED:yellow/OFFLINE:darkgray/STALE:Gray/PURSUIT:red(1):red

>
>> 3) Tracing Labels for polylines(only on shape files) that hides  
>> lables that are labeling object too mall)
>>      Here I could use access the calculated text/font metrics etc.
>
> I think you can get that stuff from an OMText, no?  Interesting idea  
> for the tracing label, how does it affect performance (memory usage  
> and generation)?

It would be available but not until after the setLocation() call.
I could not figure out the correct sequence of events, so I just used a 
static for the min size.
The performance is fine (when I don't have to draw all the off-screen 
objects).

>>     (Would be very handy, some of the shape files I have are in the  
>> 1/2-1 Gig range(200MB shape, 800MB dbf).
>

> 4) Filter on the Shape dbf stream to eliminate the columns we're  not 
> intrested in.
> This one is interesting and needed, too.
> They all sound like good improvements, please go ahead and mail in  
> what you'd like to contribute.

Just give me free reins and the latest copy of the files and I'll do it.

> Regards,
> Don
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> Don Dietrick, dietrick@bbn.com
> BBN Technologies, Cambridge, MA
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Mon Feb 12 11:34:37 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1CGYb706444
	for openmap-users-archive; Mon, 12 Feb 2007 11:34:37 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1CGYbj06441
	for <openmap-users@openmap.bbn.com>; Mon, 12 Feb 2007 11:34:37 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HGe1i-0004LM-4k; Mon, 12 Feb 2007 11:27:38 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1CGNNT12689
	for openmap-users-outgoing; Mon, 12 Feb 2007 11:23:23 -0500 (EST)
Message-ID: <1171295980.45d08eecee9e9@imp.free.fr>
Date: Mon, 12 Feb 2007 16:59:40 +0100
From: =?iso-8859-1?b?RnLpZOlyaWM=?= PRACA <frederic.praca@freebsd-fr.org>
To: openmap-users@bbn.com
Subject: [OpenMap Users] Rotation of map in Lambert projection
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
User-Agent: Internet Messaging Program (IMP) 3.2.5
X-Originating-IP: 80.156.46.119
Old-X-Spam-Score: 0.0 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l1CGNKa12681
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello,
I try to display a LambertConformal raster map on OpenMap but I am not able to
change the meridian used to display the world layer. I tried to change the
getUpperLeft and getLowerRight code to this :
        return new LatLonPoint(90.0, -180.0 + centralMeridian);
and     return new LatLonPoint(-90.0, 180.0 + centralMeridian);
respectively.
I expected the world map to rotate in order to have my centralMeridian in a
vertical way but the world layer stays with the meridian 0° vertical.

Do you have any clue to change this ?

Regards,
Fred

--
[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"]


From mail Mon Feb 12 16:42:15 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1CLgF808998
	for openmap-users-archive; Mon, 12 Feb 2007 16:42:15 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1CLgFj08995
	for <openmap-users@openmap.bbn.com>; Mon, 12 Feb 2007 16:42:15 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HGitC-0000ZG-6G; Mon, 12 Feb 2007 16:39:10 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1CLasn18151
	for openmap-users-outgoing; Mon, 12 Feb 2007 16:36:54 -0500 (EST)
X-AuditID: c1b4fb3e-afed3bb0000007e1-c7-45d0dde28dc7 
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C74EED.DDC080E9"
Disposition-Notification-To: =?iso-8859-1?Q?Geir_=D8vsttun_=28AS/ETO=29?= <geir.ovsttun@ericsson.com>
Subject: [OpenMap Users] Problem with Drawing Tool Layer
Date: Mon, 12 Feb 2007 22:36:33 +0100
Message-ID: <891AE1CD3C5FF345BF8B3542D8D054CD02A48276@esealmw112.eemea.ericsson.se>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Problem with Drawing Tool Layer
Thread-Index: AcdO7dxWtdcN4Bs+T4WSX3oBA2s2yw==
From: =?iso-8859-1?Q?Geir_=D8vsttun_=28AS/ETO=29?= <geir.ovsttun@ericsson.com>
To: <openmap-users@bbn.com>
Cc: "Don Dietrick" <dietrick@bbn.com>
X-OriginalArrivalTime: 12 Feb 2007 21:36:34.0083 (UTC) FILETIME=[DDEC8730:01C74EED]
X-Brightmail-Tracker: AAAAAA==
Old-X-Spam-Score: -0.5 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=HTML_50_60,HTML_MESSAGE 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multi-part message in MIME format.

------_=_NextPart_001_01C74EED.DDC080E9
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I am using the Drawing Tool Layer and the corresponding Drawing Tool =
Launcher widget for initiating drawing.

When opening the Drawing Tool Launcher widget and pushing the Create =
Graphic button I get a "Problem" popup windows displaying the text :

Problem creating new graphics:
No valid receiver for the created graphic.

The Send To Selection pull down list shows one item :

	Drawing Tool Layer

I thought this was the receiver. Am I wrong ?

The problem is not happening always but I have not been able to figure =
out why and when I get the "Problem" popup window

Got a clue anyone ?

Geir Ovsttun
Ericsson AS

------_=_NextPart_001_01C74EED.DDC080E9
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7650.28">
<TITLE>Problem with Drawing Tool Layer</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">Hi,</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I am using the Drawing Tool Layer and =
the corresponding Drawing Tool Launcher widget for initiating =
drawing.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">When opening the Drawing Tool Launcher =
widget and pushing the Create Graphic button I get a &quot;Problem&quot; =
popup windows displaying the text :</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Problem creating new graphics:</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">No valid receiver for the created =
graphic.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">The Send To Selection pull down list =
shows one item :</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2 =
FACE=3D"Arial">Drawing Tool Layer</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I thought this was the receiver. Am I =
wrong ?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">The problem is not happening always but =
I have not been able to figure out why and when I get the =
&quot;Problem&quot; popup window</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Got a clue anyone ?</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Geir Ovsttun</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Ericsson AS</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C74EED.DDC080E9--

--
[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"]


From mail Mon Feb 12 18:53:32 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1CNrWn10120
	for openmap-users-archive; Mon, 12 Feb 2007 18:53:32 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1CNrWj10117
	for <openmap-users@openmap.bbn.com>; Mon, 12 Feb 2007 18:53:32 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HGkui-0005hD-5l; Mon, 12 Feb 2007 18:48:52 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1CNlOI19541
	for openmap-users-outgoing; Mon, 12 Feb 2007 18:47:24 -0500 (EST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
  s=s1024; d=yahoo.com;
  h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID;
  b=epT9FzgNvzH76o2dqpQxd/cm96nIKeF4bOYdVsCkAnNFkDE9BuextWpg7mcJY5fsjvlNoWm3hYCrpbjMtSUvfF5Euo9eDdY9EtIrPm++W8d7NlW0AYkaqjPKRAXuV5sGG8UZerpWverXACzzJFNtPZn5uKf5AlTf53FfjVQHXmU=;
X-YMail-OSG: FKB3H10VM1kxXt_ksONT4TzFFxJCb9tgRewFJ1XrUp6F5kcZKjytUAUDOdqLGQTNJujwXr8lZ_6KrRHQKwBTqda7hD0oqK_kVxc_HoT3Q0ovjPY6xsjb_Rz3z2Zojh96Rp1kZou6rS4dqV4-
X-Mailer: YahooMailRC/368.7 YahooMailWebService/0.6.132.7
Date: Mon, 12 Feb 2007 15:40:29 -0800 (PST)
From: David Ward <synriga@yahoo.com>
Subject: Re: [OpenMap Users] Rotation of map in Lambert projection
To: openmap-users@bbn.com
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0-811473362-1171323629=:65316"
Message-ID: <598485.65316.qm@web56606.mail.re3.yahoo.com>
Old-X-Spam-Score: 3.1 (+++)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=HTML_30_40,HTML_MESSAGE 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

--0-811473362-1171323629=:65316
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Fred,=0A=0AYou didn't mention whether you are using the Lambert Conformal C=
onic projection.=0A=0AIf you use the LCC you can specify the central meridi=
an and standard parallels. =0A=0ACheers,=0ADavid=0A =0A----=0ADavid Ward =
=0AROLANDS & ASSOCIATES Corporation =0A500 Sloat Avenue =0AMonterey, CA 939=
40 =0AUSA =0ATel: 1.831.373.2025 =0AFax: 1.831.373.2841 =0AEmail: synriga@y=
ahoo.com=0A=0A=0A----- Original Message ----=0AFrom: Fr=E9d=E9ric PRACA <fr=
ederic.praca@freebsd-fr.org>=0ATo: openmap-users@bbn.com=0ASent: Monday, Fe=
bruary 12, 2007 7:59:40 AM=0ASubject: [OpenMap Users] Rotation of map in La=
mbert projection=0A=0AHello,=0AI try to display a LambertConformal raster m=
ap on OpenMap but I am not able to=0Achange the meridian used to display th=
e world layer. I tried to change the=0AgetUpperLeft and getLowerRight code =
to this :=0A        return new LatLonPoint(90.0, -180.0 + centralMeridian);=
=0Aand     return new LatLonPoint(-90.0, 180.0 + centralMeridian);=0Arespec=
tively.=0AI expected the world map to rotate in order to have my centralMer=
idian in a=0Avertical way but the world layer stays with the meridian 0=B0 =
vertical.=0A=0ADo you have any clue to change this ?=0A=0ARegards,=0AFred=
=0A=0A--=0A[To unsubscribe to this list send an email to "majdart@bbn.com"=
=0Awith the following text in the BODY of the message "unsubscribe openmap-=
users"]=0A=0A=0A=0A=0A
--0-811473362-1171323629=:65316
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

<html><head><style type=3D"text/css"><!-- DIV {margin:0px;} --></style></he=
ad><body><div style=3D"font-family:times new roman,new york,times,serif;fon=
t-size:12pt">Fred,<br><br>You didn't mention whether you are using the Lamb=
ert Conformal Conic projection.<br><br>If you use the LCC you can specify t=
he central meridian and standard parallels. <br><br>Cheers,<br>David<br><di=
v>&nbsp;</div><div id=3D"RTEContent">----<br>David Ward <br>ROLANDS &amp; A=
SSOCIATES Corporation <br>500 Sloat Avenue <br>Monterey, CA 93940 <br>USA <=
br>Tel: 1.831.373.2025 <br>Fax: 1.831.373.2841 <br>Email: synriga@yahoo.com=
</div><div style=3D"font-family: times new roman,new york,times,serif; font=
-size: 12pt;"><br><br><div style=3D"font-family: times new roman,new york,t=
imes,serif; font-size: 12pt;">----- Original Message ----<br>From: Fr=E9d=
=E9ric PRACA &lt;frederic.praca@freebsd-fr.org&gt;<br>To: openmap-users@bbn=
.com<br>Sent: Monday, February 12, 2007 7:59:40 AM<br>Subject: [OpenMap Use=
rs] Rotation of map in
 Lambert projection<br><br><div>Hello,<br>I try to display a LambertConform=
al raster map on OpenMap but I am not able to<br>change the meridian used t=
o display the world layer. I tried to change the<br>getUpperLeft and getLow=
erRight code to this :<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;r=
eturn new LatLonPoint(90.0, -180.0 + centralMeridian);<br>and&nbsp;&nbsp;&n=
bsp;&nbsp; return new LatLonPoint(-90.0, 180.0 + centralMeridian);<br>respe=
ctively.<br>I expected the world map to rotate in order to have my centralM=
eridian in a<br>vertical way but the world layer stays with the meridian 0=
=B0 vertical.<br><br>Do you have any clue to change this ?<br><br>Regards,<=
br>Fred<br><br>--<br>[To unsubscribe to this list send an email to "majdart=
@bbn.com"<br>with the following text in the BODY of the message "unsubscrib=
e openmap-users"]<br></div></div><br></div></div></body></html>
--0-811473362-1171323629=:65316--

--
[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"]


From mail Tue Feb 13 02:53:35 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1D7rZZ14369
	for openmap-users-archive; Tue, 13 Feb 2007 02:53:35 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1D7rZj14366
	for <openmap-users@openmap.bbn.com>; Tue, 13 Feb 2007 02:53:35 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HGsR2-0000Gg-3l; Tue, 13 Feb 2007 02:50:44 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1D7nAL22425
	for openmap-users-outgoing; Tue, 13 Feb 2007 02:49:10 -0500 (EST)
X-AuditID: c1b4fb3e-b16d6bb0000007e1-95-45d16d62f205 
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Disposition-Notification-To: =?iso-8859-1?Q?Geir_=D8vsttun_=28AS/ETO=29?= <geir.ovsttun@ericsson.com>
Subject: RE: [OpenMap Users] Problem with Drawing Tool Layer - Possible Bug ?
Date: Tue, 13 Feb 2007 08:48:50 +0100
Message-ID: <891AE1CD3C5FF345BF8B3542D8D054CD02A48277@esealmw112.eemea.ericsson.se>
In-Reply-To: <JDE478$5F0961185209C677F79B135B978439FE@laposte.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [OpenMap Users] Problem with Drawing Tool Layer - Possible Bug ?
Thread-Index: AcdPPtzTdyW0mX/lRhWNlUjYglUi9AAApDVg
From: =?iso-8859-1?Q?Geir_=D8vsttun_=28AS/ETO=29?= <geir.ovsttun@ericsson.com>
To: "Camille Blondiaux" <camille.blondiaux@laposte.net>
Cc: <openmap-users@bbn.com>
X-OriginalArrivalTime: 13 Feb 2007 07:48:50.0569 (UTC) FILETIME=[66936F90:01C74F43]
X-Brightmail-Tracker: AAAAAA==
Old-X-Spam-Score: -0.6 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l1D7n7a22417
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Camille,

Thanks for the feedback.
I have investigated a bit further and found :

What you state seems to be correct if there are > 1 item in the combo box.
But not with only one item.

When I started debugging the code of OpenMap (4.6.3) class OMDrawingToolLauncher
I found that the ActionListener method tied to the JComboBox will not be called when there is only one item in the JComboBox.
I will do a private quick fix in the OpenMap source (I am in a hurry) but to me it seems this must be a bug and should have a proper fix.

I am running Java 1.6, having recently switched from 1.5 and have a suspicion that the behaviour was different under 1.5.    

Anyone else with an opinion here ?

/Geir 

-----Original Message-----
From: Camille Blondiaux [mailto:camille.blondiaux@laposte.net] 
Sent: 13. februar 2007 08:16
To: Geir Øvsttun (AS/ETO)
Subject: Re:[OpenMap Users] Problem with Drawing Tool Layer

Hi !

I also noticed that behavior and realized that even if the combo box displays the layer you want to draw on, you must "reselect" it in the combo, I mean, display the list and click on Drawing Tool Layer, then it works !

Camille

> Hi,
> 
> I am using the Drawing Tool Layer and the corresponding
Drawing Tool Launcher widget for initiating drawing.
> 
> When opening the Drawing Tool Launcher widget and pushing
the Create Graphic button I get a "Problem" popup windows displaying the text :
> 
> Problem creating new graphics:
> No valid receiver for the created graphic.
> 
> The Send To Selection pull down list shows one item :
> 
> 	Drawing Tool Layer
> 
> I thought this was the receiver. Am I wrong ?
> 
> The problem is not happening always but I have not been able
to figure out why and when I get the "Problem" popup window
> 
> Got a clue anyone ?
> 
> Geir Ovsttun
> Ericsson AS
> 

Envoyez vos cartes de voeux depuis www.laposte.net Elles seront ensuite distribuées par le facteur : pratique et malin !

--
[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"]


From mail Tue Feb 13 04:55:42 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1D9tg515845
	for openmap-users-archive; Tue, 13 Feb 2007 04:55:42 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1D9tgj15842
	for <openmap-users@openmap.bbn.com>; Tue, 13 Feb 2007 04:55:42 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HGuJq-0005Qz-3w; Tue, 13 Feb 2007 04:51:26 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1D9KPl23008
	for openmap-users-outgoing; Tue, 13 Feb 2007 04:20:25 -0500 (EST)
From: Chris van Lith <chrisvanlith@b3partners.nl>
Organization: B3Partners BV
To: =?iso-8859-1?Q?Fr=E9d=E9ric?= PRACA
	<frederic.praca@freebsd-fr.org>,
   openmap-users@bbn.com
Subject: Re: [OpenMap Users] Rotation of map in Lambert projection
In-Reply-To: <1171295980.45d08eecee9e9@imp.free.fr>
Message-ID: <20070213084811.f1be8311@kmail.b3partners.nl>
Date: Tue, 13 Feb 2007 09:48:11 +0100
X-Mailer: Kerio MailServer 6.1.4 WebMail
X-User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.8.1.1) Gecko/20061204
	Firefox/2.0.0.1
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="-----------ed896fca7ef1949397dec34b9ebb4406"
Old-X-Spam-Score: 1.6 (+)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: *
X-Spam-Status: No, score=1.6 required=2.5 tests=HTML_30_40,HTML_MESSAGE,
	RCVD_NUMERIC_HELO autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multi-part message in MIME format.

-------------ed896fca7ef1949397dec34b9ebb4406
Content-Type: multipart/alternative;
	boundary="-----------12f5ba9daf5f978b95458238ce63f400"

-------------12f5ba9daf5f978b95458238ce63f400
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Fr=E9d=E9ric,

Enclosed you will find my update of the openmap projection. I also found=
 some strange things and thus changed the projection to my needs. it has=
 been used for belgium. maybe it is useful for you.

Met vriendelijke groeten
Chris van Lith

  =5F=5F=5F=5F=5F =20

From: Fr=E9d=E9ric PRACA [mailto:frederic.praca@freebsd-fr.org]
To: openmap-users@bbn.com
Sent: Mon, 12 Feb 2007 16:59:40 +0100
Subject: [OpenMap Users] Rotation of map in Lambert projection

Hello,
I try to display a LambertConformal raster map on OpenMap but I am not a=
ble to
change the meridian used to display the world layer. I tried to change t=
he
getUpperLeft and getLowerRight code to this :
        return new LatLonPoint(90.0, -180.0 + centralMeridian);
and     return new LatLonPoint(-90.0, 180.0 + centralMeridian);
respectively.
I expected the world map to rotate in order to have my centralMeridian i=
n a
vertical way but the world layer stays with the meridian 0=B0 vertical.

Do you have any clue to change this =3F

Regards,
Fred

--
[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"]
 =20
-------------12f5ba9daf5f978b95458238ce63f400
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
 <meta http-equiv=3D'Content-Type' content=3D'text/html;charset=3Diso-88=
59-1'>
 <style>BODY{font:10pt Tahoma, Verdana, sans-serif;}</style>
</head>
<body>
Hi Fr=E9d=E9ric,<br><br>Enclosed you will find my update of the openmap =
projection. I also found some strange things and thus changed the projec=
tion to my needs. it has been used for belgium. maybe it is useful for y=
ou.<br><br>Met vriendelijke groeten<br>Chris van Lith<br><br><blockquote=
 style=3D"border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; marg=
in-left: 5px; margin-right: 0px;"><hr><b>From:</b> Fr=E9d=E9ric PRACA [m=
ailto:frederic.praca@freebsd-fr.org]<br><b>To:</b> openmap-users@bbn.com=
<br><b>Sent:</b> Mon, 12 Feb 2007 16:59:40 +0100<br><b>Subject:</b> [Ope=
nMap Users] Rotation of map in Lambert projection<br><br><!-- -->Hello,<=
br>I try to display a LambertConformal raster map on OpenMap but I am no=
t able to<br>change the meridian used to display the world layer. I trie=
d to change the<br>getUpperLeft and getLowerRight code to this :<br>    =
    return new LatLonPoint(90.0, -180.0 + centralMeridian);<br>and     r=
eturn new LatLonPoint(-90.0, 180.0 + centralMeridian);<br>respectively.<=
br>I expected the world map to rotate in order to have my centralMeridia=
n in a<br>vertical way but the world layer stays with the meridian 0=B0 =
vertical.<br><br>Do you have any clue to change this =3F<br><br>Regards,=
<br>Fred<br><br>--<br>[To unsubscribe to this list send an email to "<a =
href=3D"mailto:majdart@bbn.com">majdart@bbn.com</a>"<br>with the followi=
ng text in the BODY of the message "unsubscribe openmap-users"]<br><!-- =
--><style>
</style>
</blockquote></body></html>
-------------12f5ba9daf5f978b95458238ce63f400--

-------------ed896fca7ef1949397dec34b9ebb4406
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="LambertConformal.java"

Ly8gKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKgovLwovLyAqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCi8vCi8vICRTb3VyY2U6IC9jdnMv
ZGlzdGFwcHMvb3Blbm1hcC9zcmMvb3Blbm1hcC9jb20vYmJuL29wZW5tYXAvcHJvai9MYW1iZXJ0
Q29uZm9ybWFsLmphdmEsdiAkCi8vICRSQ1NmaWxlOiBMYW1iZXJ0Q29uZm9ybWFsLmphdmEsdiAk
Ci8vICRSZXZpc2lvbjogMS4xLjIuNCAkCi8vICREYXRlOiAyMDA1LzA4LzA5IDIxOjE3OjU0ICQK
Ly8gJEF1dGhvcjogZGlldHJpY2sgJAovLwovLyAqKioqKioqKioqKioqKioqKioqKioqKioqKioq
KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqCg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BMTFRvUGl4ZWwoUHJvak1hdGgucmFkVG9EZWco
bGF0KSwgUHJvak1hdGgucmFkVG9EZWcobG9uKSwgcCk7CiAgICAgICAgfSBlbHNlIHsKICAgICAg
ICAgICAgTExUb1BpeGVsKGxhdCwgbG9uLCBwKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIHA7
CiAgICB9CiAgICAKICAgIC8qKgogICAgICogSW52ZXJzZSBwcm9qZWN0IHgseSBjb29yZGluYXRl
cyBpbnRvIGEgTGF0TG9uUG9pbnQuCiAgICAgKiA8cD4KICAgICAqCiAgICAgKiBAcGFyYW0geCBp
bnRlZ2VyIHggY29vcmRpbmF0ZQogICAgICogQHBhcmFtIHkgaW50ZWdlciB5IGNvb3JkaW5hdGUK
ICAgICAqIEBwYXJhbSBsbHAgTGF0TG9uUG9pbnQKICAgICAqIEByZXR1cm4gTGF0TG9uUG9pbnQg
bGxwCiAgICAgKiBAc2VlIFByb2ojaW52ZXJzZShQb2ludCkKICAgICAqLwogICAgcHVibGljIExh
dExvblBvaW50IGludmVyc2UoaW50IHgsIGludCB5LCBMYXRMb25Qb2ludCBsbHApIHsKICAgICAg
ICBpZiAobGxwID09IG51bGwpIHsKICAgICAgICAgICAgbGxwID0gbmV3IExhdExvblBvaW50KCk7
CiAgICAgICAgfQogICAgICAgIC8vIGNvbnZlcnQgZnJvbSBzY3JlZW4gdG8gd29ybGQgY29vcmRp
bmF0ZXMKICAgICAgICBwaXhlbFRvTEwoeCwgeSwgbGxwKTsKICAgICAgICByZXR1cm4gbGxwOwog
ICAgfQogICAgCiAgICAvKioKICAgICAqIEludmVyc2UgcHJvamVjdCBhIFBvaW50LgogICAgICog
PHA+CiAgICAgKgogICAgICogQHJldHVybiBMYXRMb25Qb2ludCBsbHAKICAgICAqIEBwYXJhbSBw
dCBQb2ludAogICAgICogQHBhcmFtIGxscCByZXN1bHRpbmcgTGF0TG9uUG9pbnQKICAgICAqLwog
ICAgcHVibGljIExhdExvblBvaW50IGludmVyc2U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hbiB2aXNpYmxlVG90YWwgPSBmYWxzZTsKICAgICAgICAvLyBIQUNLIGdyYWJiZWQgZnJv
bSBDeWxpbmRyaWNhbC4gTWlnaHQgbmVlZCBmaXhpbmcuCiAgICAgICAgUG9pbnQgdGVtcCA9IG5l
dyBQb2ludCgpOwogICAgICAgIGludCBlbmQgPSBjb3B5bGVuICsgY29weW9mZjsKICAgICAgICBm
b3IgKGludCBpID0gY29weW9mZiwgaiA9IHJhd29mZjsgaSA8IGVuZDsgaSsrLCBqICs9IDIpIHsK
ICAgICAgICAgICAgZm9yd2FyZChyYXdsbHB0c1tqXSwgcmF3bGxwdHNbaiArIDFdLCB0ZW1wLCB0
cnVlKTsKICAgICAgICAgICAgeGNvb3Jkc1tpXSA9IHRlbXAueDsKICAgICAgICAgICAgeWNvb3Jk
c1tpXSA9IHRlbXAueTsKICAgICAgICAgICAgCiAgICAgICAgICAgIHZpc2libGVbaV0gPSAoMCA8
PSB0ZW1wLnggJiYgdGVtcC54IDw9IHdpZHRoKQogICAgICAgICAgICAmJiAoMCA8PSB0ZW1wLnkg
JiYgdGVtcC55IDw9IGhlaWdodCk7CiAgICAgICAgICAgIAogICAgICAgICAgICBpZiAodmlzaWJs
ZVtpXSA9PSB0cnVlICYmIHZpc2libGVUb3RhbCA9PSBmYWxzZSkgewogICAgICAgICAgICAgICAg
dmlzaWJsZVRvdGFsID0gdHJ1ZTsKICAgICAgICAgICAgfQogICAgICAgICAgICAKICAgICAgICB9
CiAgICAgICAgLy8gaWYgZXZlcnl0aGluZyBpcyB2aXNpYmxlCiAgICAgICAgcmV0dXJuIHZpc2li
bGVUb3RhbDsKICAgIH0KICAgIAogICAgLyoqCiAgICAgKiBGb3J3YXJkIHByb2plY3QgYSBsYXQv
bG9uIFBvbHkuIFJlbWVtYmVyIHRvIHNwZWNpZnkgdmVydGljZXMgaW4KICAgICAqIHJhZGlhbnMh
CiAgICAgKgogICAgICogQHBhcmFtIHJhd2xscHRzIGZsb2F0W10gb2YgbGF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cKICAgICAgICAvLyA2MFMKICAgICAgICAKICAgICAgICBmbG9hdCBtaW5s
YXQgPSBQcm9qTWF0aC5kZWdUb1JhZCgtNjBmKTsKICAgICAgICBib29sZWFuIGFsbEJlbG93TWlu
TGF0ID0gdHJ1ZTsKICAgICAgICBmb3IgKGkgPSAwLCBqID0gMDsgaSA8IGxlbjsgaSsrLCBqICs9
IDIpIHsKICAgICAgICAgICAgZmxvYXQgbCA9IHJhd2xscHRzW2ogKyAxXTsKICAgICAgICAgICAg
d2hpbGUgKGwgPCAwZikKICAgICAgICAgICAgICAgIGwgKz0gTWF0aC5QSSAqIDJmOwogICAgICAg
ICAgICBpZiAocmF3bGxwdHNbal0gPiBtaW5sYXQpIHsKICAgICAgICAgICAgICAgIGFsbEJlbG93
TWluTGF0ID0gZmFsc2U7CiAgICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgaWYgKGFsbEJl
bG93TWluTGF0KSB7CiAgICAgICAgICAgIHJldHVybiBuZXcgQXJyYXlMaXN0KDApOwogICAgICAg
IH0KICAgICAgICAKICAgICAgICAvLyBoYW5kbGUgY29tcGxpY2F0ZWQgbGluZSBpbiBzcGVjaWZp
YyByb3V0aW5lcwogICAgICAgIGlmIChpc0NvbXBsaWNhdGVkTGluZVR5cGUobHR5cGUpKQogICAg
ICAgICAgICByZXR1cm4gZG9Qb2x5RGlzcGF0Y2gocmF3bGxwdHMsIGx0eXBlLCBuc2VncywgaXNG
aWxsZWQpOwogICAgICAgIAogICAgICAgIFBvaW50IHRlbXAgPSBuZXcgUG9pbnQoKTsKICAgICAg
ICBpbnRbXSB4cyA9IG5ldyBpbnRbbGVuXTsKICAgICAgICBpbnRbXSB5cyA9IG5ldyBpbnRbbGVu
XTsKICAgICAgICAKICAgICAgICAvLyBmb3J3YXJkIHByb2plY3QgdGhlIHBvaW50cwogICAgICAg
IGZvciAoaSA9IDAsIGogPSAwOyBpIDwgbGVuOyBpKyssIGogKz0gMikgewogICAgICAgICAgICAK
ICAgICAgICAgICAgdGVtcCA9IGZvcndhcmQocmF3bGxwdHNbal0sIHJhd2xscHRzW2ogKyAxXSwg
dGVtcCwgdHJ1ZSk7CiAgICAgICAgICAgIHhzW2ldID0gdGVtcC54OwogICAgICAgICAgICB5c1tp
XSA9IHRlbXAueTsKICAgICAgICB9CiAgICAgICAgCiAgICAgICAgQXJyYXlMaXN0IHJldF92YWwg
PSBuZXcgQXJyYXlMaXN0KDIpOwogICAgICAgIHJldF92YWwuYWRkKHhzKTsKICAgICAgICByZXRf
dmFsLmFkZCh5cyk7CiAgICAgICAgCiAgICAgICAgcmV0dXJuIHJldF92YWw7CiAgICB9CiAgICAK
ICAgIC8qKgogICAgICogRHJhdyB0aGUgYmFja2dyb3VuZCBmb3IgdGhlIHByb2plY3Rpb24uCiAg
ICAgKgogICAgICogQHBhcmFtIGcgR3JhcGhpY3MyRAogICAgICogQHBhcmFtIHBhaW50IGphdmEu
YXd0LlBhaW50IHRvIHVzZSBmb3IgdGhlIGJhY2tncm91bmQKICAgICAqLwogICAgcHVibGljIHZv
aWQgZHJhd0JhY2tncm91bmQoamF2YS5hd3QuR3JhcGhpY3MyRCBnLCBqYXZhLmF3dC5QYWludCBw
YWludCkgewogICAgICAgIGcuc2V0UGFpbnQocGFpbnQpOwogICAgICAgIGRyYXdCYWNrZ3JvdW5k
KGcpOwogICAgfQogICAgCiAgICAvKioKICAgICAqIERyYXcgdGhlIGJhY2tncm91bmQgZm9yIHRo
ZSBwcm9qZWN0aW9uLgogICAgICoKICAgICAqIEBwYXJhbSBnIEdyYXBoaWNzCiAgICAgKi8KICAg
IHB1YmxpYyB2b2lkIGRyYXdCYWNrZ3JvdW5kKGphdmEuYXd0LkdyYXBoaWNzIGcpIHsKICAgICAg
ICBnLmZpbGxSZWN0KDAsIDAsIGdldFdpZHRoKCksIGdldEhlaWdodCgpKTsKICAgIH0KICAgIAog
ICAgLyoqCiAgICAgKiB0ZXN0IG1ldGhvZAogICAgICoKICAgICAqIEBwYXJhbSBhcmd2IGNvbW1h
bmQgbGluZSBwYXJhbWV0ZXJzCiAgICAgKi8KICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBtYWluKFN0
cmluZyBhcmd2W10pIHsKICAgICAgICBEZWJ1Zy5pbml0KCk7CiAgICAgICAgRGVidWcucHV0KCJM
YW1iZXJ0Iik7CiAgICAgICAgTGFtYmVydENvbmZvcm1hbCBwcm9qID0gbnVsbDsKICAgICAgICAK
ICAgICAgICBwcm9qID0gbmV3IExhbWJlcnRDb25mb3JtYWwoCiAgICAgICAgICAgICAgICBuZXcg
TGF0TG9uUG9pbnQoNTAuNjc5NTcyMjkyZiwgNS44MDczNzAxNTBmKSwKICAgICAgICAgICAgICAg
IDEwMDAwMC4wZiwKICAgICAgICAgICAgICAgIDYyMCwKICAgICAgICAgICAgICAgIDQ4MCwKICAg
ICAgICAgICAgICAgIDQuMzU2OTM5NTIzN2YsIC8vY2VudHJhbE1lcmlkaWFuCiAgICAgICAgICAg
ICAgICA0OS44MzMzMzMxMDlmLCAvL2xhbWJlcnRfc3Bfb25lCiAgICAgICAgICAgICAgICA1MS4x
NjY2NjYzMjFmLCAvL2xhbWJlcnRfc3BfdHdvCiAgICAgICAgICAgICAgICA5MC4wZiwgLy9yZWZl
cmVuY2VMYXRpdHVkZQogICAgICAgICAgICAgICAgMTUwMDAwLjAxZiwgLy9mYWxzZUVhc3RpbmcK
ICAgICAgICAgICAgICAgIDU0MDAwODguNDRmIC8vZmFsc2VOb3J0aGluZwogICAgICAgICAgICAg
ICAgKTsKICAgICAgICAKICAgICAgICBEZWJ1Zy5tZXNzYWdlKCJMYW1iZXJ0IiwgIigxKSIgKyBw
cm9qLmludmVyc2UoMzEwLCAyNDApKTsKICAgICAgICAKICAgICAgICBMYXRMb25Qb2ludCBsbHAg
PSBuZXcgTGF0TG9uUG9pbnQoMC4wZiwgMC4wZik7CiAgICAgICAgRGVidWcubWVzc2FnZSgiTGFt
YmVydCIsICIoMikiICsgcHJvai53b3JsZFRvTEwoMjUxNzYzLjIwZiwgMTUzMDM0LjEzZiwgbGxw
KSk7CiAgICAgICAgCiAgICAgICAgUG9pbnQyRCBscCA9IG5ldyBQb2ludDJELkRvdWJsZSgpOwog
ICAgICAgIExhdExvblBvaW50IHB0ID0gbmV3IExhdExvblBvaW50KDUwLjY3OTU3MjI5MmYsIDUu
ODA3MzcwMTUwZik7CiAgICAgICAgRGVidWcubWVzc2FnZSgiTGFtYmVydCIsICIoMykiICsgcHJv
ai5MTFRvV29ybGQocHQuZ2V0TGF0aXR1ZGUoKSwgcHQuZ2V0TG9uZ2l0dWRlKCksIGxwKSk7CiAg
ICB9CiAgICAKfQ==

-------------ed896fca7ef1949397dec34b9ebb4406--

--
[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"]


From mail Tue Feb 13 12:14:11 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1DHEBm25657
	for openmap-users-archive; Tue, 13 Feb 2007 12:14:11 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1DHEAj25654
	for <openmap-users@openmap.bbn.com>; Tue, 13 Feb 2007 12:14:10 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HH18q-0001OW-4n; Tue, 13 Feb 2007 12:08:32 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1DH5gI27639
	for openmap-users-outgoing; Tue, 13 Feb 2007 12:05:42 -0500 (EST)
Message-ID: <45D1E1B4.1010706@futuretek.com>
Date: Tue, 13 Feb 2007 10:05:08 -0600
From: Rob Ratcliff <rrr6399@futuretek.com>
User-Agent: Thunderbird 2.0pre (X11/20070202)
MIME-Version: 1.0
To: Chris van Lith <chrisvanlith@b3partners.nl>
CC: =?ISO-8859-1?Q?Fr=E9d=E9ric_PRACA?= <frederic.praca@freebsd-fr.org>,
   openmap-users@bbn.com
Subject: Re: [OpenMap Users] Rotation of map in Lambert projection
References: <20070213084811.f1be8311@kmail.b3partners.nl>
In-Reply-To: <20070213084811.f1be8311@kmail.b3partners.nl>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: Symantec AntiVirus Scan Engine
Old-X-Spam-Score: -0.4 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.6 required=2.5 tests=FORGED_RCVD_HELO,
	FROM_ENDS_IN_NUMS autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Speaking of the Lambert projection, shouldn't one be able to use this 
projection to convert from State-plane coordinates to Lat/Lon and 
vice-versa?

I tried it using this approach:

            LatLonPoint center = new LatLonPoint(30.1167,-100.3333);
            LambertConformal lambert = new 
LambertConformal(center,1000000.0f, 500,500,
                                        -100.3333333333333, 
30.11666666666667, 31.88333333333333,
                                        29.66666666666667,700000,3000000);
            Point2D pt = new Point2D.Double();
            lambert.LLToWorld(30.015643,-98.179725, pt);
            System.out.println(pt.toString());
and get this:
            Point2D.Double[0.039672363330592424, 1.6755878139863907]

I should be getting numbers for easting and northing in the hundreds of 
thousands to millions.

Does anybody know how to transform these numbers into Easting and 
Northing in meters or feet?

(I need to be able to convert back and forth in order to display some 
imagery data from a server that expects the bounding box to be specified 
in the state-plane coordinate system.)

Thanks

Rob


p.s. Here is the definition of the SP coordinate system I'm using:

/*
 *  32139 NAD_1983_StatePlane_Texas_Central_FIPS_4203
 *  
PROJCS["NAD_1983_StatePlane_Texas_Central_FIPS_4203",GEOGCS["GCS_North_American_1983",DATUM["D_North_Ameri
 *  
can_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]
 *  
],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",700000],PARAMETER["False_Northing",3000000],
 *  
PARAMETER["Central_Meridian",-100.3333333333333],PARAMETER["Standard_Parallel_1",30.11666666666667],PARAMETE
 *  
R["Standard_Parallel_2",31.88333333333333],PARAMETER["Latitude_Of_Origin",29.66666666666667],UNIT["Meter",1]]
 *  
http://www.cnr.colostate.edu/class_info/nr502/lg3/datums_coordinates/spcs.html
 *  lines.append("<ENVELOPE minx='3112576.5229230225' 
miny='10112154.75590226' " +
 *  "maxx='3112956.9819749305' maxy='10112501.491367795' " +
 *  "name='Initial_Extent' />");
*/

--
[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"]


From mail Tue Feb 13 13:13:36 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1DIDal26193
	for openmap-users-archive; Tue, 13 Feb 2007 13:13:36 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1DIDaj26190
	for <openmap-users@openmap.bbn.com>; Tue, 13 Feb 2007 13:13:36 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HH25h-0006JD-5f; Tue, 13 Feb 2007 13:09:21 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1DI80928361
	for openmap-users-outgoing; Tue, 13 Feb 2007 13:08:00 -0500 (EST)
Message-ID: <1171386342.45d1efe6a7433@imp.free.fr>
Date: Tue, 13 Feb 2007 18:05:42 +0100
From: =?iso-8859-1?b?RnLpZOlyaWM=?= PRACA <frederic.praca@freebsd-fr.org>
To: Chris van Lith <chrisvanlith@b3partners.nl>
Cc: =?iso-8859-1?b?RnLpZOlyaWM=?= PRACA <frederic.praca@freebsd-fr.org>,
   openmap-users@bbn.com
Subject: Re: [OpenMap Users] Rotation of map in Lambert projection
References: <20070213084811.f1be8311@kmail.b3partners.nl>
In-Reply-To: <20070213084811.f1be8311@kmail.b3partners.nl>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
User-Agent: Internet Messaging Program (IMP) 3.2.5
X-Originating-IP: 80.156.46.119
Old-X-Spam-Score: -0.1 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l1DI7wa28353
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Selon Chris van Lith <chrisvanlith@b3partners.nl>:

> Hi Frédéric,
Hi Chris,
> Enclosed you will find my update of the openmap projection. I also found some
> strange things and thus changed the projection to my needs. it has been used
> for belgium. maybe it is useful for you.
Thank you but I already patched the LCC openmap projection with code from java
map projection library (http://www.jhlabs.com/java/maps/proj/ ). It does not
work very well in southern hemisphere at this time and I did not find why. If
someone is interested in testing it, I can post the patch here.

> Met vriendelijke groeten
regards

> Chris van Lith
Fred

--
[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"]


From mail Tue Feb 13 13:14:15 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1DIEFv26203
	for openmap-users-archive; Tue, 13 Feb 2007 13:14:15 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1DIEFj26200
	for <openmap-users@openmap.bbn.com>; Tue, 13 Feb 2007 13:14:15 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HH26k-0006Lp-47; Tue, 13 Feb 2007 13:10:26 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1DI8ek28414
	for openmap-users-outgoing; Tue, 13 Feb 2007 13:08:40 -0500 (EST)
Message-ID: <45D1EE9D.5010605@ticom-geo.com>
Date: Tue, 13 Feb 2007 11:00:13 -0600
From: Rob Ratcliff <rratcliff@ticom-geo.com>
User-Agent: Thunderbird 2.0pre (X11/20070202)
MIME-Version: 1.0
To: Chris van Lith <chrisvanlith@b3partners.nl>
CC: =?ISO-8859-1?Q?Fr=E9d=E9ric_PRACA?= <frederic.praca@freebsd-fr.org>,
   openmap-users@bbn.com
Subject: Re: [OpenMap Users] Rotation of map in Lambert projection
References: <20070213084811.f1be8311@kmail.b3partners.nl>
In-Reply-To: <20070213084811.f1be8311@kmail.b3partners.nl>
Content-Type: multipart/alternative;
 boundary="------------030707020804060401080609"
X-Virus-Scanned: Symantec AntiVirus Scan Engine
Old-X-Spam-Score: 0.6 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO,HTML_40_50,
	HTML_MESSAGE autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multi-part message in MIME format.
--------------030707020804060401080609
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by ms-smtp-02.texas.rr.com id l1DH0BVB017132

It looks like Chris's version of the LambertConformal works much better!=20
Thanks Chris!
(I'm testing it out now on the imagery data server.)

--------------------------------------------- Previous Posting=20
------------------------------------

Speaking of the Lambert projection, shouldn't one be able to use this=20
projection to convert from State-plane coordinates to Lat/Lon and=20
vice-versa?


I tried it using this approach:

           LatLonPoint center =3D new LatLonPoint(30.1167,-100.3333);
           LambertConformal lambert =3D new=20
LambertConformal(center,1000000.0f, 500,500,
                                       -100.3333333333333,=20
30.11666666666667, 31.88333333333333,
                                       29.66666666666667,700000,3000000);
           Point2D pt =3D new Point2D.Double();
           lambert.LLToWorld(30.015643,-98.179725, pt);
           System.out.println(pt.toString());
and get this:
           Point2D.Double[0.039672363330592424, 1.6755878139863907]

I should be getting numbers for easting and northing in the hundreds of=20
thousands to millions.

Does anybody know how to transform these numbers into Easting and=20
Northing in meters or feet?

(I need to be able to convert back and forth in order to display some=20
imagery data from a server that expects the bounding box to be specified=20
in the state-plane coordinate system.)

Thanks

Rob


p.s. Here is the definition of the SP coordinate system I'm using:

/*
*  32139 NAD_1983_StatePlane_Texas_Central_FIPS_4203
* =20
PROJCS["NAD_1983_StatePlane_Texas_Central_FIPS_4203",GEOGCS["GCS_North_Am=
erican_1983",DATUM["D_North_Ameri=20

* =20
can_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",=
0],UNIT["Degree",0.017453292519943295]=20

* =20
],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",700000]=
,PARAMETER["False_Northing",3000000],=20

* =20
PARAMETER["Central_Meridian",-100.3333333333333],PARAMETER["Standard_Para=
llel_1",30.11666666666667],PARAMETE=20

* =20
R["Standard_Parallel_2",31.88333333333333],PARAMETER["Latitude_Of_Origin"=
,29.66666666666667],UNIT["Meter",1]]=20

* =20
http://www.cnr.colostate.edu/class_info/nr502/lg3/datums_coordinates/spcs=
.html=20

*  lines.append("<ENVELOPE minx=3D'3112576.5229230225'=20
miny=3D'10112154.75590226' " +
*  "maxx=3D'3112956.9819749305' maxy=3D'10112501.491367795' " +
*  "name=3D'Initial_Extent' />");
*/


Chris van Lith wrote:
> Hi Fr=E9d=E9ric,
>
> Enclosed you will find my update of the openmap projection. I also=20
> found some strange things and thus changed the projection to my needs.=20
> it has been used for belgium. maybe it is useful for you.
>
> Met vriendelijke groeten
> Chris van Lith
>
>     -------------------------------------------------------------------=
-----
>     *From:* Fr=E9d=E9ric PRACA [mailto:frederic.praca@freebsd-fr.org]
>     *To:* openmap-users@bbn.com
>     *Sent:* Mon, 12 Feb 2007 16:59:40 +0100
>     *Subject:* [OpenMap Users] Rotation of map in Lambert projection
>
>     Hello,
>     I try to display a LambertConformal raster map on OpenMap but I am
>     not able to
>     change the meridian used to display the world layer. I tried to
>     change the
>     getUpperLeft and getLowerRight code to this :
>     return new LatLonPoint(90.0, -180.0 + centralMeridian);
>     and return new LatLonPoint(-90.0, 180.0 + centralMeridian);
>     respectively.
>     I expected the world map to rotate in order to have my
>     centralMeridian in a
>     vertical way but the world layer stays with the meridian 0=B0 verti=
cal.
>
>     Do you have any clue to change this ?
>
>     Regards,
>     Fred
>
>     --
>     [To unsubscribe to this list send an email to "majdart@bbn.com
>     <mailto:majdart@bbn.com>"
>     with the following text in the BODY of the message "unsubscribe
>     openmap-users"]
>


--------------030707020804060401080609
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
It looks like Chris's version of the LambertConformal works much
better! Thanks Chris!<br>
(I'm testing it out now on the imagery data server.)<br>
<br>
--------------------------------------------- Previous Posting
------------------------------------<br>
<br>
Speaking of the Lambert projection, shouldn't one be able to use this
projection to convert from State-plane coordinates to Lat/Lon and
vice-versa?
<br>
<br>
<br>
I tried it using this approach:
<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LatLonPoint center = new LatLonPoint(30.1167,-100.3333);
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; LambertConformal lambert = new
LambertConformal(center,1000000.0f, 500,500,
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -100.3333333333333,
30.11666666666667, 31.88333333333333,
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
29.66666666666667,700000,3000000);
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Point2D pt = new Point2D.Double();
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lambert.LLToWorld(30.015643,-98.179725, pt);
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println(pt.toString());
<br>
and get this:
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Point2D.Double[0.039672363330592424, 1.6755878139863907]
<br>
<br>
I should be getting numbers for easting and northing in the hundreds of
thousands to millions.
<br>
<br>
Does anybody know how to transform these numbers into Easting and
Northing in meters or feet?
<br>
<br>
(I need to be able to convert back and forth in order to display some
imagery data from a server that expects the bounding box to be
specified in the state-plane coordinate system.)
<br>
<br>
Thanks
<br>
<br>
Rob
<br>
<br>
<br>
p.s. Here is the definition of the SP coordinate system I'm using:
<br>
<br>
/*
<br>
*&nbsp; 32139 NAD_1983_StatePlane_Texas_Central_FIPS_4203
<br>
*&nbsp;
PROJCS["NAD_1983_StatePlane_Texas_Central_FIPS_4203",GEOGCS["GCS_North_American_1983",DATUM["D_North_Ameri
<br>
*&nbsp;
can_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]
<br>
*&nbsp;
],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",700000],PARAMETER["False_Northing",3000000],
<br>
*&nbsp;
PARAMETER["Central_Meridian",-100.3333333333333],PARAMETER["Standard_Parallel_1",30.11666666666667],PARAMETE
<br>
*&nbsp;
R["Standard_Parallel_2",31.88333333333333],PARAMETER["Latitude_Of_Origin",29.66666666666667],UNIT["Meter",1]]
<br>
*&nbsp; <a class="moz-txt-link-freetext"
 href="http://www.cnr.colostate.edu/class_info/nr502/lg3/datums_coordinates/spcs.html">http://www.cnr.colostate.edu/class_info/nr502/lg3/datums_coordinates/spcs.html</a>
<br>
*&nbsp; lines.append("&lt;ENVELOPE minx='3112576.5229230225'
miny='10112154.75590226' " +
<br>
*&nbsp; "maxx='3112956.9819749305' maxy='10112501.491367795' " +
<br>
*&nbsp; "name='Initial_Extent' /&gt;");
<br>
*/
<br>
<br>
<br>
Chris van Lith wrote:
<blockquote cite="mid:20070213084811.f1be8311@kmail.b3partners.nl"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html;">
  <style>BODY{font:10pt Tahoma, Verdana, sans-serif;}</style>Hi
Fr&eacute;d&eacute;ric,<br>
  <br>
Enclosed you will find my update of the openmap projection. I also
found some strange things and thus changed the projection to my needs.
it has been used for belgium. maybe it is useful for you.<br>
  <br>
Met vriendelijke groeten<br>
Chris van Lith<br>
  <br>
  <blockquote
 style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;">
    <hr><b>From:</b> Fr&eacute;d&eacute;ric PRACA
[<a class="moz-txt-link-freetext" href="mailto:frederic.praca@freebsd-fr.org">mailto:frederic.praca@freebsd-fr.org</a>]<br>
    <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:openmap-users@bbn.com">openmap-users@bbn.com</a><br>
    <b>Sent:</b> Mon, 12 Feb 2007 16:59:40 +0100<br>
    <b>Subject:</b> [OpenMap Users] Rotation of map in Lambert
projection<br>
    <br>
<!-- -->Hello,<br>
I try to display a LambertConformal raster map on OpenMap but I am not
able to<br>
change the meridian used to display the world layer. I tried to change
the<br>
getUpperLeft and getLowerRight code to this :<br>
return new LatLonPoint(90.0, -180.0 + centralMeridian);<br>
and return new LatLonPoint(-90.0, 180.0 + centralMeridian);<br>
respectively.<br>
I expected the world map to rotate in order to have my centralMeridian
in a<br>
vertical way but the world layer stays with the meridian 0&deg; vertical.<br>
    <br>
Do you have any clue to change this ?<br>
    <br>
Regards,<br>
Fred<br>
    <br>
--<br>
[To unsubscribe to this list send an email to "<a moz-do-not-send="true"
 href="mailto:majdart@bbn.com">majdart@bbn.com</a>"<br>
with the following text in the BODY of the message "unsubscribe
openmap-users"]<br>
<!-- -->
    <style>
    </style></blockquote>
</blockquote>
<br>
</body>
</html>

--------------030707020804060401080609--

--
[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"]


From mail Tue Feb 13 13:23:57 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1DINvR26291
	for openmap-users-archive; Tue, 13 Feb 2007 13:23:57 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1DINvj26288
	for <openmap-users@openmap.bbn.com>; Tue, 13 Feb 2007 13:23:57 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HH2Ew-0002Ze-5s; Tue, 13 Feb 2007 13:18:54 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1DIHLU28483
	for openmap-users-outgoing; Tue, 13 Feb 2007 13:17:21 -0500 (EST)
Message-ID: <45D1F0FD.30209@ticom-geo.com>
Date: Tue, 13 Feb 2007 11:10:21 -0600
From: Rob Ratcliff <rratcliff@ticom-geo.com>
User-Agent: Thunderbird 2.0pre (Windows/20070211)
MIME-Version: 1.0
To: Rob Ratcliff <rrr6399@futuretek.com>
CC: Chris van Lith <chrisvanlith@b3partners.nl>, openmap-users@bbn.com
Subject: Re: [OpenMap Users] Rotation of map in Lambert projection
References: <20070213084811.f1be8311@kmail.b3partners.nl> <45D1E1B4.1010706@futuretek.com>
In-Reply-To: <45D1E1B4.1010706@futuretek.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: Symantec AntiVirus Scan Engine
Old-X-Spam-Score: 0.0 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Chris,

Would you mind defining a, ba and e?

I assume that "a" is equal to the first term  (6378137)of  the Spheroid 
number below.

My northing values are off by a factor of ten so I think I need to tweak 
these parameters for my SP coordinate system.

Thanks,

Rob

Rob Ratcliff wrote:
>
> p.s. Here is the definition of the SP coordinate system I'm using:
>
> /*
> *  32139 NAD_1983_StatePlane_Texas_Central_FIPS_4203
> *  
> PROJCS["NAD_1983_StatePlane_Texas_Central_FIPS_4203",GEOGCS["GCS_North_American_1983",DATUM["D_North_Ameri 
>
> *  
> can_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295] 
>
> *  
> ],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",700000],PARAMETER["False_Northing",3000000], 
>
> *  
> PARAMETER["Central_Meridian",-100.3333333333333],PARAMETER["Standard_Parallel_1",30.11666666666667],PARAMETE 
>
> *  
> R["Standard_Parallel_2",31.88333333333333],PARAMETER["Latitude_Of_Origin",29.66666666666667],UNIT["Meter",1]] 
>
> *  
> http://www.cnr.colostate.edu/class_info/nr502/lg3/datums_coordinates/spcs.html 
>
> *  lines.append("<ENVELOPE minx='3112576.5229230225' 
> miny='10112154.75590226' " +
> *  "maxx='3112956.9819749305' maxy='10112501.491367795' " +
> *  "name='Initial_Extent' />");
> */
>
> -- 
> [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"]
>

--
[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"]


From mail Tue Feb 13 15:40:53 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1DKerU27479
	for openmap-users-archive; Tue, 13 Feb 2007 15:40:53 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1DKeqj27476
	for <openmap-users@openmap.bbn.com>; Tue, 13 Feb 2007 15:40:52 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HH4Oj-0004iS-49; Tue, 13 Feb 2007 15:37:09 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1DKZVq00575
	for openmap-users-outgoing; Tue, 13 Feb 2007 15:35:31 -0500 (EST)
Date: Tue, 13 Feb 2007 20:34:57 +0100
From: Chris van Lith <chrisvanlith@b3partners.nl>
Subject: RE: [OpenMap Users] Rotation of map in Lambert projection
In-reply-to: <45D1F0FD.30209@ticom-geo.com>
To: "'Rob Ratcliff'" <rratcliff@ticom-geo.com>,
   "'Rob Ratcliff'" <rrr6399@futuretek.com>
Cc: openmap-users@bbn.com
Message-id: <000301c74fa6$0b46e730$21d4b590$@nl>
MIME-version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Content-type: text/plain; charset=us-ascii
Content-language: nl
Content-transfer-encoding: 7BIT
Thread-index: AcdPm/3NltwCdN5lTgGiBTFeG5pfwAACWYzg
References: <20070213084811.f1be8311@kmail.b3partners.nl>
 <45D1E1B4.1010706@futuretek.com> <45D1F0FD.30209@ticom-geo.com>
Old-X-Spam-Score: 0.0 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello Rob,
It has been a while since I produced that code, so I would like to refer you
to a manual where you can find those definitions:
http://remotesensing.org/geotiff/proj_list/guid7.html
1.4.1.4 Lambert Conic Conformal (2 SP Belgium) (EPSG coordinate operation
method code 9803)
Hope this helps
Chris

-----Oorspronkelijk bericht-----
Van: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com] Namens
Rob Ratcliff
Verzonden: dinsdag 13 februari 2007 18:10
Aan: Rob Ratcliff
CC: Chris van Lith; openmap-users@bbn.com
Onderwerp: Re: [OpenMap Users] Rotation of map in Lambert projection

Chris,

Would you mind defining a, ba and e?

I assume that "a" is equal to the first term  (6378137)of  the Spheroid 
number below.

My northing values are off by a factor of ten so I think I need to tweak 
these parameters for my SP coordinate system.

Thanks,

Rob

Rob Ratcliff wrote:
>
> p.s. Here is the definition of the SP coordinate system I'm using:
>
> /*
> *  32139 NAD_1983_StatePlane_Texas_Central_FIPS_4203
> *  
>
PROJCS["NAD_1983_StatePlane_Texas_Central_FIPS_4203",GEOGCS["GCS_North_Ameri
can_1983",DATUM["D_North_Ameri 
>
> *  
>
can_1983",SPHEROID["GRS_1980",6378137,298.257222101]],PRIMEM["Greenwich",0],
UNIT["Degree",0.017453292519943295] 
>
> *  
>
],PROJECTION["Lambert_Conformal_Conic"],PARAMETER["False_Easting",700000],PA
RAMETER["False_Northing",3000000], 
>
> *  
>
PARAMETER["Central_Meridian",-100.3333333333333],PARAMETER["Standard_Paralle
l_1",30.11666666666667],PARAMETE 
>
> *  
>
R["Standard_Parallel_2",31.88333333333333],PARAMETER["Latitude_Of_Origin",29
.66666666666667],UNIT["Meter",1]] 
>
> *  
>
http://www.cnr.colostate.edu/class_info/nr502/lg3/datums_coordinates/spcs.ht
ml 
>
> *  lines.append("<ENVELOPE minx='3112576.5229230225' 
> miny='10112154.75590226' " +
> *  "maxx='3112956.9819749305' maxy='10112501.491367795' " +
> *  "name='Initial_Extent' />");
> */
>
> -- 
> [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"]
>

--
[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"]

--
[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"]


From mail Tue Feb 13 15:43:42 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1DKhg927511
	for openmap-users-archive; Tue, 13 Feb 2007 15:43:42 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1DKhgj27508
	for <openmap-users@openmap.bbn.com>; Tue, 13 Feb 2007 15:43:42 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HH4SA-00009m-4L; Tue, 13 Feb 2007 15:40:42 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1DKdph00625
	for openmap-users-outgoing; Tue, 13 Feb 2007 15:39:51 -0500 (EST)
In-Reply-To: <891AE1CD3C5FF345BF8B3542D8D054CD02A48277@esealmw112.eemea.ericsson.se>
References: <891AE1CD3C5FF345BF8B3542D8D054CD02A48277@esealmw112.eemea.ericsson.se>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed
Message-Id: <D8E6881F-DFF1-4049-990B-2230F5636FEE@bbn.com>
Cc: "Camille Blondiaux" <camille.blondiaux@laposte.net>,
   <openmap-users@bbn.com>
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] Problem with Drawing Tool Layer - Possible Bug ?
Date: Tue, 13 Feb 2007 15:39:46 -0500
To: =?ISO-8859-1?Q?Geir_=D8vsttun_=28AS/ETO=29?= <geir.ovsttun@ericsson.com>
X-Mailer: Apple Mail (2.752.2)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l1DKdma00617
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Geir,

I can't reproduce this behavior in the beta, so it might have been  
something that has been fixed.

You can get the beta from the download page on the website if you  
want to test it in your environment.

- Don

On Feb 13, 2007, at 2:48 AM, Geir Øvsttun (AS/ETO) wrote:

> Camille,
>
> Thanks for the feedback.
> I have investigated a bit further and found :
>
> What you state seems to be correct if there are > 1 item in the  
> combo box.
> But not with only one item.
>
> When I started debugging the code of OpenMap (4.6.3) class  
> OMDrawingToolLauncher
> I found that the ActionListener method tied to the JComboBox will  
> not be called when there is only one item in the JComboBox.
> I will do a private quick fix in the OpenMap source (I am in a  
> hurry) but to me it seems this must be a bug and should have a  
> proper fix.
>
> I am running Java 1.6, having recently switched from 1.5 and have a  
> suspicion that the behaviour was different under 1.5.
>
> Anyone else with an opinion here ?
>
> /Geir
>
> -----Original Message-----
> From: Camille Blondiaux [mailto:camille.blondiaux@laposte.net]
> Sent: 13. februar 2007 08:16
> To: Geir Øvsttun (AS/ETO)
> Subject: Re:[OpenMap Users] Problem with Drawing Tool Layer
>
> Hi !
>
> I also noticed that behavior and realized that even if the combo  
> box displays the layer you want to draw on, you must "reselect" it  
> in the combo, I mean, display the list and click on Drawing Tool  
> Layer, then it works !
>
> Camille
>
>> Hi,
>>
>> I am using the Drawing Tool Layer and the corresponding
> Drawing Tool Launcher widget for initiating drawing.
>>
>> When opening the Drawing Tool Launcher widget and pushing
> the Create Graphic button I get a "Problem" popup windows  
> displaying the text :
>>
>> Problem creating new graphics:
>> No valid receiver for the created graphic.
>>
>> The Send To Selection pull down list shows one item :
>>
>> 	Drawing Tool Layer
>>
>> I thought this was the receiver. Am I wrong ?
>>
>> The problem is not happening always but I have not been able
> to figure out why and when I get the "Problem" popup window
>>
>> Got a clue anyone ?
>>
>> Geir Ovsttun
>> Ericsson AS
>>
>
> Envoyez vos cartes de voeux depuis www.laposte.net Elles seront  
> ensuite distribuées par le facteur : pratique et malin !
>
> --
> [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"]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Wed Feb 14 09:22:53 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1EEMru08984
	for openmap-users-archive; Wed, 14 Feb 2007 09:22:53 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1EEMqj08981
	for <openmap-users@openmap.bbn.com>; Wed, 14 Feb 2007 09:22:52 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HHKx3-0005Bx-3q; Wed, 14 Feb 2007 09:17:41 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1EEFnW08375
	for openmap-users-outgoing; Wed, 14 Feb 2007 09:15:49 -0500 (EST)
Message-Id: <6.1.1.1.2.20070214150754.01c7eec0@pop.cls.fr>
X-Sender: swasserhardt@pop.cls.fr (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 6.1.1.1
Date: Wed, 14 Feb 2007 15:15:29 +0100
To: openMap <openmap-users@bbn.com>
From: =?iso-8859-1?Q?St=E9phane?= Wasserhardt <swasserhardt@cls.fr>
Subject: [OpenMap Users] Political boundaries shape files
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Old-X-Spam-Score: -1.3 (-)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi !

There is a shapeFile bundled with openMap (dcwpo-browse.shp) which contains 
political boundaries.
Unfortunately, this dataset is not up to date.
I'm searching for an up to date (and free) one... Multiple resolutions 
would be better, but I can't ask too much !
Can someone provide me (a link to) such data ?
Thanks a lot in advance !!!

Stephane 

--
[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"]


From mail Wed Feb 14 09:35:58 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1EEZwV09106
	for openmap-users-archive; Wed, 14 Feb 2007 09:35:58 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1EEZwj09103
	for <openmap-users@openmap.bbn.com>; Wed, 14 Feb 2007 09:35:58 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HHLCZ-0005QE-64; Wed, 14 Feb 2007 09:33:43 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1EEWj008495
	for openmap-users-outgoing; Wed, 14 Feb 2007 09:32:45 -0500 (EST)
In-Reply-To: <6.1.1.1.2.20070214150754.01c7eec0@pop.cls.fr>
References: <6.1.1.1.2.20070214150754.01c7eec0@pop.cls.fr>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed
Message-Id: <345820B1-D66E-45D0-8A5E-7C7D889CCA32@bbn.com>
Cc: openMap <openmap-users@bbn.com>
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] Political boundaries shape files
Date: Wed, 14 Feb 2007 09:32:39 -0500
To: =?ISO-8859-1?Q?St=E9phane_Wasserhardt?= <swasserhardt@cls.fr>
X-Mailer: Apple Mail (2.752.2)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l1EEWha08487
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Stephane,

I only use dcwpo-browse shp file for the overview map, because it it  
pretty lightweight.  The cntry02 shp file in the package is from  
2002, and is more accurate (and larger).

- Don

On Feb 14, 2007, at 9:15 AM, Stéphane Wasserhardt wrote:

> Hi !
>
> There is a shapeFile bundled with openMap (dcwpo-browse.shp) which  
> contains political boundaries.
> Unfortunately, this dataset is not up to date.
> I'm searching for an up to date (and free) one... Multiple  
> resolutions would be better, but I can't ask too much !
> Can someone provide me (a link to) such data ?
> Thanks a lot in advance !!!
>
> Stephane
> --
> [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"]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail Thu Feb 15 05:56:11 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1FAuBL20852
	for openmap-users-archive; Thu, 15 Feb 2007 05:56:11 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1FAuAj20849
	for <openmap-users@openmap.bbn.com>; Thu, 15 Feb 2007 05:56:10 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HHeD1-0003Tj-5b; Thu, 15 Feb 2007 05:51:27 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1FAl0Q19559
	for openmap-users-outgoing; Thu, 15 Feb 2007 05:47:00 -0500 (EST)
Content-class: urn:content-classes:message
Subject: [OpenMap Users] Density layer or hotspot layer function in openmap?
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Date: Thu, 15 Feb 2007 11:39:09 +0100
Message-ID: <5CDCE8E138ACB445B11E9F7B85FC782A4A83E5@radon.smr.intern>
X-MimeOLE: Produced By Microsoft Exchange V6.5
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Density layer or hotspot layer function in openmap?
Thread-Index: AcdQRTMHsvNq3ukjRlurp0JJHW/3dwAoUvwgAAHDMLA=
From: "Jeroen van Dijk" <jeroen@sentient.nl>
To: <openmap-users@bbn.com>
Old-X-Spam-Score: -0.3 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l1FAkwa19551
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk


Hello,

I'm working on a crime simulation project that uses the simulation
framework Repast. This framework has openmap integration which I want to
exploit to plot known crime incidents by a sort of density surface or
hotspot layer. On the homepage of OpenMap there is this image:
http://openmap.bbn.com/images/etopo.png. This image seems to show some
of this functionality. However, I am not able to find the right
information on these functions. Can someone give me some hints here?
When I used google I was overwhelmed by all kinds of irrelevant
information.

So in short my question is:

Is there some kind of density surface layer or hotspot layer
functionality? If yes, where can I find an example, tutorial, etc?

Thanks in advance,

Jeroen

--
[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"]


From mail Thu Feb 15 07:38:56 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1FCcuh21669
	for openmap-users-archive; Thu, 15 Feb 2007 07:38:56 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1FCcuj21666
	for <openmap-users@openmap.bbn.com>; Thu, 15 Feb 2007 07:38:56 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HHfoR-0000dB-5m; Thu, 15 Feb 2007 07:34:11 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1FCWm920208
	for openmap-users-outgoing; Thu, 15 Feb 2007 07:32:48 -0500 (EST)
Message-ID: <1171536421.45d43a25381f1@imp.free.fr>
Date: Thu, 15 Feb 2007 11:47:01 +0100
From: =?iso-8859-1?b?RnLpZOlyaWM=?= PRACA <frederic.praca@freebsd-fr.org>
To: openmap-users@bbn.com
Subject: [OpenMap Users] Transverse Mercator Projection
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
User-Agent: Internet Messaging Program (IMP) 3.2.5
X-Originating-IP: 80.156.46.119
Old-X-Spam-Score: -0.0 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l1FCWja20200
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello,
I'm trying to implement the Transverse mercator projection to display raster
maps projected using this projection. Is it possible ? Do I only have to create
the projection in the com.bbn.openmap.proj package ? Are there mandatory methods
to implement to display data along the abstract ones ?

Thanks for your answers.

Fred
PS: I still have problem with my LCC projected raster map on the LCC projected
vector openmap map.

--
[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"]


From mail Thu Feb 15 11:12:49 2007
Return-Path: <mail>
Received: (from mail@localhost)
	by openmap.bbn.com (8.11.6/8.11.6) id l1FGCnS23437
	for openmap-users-archive; Thu, 15 Feb 2007 11:12:49 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.11.6/8.11.6) with ESMTP id l1FGCmj23434
	for <openmap-users@openmap.bbn.com>; Thu, 15 Feb 2007 11:12:48 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HHj9J-0006Yx-3c; Thu, 15 Feb 2007 11:07:57 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1FG64n26839
	for openmap-users-outgoing; Thu, 15 Feb 2007 11:06:04 -0500 (EST)
In-Reply-To: <5CDCE8E138ACB445B11E9F7B85FC782A4A83E5@radon.smr.intern>
References: <5CDCE8E138ACB445B11E9F7B85FC782A4A83E5@radon.smr.intern>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <AB5F8F16-ECBD-4290-9755-F9A5199413AB@bbn.com>
Cc: <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] Density layer or hotspot layer function in openmap?
Date: Thu, 15 Feb 2007 11:05:55 -0500
To: Jeroen van Dijk <jeroen@sentient.nl>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Jeroen,

You can create a density surface several different ways in OpenMap,  
but it comes down to having your layer display the information in an  
OMRaster (OMRaster, OMScalingRaster) object, or an OMGrid object.  It  
depends on what your source data looks like and how you access that  
data.  To use an OMRaster, you would create a  
java.awt.image.BufferedImage and render directly into it based on  
your data, and then pass that BufferedImage to an OMRaster for  
positioning.  That would force you to manage the representation of  
the data in the image.

The OMGrid is really build for representing grid data, though.  You  
use a GridData object to hold your data values, and the OMGrid object  
holds the GridData and the position information about the GridData.   
The OMGrid also uses an OMGridGenerator object to interpret the  
GridData and create other OMGraphics to render to the map.  The  
OMGridGenerator is really where your focus will be, because that's  
what decides how your data will be visualized.  The  
com.bbn.openmap.omGraphics.grid package contains a bunch of  
OMGridGenerator implementations, the simplest one being a  
SimpleColorGenerator that interprets the grid data as color values.

I'd start with a Layer that extends OMGraphicHandlerLayer and  
overrides the prepare() method to return an OMGraphicList with an  
OMGrid on it.  Use the prepare method from the DemoLayer as an  
example of mananging the OMGraphicList for a layer, and how to create  
an OMGraphic once and reuse it of for different projection changes.

Then, get your data into an OMGrid object, create/use an  
OMGridGenerator that creates a visualization to your liking.

Hope this helps,

Don



On Feb 15, 2007, at 5:39 AM, Jeroen van Dijk wrote:

>
> Hello,
>
> I'm working on a crime simulation project that uses the simulation
> framework Repast. This framework has openmap integration which I  
> want to
> exploit to plot known crime incidents by a sort of density surface or
> hotspot layer. On the homepage of OpenMap there is this image:
> http://openmap.bbn.com/images/etopo.png. This image seems to show some
> of this functionality. However, I am not able to find the right
> information on these functions. Can someone give me some hints here?
> When I used google I was overwhelmed by all kinds of irrelevant
> information.
>
> So in short my question is:
>
> Is there some kind of density surface layer or hotspot layer
> functionality? If yes, where can I find an example, tutorial, etc?
>
> Thanks in advance,
>
> Jeroen
>
> --
> [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"]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail@openmap.bbn.com Sun Feb 25 12:31:28 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l1PHUw1d008596
	for <openmap-users-archive@openmap.bbn.com>; Sun, 25 Feb 2007 12:31:08 -0500
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l1PHUwoK008594
	for openmap-users-archive; Sun, 25 Feb 2007 12:30:58 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l1PHUIGQ008565
	for <openmap-users@openmap.bbn.com>; Sun, 25 Feb 2007 12:30:38 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HK8eG-000132-3k; Thu, 22 Feb 2007 02:45:52 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1M7j0910431
	for openmap-users-outgoing; Thu, 22 Feb 2007 02:45:00 -0500 (EST)
X-AuditID: c1b4fb3c-b0fcabb0000007de-a0-45dd4504313d 
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Subject: [OpenMap Users] How do one check if a LatLonPoint is contained within an OMPoly ? 
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Thu, 22 Feb 2007 08:23:47 +0100
Message-ID: <891AE1CD3C5FF345BF8B3542D8D054CD03763F91@esealmw112.eemea.ericsson.se>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: How do one check if a LatLonPoint is contained within an OMPoly ? 
Thread-Index: AcdWUmQhPrXnfjcEQv+DQklMc03xDw==
From: =?iso-8859-1?Q?Geir_=D8vsttun_=28AS/ETO=29?= <geir.ovsttun@ericsson.com>
To: <openmap-users@bbn.com>
X-OriginalArrivalTime: 22 Feb 2007 07:23:47.0822 (UTC) FILETIME=[649630E0:01C75652]
X-Brightmail-Tracker: AAAAAA==
Old-X-Spam-Score: 0.7 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l1M7iwa10415
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi all,
 
A short question for help :
 
How do one check if a LatLonPoint is contained within an OMPoly/OMCircle/OMRect ?
All coordinates I handle are in Lat,Lon degree format.
 
Geir Ovsttun
Ericsson AS
 
 

--
[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"]


From mail@openmap.bbn.com Sun Feb 25 12:31:28 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l1PHUwrt008597
	for <openmap-users-archive@openmap.bbn.com>; Sun, 25 Feb 2007 12:31:08 -0500
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l1PHUwJK008595
	for openmap-users-archive; Sun, 25 Feb 2007 12:30:58 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l1PHUH7J008564
	for <openmap-users@openmap.bbn.com>; Sun, 25 Feb 2007 12:30:38 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HK3D0-0007Zr-3E; Wed, 21 Feb 2007 20:57:22 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1M1sQG08751
	for openmap-users-outgoing; Wed, 21 Feb 2007 20:54:26 -0500 (EST)
In-Reply-To: <6.1.1.1.2.20070221105953.01c72138@pop.cls.fr>
References: <6.1.1.1.2.20070221105953.01c72138@pop.cls.fr>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed
Message-Id: <708F4CF9-2BEB-4D7A-9876-176ED193D8EA@bbn.com>
Cc: openMap <openmap-users@bbn.com>
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] AbstractMouseMode contribution
Date: Wed, 21 Feb 2007 20:54:21 -0500
To: =?ISO-8859-1?Q?St=E9phane_Wasserhardt?= <swasserhardt@cls.fr>
X-Mailer: Apple Mail (2.752.2)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l1M1sNa08743
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Stephane,

Thanks for the code, this is a cool addition.  I'll incorporate it  
into the code base.

- Don


On Feb 21, 2007, at 6:12 AM, Stéphane Wasserhardt wrote:

> Hello !
>
> Here is a very simple addition to AbstractMouseMode.
> It doesn't change anything in it's current state. You must set  
> AbstractMouseMode.mouseWheelCenters to true if you want to activate  
> the modification.
> When set to true, this only change the way AbstractMouseMode  
> handles mouseWheelEvents : instead of simply zooming in, mouse  
> wheel negative rotations also center the projection towards the  
> mouse location.
>
> For instance, if the current projection is centered on location A,  
> and the mouse pointer is on location B, if you zoom in using the  
> mouse wheel, the projection's center will be moved towards location  
> B (at a constant rate : WHEEL_CENTERING_PERCENTS percents of the  
> distance between A and B).
>
> I think this simple feature can be usefull for most openMap  
> applications. Any feedbacks are welcome :-)
>
> Stephane
>
>
> PS : Added code is below (complete modified file is attached) :
>
>     /**
>      * Set this value to <code>true</code> in order to have the  
> mapBean centered on mouse position each time
>      * the mouseWheel is used for zooming.<br>
>      * TODO This should be part of "Environment" or another general  
> configuration.
>      */
>     public static transient boolean mouseWheelCenters = false;
>     /**
>      * When <code>mouseWheelCenters</code> is set to <code>true</ 
> code>, this constant indicates how much
>      * the projection's center is moved towards the mouse location  
> in percent of the distance between the
>      * current projection's center and the mouse location.
>      */
>     public static final transient int WHEEL_CENTERING_PERCENTS = 15;
>     private static final transient float WHEEL_CENTERING_RATIO =  
> WHEEL_CENTERING_PERCENTS / 100f;
>
>     /**
>      * Invoked from the MouseWheelListener interface.
>      */
>     public void mouseWheelMoved(MouseWheelEvent e) {
>         int rot = e.getWheelRotation();
>         if (e.getSource() instanceof MapBean) {
>             MapBean mb = (MapBean) e.getSource();
>             if (rot > 0) {
>                 // Positive, zoom out
>                 mb.zoom(new ZoomEvent(mb, ZoomEvent.RELATIVE, 1.1f));
>             } else {
> // ADDITION - BEGIN
>                 // When zooming in, if mouseWheelCenters mode is  
> set ...
>                 if (mouseWheelCenters) {
>                     // The projection's center is moved by  
> WHEEL_CENTERING_PERCENTS percents of the distance
>                     // to the mouse's location.
>                     Projection projection = mb.getProjection();
>
>                     float centerX = projection.getWidth() / 2f;
>                     float centerY = projection.getHeight() / 2f;
>                     int newX = Math.round(centerX + (e.getX() -  
> centerX) * WHEEL_CENTERING_RATIO);
>                     int newY = Math.round(centerY + (e.getY() -  
> centerY) * WHEEL_CENTERING_RATIO);
>
>                     LatLonPoint llp = projection.inverse(newX, newY);
>                     mb.center(new CenterEvent(mb, llp.getLatitude 
> (), llp.getLongitude()));
>                 }
> // ADDITION - END
>
>                 mb.zoom(new ZoomEvent(mb, ZoomEvent.RELATIVE, .9f));
>             }
>         }
>     }
> <AbstractMouseMode.java>



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail@openmap.bbn.com Mon Feb 26 06:57:16 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l1QBv5uH027083
	for <openmap-users-archive@openmap.bbn.com>; Mon, 26 Feb 2007 06:57:16 -0500
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l1QBv5FP027082
	for openmap-users-archive; Mon, 26 Feb 2007 06:57:05 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l1QBuIu7027076
	for <openmap-users@openmap.bbn.com>; Mon, 26 Feb 2007 06:56:38 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HLeMz-0007ds-48; Mon, 26 Feb 2007 06:50:17 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1QBjg020512
	for openmap-users-outgoing; Mon, 26 Feb 2007 06:45:42 -0500 (EST)
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Transfer-Encoding: 7bit
Message-Id: <36421ECF-12D7-4559-9F83-A53746D73320@pvv.ntnu.no>
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed
To: openmap questions <openmap-users@bbn.com>
From: Tore Halset <halset@pvv.ntnu.no>
Subject: [OpenMap Users] meters -> latlon
Date: Mon, 26 Feb 2007 12:44:38 +0100
X-Mailer: Apple Mail (2.752.3)
X-OriginalArrivalTime: 26 Feb 2007 11:45:18.0682 (UTC) 
	FILETIME=[96B86BA0:01C7599B]
X-imss-version: 2.046
X-imss-result: Passed
X-imss-scores: Clean:39.48903 C:2 M:3 S:5 R:5
X-imss-settings: Baseline:2 C:2 M:2 S:2 R:2 (0.1500 0.1500)
Old-X-Spam-Score: 0.6 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello.

I am working on a project to use OpenMap as a WMS server. It is  
working very well, but it does currently only support SRS=EPSG:4326  
(unprojected). I want to support OSGEO:41001[1] (Mercator) as well.

The problem with OSGEO:41001and a lot of other SRSs used in the OGC  
WMS/WFS world is that the units are in meters instead of in degrees  
lat/lon. To match OpenMap projection system (based on lat/lon) I  
guess I will need a frontend that convert all incoming meters to  
degrees before handling over to OpenMap projection.

I know of Length.METER and have used it to find distances, but I do  
not know how to use it or anything else to convert incoming x/y in  
meters to lat/lon. Perhaps I can use Length.METER to convert the  
direct distance between the projection origin and the point and then  
the same for delta lat. Using it for delta lon will not work (as the  
world is not flat), but Pythagoras should help me find this last number.

Am I thinking correct here? Anyone done this before in OpenMap and  
want to give me some hints?

Regards,
  - Tore.
[1] http://wiki.osgeo.org/index.php/WMS_Tiling_Client_Recommendation

--
[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"]


From mail@openmap.bbn.com Tue Feb 27 08:59:08 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l1RDwwMr029934
	for <openmap-users-archive@openmap.bbn.com>; Tue, 27 Feb 2007 08:59:08 -0500
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l1RDwwOp029933
	for openmap-users-archive; Tue, 27 Feb 2007 08:58:58 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l1RDw29F029860
	for <openmap-users@openmap.bbn.com>; Tue, 27 Feb 2007 08:58:32 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HM2lO-00051Q-4X; Tue, 27 Feb 2007 08:53:06 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1RDoSb03798
	for openmap-users-outgoing; Tue, 27 Feb 2007 08:50:28 -0500 (EST)
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Transfer-Encoding: 7bit
Message-Id: <A2473B82-084F-471D-98F7-2C24CACAB0EB@pvv.ntnu.no>
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed
To: openmap questions <openmap-users@bbn.com>
From: Tore Halset <halset@pvv.ntnu.no>
Subject: [OpenMap Users] OMGraphicList and appObject
Date: Tue, 27 Feb 2007 14:49:20 +0100
X-Mailer: Apple Mail (2.752.3)
X-OriginalArrivalTime: 27 Feb 2007 13:50:06.0080 (UTC) 
	FILETIME=[2FF87000:01C75A76]
X-imss-version: 2.046
X-imss-result: Passed
X-imss-scores: Clean:78.45984 C:2 M:3 S:5 R:5
X-imss-settings: Baseline:2 C:2 M:2 S:2 R:2 (0.1500 0.1500)
Old-X-Spam-Score: -0.5 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello.

All my OMGraphics have appObject to point back to the underlying  
feature object. In a Layer I can then do a prepare().findAll(...) if  
a user wants information about some features.

This works pretty well in most situations, but not so elegant for  
features that need a OMGraphicList to represent the view. The problem  
is that OMGraphicList.setAppObject does not make sure all the  
graphics in the list have the same appObject, so findAll() may return  
OMGraphics without a appObject.

To overcome this problem I have created my own subclass of  
OMGraphicList that overrides setAppObject to set appObject on all  
subgraphics as well and _add to set the appObject on OMGraphics added  
at a later point in time. See attached code.

Do you think this should be the default behaviour of OMGraphicList?  
Any reason to why this may *not* be a good

(On a side note: I sure hope it (in the future) will be possible to  
still have the appObject as a single Object ref and not a Map as I  
operate with a huge number of OMGraphics and do not want all those  
extra Map-objects.)

Regards,
  - Tore.

     public synchronized void setAppObject(Object obj) {
         super.setAppObject(obj);

         for (Iterator it = iterator(); it.hasNext();) {
             OMGraphic g = (OMGraphic) it.next();
             if (g.getAppObject() == null) {
                 g.setAppObject(obj);
             }
         }
     }

     protected synchronized void _add(OMGeometry g) {
         Object appObject = getAppObject();
         if (g.getAppObject() == null) {
             g.setAppObject(appObject);
         }

         super._add(g);
     }

--
[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"]


From mail@openmap.bbn.com Tue Feb 27 13:21:32 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l1RILWn2032629
	for <openmap-users-archive@openmap.bbn.com>; Tue, 27 Feb 2007 13:21:32 -0500
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l1RILWvO032628
	for openmap-users-archive; Tue, 27 Feb 2007 13:21:32 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l1RILV6t032625
	for <openmap-users@openmap.bbn.com>; Tue, 27 Feb 2007 13:21:31 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HM6s8-0003hl-3S; Tue, 27 Feb 2007 13:16:20 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1RIDpM07979
	for openmap-users-outgoing; Tue, 27 Feb 2007 13:13:51 -0500 (EST)
Message-ID: <9167194.post@talk.nabble.com>
Date: Mon, 26 Feb 2007 11:32:57 -0800 (PST)
From: ruya <rmlopes@student.dei.uc.pt>
To: openmap-users@bbn.com
Subject: [OpenMap Users] Performance on very large model
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Nabble-From: rmlopes@student.dei.uc.pt
Old-X-Spam-Score: 0.3 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk


Dear all,

My name is Rui Lopes and I am new to openmap. I am a student of Informatics
Engineering in Coimbra, Portugal.
I have a model built in RepastJ, that needs 512 MB o memory to run.  I've
been using the repast gui tools to display the world. Now I wan't to
integrate it with a GIS software, in order to, hopefully, have better
performance on the visualization and extra GIS functionalities. 
I started by trying OpenMap. RepastJ offers inbuilt functions to use
openmap, but they are quite limited. One has to load agents from a shape
file for example and use a library to create the GIS agents. So, I
integrated it directly with openmap by creating my own
OMGraphicHandlerLayer, following the samples in the openmap package. This
worked, but now I need to the double the memory in order to run the model
and I am not able to deal with the gui, because my computer is almost
freezed (I have only 1024MB ram).
The thing is that the world is a grid of 2400x1200, what gives at start
2880000 objects (I used OMRect), that change, at least some do, every tick.
Is this a plausible number of objects to use in openmap or should I forget
it?
Has someone used some GIS software with such a large number of objects in a
dynamic model? which application did you used? what are the requirements for
a machine to properly deal with a model of this size?

Thanks in advance,
Rui
-- 
View this message in context: http://www.nabble.com/Performance-on-very-large-model-tf3295378.html#a9167194
Sent from the OpenMap mailing list archive at Nabble.com.

--
[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"]


From mail@openmap.bbn.com Tue Feb 27 14:28:51 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l1RJSpqB000460
	for <openmap-users-archive@openmap.bbn.com>; Tue, 27 Feb 2007 14:28:51 -0500
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l1RJSp1X000459
	for openmap-users-archive; Tue, 27 Feb 2007 14:28:51 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l1RJSoUY000456
	for <openmap-users@openmap.bbn.com>; Tue, 27 Feb 2007 14:28:50 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HM7vW-0004eE-5R; Tue, 27 Feb 2007 14:23:54 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l1RJMEj09216
	for openmap-users-outgoing; Tue, 27 Feb 2007 14:22:14 -0500 (EST)
Message-ID: <45E484E8.7060807@io.com>
Date: Tue, 27 Feb 2007 13:22:16 -0600
From: JR Andreassen <janrune@io.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: ruya <rmlopes@student.dei.uc.pt>, OpenMap MList <openmap-users@bbn.com>
Subject: Re: [OpenMap Users] Performance on very large model
References: <9167194.post@talk.nabble.com>
In-Reply-To: <9167194.post@talk.nabble.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on smtp.prismnet.com
X-Virus-Status: Clean
Old-X-Spam-Score: -1.2 (-)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi...
 I tried using it with a 1.5Gb Shape file.
It didn't work too good. I'm sure there is a way to trim it.
   JR

>Dear all,
>
>My name is Rui Lopes and I am new to openmap. I am a student of Informatics
>Engineering in Coimbra, Portugal.
>I have a model built in RepastJ, that needs 512 MB o memory to run.  I've
>been using the repast gui tools to display the world. Now I wan't to
>integrate it with a GIS software, in order to, hopefully, have better
>performance on the visualization and extra GIS functionalities. 
>I started by trying OpenMap. RepastJ offers inbuilt functions to use
>openmap, but they are quite limited. One has to load agents from a shape
>file for example and use a library to create the GIS agents. So, I
>integrated it directly with openmap by creating my own
>OMGraphicHandlerLayer, following the samples in the openmap package. This
>worked, but now I need to the double the memory in order to run the model
>and I am not able to deal with the gui, because my computer is almost
>freezed (I have only 1024MB ram).
>The thing is that the world is a grid of 2400x1200, what gives at start
>2880000 objects (I used OMRect), that change, at least some do, every tick.
>Is this a plausible number of objects to use in openmap or should I forget
>it?
>Has someone used some GIS software with such a large number of objects in a
>dynamic model? which application did you used? what are the requirements for
>a machine to properly deal with a model of this size?
>
>Thanks in advance,
>Rui
>  
>

--
[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"]


From mail@openmap.bbn.com Thu Mar  1 03:58:48 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l218wlrK027280
	for <openmap-users-archive@openmap.bbn.com>; Thu, 1 Mar 2007 03:58:47 -0500
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l218wl0m027279
	for openmap-users-archive; Thu, 1 Mar 2007 03:58:47 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l218we8w027276
	for <openmap-users@openmap.bbn.com>; Thu, 1 Mar 2007 03:58:40 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HMh3f-0001Cr-4x; Thu, 01 Mar 2007 03:54:39 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l218ocx00346
	for openmap-users-outgoing; Thu, 1 Mar 2007 03:50:38 -0500 (EST)
In-Reply-To: <1171536421.45d43a25381f1@imp.free.fr>
References: <1171536421.45d43a25381f1@imp.free.fr>
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Type: text/plain;
	charset=ISO-8859-1;
	delsp=yes;
	format=flowed
Message-Id: <4427FD35-12C1-4821-932B-9CB33074BAC8@pvv.ntnu.no>
Cc: openmap questions <openmap-users@bbn.com>
From: Tore Halset <halset@pvv.ntnu.no>
Subject: Re: [OpenMap Users] Transverse Mercator Projection
Date: Thu, 1 Mar 2007 09:49:20 +0100
To: =?ISO-8859-1?Q?Fr=E9d=E9ric_PRACA?= <frederic.praca@freebsd-fr.org>
X-Mailer: Apple Mail (2.752.3)
X-OriginalArrivalTime: 01 Mar 2007 08:50:16.0271 (UTC) 
	FILETIME=[A208EDF0:01C75BDE]
X-imss-version: 2.046
X-imss-result: Passed
X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5
X-imss-settings: Baseline:2 C:2 M:2 S:2 R:2 (0.1500 0.1500)
Old-X-Spam-Score: -0.3 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l218oVa00338
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Anything news on Transverse Mercator. I need it as well.

  - Tore.

On Feb 15, 2007, at 11:47 , Frédéric PRACA wrote:

> Hello,
> I'm trying to implement the Transverse mercator projection to  
> display raster
> maps projected using this projection. Is it possible ? Do I only  
> have to create
> the projection in the com.bbn.openmap.proj package ? Are there  
> mandatory methods
> to implement to display data along the abstract ones ?
>
> Thanks for your answers.
>
> Fred
> PS: I still have problem with my LCC projected raster map on the  
> LCC projected
> vector openmap map.
>
> --
> [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"]

--
[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"]


From mail@openmap.bbn.com Sat Mar  3 19:33:17 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l240XHm2019217
	for <openmap-users-archive@openmap.bbn.com>; Sat, 3 Mar 2007 19:33:17 -0500
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l240XHE9019216
	for openmap-users-archive; Sat, 3 Mar 2007 19:33:17 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l240XCsg019213
	for <openmap-users@openmap.bbn.com>; Sat, 3 Mar 2007 19:33:12 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HNec4-0002j5-4A; Sat, 03 Mar 2007 19:30:08 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l240Pbo00727
	for openmap-users-outgoing; Sat, 3 Mar 2007 19:25:37 -0500 (EST)
Message-ID: <45EA0CA6.4080803@wat.edu.pl>
Date: Sun, 04 Mar 2007 01:02:46 +0100
From: Mariusz Chmielewski <mchmielewski@wat.edu.pl>
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
MIME-Version: 1.0
To: openmap-users@bbn.com
Subject: [OpenMap Users] AJAX with OpenMap
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: by amavisd-new
Old-X-Spam-Score: -1.5 (-)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Has anybody tried to integrate openmap with the AJAX ?? I am thinking of 
interactive component similar to Applet but based on teh AJAX?? is it 
possible??

--
[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"]


From mail@openmap.bbn.com Sun Mar  4 00:51:06 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l245p5HX023446
	for <openmap-users-archive@openmap.bbn.com>; Sun, 4 Mar 2007 00:51:05 -0500
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l245p59j023445
	for openmap-users-archive; Sun, 4 Mar 2007 00:51:05 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l245p2Rf023442
	for <openmap-users@openmap.bbn.com>; Sun, 4 Mar 2007 00:51:03 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HNjZc-0001ZR-4m; Sun, 04 Mar 2007 00:47:56 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l245kLT02271
	for openmap-users-outgoing; Sun, 4 Mar 2007 00:46:21 -0500 (EST)
Date: Sun, 04 Mar 2007 05:45:28 +0100
From: Tore Halset <halset@pvv.ntnu.no>
Subject: Re: [OpenMap Users] AJAX with OpenMap
In-reply-to: <45EA0CA6.4080803@wat.edu.pl>
To: Mariusz Chmielewski <mchmielewski@wat.edu.pl>
Cc: openmap-users@bbn.com
Message-id: <FBC04D0E-24FB-4635-8E99-138640E7C483@pvv.ntnu.no>
MIME-version: 1.0
X-Mailer: Apple Mail (2.752.2)
Content-type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Content-transfer-encoding: 7BIT
References: <45EA0CA6.4080803@wat.edu.pl>
Old-X-Spam-Score: -0.6 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello.

wmsservlet and OpenLayers is one option.

  - Tore.

On Mar 4, 2007, at 1:02, Mariusz Chmielewski wrote:

> Has anybody tried to integrate openmap with the AJAX ?? I am  
> thinking of interactive component similar to Applet but based on  
> teh AJAX?? is it possible??

--
[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"]


From mail@openmap.bbn.com Sun Mar  4 10:55:23 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l24FtNeC019170
	for <openmap-users-archive@openmap.bbn.com>; Sun, 4 Mar 2007 10:55:23 -0500
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l24FtNiU019169
	for openmap-users-archive; Sun, 4 Mar 2007 10:55:23 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l24FtJZU019166
	for <openmap-users@openmap.bbn.com>; Sun, 4 Mar 2007 10:55:19 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HNt0o-0004JP-4C; Sun, 04 Mar 2007 10:52:38 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l24FpBg05239
	for openmap-users-outgoing; Sun, 4 Mar 2007 10:51:11 -0500 (EST)
DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed;
        d=gmail.com; s=beta;
        h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references;
        b=H/ZpYuC+5fyt1GyKFwL94CJBeSUQt8zaFby+ov3BIizj+aRrvSBRBFLzZVUbwYle0PX9PZZdAC73rn7HGyZSxM2oQO16pYpWRq43Hrs5bWfk5v0Zrp9wVPd75RHPi7KgqfBcNNQgfcvRKtmbx2p7kFGOndWg+GJL+75ZAtxKMFg=
DomainKey-Signature: a=rsa-sha1; c=nofws;
        d=gmail.com; s=beta;
        h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references;
        b=A0kEUqZ34ZNoQgjM5d44GN3P0YhvObuZ+ZL7FXUSbd+iyDBPjMQXewDMCI+1fRJWxMigHIj0UhqXCOJgLQ0BuxiBy+Ok+BmTH2BmZLl8cjAatSa+0Z38ucYip53ox8qpAmxMVKQKdzNvR53RjWIVYHe+kLrOt9GrOQ315J4pjnc=
Message-ID: <5fb314000703040751j2e4a4987uc17304eb5bc28a2f@mail.gmail.com>
Date: Sun, 4 Mar 2007 15:51:00 +0000
From: "andy south" <southandy@gmail.com>
To: openmap-users@bbn.com
Subject: [OpenMap Users] esriPluginLayer problem from applet
In-Reply-To: <5fb314000702271434m6ad4f22ewa75d207a21392c8b@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; 
	boundary="----=_Part_135735_20089204.1173023460537"
References: <5fb314000702271434m6ad4f22ewa75d207a21392c8b@mail.gmail.com>
Old-X-Spam-Score: -0.2 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=HTML_MESSAGE,RCVD_BY_IP 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

------=_Part_135735_20089204.1173023460537
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello there,
I'm very impressed with the capabilities of OpenMap, thanks to all involved.

However, have a problem I've been trying for a few hours to fix to no
avail.



I've been trying to get an applet to load a shapefile defined in the
openmap.properties file as an EsriPluginLayer.



I copied the demo applet and openmap.properties file and defined in the
properties file a shapefile for the applet to load from the server.

This works as the esriPluginLayer when the applet is run locally but not
when it is run on the server. It does work as a ShapeLayer when run from the
server.



This is the error when trying to load the EsriPluginLayer on the server.

*** ERROR ***

PropUtils: AccessControlException trying to access data/shape/cfp.shp

*************

Despite the shapefile not displaying, 'show data table' will display the dbf
file fine.



Text added to the properties file :

        cfp.class = com.bbn.openmap.plugin.esri.EsriPlugIn

        cfp.prettyName = CFP

        cfp.shp=data/shape/cfp.shp

        cfp.dbf=data/shape/cfp.dbf

        cfp.shx=data/shape/cfp.shx



#test loading as shapeLayer rather than esriPluginLayer

cfp2.class=com.bbn.openmap.layer.shape.ShapeLayer

cfp2.prettyName=CFP2

cfp2.shapeFile=data/shape/cfp.shp

cfp2.spatialIndex=data/shape/cfp.ssx



Any suggestions appreciated,

Thanks,

Andy

------=_Part_135735_20089204.1173023460537
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<span class="gmail_quote"><br><br></span>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">Hello there,</font></span></p>
<div style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">I&#39;m very impressed with the capabilities of OpenMap, thanks to all involved.</font></span></div>
<div style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman"></font></span>&nbsp;</div>
<div style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">However, have a problem I&#39;ve been trying for a few hours to fix to no avail.&nbsp; </font></span></div>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">&nbsp;</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">I&#39;ve been trying to get an applet to load a shapefile defined in the openmap.properties file as an EsriPluginLayer. </font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">&nbsp;</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">I copied the demo applet and openmap.properties file and </font></span><span lang="EN-GB"><font face="Times New Roman">defined in the properties file a shapefile for the applet to load from the server.
</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">This works as the esriPluginLayer when the applet is run locally but not when it is run on the server. It does work as a ShapeLayer when run from the server. 
</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">&nbsp;</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">This is the error when trying to load the EsriPluginLayer on the server. </font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">*** ERROR ***</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">PropUtils: AccessControlException trying to access data/shape/cfp.shp <span>&nbsp;&nbsp;&nbsp; </span></font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">*************</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">Despite the shapefile not displaying, &#39;show data table&#39; will display the dbf file fine. <span>&nbsp; </span></font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">&nbsp;</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">Text added to the properties file :</font> </span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>cfp.class = com.bbn.openmap.plugin.esri.EsriPlugIn</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>cfp.prettyName = CFP</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>cfp.shp=data/shape/cfp.shp<span>&nbsp;&nbsp;&nbsp; </span></font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>cfp.dbf=data/shape/cfp.dbf</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>cfp.shx=data/shape/cfp.shx</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">&nbsp;</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">#test loading as shapeLayer rather than esriPluginLayer </font></span></p>
<p style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt"><span lang="EN-GB"><font face="Times New Roman">cfp2.class=com.bbn.openmap.layer.shape.ShapeLayer </font></span></p>
<p style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt"><span lang="EN-GB"><font face="Times New Roman">cfp2.prettyName=CFP2 </font></span></p>
<p style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt"><span lang="EN-GB"><font face="Times New Roman">cfp2.shapeFile=data/shape/cfp.shp </font></span></p>
<p style="MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 36pt"><span lang="EN-GB"><font face="Times New Roman">cfp2.spatialIndex=data/shape/cfp.ssx </font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">&nbsp;</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">Any suggestions appreciated,</font></span> </p>
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">Thanks,</font></span></p><span class="sg">
<p style="MARGIN: 0cm 0cm 0pt"><span lang="EN-GB"><font face="Times New Roman">Andy</font></span></p></span>

------=_Part_135735_20089204.1173023460537--

--
[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"]


From mail@openmap.bbn.com Fri Mar  9 08:25:26 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l29DPOxo029928
	for <openmap-users-archive@openmap.bbn.com>; Fri, 9 Mar 2007 08:25:24 -0500
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l29DPNYt029927
	for openmap-users-archive; Fri, 9 Mar 2007 08:25:23 -0500
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l29DPFFG029924
	for <openmap-users@openmap.bbn.com>; Fri, 9 Mar 2007 08:25:15 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HPf2r-0005Ck-5U; Fri, 09 Mar 2007 08:22:05 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l29DHdl13167
	for openmap-users-outgoing; Fri, 9 Mar 2007 08:17:39 -0500 (EST)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="us-ascii"
Subject: RE: [OpenMap Users] Density layer or hotspot layer function in openmap?
Date: Fri, 9 Mar 2007 14:17:17 +0100
Message-ID: <5CDCE8E138ACB445B11E9F7B85FC782A4A8401@radon.smr.intern>
In-Reply-To: <AB5F8F16-ECBD-4290-9755-F9A5199413AB@bbn.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [OpenMap Users] Density layer or hotspot layer function in openmap?
Thread-Index: AcdRGzTm17Ng1WxgS/efEIxg6K9wwgRK6ygg
References: <5CDCE8E138ACB445B11E9F7B85FC782A4A83E5@radon.smr.intern> <AB5F8F16-ECBD-4290-9755-F9A5199413AB@bbn.com>
From: "Jeroen van Dijk" <jeroen@sentient.nl>
To: "Don Dietrick" <dietrick@bbn.com>
Cc: <openmap-users@bbn.com>
Old-X-Spam-Score: -0.5 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l29DHYa13158
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Don,

Sorry for my late respond, I just recently got again time to work on the
OpenMap aspect of my project. I have experimented a bit with OMGrid and
the OMGridGenerator object. I have succeeded to display a grid with
different colors for different values. However, I'm left with the
following issues:

I use a 100 by 100 grid based on int values. When I zoom far enough,
this depends on the scale and the scale of the OMGrid, I get heap space
problems (load gets easily 1GB+ of memory). Is there a more efficient
class/or method to do this?

I hoped the other Generators would be more efficient, but when I try to
display my Grid with the ElevationBandGenerator or the SlopeGenerator
nothing shows up. What do I do wrong? (the code for
ElevationBandGenerator is commented out in the init method below)


Regards,

Jeroen


I have added my code of my GridLayer class below.

/**
 * @author jeroen
 * @date Mar 09, 2007
 * @package test
 * @filename GridLayer.java
 *  
 */
package test;

import java.awt.Color;

import uchicago.src.sim.util.Random;

import anl.repast.gis.display.OpenMapDisplay;

import com.bbn.openmap.LatLonPoint;
import com.bbn.openmap.Layer;
import com.bbn.openmap.event.ProjectionEvent;
import com.bbn.openmap.layer.OMGraphicHandlerLayer;
import com.bbn.openmap.omGraphics.OMGraphicList;
import com.bbn.openmap.omGraphics.OMGrid;
import com.bbn.openmap.omGraphics.grid.ColoredShadingColors;

import com.bbn.openmap.omGraphics.grid.ElevationBandGenerator;
import com.bbn.openmap.omGraphics.grid.ElevationBandGeneratorLoader;
import com.bbn.openmap.omGraphics.grid.OMGridData;
import com.bbn.openmap.omGraphics.grid.SimpleColorGenerator;
import com.bbn.openmap.omGraphics.grid.SlopeGenerator;
import com.bbn.openmap.proj.Projection;

/**
 * @author jeroen
 *
 */
public class GridLayer extends OMGraphicHandlerLayer {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private OMGraphicList omgraphics;
	private float latitude;
	private float longtitude;	
	private float hRes;
	private float vRes;
	
	public GridLayer(LatLonPoint point, float vRes, float hRes) {
		this(point.getLatitude(), point.getLongitude(), vRes,
hRes);
	}
		
	public GridLayer(float latitude, float longtitude, float vRes,
float hRes) {
		this.latitude = latitude;
		this.longtitude = longtitude;
		this.hRes = hRes;
		this.vRes = vRes;		
		omgraphics = init();
		setName("grid");
		
	}  
      
	@Override
    public OMGraphicList prepare() { //not synchronized as in super?
        OMGraphicList currentList = getList();
        
        if (currentList == null) {
            currentList = init();
        }
        
        Projection proj = getProjection();
        
        // if the layer hasn't been added to the MapBean
        // the projection could be null.
        if (currentList != null && proj != null) {
            currentList.generate(proj);
        }
                
        return currentList;
    }    
        
        
    /**
	 * @return
	 */
	public OMGraphicList init() {		
		OMGraphicList omList = new OMGraphicList();
		
		int width = 100;
		int height = 100;
		
		OMGridData.Int gridData = new
OMGridData.Int(createGrid(width,height) );
		OMGrid omGrid = new OMGrid(latitude, longtitude,
vRes/100,hRes/100, gridData);				
		
		SimpleColorGenerator gen = new SimpleColorGenerator();
//		SlopeGenerator gen = new SlopeGenerator();
//		ElevationBandGenerator gen = new
ElevationBandGenerator();

				
//		 //Create colors for the ElevationBand generator
//		ColoredShadingColors csc = new ColoredShadingColors(); 
//		csc.createDefaultColors();	
////		gen.setColors(csc);
////		gen.setBandHeight(10);
		
		omGrid.setGenerator(gen);
		omList.addOMGraphic(omGrid);
				
		return omList;
	}
	
	private int[][] createGrid(int width, int height) 
	{
		int[][] data = new int[width][height];

		Random.createUniform(0.0,50.0);
		for (int i=0; i<width; i++) {
			for (int j = 0; j < height; j++) {
				data[i][j] = 0xCCFFFF00 + i*3 ;
			}
		}
		
		return data;
	}
	
	

	public LatLonPoint getLatLongPoint() {
		return new LatLonPoint(this.latitude, this.longtitude);
	}
	


	
	
	@Override
	public void paint(java.awt.Graphics g) {
		omgraphics.render(g);
	}

	public void projectionChanged(ProjectionEvent e) {
		omgraphics.project(e.getProjection(), true);
		repaint();
	}


	 /**
	  * @param args
	  */
	 public static void main(String[] args) {
		 // TODO Auto-generated method stub

		OpenMapDisplay omDisplay = new OpenMapDisplay("test",
Color.RED);
		LatLonPoint center = new LatLonPoint(51.594f, 4.777f);
		LatLonPoint origin = new LatLonPoint(51.573f, 4.699f);
		float hRes = Math.abs(origin.getLongitude() - 4.832f);
		float vRes = Math.abs(origin.getLatitude() - 51.633f);
		
		omDisplay.centerMap(center);
		omDisplay.setMapScale(524228);
		
		omDisplay.addLayer(new GridLayer(origin, vRes, hRes));

	 }

}






-----Original Message-----
From: Don Dietrick [mailto:dietrick@bbn.com] 
Sent: Thursday, February 15, 2007 5:06 PM
To: Jeroen van Dijk
Cc: openmap-users@bbn.com
Subject: Re: [OpenMap Users] Density layer or hotspot layer function in
openmap?

Hi Jeroen,

You can create a density surface several different ways in OpenMap,  
but it comes down to having your layer display the information in an  
OMRaster (OMRaster, OMScalingRaster) object, or an OMGrid object.  It  
depends on what your source data looks like and how you access that  
data.  To use an OMRaster, you would create a  
java.awt.image.BufferedImage and render directly into it based on  
your data, and then pass that BufferedImage to an OMRaster for  
positioning.  That would force you to manage the representation of  
the data in the image.

The OMGrid is really build for representing grid data, though.  You  
use a GridData object to hold your data values, and the OMGrid object  
holds the GridData and the position information about the GridData.   
The OMGrid also uses an OMGridGenerator object to interpret the  
GridData and create other OMGraphics to render to the map.  The  
OMGridGenerator is really where your focus will be, because that's  
what decides how your data will be visualized.  The  
com.bbn.openmap.omGraphics.grid package contains a bunch of  
OMGridGenerator implementations, the simplest one being a  
SimpleColorGenerator that interprets the grid data as color values.

I'd start with a Layer that extends OMGraphicHandlerLayer and  
overrides the prepare() method to return an OMGraphicList with an  
OMGrid on it.  Use the prepare method from the DemoLayer as an  
example of mananging the OMGraphicList for a layer, and how to create  
an OMGraphic once and reuse it of for different projection changes.

Then, get your data into an OMGrid object, create/use an  
OMGridGenerator that creates a visualization to your liking.

Hope this helps,

Don



On Feb 15, 2007, at 5:39 AM, Jeroen van Dijk wrote:

>
> Hello,
>
> I'm working on a crime simulation project that uses the simulation
> framework Repast. This framework has openmap integration which I  
> want to
> exploit to plot known crime incidents by a sort of density surface or
> hotspot layer. On the homepage of OpenMap there is this image:
> http://openmap.bbn.com/images/etopo.png. This image seems to show some
> of this functionality. However, I am not able to find the right
> information on these functions. Can someone give me some hints here?
> When I used google I was overwhelmed by all kinds of irrelevant
> information.
>
> So in short my question is:
>
> Is there some kind of density surface layer or hotspot layer
> functionality? If yes, where can I find an example, tutorial, etc?
>
> Thanks in advance,
>
> Jeroen
>
> --
> [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"]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail@openmap.bbn.com Fri Mar  9 16:39:29 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l29LdTM3031528
	for <openmap-users-archive@openmap.bbn.com>; Fri, 9 Mar 2007 16:39:29 -0500
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l29LdTSV031527
	for openmap-users-archive; Fri, 9 Mar 2007 16:39:29 -0500
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l29LdTnS031524
	for <openmap-users@openmap.bbn.com>; Fri, 9 Mar 2007 16:39:29 -0500
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HPmki-0008RM-4b; Fri, 09 Mar 2007 16:35:52 -0500
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l29LYBU20716
	for openmap-users-outgoing; Fri, 9 Mar 2007 16:34:11 -0500 (EST)
Date: Fri, 09 Mar 2007 16:04:29 -0500
From: "Lepkowski, Thomas" <thomas.lepkowski@lmco.com>
Subject: [OpenMap Users] Drawing Circles and Rectangles
In-reply-to: <989E0907-DEC5-45BA-98CE-BA36AC8FC5B3@bbn.com>
To: OpenMap MList <openmap-users@bbn.com>
Message-id: <38FD1127C6D6D645B4B636825D09DAA62C50D610@emss09m09.us.lmco.com>
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft Exchange V6.5
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Thread-Topic: Drawing Circles and Rectangles
Thread-Index: AcdVSJmASUny+yqMQ4izSXfoAaz2XwNROXZA
Content-class: urn:content-classes:message
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
References: <297343D29C14AA4D822142893ABEAEF302ADDE17@srv1163ex1.flightsafety.com>
 <Pine.LNX.4.64.0702011402440.5033@berg.lanl.gov> <38FD1127C6D6D645B4B636825D09DAA62C00AE95@emss09m09.us.lmco.com>
 <989E0907-DEC5-45BA-98CE-BA36AC8FC5B3@bbn.com>
X-OriginalArrivalTime: 09 Mar 2007 21:05:28.0286 (UTC) FILETIME=[AA263FE0:01C7628E]
Old-X-Spam-Score: -0.6 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello All,

I'd like to drag a circle or rectangle on the map, but I don't want it
to be drawn on the map, or become part of a layer as a shape.  It should
just exist as a dashed line, for example, for the user's visual
pleasure.  If the user clicks away, the dashed line would disappear.
The DrawingLayer seems to do what I need -and more.

Looking for some advise on how to approach this problem.  I'll start by
looking at the Drawing layer and go from there.  Any advise or success
stories anybody can share?

Thanks.
-Tom

--
[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"]


From mail@openmap.bbn.com Mon Mar 12 15:35:39 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2CJZdWa020575
	for <openmap-users-archive@openmap.bbn.com>; Mon, 12 Mar 2007 15:35:39 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2CJZdSk020574
	for openmap-users-archive; Mon, 12 Mar 2007 15:35:39 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2CJZYH3020571
	for <openmap-users@openmap.bbn.com>; Mon, 12 Mar 2007 15:35:34 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HQqG8-0003qS-6I; Mon, 12 Mar 2007 15:32:41 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2CJSbb18059
	for openmap-users-outgoing; Mon, 12 Mar 2007 15:28:37 -0400 (EDT)
X-VirusChecked: Checked
X-Env-Sender: jon.peters@generaldynamics.uk.com
X-Msg-Ref: server-4.tower-134.messagelabs.com!1173727262!31612658!1
X-StarScan-Version: 5.5.10.7.1; banners=-,-,-
X-Originating-IP: [193.195.213.104]
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C764DB.91E5F78E"
Subject: [OpenMap Users] Drawing OMRect > 180 degrees wide. Possible ?
Date: Mon, 12 Mar 2007 19:20:59 -0000
Message-ID: <ED90ECDE268869468858A432A5B44C59BACB4E@GDUKADH850.uk1.r-org.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Drawing OMRect > 180 degrees wide. Possible ?
Thread-Index: Acdk25Efy4ro5sBiQtG8NNTLKUFTMA==
From: <jon.peters@generaldynamics.uk.com>
To: <openmap-users@bbn.com>
X-OriginalArrivalTime: 12 Mar 2007 19:21:01.0730 (UTC) FILETIME=[923AF020:01C764DB]
Old-X-Spam-Score: 2.6 (++)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.3 required=2.5 tests=FORGED_RCVD_HELO,HTML_40_50,
	HTML_MESSAGE,NO_REAL_NAME autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multi-part message in MIME format.

------_=_NextPart_001_01C764DB.91E5F78E
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-NAIMIME-Disclaimer: 1
X-NAIMIME-Modified: 1

Hi all,
=20
Just wondering if there is a way around the 180 degree longitudinal
limit when drawing lat/lon polys and lines ? My app allows the user to
draw an 'Area of interest' (OMRect) and the 180 'flip' is causing some
operator annoyance so I've been asked to look into it.
=20
Regards,
Jon.


This email and any files attached are intended for the addressee and may =
contain information of a confidential nature. If you are not the intended=
 recipient, be aware that this email was sent to you in error and you sho=
uld not disclose, distribute, print, copy or make other use of this email=
 or its attachments. Such actions, in fact, may be unlawful. In complianc=
e with the various Regulations and Acts, General Dynamics United Kingdom =
Limited reserves the right to monitor (and examine for viruses) all email=
s and email attachments, both inbound and outbound. Email communications =
and their attachments may not be secure or error- or virus-free and the c=
ompany does not accept liability or responsibility for such matters or th=
e consequences thereof.  General Dynamics United Kingdom Limited, Registe=
red Office: 100 New Bridge Street, London EC4V 6JA. Registered in England=
 and Wales No: 1911653.

------_=_NextPart_001_01C764DB.91E5F78E
Content-Type: text/HTML;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-NAIMIME-Disclaimer: 1
X-NAIMIME-Modified: 1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii"=
>
<META content=3D"MSHTML 6.00.2800.1589" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D778075418-12032007><FONT face=3DArial size=3D2>Hi=20
all,</FONT></SPAN></DIV>
<DIV><SPAN class=3D778075418-12032007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D778075418-12032007><FONT face=3DArial size=3D2>Just wo=
ndering if=20
there is a way</FONT></SPAN><SPAN class=3D778075418-12032007><FONT face=3D=
Arial=20
size=3D2> around the 180 degree longitudinal limit when drawing lat/lon&n=
bsp;polys=20
and lines ? My app allows the user to draw an 'Area of interest' (OMRect)=
 and=20
the 180 'flip' is causing some operator annoyance so I've been asked to l=
ook=20
into it.</FONT></SPAN></DIV>
<DIV><SPAN class=3D778075418-12032007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D778075418-12032007><FONT face=3DArial=20
size=3D2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=3D778075418-12032007><FONT face=3DArial=20
size=3D2>Jon.</FONT></SPAN></DIV>
<DIV><P><HR>
This email and any files attached are intended for the addressee and may =
contain information of a confidential nature. If you are not the intended=
 recipient, be aware that this email was sent to you in error and you sho=
uld not disclose, distribute, print, copy or make other use of this email=
 or its attachments. Such actions, in fact, may be unlawful. In complianc=
e with the various Regulations and Acts, General Dynamics United Kingdom =
Limited reserves the right to monitor (and examine for viruses) all email=
s and email attachments, both inbound and outbound. Email communications =
and their attachments may not be secure or error- or virus-free and the c=
ompany does not accept liability or responsibility for such matters or th=
e consequences thereof.  General Dynamics United Kingdom Limited, Registe=
red Office: 100 New Bridge Street, London EC4V 6JA. Registered in England=
 and Wales No: 1911653.
</P></DIV>
</BODY></HTML>

------_=_NextPart_001_01C764DB.91E5F78E--

--
[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"]


From mail@openmap.bbn.com Tue Mar 13 06:56:45 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2DAujVj024293
	for <openmap-users-archive@openmap.bbn.com>; Tue, 13 Mar 2007 06:56:45 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2DAujxC024292
	for openmap-users-archive; Tue, 13 Mar 2007 06:56:45 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2DAujQT024289
	for <openmap-users@openmap.bbn.com>; Tue, 13 Mar 2007 06:56:45 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HR4eR-0001UJ-5E; Tue, 13 Mar 2007 06:54:43 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2DAqwu24525
	for openmap-users-outgoing; Tue, 13 Mar 2007 06:52:58 -0400 (EDT)
Subject: [OpenMap Users] Problem using Save/Load Property file
To: openmap-users@bbn.com
X-Mailer: Lotus Notes Release 6.5.3 September 14, 2004
Message-ID: <OF9FBB8921.531F03ED-ONC125729D.00373C79-C125729D.00385867@netfr.alcatel.fr>
From: Thomas.Dewancker@alcatelaleniaspace.com
Date: Tue, 13 Mar 2007 11:15:26 +0100
X-MIMETrack: Serialize by Router on VZMTA01/ALCANET/ALCATEL-SPACE(Release 5.0.13a  HF167|July
 08, 2005) at 13/03/2007 11:27:27
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
X-Alcanet-MTA-scanned-and-authorized: yes
Old-X-Spam-Score: 0.4 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.2 required=2.5 tests=NO_REAL_NAME autolearn=no 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi all,

I experienced some problem using the "Save/Load Properties" feature (from
the File menu).
When loading the file (created before by "Save Properties"), some layers
are missing, other arent displayed, and I get lots of exceptions...

Did someone tried to use that feature and succeed loading properties from a
saved file?

regards,

Thomas







This message and any attachments (the "message") is intended solely for the
addressees and is confidential. If you receive this message in error,
please delete it and immediately notify the sender. Any use not in accord
with its purpose, any dissemination or disclosure, either whole or partial,
is prohibited except formal approval. The internet can not guarantee the
integrity of this message. ALCATEL ALENIA SPACE (and its subsidiaries)
shall (will) not therefore be liable for the message if modified.

Ce message et toutes les pieces jointes (ci-apres le "message") sont
etablis a l'intention exclusive de ses destinataires et sont confidentiels.
Si vous recevez ce message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce message non conforme a
sa destination, toute diffusion ou toute publication, totale ou partielle,
est interdite, sauf autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, ALCATEL ALENIA SPACE (et ses filiales)
decline(nt) toute responsabilite au titre de ce message, dans l'hypothese
ou il aurait ete modifie.


--
[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"]


From mail@openmap.bbn.com Tue Mar 13 11:30:13 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2DFUDHI003584
	for <openmap-users-archive@openmap.bbn.com>; Tue, 13 Mar 2007 11:30:13 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2DFUD3S003583
	for openmap-users-archive; Tue, 13 Mar 2007 11:30:13 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2DFUCtN003579
	for <openmap-users@openmap.bbn.com>; Tue, 13 Mar 2007 11:30:12 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HR8uV-0004WC-4T; Tue, 13 Mar 2007 11:27:35 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2DFPlr00047
	for openmap-users-outgoing; Tue, 13 Mar 2007 11:25:47 -0400 (EDT)
To: <openmap-users@bbn.com>
Subject: [OpenMap Users] OMDrawingTool and Editor
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 6.5 September 26, 2003
Message-ID: <OF53348B9E.AFE0CEDD-ON8425729D.0051C25F-8425729D.005269A6@sisdef.net>
From: EOsorio@sisdef.cl
Date: Tue, 13 Mar 2007 11:01:14 -0400
X-MIMETrack: Serialize by Router on Nashira/Sisdef(Release 6.0.1CF1 | March 06, 2003) at
 13/03/2007 11:01:15,
	Serialize complete at 13/03/2007 11:01:15
Content-Type: multipart/alternative; boundary="=_alternative 005269A38425729D_="
Old-X-Spam-Score: 0.8 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.7 required=2.5 tests=HTML_20_30,HTML_MESSAGE,
	NO_REAL_NAME autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multipart message in MIME format.
--=_alternative 005269A38425729D_=
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

Hello, I created a new OMGraphic with his respective Loader and=20
EditableOMGraphic.

For my case, I created a OMFreeHand. It  inherited from OMPoly, and my=20
EditableOMGraphic inherited from EditableOMPoly.

My problem is when Iike edit the OMFreeHand for code. Internally the=20
OMDrawingTool assign the EditableOMPoly for the work, because my=20
OMFreeHand is assignable to OMPoly (inherited from it).
For me the problem is in  public EditableOMGraphic=20
getEditableGraphic(OMGraphic g)  method.=20
I think is better find te classname in the hashmap before iterate on it.

Sorry by my english.

Please tell me if is my mistake o how can I make may better work  about=20
this point.


Thanks in advance.


-------------------------------------
 Eliecer Osorio Verdugo=20
 Gerencia T=E9cnica
------------------------------------
 Sisdef Ltda.
 Fono: 56 32 2810777
 Fax  : 56 32 2811190
-------------------------------------
 e-mail: eosorio@sisdef.cl
-------------------------------------
---------------------------------------------------------------------------
La informaci=F3n contenida en esta transmisi=F3n es confidencial y no puede=
=20
ser usada o difundida por personas distintas a su(s) destinatario(s). El=20
uso no autorizado de la informaci=F3n contenida en esta transmisi=F3n puede=
=20
ser sancionado criminalmente de conformidad con la ley chilena.
Si ha recibido esta transmisi=F3n por error, por favor destr=FAyala y=20
notifique al remitente. Atendido que no existe certidumbre que el presente =

mensaje no ser=E1 modificado como resultado de su transmisi=F3n por correo =

electr=F3nico, SISDEF no ser=E1 responsable si el contenido del mismo ha si=
do=20
modificado.
--=_alternative 005269A38425729D_=
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable


<br><font size=3D2 face=3D"sans-serif">Hello, I created a new OMGraphic with
his respective Loader and EditableOMGraphic.</font>
<br>
<br><font size=3D2 face=3D"sans-serif">For my case, I created a OMFreeHand.
It &nbsp;inherited from OMPoly, and my EditableOMGraphic inherited from
EditableOMPoly.</font>
<br>
<br><font size=3D2 face=3D"sans-serif">My problem is when Iike edit the OMF=
reeHand
for code. Internally the OMDrawingTool assign the EditableOMPoly for the
work, because my OMFreeHand is <b>assignable</b> to OMPoly (inherited from
it).</font>
<br><font size=3D2 face=3D"sans-serif">For me the problem is in </font><fon=
t size=3D2 face=3D"Courier New">&nbsp;<b><i>public
EditableOMGraphic getEditableGraphic(OMGraphic g)</i></b></font><font size=
=3D2 face=3D"sans-serif">
&nbsp;method. </font>
<br><font size=3D2 face=3D"sans-serif">I think is better find te classname
in the hashmap before iterate on it.</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Sorry by my english.</font>
<br>
<br><font size=3D2 face=3D"sans-serif">Please tell me if is my mistake o how
can I make may better work &nbsp;about this point.</font>
<br>
<br>
<br><font size=3D2 face=3D"sans-serif">Thanks in advance.</font>
<br>
<br>
<br><font size=3D2 face=3D"sans-serif">------------------------------------=
-<br>
 Eliecer Osorio Verdugo &nbsp; &nbsp; &nbsp;<br>
 Gerencia T=E9cnica<br>
------------------------------------<br>
 Sisdef Ltda.<br>
 Fono: 56 32 2810777<br>
 Fax &nbsp;: 56 32 2811190<br>
-------------------------------------<br>
 e-mail: eosorio@sisdef.cl<br>
-------------------------------------<br>
---------------------------------------------------------------------------=
<br>
La informaci=F3n contenida en esta transmisi=F3n es confidencial y no puede
ser usada o difundida por personas distintas a su(s) destinatario(s). El
uso no autorizado de la informaci=F3n contenida en esta transmisi=F3n puede
ser sancionado criminalmente de conformidad con la ley chilena.<br>
Si ha recibido esta transmisi=F3n por error, por favor destr=FAyala y notif=
ique
al remitente. Atendido que no existe certidumbre que el presente mensaje
no ser=E1 modificado como resultado de su transmisi=F3n por correo electr=
=F3nico,
SISDEF no ser=E1 responsable si el contenido del mismo ha sido modificado.<=
/font>
--=_alternative 005269A38425729D_=--

--
[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"]


From mail@openmap.bbn.com Tue Mar 13 14:26:41 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2DIQffJ004178
	for <openmap-users-archive@openmap.bbn.com>; Tue, 13 Mar 2007 14:26:41 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2DIQfl7004177
	for openmap-users-archive; Tue, 13 Mar 2007 14:26:41 -0400
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2DIQeKD004174
	for <openmap-users@openmap.bbn.com>; Tue, 13 Mar 2007 14:26:40 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HRBeb-0004WT-45; Tue, 13 Mar 2007 14:23:21 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2DILVD03637
	for openmap-users-outgoing; Tue, 13 Mar 2007 14:21:31 -0400 (EDT)
X-VirusChecked: Checked
X-Env-Sender: jon.peters@generaldynamics.uk.com
X-Msg-Ref: server-5.tower-123.messagelabs.com!1173809672!24562652!1
X-StarScan-Version: 5.5.10.7.1; banners=-,-,-
X-Originating-IP: [193.195.213.104]
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C7659B.72CBE070"
Subject: [OpenMap Users] Multiple layers with popup menus problem.
Date: Tue, 13 Mar 2007 18:14:30 -0000
Message-ID: <ED90ECDE268869468858A432A5B44C59BACF95@GDUKADH850.uk1.r-org.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Multiple layers with popup menus problem.
Thread-Index: Acdlm3HKcr2lp9jHQj+iX7TLna6awA==
From: <jon.peters@generaldynamics.uk.com>
To: <openmap-users@bbn.com>
X-OriginalArrivalTime: 13 Mar 2007 18:14:32.0352 (UTC) FILETIME=[72C9EA00:01C7659B]
Old-X-Spam-Score: 2.4 (++)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.3 required=2.5 tests=FORGED_RCVD_HELO,HTML_40_50,
	HTML_MESSAGE,NO_REAL_NAME autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multi-part message in MIME format.

------_=_NextPart_001_01C7659B.72CBE070
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-NAIMIME-Disclaimer: 1
X-NAIMIME-Modified: 1

Hi All,
=20
I've have a base ShapeLayer which has been overridden such that a right
click will display my applications menu (as I don't have a menubar).
This layer displays the basic countries shape file and has
getItemsForOMGraphicMenu(...) and getItemsForMapMenu(...) overridden so
I get the popup menu on both land and sea.
=20
I also have a 'higher' layer which displays some OMGraphics. I've
overridden the getItemsForOMGraphicMenu(...) method in this layer to
display a popup menu for the graphic.=20
=20
My problem is that the 2 layers won't work together. Right clicking
displays the lowest (in layer order terms) menu it can find.=20
=20
As a test I removed the getItemsForOMGraphicMenu method from the base
layer and had my graphic layer draw a filled poly which covered both
land and sea. If I right click on the poly over the sea I will get the
base layer's popup menu and right clicking on the poly over land will
display the graphic layer's popup menu.
=20
How do I make my graphics display the correct popup ?
=20
Thanks,
Jon.
=20
=20


This email and any files attached are intended for the addressee and may =
contain information of a confidential nature. If you are not the intended=
 recipient, be aware that this email was sent to you in error and you sho=
uld not disclose, distribute, print, copy or make other use of this email=
 or its attachments. Such actions, in fact, may be unlawful. In complianc=
e with the various Regulations and Acts, General Dynamics United Kingdom =
Limited reserves the right to monitor (and examine for viruses) all email=
s and email attachments, both inbound and outbound. Email communications =
and their attachments may not be secure or error- or virus-free and the c=
ompany does not accept liability or responsibility for such matters or th=
e consequences thereof.  General Dynamics United Kingdom Limited, Registe=
red Office: 100 New Bridge Street, London EC4V 6JA. Registered in England=
 and Wales No: 1911653.

------_=_NextPart_001_01C7659B.72CBE070
Content-Type: text/HTML;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
X-NAIMIME-Disclaimer: 1
X-NAIMIME-Modified: 1

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dus-ascii"=
>
<META content=3D"MSHTML 6.00.2800.1589" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial size=3D2>Hi=20
All,</FONT></SPAN></DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial size=3D2>I've ha=
ve a base=20
ShapeLayer which has been overridden such that a right click will display=
 my=20
applications menu (as I don't have a menubar). This layer displays the ba=
sic=20
countries shape file and has getItemsForOMGraphicMenu(...) and=20
getItemsForMapMenu(...) overridden so I get the popup menu on both land a=
nd=20
sea.</FONT></SPAN></DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial size=3D2>I also =
have a=20
'higher' layer which displays some OMGraphics. I've overridden the=20
getItemsForOMGraphicMenu(...) method in this layer to display a popup men=
u for=20
the graphic. </FONT></SPAN></DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial size=3D2>My prob=
lem is that=20
the 2 layers won't work together. Right clicking displays the lowest (in =
layer=20
order terms) menu it can find. </FONT></SPAN></DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial size=3D2>As a te=
st I removed=20
the getItemsForOMGraphicMenu method from the base layer and had my graphi=
c layer=20
draw a filled poly which covered both land and sea. If I right click on t=
he=20
poly&nbsp;over the sea I will get the base layer's popup menu and right c=
licking=20
on the poly over land will display the graphic layer's popup=20
menu.</FONT></SPAN></DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial size=3D2>How do =
I=20
make&nbsp;my graphics display the correct popup ?</FONT></SPAN></DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial size=3D2></FONT>=
</SPAN><SPAN=20
class=3D543203417-13032007><FONT face=3DArial size=3D2></FONT></SPAN>&nbs=
p;</DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial=20
size=3D2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial=20
size=3D2>Jon.</FONT></SPAN></DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D543203417-13032007><FONT face=3DArial=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><P><HR>
This email and any files attached are intended for the addressee and may =
contain information of a confidential nature. If you are not the intended=
 recipient, be aware that this email was sent to you in error and you sho=
uld not disclose, distribute, print, copy or make other use of this email=
 or its attachments. Such actions, in fact, may be unlawful. In complianc=
e with the various Regulations and Acts, General Dynamics United Kingdom =
Limited reserves the right to monitor (and examine for viruses) all email=
s and email attachments, both inbound and outbound. Email communications =
and their attachments may not be secure or error- or virus-free and the c=
ompany does not accept liability or responsibility for such matters or th=
e consequences thereof.  General Dynamics United Kingdom Limited, Registe=
red Office: 100 New Bridge Street, London EC4V 6JA. Registered in England=
 and Wales No: 1911653.
</P></DIV>
</BODY></HTML>

------_=_NextPart_001_01C7659B.72CBE070--

--
[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"]


From mail@openmap.bbn.com Tue Mar 13 15:12:19 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2DJCJeo004277
	for <openmap-users-archive@openmap.bbn.com>; Tue, 13 Mar 2007 15:12:19 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2DJCJkO004276
	for openmap-users-archive; Tue, 13 Mar 2007 15:12:19 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2DJCJYo004273
	for <openmap-users@openmap.bbn.com>; Tue, 13 Mar 2007 15:12:19 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HRCNw-0007lL-5b; Tue, 13 Mar 2007 15:10:12 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2DJ8u104290
	for openmap-users-outgoing; Tue, 13 Mar 2007 15:08:56 -0400 (EDT)
Date: Tue, 13 Mar 2007 15:06:55 -0400
From: "Lepkowski, Thomas" <thomas.lepkowski@lmco.com>
Subject: [OpenMap Users] Lat, Lon Display and CoordMouseMode
In-reply-to: <ED90ECDE268869468858A432A5B44C59BACF95@GDUKADH850.uk1.r-org.net>
To: openmap-users@bbn.com
Message-id: <38FD1127C6D6D645B4B636825D09DAA62C5D25C4@emss09m09.us.lmco.com>
MIME-version: 1.0
X-MIMEOLE: Produced By Microsoft Exchange V6.5
Content-type: multipart/alternative; boundary="Boundary_(ID_YiGa5XID+Glc0NCwq18avQ)"
Thread-Topic: Lat, Lon Display and CoordMouseMode
Thread-Index: Acdlm3HKcr2lp9jHQj+iX7TLna6awAABlzUg
Content-class: urn:content-classes:message
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
References: <ED90ECDE268869468858A432A5B44C59BACF95@GDUKADH850.uk1.r-org.net>
X-OriginalArrivalTime: 13 Mar 2007 19:07:15.0402 (UTC) FILETIME=[D01D0AA0:01C765A2]
Old-X-Spam-Score: -0.5 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=HTML_60_70,HTML_MESSAGE 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multi-part message in MIME format.

--Boundary_(ID_YiGa5XID+Glc0NCwq18avQ)
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT

Hello,
 
I'm trying to get an understanding of how to most efficiently display
Lat, Lon of the current mouse position as it moves over the map.  Looks
like CoordMouseMode plays an important part.  I'd like to display Lat,
Lon somewhere on the GUI (not necessarily on the "info line".  I admit
not fully understanding the architectural details of the various OM
parts.  I'd appreciate any guidance.
 
Thanks.

--Boundary_(ID_YiGa5XID+Glc0NCwq18avQ)
Content-type: text/html; charset=US-ASCII
Content-transfer-encoding: 7BIT

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=397030019-13032007><FONT face=Tahoma 
size=2>Hello,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=397030019-13032007><FONT face=Tahoma 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=397030019-13032007><FONT face=Tahoma 
size=2>I'm trying to get an understanding of how to most efficiently display 
Lat, Lon of the current mouse position as it moves over the map.&nbsp; Looks 
like&nbsp;C</FONT></SPAN><SPAN class=397030019-13032007><FONT face=Tahoma 
size=2>oordMouseMode plays an important part.&nbsp; I'd like to&nbsp;display 
Lat, Lon somewhere on the GUI (not necessarily on the "info line".&nbsp; I admit 
not fully understanding the architectural details of the various OM parts.&nbsp; 
I'd appreciate any guidance.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=397030019-13032007><FONT face=Tahoma 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=397030019-13032007><FONT face=Tahoma 
size=2>Thanks.</FONT></SPAN></DIV></BODY></HTML>

--Boundary_(ID_YiGa5XID+Glc0NCwq18avQ)--

--
[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"]


From mail@openmap.bbn.com Wed Mar 14 13:30:21 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2EHULjG017608
	for <openmap-users-archive@openmap.bbn.com>; Wed, 14 Mar 2007 13:30:21 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2EHULdY017607
	for openmap-users-archive; Wed, 14 Mar 2007 13:30:21 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2EHUKYM017604
	for <openmap-users@openmap.bbn.com>; Wed, 14 Mar 2007 13:30:20 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HRXGF-0001pN-49; Wed, 14 Mar 2007 13:27:39 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2EHOTS14929
	for openmap-users-outgoing; Wed, 14 Mar 2007 13:24:29 -0400 (EDT)
Content-class: urn:content-classes:message
Subject: [OpenMap Users] Distance between two LatLonPoint's?
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C7665D.95DF1663"
Date: Wed, 14 Mar 2007 18:24:13 +0100
X-MimeOLE: Produced By Microsoft Exchange V6.5
Message-ID: <5CDCE8E138ACB445B11E9F7B85FC782A4A8408@radon.smr.intern>
In-Reply-To: <38FD1127C6D6D645B4B636825D09DAA62C5D25C4@emss09m09.us.lmco.com>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Distance between two LatLonPoint's?
Thread-Index: Acdlm3HKcr2lp9jHQj+iX7TLna6awAABlzUgAC7jmSA=
References: <ED90ECDE268869468858A432A5B44C59BACF95@GDUKADH850.uk1.r-org.net> <38FD1127C6D6D645B4B636825D09DAA62C5D25C4@emss09m09.us.lmco.com>
From: "Jeroen van Dijk" <jeroen@sentient.nl>
To: <openmap-users@bbn.com>
Old-X-Spam-Score: 0.7 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO,HTML_MESSAGE 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multi-part message in MIME format.

------_=_NextPart_001_01C7665D.95DF1663
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,

=20

Is there a method in OpenMap to calculate the distance between two
LatLonPoint's correctly (for example in kilometers)?

=20

Thanks,

=20

Jeroen

=20

________________________________

From: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com]
On Behalf Of Lepkowski, Thomas
Sent: Tuesday, March 13, 2007 8:07 PM
To: openmap-users@bbn.com
Subject: [OpenMap Users] Lat, Lon Display and CoordMouseMode

=20

Hello,

=20

I'm trying to get an understanding of how to most efficiently display
Lat, Lon of the current mouse position as it moves over the map.  Looks
like CoordMouseMode plays an important part.  I'd like to display Lat,
Lon somewhere on the GUI (not necessarily on the "info line".  I admit
not fully understanding the architectural details of the various OM
parts.  I'd appreciate any guidance.

=20

Thanks.


------_=_NextPart_001_01C7665D.95DF1663
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:st1=3D"urn:schemas-microsoft-com:office:smarttags" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags" =
name=3D"place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Hello,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Is there a method in OpenMap to =
calculate
the distance between two LatLonPoint&#8217;s correctly (for example in
kilometers)?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Thanks,<o:p></o:p></span></font></p>=


<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'>Jeroen<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=3DMsoNormal align=3Dcenter style=3D'text-align:center'><font =
size=3D3
face=3D"Times New Roman"><span style=3D'font-size:12.0pt'>

<hr size=3D2 width=3D"100%" align=3Dcenter tabindex=3D-1>

</span></font></div>

<p class=3DMsoNormal><b><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font =
size=3D2
face=3DTahoma><span style=3D'font-size:10.0pt;font-family:Tahoma'>
owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com] =
<b><span
style=3D'font-weight:bold'>On Behalf Of </span></b>Lepkowski, Thomas<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> Tuesday, March 13, =
2007 8:07
PM<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
openmap-users@bbn.com<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> [OpenMap Users] =
Lat, Lon
Display and CoordMouseMode</span></font><o:p></o:p></p>

</div>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'>Hello,</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'>I'm trying to get an understanding of how to most
efficiently display Lat, Lon of the current mouse position as it moves =
over the
map.&nbsp; Looks like&nbsp;CoordMouseMode plays an important part.&nbsp; =
I'd
like to&nbsp;display Lat, Lon somewhere on the GUI (not necessarily on =
the
&quot;info line&quot;.&nbsp; I admit not fully understanding the =
architectural
details of the various <st1:place w:st=3D"on">OM</st1:place> =
parts.&nbsp; I'd
appreciate any guidance.</span></font><o:p></o:p></p>

<p class=3DMsoNormal><font size=3D3 face=3D"Times New Roman"><span =
style=3D'font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DTahoma><span =
style=3D'font-size:10.0pt;
font-family:Tahoma'>Thanks.</span></font><o:p></o:p></p>

</div>

</body>

</html>

------_=_NextPart_001_01C7665D.95DF1663--

--
[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"]


From mail@openmap.bbn.com Wed Mar 14 14:22:40 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2EIMeSV017734
	for <openmap-users-archive@openmap.bbn.com>; Wed, 14 Mar 2007 14:22:40 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2EIMeO7017733
	for openmap-users-archive; Wed, 14 Mar 2007 14:22:40 -0400
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2EIMbdH017730
	for <openmap-users@openmap.bbn.com>; Wed, 14 Mar 2007 14:22:37 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HRY5S-000864-3x; Wed, 14 Mar 2007 14:20:34 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2EIJWl16200
	for openmap-users-outgoing; Wed, 14 Mar 2007 14:19:32 -0400 (EDT)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C76661.7B62B0E9"
Subject: RE: [OpenMap Users] Distance between two LatLonPoint's?
Date: Wed, 14 Mar 2007 12:52:06 -0500
Message-ID: <297343D29C14AA4D822142893ABEAEF302DDDF42@srv1163ex1.flightsafety.com>
In-Reply-To: <5CDCE8E138ACB445B11E9F7B85FC782A4A8408@radon.smr.intern>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [OpenMap Users] Distance between two LatLonPoint's?
thread-index: Acdlm3HKcr2lp9jHQj+iX7TLna6awAABlzUgAC7jmSAAAHGJgA==
From: "Lin, Sunny \(Shih-Hung\)" <sunny.lin@FlightSafety.com>
To: "Jeroen van Dijk" <jeroen@sentient.nl>, <openmap-users@bbn.com>
X-OriginalArrivalTime: 14 Mar 2007 17:52:08.0149 (UTC) FILETIME=[7BFE9050:01C76661]
Old-X-Spam-Score: 0.6 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=HTML_MESSAGE 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multi-part message in MIME format.

------_=_NextPart_001_01C76661.7B62B0E9
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Jeroen,
=20
LatLonPoint.distance(LatLonPoint) will give you the distance between two
LatLonPoint objects in radians.  You can convert it to what you like
using com.bbn.openmap.proj.Length.  Here is an example.
=20
LatLonPoint p1, p2;
......
float dist =3D Length.KM.fromRadians(p1.distance(p2));
=20
This will give you the distance in kilometers between p1 and p2.
=20
--Sunny Lin
=20

________________________________

From: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com]
On Behalf Of Jeroen van Dijk
Sent: Wednesday, March 14, 2007 12:24 PM
To: openmap-users@bbn.com
Subject: [OpenMap Users] Distance between two LatLonPoint's?



Hello,

=20

Is there a method in OpenMap to calculate the distance between two
LatLonPoint's correctly (for example in kilometers)?

=20

Thanks,

=20

Jeroen

=20

________________________________

From: owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com]
On Behalf Of Lepkowski, Thomas
Sent: Tuesday, March 13, 2007 8:07 PM
To: openmap-users@bbn.com
Subject: [OpenMap Users] Lat, Lon Display and CoordMouseMode

=20

Hello,

=20

I'm trying to get an understanding of how to most efficiently display
Lat, Lon of the current mouse position as it moves over the map.  Looks
like CoordMouseMode plays an important part.  I'd like to display Lat,
Lon somewhere on the GUI (not necessarily on the "info line".  I admit
not fully understanding the architectural details of the various OM
parts.  I'd appreciate any guidance.

=20

Thanks.


------_=_NextPart_001_01C76661.7B62B0E9
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:v =3D=20
"urn:schemas-microsoft-com:vml" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word" xmlns:st1 =3D=20
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.3059" name=3DGENERATOR><!--[if !mso]>
<STYLE>v\:* {
	BEHAVIOR: url(#default#VML)
}
o\:* {
	BEHAVIOR: url(#default#VML)
}
w\:* {
	BEHAVIOR: url(#default#VML)
}
.shape {
	BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]--><o:SmartTagType name=3D"place"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTagT=
ype><!--[if !mso]>
<STYLE>st1\:* {
	BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
	font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
	COLOR: navy; FONT-FAMILY: Arial; mso-style-type: personal-reply
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=3DEN-US vLink=3Dpurple link=3Dblue>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D134203517-14032007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>Jeroen,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN =
class=3D134203517-14032007></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D134203517-14032007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>LatLonPoint.distance(LatLonPoint) will give you =
the=20
distance between two LatLonPoint objects in radians.&nbsp; You can =
convert it to=20
what you like using </FONT></SPAN><SPAN class=3D134203517-14032007><FONT =

face=3DArial color=3D#0000ff size=3D2><FONT =
size=3D-1>com.bbn.openmap.proj.Length.&nbsp;=20
Here is an example.</FONT></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D134203517-14032007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D134203517-14032007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2><SPAN class=3D134203517-14032007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2>LatLonPoint p1, =
p2;</FONT></SPAN></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D134203517-14032007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2><SPAN=20
class=3D134203517-14032007>......</SPAN></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D134203517-14032007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2><SPAN class=3D134203517-14032007>float dist =3D =

Length.KM.fromRadians(p1.distance(p2));</SPAN></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D134203517-14032007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2><SPAN=20
class=3D134203517-14032007></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D134203517-14032007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2><SPAN class=3D134203517-14032007>This will give =
you the=20
distance in kilometers between p1 and p2.</SPAN></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D134203517-14032007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2><SPAN=20
class=3D134203517-14032007></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D134203517-14032007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2><SPAN class=3D134203517-14032007>--Sunny=20
Lin</SPAN></FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D134203517-14032007><FONT =
face=3DArial=20
color=3D#0000ff size=3D2></FONT></SPAN>&nbsp;</DIV><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B> owner-openmap-users@bbn.com=20
[mailto:owner-openmap-users@bbn.com] <B>On Behalf Of </B>Jeroen van=20
Dijk<BR><B>Sent:</B> Wednesday, March 14, 2007 12:24 PM<BR><B>To:</B>=20
openmap-users@bbn.com<BR><B>Subject:</B> [OpenMap Users] Distance =
between two=20
LatLonPoint's?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=3DSection1>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Hello,<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Is there a =
method in=20
OpenMap to calculate the distance between two LatLonPoint&#8217;s =
correctly (for=20
example in kilometers)?<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Thanks,<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial">Jeroen<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DArial color=3Dnavy size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: =
Arial"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<DIV>
<DIV class=3DMsoNormal style=3D"TEXT-ALIGN: center" align=3Dcenter><FONT =

face=3D"Times New Roman" size=3D3><SPAN style=3D"FONT-SIZE: 12pt">
<HR tabIndex=3D-1 align=3Dcenter width=3D"100%" SIZE=3D2>
</SPAN></FONT></DIV>
<P class=3DMsoNormal><B><FONT face=3DTahoma size=3D2><SPAN=20
style=3D"FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: =
Tahoma">From:</SPAN></FONT></B><FONT=20
face=3DTahoma size=3D2><SPAN style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Tahoma">=20
owner-openmap-users@bbn.com [mailto:owner-openmap-users@bbn.com] =
<B><SPAN=20
style=3D"FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Lepkowski, =
Thomas<BR><B><SPAN=20
style=3D"FONT-WEIGHT: bold">Sent:</SPAN></B> Tuesday, March 13, 2007 =
8:07=20
PM<BR><B><SPAN style=3D"FONT-WEIGHT: bold">To:</SPAN></B>=20
openmap-users@bbn.com<BR><B><SPAN style=3D"FONT-WEIGHT: =
bold">Subject:</SPAN></B>=20
[OpenMap Users] Lat, Lon Display and=20
CoordMouseMode</SPAN></FONT><o:p></o:p></P></DIV>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DTahoma size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Tahoma">Hello,</SPAN></FONT><o:p></o:p></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DTahoma size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">I'm trying to get an =
understanding=20
of how to most efficiently display Lat, Lon of the current mouse =
position as it=20
moves over the map.&nbsp; Looks like&nbsp;CoordMouseMode plays an =
important=20
part.&nbsp; I'd like to&nbsp;display Lat, Lon somewhere on the GUI (not=20
necessarily on the "info line".&nbsp; I admit not fully understanding =
the=20
architectural details of the various <st1:place =
w:st=3D"on">OM</st1:place>=20
parts.&nbsp; I'd appreciate any guidance.</SPAN></FONT><o:p></o:p></P>
<P class=3DMsoNormal><FONT face=3D"Times New Roman" size=3D3><SPAN=20
style=3D"FONT-SIZE: 12pt">&nbsp;<o:p></o:p></SPAN></FONT></P>
<P class=3DMsoNormal><FONT face=3DTahoma size=3D2><SPAN=20
style=3D"FONT-SIZE: 10pt; FONT-FAMILY: =
Tahoma">Thanks.</SPAN></FONT><o:p></o:p></P></DIV></BODY></HTML>

------_=_NextPart_001_01C76661.7B62B0E9--

--
[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"]


From mail@openmap.bbn.com Wed Mar 14 14:36:21 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2EIaLYI017783
	for <openmap-users-archive@openmap.bbn.com>; Wed, 14 Mar 2007 14:36:21 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2EIaLBc017782
	for openmap-users-archive; Wed, 14 Mar 2007 14:36:21 -0400
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2EIaKZK017779
	for <openmap-users@openmap.bbn.com>; Wed, 14 Mar 2007 14:36:20 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HRYJd-0008K8-3q; Wed, 14 Mar 2007 14:35:13 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2EIYCL16347
	for openmap-users-outgoing; Wed, 14 Mar 2007 14:34:12 -0400 (EDT)
In-Reply-To: <5CDCE8E138ACB445B11E9F7B85FC782A4A8408@radon.smr.intern>
To: "Jeroen van Dijk" <jeroen@sentient.nl>
Cc: openmap-users@bbn.com, owner-openmap-users@bbn.com
Subject: Re: [OpenMap Users] Distance between two LatLonPoint's?
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 6.5 September 26, 2003
Message-ID: <OFA309FFBB.B79AD54B-ON8425729E.0065F097-8425729E.0065DD68@sisdef.net>
From: EOsorio@sisdef.cl
Date: Wed, 14 Mar 2007 14:33:43 -0400
X-MIMETrack: Serialize by Router on Nashira/Sisdef(Release 6.0.1CF1 | March 06, 2003) at
 14/03/2007 14:33:45,
	Serialize complete at 14/03/2007 14:33:45
Content-Type: multipart/alternative; boundary="=_alternative 0065DD648425729E_="
Old-X-Spam-Score: 3.9 (+++)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.3 required=2.5 tests=HTML_40_50,HTML_MESSAGE,
	NO_REAL_NAME autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multipart message in MIME format.
--=_alternative 0065DD648425729E_=
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: base64

SGVsbG8sIGFib3V0IGRlIENvb3JkTW91c2VNb2RlIGFuZCBkaXNwbGF5IExhdCBMb24gaW5mbywg
SSBtYWtlIGEgY2xhc3MgDQoiTXlDb29yZE1vdXNlTW9kZSIsIGl0IGNsYXNzIGluaGVyaXRlZCBm
cm9tIENvb3JkTW91c2VNb2RlIGFuZCBpdCBjbGFzcyBpcyANCmFzc29jaWF0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ubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]


From mail@openmap.bbn.com Wed Mar 14 15:25:23 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2EJPNto017886
	for <openmap-users-archive@openmap.bbn.com>; Wed, 14 Mar 2007 15:25:23 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2EJPNB9017885
	for openmap-users-archive; Wed, 14 Mar 2007 15:25:23 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2EJPNo3017882
	for <openmap-users@openmap.bbn.com>; Wed, 14 Mar 2007 15:25:23 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HRZ4v-0003MH-3R; Wed, 14 Mar 2007 15:24:05 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2EJN3P17283
	for openmap-users-outgoing; Wed, 14 Mar 2007 15:23:03 -0400 (EDT)
Message-ID: <45F841CC.5080707@pvv.org>
Date: Wed, 14 Mar 2007 19:41:16 +0100
From: =?UTF-8?B?IsOYeXN0ZWluIEUuIFRob3J2YWxkc2VuIg==?= <oysteine@pvv.org>
User-Agent: Thunderbird 1.5.0.10 (X11/20070306)
MIME-Version: 1.0
To: Jeroen van Dijk <jeroen@sentient.nl>
CC: openmap-users@bbn.com
Subject: Re: [OpenMap Users] Distance between two LatLonPoint's?
References: <ED90ECDE268869468858A432A5B44C59BACF95@GDUKADH850.uk1.r-org.net> <38FD1127C6D6D645B4B636825D09DAA62C5D25C4@emss09m09.us.lmco.com> <5CDCE8E138ACB445B11E9F7B85FC782A4A8408@radon.smr.intern>
In-Reply-To: <5CDCE8E138ACB445B11E9F7B85FC782A4A8408@radon.smr.intern>
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
Old-X-Spam-Score: 1.7 (+)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: *
X-Spam-Status: No, score=1.2 required=2.5 tests=HTML_MESSAGE,HTML_TITLE_EMPTY,
	MIME_HTML_ONLY autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Jeroen van Dijk wrote:
<blockquote
 cite="mid5CDCE8E138ACB445B11E9F7B85FC782A4A8408@radon.smr.intern"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="place">
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
  <style>
<!--
 /* Font Definitions */
 @font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-reply;
	font-family:Arial;
	color:navy;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
  </style></o:SmartTagType>
  <div class="Section1">
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Hello,<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>Â </o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Is there a
method in OpenMap to calculate
the distance between two LatLonPointâ€™s correctly (for example in
kilometers)?<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>Â </o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Thanks,<o:p></o:p></span></font></p>
  </div>
</blockquote>
Hi, <br>
<br>
This depends on what you mean by correctly.
LatLonPoint.distance(LatLonPoint toPoint) will return a float that
represents the distance between the two points in radians. Use Length
to convert to any other unit of measurement. This returned distance is
not entirely correct, as it is based on a spherical model of the Earth.
However, the margin of error should be about 0.5%.<br>
<br>
If you need to compute the distance more accurately than this I think
you'll have to do it outside OpenMap.<br>
<br>
HTH,<br>
Ã˜ystein E. Thorvaldsen<br>
</body>
</html>

--
[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"]


From mail@openmap.bbn.com Wed Mar 14 16:20:58 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2EKKwUx021622
	for <openmap-users-archive@openmap.bbn.com>; Wed, 14 Mar 2007 16:20:58 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2EKKwL3021620
	for openmap-users-archive; Wed, 14 Mar 2007 16:20:58 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2EKKwUf021616
	for <openmap-users@openmap.bbn.com>; Wed, 14 Mar 2007 16:20:58 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HRZwD-00047t-3j; Wed, 14 Mar 2007 16:19:09 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2EKGwO17930
	for openmap-users-outgoing; Wed, 14 Mar 2007 16:16:58 -0400 (EDT)
In-Reply-To: <45F841CC.5080707@pvv.org>
References: <ED90ECDE268869468858A432A5B44C59BACF95@GDUKADH850.uk1.r-org.net> <38FD1127C6D6D645B4B636825D09DAA62C5D25C4@emss09m09.us.lmco.com> <5CDCE8E138ACB445B11E9F7B85FC782A4A8408@radon.smr.intern> <45F841CC.5080707@pvv.org>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=WINDOWS-1252; delsp=yes; format=flowed
Message-Id: <1E6C5F57-CD8F-47C4-B193-4A2F48FE69C2@bbn.com>
Cc: openMap MList <openmap-users@bbn.com>,
        =?ISO-8859-1?Q?"=D8ystein_E._Thorvaldsen"?= <oysteine@pvv.org>
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] Distance between two LatLonPoint's?
Date: Wed, 14 Mar 2007 16:16:51 -0400
To: Jeroen van Dijk <jeroen@sentient.nl>
X-Mailer: Apple Mail (2.752.2)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l2EKGta17921
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

If you want to determine the distance based on an ellipsoid, you can  
use the com.bbn.openmap.geo.Geo class, combined with the Length class:

Length.KM.fromRadians(geo1.distance(geo2));

or, you can also do:

geo1.distanceKM(geo2);

Cheers,

Don


On Mar 14, 2007, at 2:41 PM, Øystein E. Thorvaldsen wrote:

> Jeroen van Dijk wrote:
>> Hello,
>>
>>
>>
>> Is there a method in OpenMap to calculate the distance between two  
>> LatLonPoint’s correctly (for example in kilometers)?
>>
>>
>>
>> Thanks,
> Hi,
>
> This depends on what you mean by correctly. LatLonPoint.distance 
> (LatLonPoint toPoint) will return a float that represents the  
> distance between the two points in radians. Use Length to convert  
> to any other unit of measurement. This returned distance is not  
> entirely correct, as it is based on a spherical model of the Earth.  
> However, the margin of error should be about 0.5%.
>
> If you need to compute the distance more accurately than this I  
> think you'll have to do it outside OpenMap.
>
> HTH,
> Øystein E. Thorvaldsen
> -- [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"]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail@openmap.bbn.com Wed Mar 14 16:30:56 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2EKUuGl022740
	for <openmap-users-archive@openmap.bbn.com>; Wed, 14 Mar 2007 16:30:56 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2EKUulY022739
	for openmap-users-archive; Wed, 14 Mar 2007 16:30:56 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2EKUuua022736
	for <openmap-users@openmap.bbn.com>; Wed, 14 Mar 2007 16:30:56 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HRa6O-0004HX-4v; Wed, 14 Mar 2007 16:29:40 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2EKSJY18041
	for openmap-users-outgoing; Wed, 14 Mar 2007 16:28:19 -0400 (EDT)
In-Reply-To: <38FD1127C6D6D645B4B636825D09DAA62C5D25C4@emss09m09.us.lmco.com>
References: <ED90ECDE268869468858A432A5B44C59BACF95@GDUKADH850.uk1.r-org.net> <38FD1127C6D6D645B4B636825D09DAA62C5D25C4@emss09m09.us.lmco.com>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <2965DF67-F1F5-406E-8AB1-51594D47A3BB@bbn.com>
Cc: openmap-users@bbn.com
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] Lat, Lon Display and CoordMouseMode
Date: Wed, 14 Mar 2007 16:28:12 -0400
To: "Lepkowski, Thomas" <thomas.lepkowski@lmco.com>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Thomas,

There's a couple of things you can do.  The CoordMouseMode asks the  
InformationDelegator to put the coordinates on its info line  
specified for coordinates  
(InformationDelegator.COORDINATE_INFO_LINE), and to the  
InformationDelegator, that's just a JLabel.  If you want the  
coordinates to go somewhere else, you can create a JLabel somewhere  
else in your application, and tell the InformationDelegator you want  
it to use your label instead.

You can also just put the information delegator somewhere else in  
your GUI and have it display the coords.

You can add a MouseMotionListener to the MapBean to get the mouse  
events.  The MapBean has methods on it that will tell you the  
coordinates of the pixel location, and should be the source of the  
MouseEvents you get.

To get to the MapBean and/or the InformationDelegator, you can use  
the MapHandler in the BasicMapPanel, if that's what you are using.

Hope this helps,

Don

On Mar 13, 2007, at 3:06 PM, Lepkowski, Thomas wrote:

> Hello,
>
> I'm trying to get an understanding of how to most efficiently  
> display Lat, Lon of the current mouse position as it moves over the  
> map.  Looks like CoordMouseMode plays an important part.  I'd like  
> to display Lat, Lon somewhere on the GUI (not necessarily on the  
> "info line".  I admit not fully understanding the architectural  
> details of the various OM parts.  I'd appreciate any guidance.
>
> Thanks.



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail@openmap.bbn.com Thu Mar 15 06:42:44 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2FAghJ5003347
	for <openmap-users-archive@openmap.bbn.com>; Thu, 15 Mar 2007 06:42:43 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2FAgh1R003346
	for openmap-users-archive; Thu, 15 Mar 2007 06:42:43 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2FAghj4003343
	for <openmap-users@openmap.bbn.com>; Thu, 15 Mar 2007 06:42:43 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HRnOJ-000260-6G; Thu, 15 Mar 2007 06:41:04 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2FAawJ01497
	for openmap-users-outgoing; Thu, 15 Mar 2007 06:36:58 -0400 (EDT)
Subject: [OpenMap Users] Relative path?
To: openmap-users@bbn.com
X-Mailer: Lotus Notes Release 6.5.3 September 14, 2004
Message-ID: <OF251F0D62.3E09C137-ONC125729F.00332474-C125729F.0033D9A0@netfr.alcatel.fr>
From: Thomas.Dewancker@alcatelaleniaspace.com
Date: Thu, 15 Mar 2007 10:26:20 +0100
X-MIMETrack: Serialize by Router on VZMTA01/ALCANET/ALCATEL-SPACE(Release 5.0.13a  HF167|July
 08, 2005) at 15/03/2007 10:36:07
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
X-Alcanet-MTA-scanned-and-authorized: yes
Old-X-Spam-Score: 0.4 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.2 required=2.5 tests=NO_REAL_NAME autolearn=no 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello,

I just would like to know if there were a way to set relative path (I'm
using Windows) into the openmap.properties file...
For example, I need to set the "etopo.path" property, and instead
"C:/.../.../data/etopo", I would like to set something like "/data/etopo",
but it seems that doesn't work.

Maybe I've done something wrong?

Thanks in advance


Thomas Dewancker





--
[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"]


From mail@openmap.bbn.com Thu Mar 15 10:52:56 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2FEqunb005697
	for <openmap-users-archive@openmap.bbn.com>; Thu, 15 Mar 2007 10:52:56 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2FEqupW005696
	for openmap-users-archive; Thu, 15 Mar 2007 10:52:56 -0400
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2FEqsn2005693
	for <openmap-users@openmap.bbn.com>; Thu, 15 Mar 2007 10:52:54 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HRrI9-0001HZ-51; Thu, 15 Mar 2007 10:50:57 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2FEnIn04897
	for openmap-users-outgoing; Thu, 15 Mar 2007 10:49:18 -0400 (EDT)
In-Reply-To: <OF251F0D62.3E09C137-ONC125729F.00332474-C125729F.0033D9A0@netfr.alcatel.fr>
References: <OF251F0D62.3E09C137-ONC125729F.00332474-C125729F.0033D9A0@netfr.alcatel.fr>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <7397F8F8-EE8D-4F79-A08D-7E8B4313D328@bbn.com>
Cc: openmap-users@bbn.com
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] Relative path?
Date: Thu, 15 Mar 2007 10:49:10 -0400
To: Thomas.Dewancker@alcatelaleniaspace.com
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Thomas,

The first '/' is confusing things.  If you use "data/etopo" in your  
properties, and have the first part of the absolute path in your  
classpath, it should work.

- Don

On Mar 15, 2007, at 5:26 AM, Thomas.Dewancker@alcatelaleniaspace.com  
wrote:

> Hello,
>
> I just would like to know if there were a way to set relative path  
> (I'm
> using Windows) into the openmap.properties file...
> For example, I need to set the "etopo.path" property, and instead
> "C:/.../.../data/etopo", I would like to set something like "/data/ 
> etopo",
> but it seems that doesn't work.
>
> Maybe I've done something wrong?
>
> Thanks in advance
>
>
> Thomas Dewancker
>
>
>
>
>
> --
> [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"]



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail@openmap.bbn.com Thu Mar 15 11:38:31 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2FFcVYw005988
	for <openmap-users-archive@openmap.bbn.com>; Thu, 15 Mar 2007 11:38:31 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2FFcV40005987
	for openmap-users-archive; Thu, 15 Mar 2007 11:38:31 -0400
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2FFcU5r005984
	for <openmap-users@openmap.bbn.com>; Thu, 15 Mar 2007 11:38:31 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HRs0U-00027d-3E; Thu, 15 Mar 2007 11:36:46 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2FFZPg05558
	for openmap-users-outgoing; Thu, 15 Mar 2007 11:35:25 -0400 (EDT)
In-Reply-To: <ED90ECDE268869468858A432A5B44C59BACB4E@GDUKADH850.uk1.r-org.net>
References: <ED90ECDE268869468858A432A5B44C59BACB4E@GDUKADH850.uk1.r-org.net>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <F0A44211-1614-4BE9-A2F2-46D60ADDEEF1@bbn.com>
Cc: <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] Drawing OMRect > 180 degrees wide. Possible ?
Date: Thu, 15 Mar 2007 11:35:15 -0400
To: "<jon.peters@generaldynamics.uk.com>" <jon.peters@generaldynamics.uk.com>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Jon,

The plots are interpreted as being placed on the sphere, so the limit  
is there because the code is assuming the shortest path between  
points on the sphere is the intended path between points.

You can get shapes to render that break the limit, but you have to  
construct them with smaller pieces so the whole looks like it's  
breaking the rule.   You'd have to put a switch in the drawing tool  
that specified that the line should take the long way between points,  
so appropriate midpoints could be placed to make the projection code  
do what you expect.

Regards,

Don


On Mar 12, 2007, at 3:20 PM, <jon.peters@generaldynamics.uk.com>  
<jon.peters@generaldynamics.uk.com> wrote:

> Hi all,
>
> Just wondering if there is a way around the 180 degree longitudinal  
> limit when drawing lat/lon polys and lines ? My app allows the user  
> to draw an 'Area of interest' (OMRect) and the 180 'flip' is  
> causing some operator annoyance so I've been asked to look into it.
>
> Regards,
> Jon.
>
> This email and any files attached are intended for the addressee  
> and may contain information of a confidential nature. If you are  
> not the intended recipient, be aware that this email was sent to  
> you in error and you should not disclose, distribute, print, copy  
> or make other use of this email or its attachments. Such actions,  
> in fact, may be unlawful. In compliance with the various  
> Regulations and Acts, General Dynamics United Kingdom Limited  
> reserves the right to monitor (and examine for viruses) all emails  
> and email attachments, both inbound and outbound. Email  
> communications and their attachments may not be secure or error- or  
> virus-free and the company does not accept liability or  
> responsibility for such matters or the consequences thereof.  
> General Dynamics United Kingdom Limited, Registered Office: 100 New  
> Bridge Street, London EC4V 6JA. Registered in England and Wales No:  
> 1911653.
>



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail@openmap.bbn.com Thu Mar 15 11:54:27 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2FFsRhb006096
	for <openmap-users-archive@openmap.bbn.com>; Thu, 15 Mar 2007 11:54:27 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2FFsRPL006095
	for openmap-users-archive; Thu, 15 Mar 2007 11:54:27 -0400
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2FFsRHu006092
	for <openmap-users@openmap.bbn.com>; Thu, 15 Mar 2007 11:54:27 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HRsG3-0002P8-5j; Thu, 15 Mar 2007 11:52:51 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2FFpZT05809
	for openmap-users-outgoing; Thu, 15 Mar 2007 11:51:35 -0400 (EDT)
In-Reply-To: <5fb314000703040751j2e4a4987uc17304eb5bc28a2f@mail.gmail.com>
References: <5fb314000702271434m6ad4f22ewa75d207a21392c8b@mail.gmail.com> <5fb314000703040751j2e4a4987uc17304eb5bc28a2f@mail.gmail.com>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <89CC59CC-CA63-43D5-A8F9-55D1AFF139F4@bbn.com>
Cc: openmap-users@bbn.com
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] esriPluginLayer problem from applet
Date: Thu, 15 Mar 2007 11:51:31 -0400
To: andy south <southandy@gmail.com>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Andy,

I'm not sure what's causing the AccessControlException for the  
applet, and I don't see anything in the code that would really cause  
this problem that the ShapeLayer wouldn't also be facing.  The  
PropUtils code throwing the error is used by both the EsriPlugIn and  
the ShapeLayer.  I'm kinda stumped.

What version of Java are you running, and what platform?

- Don

On Mar 4, 2007, at 10:51 AM, andy south wrote:

>
>
> Hello there,
> I'm very impressed with the capabilities of OpenMap, thanks to all  
> involved.
>
> However, have a problem I've been trying for a few hours to fix to  
> no avail.
>
> I've been trying to get an applet to load a shapefile defined in  
> the openmap.properties file as an EsriPluginLayer.
>
> I copied the demo applet and openmap.properties file and defined in  
> the properties file a shapefile for the applet to load from the  
> server.
> This works as the esriPluginLayer when the applet is run locally  
> but not when it is run on the server. It does work as a ShapeLayer  
> when run from the server.
>
> This is the error when trying to load the EsriPluginLayer on the  
> server.
> *** ERROR ***
> PropUtils: AccessControlException trying to access data/shape/cfp.shp
> *************
> Despite the shapefile not displaying, 'show data table' will  
> display the dbf file fine.
>
> Text added to the properties file :
>         cfp.class = com.bbn.openmap.plugin.esri.EsriPlugIn
>         cfp.prettyName = CFP
>         cfp.shp=data/shape/cfp.shp
>         cfp.dbf=data/shape/cfp.dbf
>         cfp.shx=data/shape/cfp.shx
>
> #test loading as shapeLayer rather than esriPluginLayer
> cfp2.class=com.bbn.openmap.layer.shape.ShapeLayer
> cfp2.prettyName=CFP2
> cfp2.shapeFile=data/shape/cfp.shp
> cfp2.spatialIndex=data/shape/cfp.ssx
>
> Any suggestions appreciated,
> Thanks,
> Andy



=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick, dietrick@bbn.com
BBN Technologies, Cambridge, MA
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=


--
[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"]


From mail@openmap.bbn.com Thu Mar 15 13:41:34 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2FHfY4p008063
	for <openmap-users-archive@openmap.bbn.com>; Thu, 15 Mar 2007 13:41:34 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2FHfYYx008062
	for openmap-users-archive; Thu, 15 Mar 2007 13:41:34 -0400
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2FHfYAH008059
	for <openmap-users@openmap.bbn.com>; Thu, 15 Mar 2007 13:41:34 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HRtvD-00043p-6H; Thu, 15 Mar 2007 13:39:28 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2FHcHV07022
	for openmap-users-outgoing; Thu, 15 Mar 2007 13:38:17 -0400 (EDT)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C76728.AF92D1E8"
Subject: [OpenMap Users] Zooming in with 'Go over data' does not work
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Thu, 15 Mar 2007 18:38:04 +0100
Message-ID: <5CDCE8E138ACB445B11E9F7B85FC782A4A8409@radon.smr.intern>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Zooming in with 'Go over data' does not work
Thread-Index: AcdnKK+P55OpZO9HRkOvN17HTkLDHg==
From: "Jeroen van Dijk" <jeroen@sentient.nl>
To: <openmap-users@bbn.com>
Old-X-Spam-Score: -0.2 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO,HTML_MESSAGE 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multi-part message in MIME format.

------_=_NextPart_001_01C76728.AF92D1E8
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi all,

I have the following problem: when I want to zoom in on a particular
data set (in this case an OMCircle) by using the menu function View ->
"Go over data. It zooms completely wrong; it zooms out instead of in and
it seems to move away from the data set as well. For the other data
layers it works all right, but I don't understand why for this layer it
does not.

=20

For example I have a layer which contains streets. When I use "Go over
data" it zooms in correctly, but when I use this same function for the
circle layer (which actually lies within the streets layer) I zooms out.
I cannot find the problem, can someone give me a hint?

=20

=20

Regards,

Jeroen

=20

PS Thanks for all the replies on the distance between two points it
worked!


------_=_NextPart_001_01C76728.AF92D1E8
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>Hi all,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>I have the following problem: when I want to =
zoom in
on a particular data set (in this case an </span></font><font size=3D2
color=3Dblack face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:black;background:silver'>OMCircle</span></font><font size=3D2 =
color=3Dblack
face=3D"Courier New"><span =
style=3D'font-size:10.0pt;font-family:"Courier New";
color:black'>) by using the menu function View -&gt; &#8220;Go over =
data. It
zooms completely wrong; it zooms out instead of in and it seems to move =
away
from the data set as well. For the other data layers it works all right, =
but I
don&#8217;t understand why for this layer it does =
not.<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier =
New";color:black'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 color=3Dblack face=3D"Courier =
New"><span
style=3D'font-size:10.0pt;font-family:"Courier New";color:black'>For =
example I have
a layer which contains streets. When I use &#8220;Go over data&#8221; it =
zooms
in correctly, but when I use this same function for the circle layer =
(which
actually lies within the streets layer) I zooms out. I cannot find the =
problem,
can someone give me a hint?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>Regards,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>Jeroen<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>PS Thanks for all the replies on the distance =
between
two points it worked!<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C76728.AF92D1E8--

--
[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"]


From mail@openmap.bbn.com Fri Mar 16 06:31:03 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2GAV3BV016548
	for <openmap-users-archive@openmap.bbn.com>; Fri, 16 Mar 2007 06:31:03 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2GAV36P016547
	for openmap-users-archive; Fri, 16 Mar 2007 06:31:03 -0400
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2GAV3fO016544
	for <openmap-users@openmap.bbn.com>; Fri, 16 Mar 2007 06:31:03 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HS9gD-0002r4-4x; Fri, 16 Mar 2007 06:29:01 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2GARSq17581
	for openmap-users-outgoing; Fri, 16 Mar 2007 06:27:28 -0400 (EDT)
In-Reply-To: <7397F8F8-EE8D-4F79-A08D-7E8B4313D328@bbn.com>
Importance: Low
Subject: Re : Re: [OpenMap Users] Relative path?
To: Don Dietrick <dietrick@bbn.com>
Cc: openmap-users@bbn.com
X-Mailer: Lotus Notes Release 6.5.3 September 14, 2004
Message-ID: <OF2A7EC5CC.25CFD111-ONC12572A0.0033891C-C12572A0.0033E37D@netfr.alcatel.fr>
From: Thomas.Dewancker@alcatelaleniaspace.com
Date: Fri, 16 Mar 2007 10:26:45 +0100
X-MIMETrack: Serialize by Router on VZMTA01/ALCANET/ALCATEL-SPACE(Release 5.0.13a  HF167|July
 08, 2005) at 16/03/2007 11:06:54
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Old-X-Spam-Score: 0.4 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.2 required=2.5 tests=NO_REAL_NAME autolearn=no 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Don,

Thank you for the hint, now it works fine!

Regards,

Thomas







This message and any attachments (the "message") is intended solely for the
addressees and is confidential. If you receive this message in error,
please delete it and immediately notify the sender. Any use not in accord
with its purpose, any dissemination or disclosure, either whole or partial,
is prohibited except formal approval. The internet can not guarantee the
integrity of this message. ALCATEL ALENIA SPACE (and its subsidiaries)
shall (will) not therefore be liable for the message if modified.

Ce message et toutes les pieces jointes (ci-apres le "message") sont
etablis a l'intention exclusive de ses destinataires et sont confidentiels.
Si vous recevez ce message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce message non conforme a
sa destination, toute diffusion ou toute publication, totale ou partielle,
est interdite, sauf autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, ALCATEL ALENIA SPACE (et ses filiales)
decline(nt) toute responsabilite au titre de ce message, dans l'hypothese
ou il aurait ete modifie.


--
[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"]


From mail@openmap.bbn.com Fri Mar 16 08:24:34 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2GCOYqt017652
	for <openmap-users-archive@openmap.bbn.com>; Fri, 16 Mar 2007 08:24:34 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2GCOY2P017651
	for openmap-users-archive; Fri, 16 Mar 2007 08:24:34 -0400
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2GCOYmG017648
	for <openmap-users@openmap.bbn.com>; Fri, 16 Mar 2007 08:24:34 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HSBSd-0003cd-4K; Fri, 16 Mar 2007 08:23:07 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2GCKvp19569
	for openmap-users-outgoing; Fri, 16 Mar 2007 08:20:57 -0400 (EDT)
In-Reply-To: <603FBE79-50D4-478D-BCC7-765005E45BCE@bbn.com>
Importance: Low
Subject: [OpenMap Users] =?iso-8859-1?Q?R=E9f=2E_=3A_Re=3A_Problem_using_LoadProperties=2E=2E=2E?=
To: openmap-users@bbn.com
X-Mailer: Lotus Notes Release 6.5.3 September 14, 2004
Message-ID: <OFC07FDE45.3BB7B46C-ONC12572A0.0033EC2B-C12572A0.003484ED@netfr.alcatel.fr>
From: Thomas.Dewancker@alcatelaleniaspace.com
Date: Fri, 16 Mar 2007 10:33:39 +0100
X-MIMETrack: Serialize by Router on VZMTA01/ALCANET/ALCATEL-SPACE(Release 5.0.13a  HF167|July
 08, 2005) at 16/03/2007 11:12:16
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
X-Alcanet-MTA-scanned-and-authorized: yes
Old-X-Spam-Score: 0.4 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.2 required=2.5 tests=NO_REAL_NAME autolearn=no 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Don,

I'll send you a screen copy of the stack trace as soon as possible.

Anyway, I looked forward, especially into the generated properties file,
and the problem seems to be caused by lots of empty property values (like
for example the CSV.defaultIconURL).



Regards,

Thomas



PS: I'll send the stack trace asap...





Hi Thomas,

Do you have a stack trace I could look at?

- Don

On Mar 7, 2007, at 10:42 AM, Thomas.Dewancker@alcatelaleniaspace.com
wrote:

> Hi all,
>
> I tried to use the Save/Load Properties feature, so I first saved a
> map to
> a file, and the tried to load this same file. But when I do so,
> only 10
> layers are loaded, and I get a NullPointerException (relative to
> LayerCheckBoxMenuItem.componentHidden)...
> Is that a known bug, or did I missed something (in a property file
> maybe)?
>
>
>
> Thomas
>
>
>
>
>
> This message and any attachments (the "message") is intended solely
> for the
> addressees and is confidential. If you receive this message in error,
> please delete it and immediately notify the sender. Any use not in
> accord
> with its purpose, any dissemination or disclosure, either whole or
> partial,
> is prohibited except formal approval. The internet can not
> guarantee the
> integrity of this message. ALCATEL ALENIA SPACE (and its subsidiaries)
> shall (will) not therefore be liable for the message if modified.
>
> Ce message et toutes les pieces jointes (ci-apres le "message") sont
> etablis a l'intention exclusive de ses destinataires et sont
> confidentiels.
> Si vous recevez ce message par erreur, merci de le detruire et d'en
> avertir
> immediatement l'expediteur. Toute utilisation de ce message non
> conforme a
> sa destination, toute diffusion ou toute publication, totale ou
> partielle,
> est interdite, sauf autorisation expresse. L'internet ne permettant
> pas
> d'assurer l'integrite de ce message, ALCATEL ALENIA SPACE (et ses
> filiales)
> decline(nt) toute responsabilite au titre de ce message, dans
> l'hypothese
> ou il aurait ete modifie.
>




=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Don Dietrick
openmap@bbn.com

BBN Technologies
10 Moulton Street, Cambridge, MA 02138
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=










This message and any attachments (the "message") is intended solely for the
addressees and is confidential. If you receive this message in error,
please delete it and immediately notify the sender. Any use not in accord
with its purpose, any dissemination or disclosure, either whole or partial,
is prohibited except formal approval. The internet can not guarantee the
integrity of this message. ALCATEL ALENIA SPACE (and its subsidiaries)
shall (will) not therefore be liable for the message if modified.

Ce message et toutes les pieces jointes (ci-apres le "message") sont
etablis a l'intention exclusive de ses destinataires et sont confidentiels.
Si vous recevez ce message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce message non conforme a
sa destination, toute diffusion ou toute publication, totale ou partielle,
est interdite, sauf autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, ALCATEL ALENIA SPACE (et ses filiales)
decline(nt) toute responsabilite au titre de ce message, dans l'hypothese
ou il aurait ete modifie.



--
[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"]


From mail@openmap.bbn.com Fri Mar 16 11:04:14 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2GF4EMR019267
	for <openmap-users-archive@openmap.bbn.com>; Fri, 16 Mar 2007 11:04:14 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2GF4EUT019266
	for openmap-users-archive; Fri, 16 Mar 2007 11:04:14 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2GF4Eno019263
	for <openmap-users@openmap.bbn.com>; Fri, 16 Mar 2007 11:04:14 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HSDtx-0000NA-3r; Fri, 16 Mar 2007 10:59:29 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2GEw8X20955
	for openmap-users-outgoing; Fri, 16 Mar 2007 10:58:08 -0400 (EDT)
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Transfer-Encoding: 7bit
Message-Id: <52741F34-C45A-4285-BB62-7AC3FBBDA9F3@pvv.ntnu.no>
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed
To: openmap questions <openmap-users@bbn.com>
From: Tore Halset <halset@pvv.ntnu.no>
Subject: [OpenMap Users] UTMPoint outside a zone
Date: Fri, 16 Mar 2007 15:57:27 +0100
X-Mailer: Apple Mail (2.752.3)
X-OriginalArrivalTime: 16 Mar 2007 14:57:50.0786 (UTC) 
	FILETIME=[77BF1A20:01C767DB]
X-imss-version: 2.046
X-imss-result: Passed
X-imss-scores: Clean:62.36611 C:2 M:3 S:5 R:5
X-imss-settings: Baseline:2 C:2 M:2 S:2 R:2 (0.1500 0.1500)
Old-X-Spam-Score: -0.3 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello.

I am build support for UTM projections into the WMS-part of OpenMap.  
I am using UTMPoint for the calculation, but would like to be able to  
convert a LatLonPoint to a UTMPoint for a specified UTM zone that may  
not include the given LatLonPoint. This is normal practice in the WMS  
context.

Does this seem to be a good idea? I have attached a patch to UTMPoint  
that works for me.

Regards,
  - Tore.
### Eclipse Workspace Patch 1.0
#P openmap
Index: src/openmap/com/bbn/openmap/proj/coords/UTMPoint.java
===================================================================
RCS file: /cvs/openmap/openmap/src/openmap/com/bbn/openmap/proj/ 
coords/UTMPoint.java,v
retrieving revision 1.10
diff -u -r1.10 UTMPoint.java
--- src/openmap/com/bbn/openmap/proj/coords/UTMPoint.java	24 Oct 2005  
14:39:14 -0000	1.10
+++ src/openmap/com/bbn/openmap/proj/coords/UTMPoint.java	16 Mar 2007  
14:26:23 -0000
@@ -197,8 +197,31 @@
      public static UTMPoint LLtoUTM(LatLonPoint llpoint, Ellipsoid  
ellip,
                                     UTMPoint utmpoint) {
-        double Lat = llpoint.getLatitude();
-        double Long = llpoint.getLongitude();
+        // find the native zone for the given llpoint
+        int zoneNumber = zoneNumber(llpoint.getLatitude(),  
llpoint.getLongitude());
+        boolean isnorthern = (llpoint.getLatitude() >= 0f);
+
+        return LLtoUTM(llpoint, ellip, utmpoint, zoneNumber,  
isnorthern);
+     }
+
+    /**
+     * Converts a set of Longitude and Latitude co-ordinates to UTM
+     * given an ellipsoid and the UTM zone to use.
+     *
+     * @param ellip an ellipsoid definition.
+     * @param llpoint the coordinate to be converted
+     * @param utmpoint A UTMPoint instance to put the results in. If
+     *        null, a new UTMPoint will be allocated.
+     * @param ZoneNumber the number of the zone
+     * @param isnorthern true if zone is in norhering hemispehere
+     * @return A UTM class instance containing the value of
+     *         <code>null</code> if conversion failed. If you pass
+     *         in a UTMPoint, it will be returned as well if
+     *         successful.
+     */
+    public static UTMPoint LLtoUTM(LatLonPoint llpoint, Ellipsoid  
ellip,
+                                   UTMPoint utmpoint, int  
ZoneNumber, boolean isnorthern) {
+
          double a = ellip.radius;
          double eccSquared = ellip.eccsq;
          double k0 = 0.9996;
@@ -210,31 +233,7 @@
          double LatRad = llpoint.radlat_;
          double LongRad = llpoint.radlon_;
          double LongOriginRad;
-        int ZoneNumber;
-
-        ZoneNumber = (int) ((Long + 180) / 6) + 1;
-        //Make sure the longitude 180.00 is in Zone 60
-        if (Long == 180) {
-            ZoneNumber = 60;
-        }
-
-        // Special zone for Norway
-        if (Lat >= 56.0f && Lat < 64.0f && Long >= 3.0f && Long <  
12.0f) {
-            ZoneNumber = 32;
-        }
-
-        // Special zones for Svalbard
-        if (Lat >= 72.0f && Lat < 84.0f) {
-            if (Long >= 0.0f && Long < 9.0f)
-                ZoneNumber = 31;
-            else if (Long >= 9.0f && Long < 21.0f)
-                ZoneNumber = 33;
-            else if (Long >= 21.0f && Long < 33.0f)
-                ZoneNumber = 35;
-            else if (Long >= 33.0f && Long < 42.0f)
-                ZoneNumber = 37;
-        }
          LongOrigin = (ZoneNumber - 1) * 6 - 180 + 3; //+3 puts origin
                                                       // in middle of
                                                       // zone
@@ -272,7 +271,7 @@
                  * (A * A / 2 + (5 - T + 9 * C + 4 * C * C) * A * A  
* A * A
                          / 24.0d + (61 - 58 * T + T * T + 600 * C -  
330 * eccPrimeSquared)
                          * A * A * A * A * A * A / 720.0d)));
-        if (Lat < 0.0f) {
+        if (!isnorthern) {
              UTMNorthing += 10000000.0f; //10000000 meter offset for
                                          // southern hemisphere
          }
@@ -284,11 +283,11 @@
          utmpoint.northing = (float) Math.rint(UTMNorthing);
          utmpoint.easting = (float) Math.rint(UTMEasting);
          utmpoint.zone_number = ZoneNumber;
-        utmpoint.zone_letter = utmpoint.getLetterDesignator(Lat);
+        utmpoint.zone_letter = isnorthern ? 'N' : 'S';
          return utmpoint;
      }
-
+
      /**
       * Returns 'N' if the latitude is equal to or above the equator,
       * 'S' if it's below.
@@ -538,5 +537,44 @@
              return new LatLonPoint((float) Lat, (float) Long);
          }
      }
+
+    /**
+     * Find zone number based on the given latitude and longitude in  
*degrees*.
+     *
+     * @param Lat
+     * @param Long
+     * @return
+     */
+    public static int zoneNumber(double Lat, double Long) {
+        int ZoneNumber;
+
+        ZoneNumber = (int) ((Long + 180) / 6) + 1;
+
+        //Make sure the longitude 180.00 is in Zone 60
+        if (Long == 180) {
+            ZoneNumber = 60;
+        }
+
+        // Special zone for Norway
+        if (Lat >= 56.0f && Lat < 64.0f && Long >= 3.0f && Long <  
12.0f) {
+            ZoneNumber = 32;
+        }
+
+        // Special zones for Svalbard
+        if (Lat >= 72.0f && Lat < 84.0f) {
+            if (Long >= 0.0f && Long < 9.0f)
+                ZoneNumber = 31;
+            else if (Long >= 9.0f && Long < 21.0f)
+                ZoneNumber = 33;
+            else if (Long >= 21.0f && Long < 33.0f)
+                ZoneNumber = 35;
+            else if (Long >= 33.0f && Long < 42.0f)
+                ZoneNumber = 37;
+        }
+
+        return ZoneNumber;
+    }
+
+
}

--
[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"]


From mail@openmap.bbn.com Mon Mar 19 04:40:09 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2J8e9gx000557
	for <openmap-users-archive@openmap.bbn.com>; Mon, 19 Mar 2007 04:40:09 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2J8e9Yr000556
	for openmap-users-archive; Mon, 19 Mar 2007 04:40:09 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2J8e9Ni000553
	for <openmap-users@openmap.bbn.com>; Mon, 19 Mar 2007 04:40:09 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HTDOU-0005eJ-4W; Mon, 19 Mar 2007 04:39:06 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2J8XKs15264
	for openmap-users-outgoing; Mon, 19 Mar 2007 04:33:20 -0400 (EDT)
Mime-Version: 1.0 (Apple Message framework v752.3)
Content-Transfer-Encoding: 7bit
Message-Id: <D3D60D75-7E7C-40F0-9938-56D741DDE2C6@pvv.ntnu.no>
Content-Type: text/plain;
	charset=US-ASCII;
	delsp=yes;
	format=flowed
To: openmap questions <openmap-users@bbn.com>
From: Tore Halset <halset@pvv.ntnu.no>
Subject: [OpenMap Users] transverse mercator projection
Date: Mon, 19 Mar 2007 09:32:25 +0100
X-Mailer: Apple Mail (2.752.3)
X-OriginalArrivalTime: 19 Mar 2007 08:33:02.0638 (UTC) 
	FILETIME=[35608CE0:01C76A01]
X-imss-version: 2.046
X-imss-result: Passed
X-imss-scores: Clean:58.09054 C:2 M:3 S:5 R:5
X-imss-settings: Baseline:2 C:2 M:2 S:2 R:2 (0.1500 0.1500)
Old-X-Spam-Score: -0.3 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hello.

I have created a Transeverse Mercator Projection class based on  
UTMPoint. It seem to work pretty well in my application. It is based  
on my changes to UTMPoint:

http://openmap.bbn.com/mailArchives/openmap-users/2007-03/5226.html

Here are the projection and projection factory:

http://www.pvv.ntnu.no/~halset/tmp/20070319-openmap-utmproj.tgz

It is possible to optimize the code by reducing the number of  
LatLonPoint and UTMPoint objects that are created, but that will  
require some more changes to UTMPoint.

I have only used this with WMS (ImageServer), not in the OpenMap GUI.

Regards,
  - Tore.

--
[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"]


From mail@openmap.bbn.com Mon Mar 19 10:07:28 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2JE7SuZ002533
	for <openmap-users-archive@openmap.bbn.com>; Mon, 19 Mar 2007 10:07:28 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2JE7Sa8002532
	for openmap-users-archive; Mon, 19 Mar 2007 10:07:28 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2JE7Rou002529
	for <openmap-users@openmap.bbn.com>; Mon, 19 Mar 2007 10:07:27 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HTIV3-00084Y-6G; Mon, 19 Mar 2007 10:06:14 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2JE4eA19013
	for openmap-users-outgoing; Mon, 19 Mar 2007 10:04:40 -0400 (EDT)
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C76A2F.7D8E95E7"
Subject: [OpenMap Users] Coloring the lines from a shapefile
X-MimeOLE: Produced By Microsoft Exchange V6.5
Date: Mon, 19 Mar 2007 15:04:20 +0100
Message-ID: <5CDCE8E138ACB445B11E9F7B85FC782A4A840E@radon.smr.intern>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: Coloring the lines from a shapefile
Thread-Index: AcdqL32FHpoCCuahSsaXiaCJBhZ4jg==
From: "Jeroen van Dijk" <jeroen@sentient.nl>
To: <openmap-users@bbn.com>
Old-X-Spam-Score: -0.2 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.1 required=2.5 tests=FORGED_RCVD_HELO,HTML_MESSAGE 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multi-part message in MIME format.

------_=_NextPart_001_01C76A2F.7D8E95E7
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hello,

=20

I have an OpenMap display that shows a map with streets. I'm using this
map to show where street robberies take place. What I want now is to
change the color of the street depending on the number crimes that have
committed in that street. For example, a street with a low crime density
would be blue and one with a high crime density would be red. I want to
be able to set this color after I have loaded the shapefile.? I know how
to set the color for all streets with the Properties class, but how can
I do this for each specific street ? Should I set the color as an
attribute and specify colors for certain values?

=20

=20

Thanks and regards,

=20

Jeroen


------_=_NextPart_001_01C76A2F.7D8E95E7
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns=3D"http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<meta name=3DGenerator content=3D"Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>Hello,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>I have an OpenMap display that shows a map =
with
streets. I&#8217;m using this map to show where street robberies take =
place. What
I want now is to change the color of the street depending on the number =
crimes
that have committed in that street. For example, a street with a low =
crime
density would be blue and one with a high crime density would be red. I =
want to
be able to set this color after I have loaded the shapefile.? I know how =
to set
the color for all streets with the Properties class, but how can I do =
this for
each specific street ? Should I set the color as an attribute and =
specify
colors for certain values?<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>Thanks and =
regards,<o:p></o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span lang=3DEN-GB =
style=3D'font-size:
10.0pt;font-family:Arial'>Jeroen<o:p></o:p></span></font></p>

</div>

</body>

</html>

------_=_NextPart_001_01C76A2F.7D8E95E7--

--
[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"]


From mail@openmap.bbn.com Mon Mar 19 11:33:50 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2JFXo2Q002818
	for <openmap-users-archive@openmap.bbn.com>; Mon, 19 Mar 2007 11:33:50 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2JFXns4002817
	for openmap-users-archive; Mon, 19 Mar 2007 11:33:49 -0400
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2JFXn3K002813
	for <openmap-users@openmap.bbn.com>; Mon, 19 Mar 2007 11:33:49 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HTJo2-0006Y8-5g; Mon, 19 Mar 2007 11:29:54 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2JFRSP21275
	for openmap-users-outgoing; Mon, 19 Mar 2007 11:27:28 -0400 (EDT)
To: openmap-users@bbn.com
Subject: [OpenMap Users] Clone OMLine with ArrowHead
MIME-Version: 1.0
X-Mailer: Lotus Notes Release 6.5 September 26, 2003
Message-ID: <OF8D2D4AB9.96209173-ON842572A3.0054247F-842572A3.0054C4D0@sisdef.net>
From: EOsorio@sisdef.cl
Date: Mon, 19 Mar 2007 11:27:01 -0400
X-MIMETrack: Serialize by Router on Nashira/Sisdef(Release 6.0.1CF1 | March 06, 2003) at
 19/03/2007 11:27:07,
	Serialize complete at 19/03/2007 11:27:07
Content-Type: multipart/alternative; boundary="=_alternative 0054C4CA842572A3_="
Old-X-Spam-Score: 1.9 (+)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.5 required=2.5 tests=HTML_10_20,HTML_MESSAGE,
	NO_REAL_NAME autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multipart message in MIME format.
--=_alternative 0054C4CA842572A3_=
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi, when I tried to clone the OMLine with OMArrowHead, the new OMLine have =

the same OMArrowHead, the OMLine's clone no clone the OMArrowHead.


-------------------------------------
 Eliecer Osorio Verdugo=20
 Gerencia T=E9cnica
------------------------------------
 Sisdef Ltda.
 Fono: 56 32 2810777
 Fax  : 56 32 2811190
-------------------------------------
 e-mail: eosorio@sisdef.cl
-------------------------------------
---------------------------------------------------------------------------
La informaci=F3n contenida en esta transmisi=F3n es confidencial y no puede=
=20
ser usada o difundida por personas distintas a su(s) destinatario(s). El=20
uso no autorizado de la informaci=F3n contenida en esta transmisi=F3n puede=
=20
ser sancionado criminalmente de conformidad con la ley chilena.
Si ha recibido esta transmisi=F3n por error, por favor destr=FAyala y=20
notifique al remitente. Atendido que no existe certidumbre que el presente =

mensaje no ser=E1 modificado como resultado de su transmisi=F3n por correo =

electr=F3nico, SISDEF no ser=E1 responsable si el contenido del mismo ha si=
do=20
modificado.
--=_alternative 0054C4CA842572A3_=
Content-Type: text/html; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable


<br><font size=3D2 face=3D"sans-serif">Hi, when I tried to clone the OMLine
with OMArrowHead, the new OMLine have the same OMArrowHead, the OMLine's
clone no clone the OMArrowHead.</font>
<br>
<br>
<br><font size=3D2 face=3D"sans-serif">------------------------------------=
-<br>
 Eliecer Osorio Verdugo &nbsp; &nbsp; &nbsp;<br>
 Gerencia T=E9cnica<br>
------------------------------------<br>
 Sisdef Ltda.<br>
 Fono: 56 32 2810777<br>
 Fax &nbsp;: 56 32 2811190<br>
-------------------------------------<br>
 e-mail: eosorio@sisdef.cl<br>
-------------------------------------<br>
---------------------------------------------------------------------------=
<br>
La informaci=F3n contenida en esta transmisi=F3n es confidencial y no puede
ser usada o difundida por personas distintas a su(s) destinatario(s). El
uso no autorizado de la informaci=F3n contenida en esta transmisi=F3n puede
ser sancionado criminalmente de conformidad con la ley chilena.<br>
Si ha recibido esta transmisi=F3n por error, por favor destr=FAyala y notif=
ique
al remitente. Atendido que no existe certidumbre que el presente mensaje
no ser=E1 modificado como resultado de su transmisi=F3n por correo electr=
=F3nico,
SISDEF no ser=E1 responsable si el contenido del mismo ha sido modificado.<=
/font>
--=_alternative 0054C4CA842572A3_=--

--
[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"]


From mail@openmap.bbn.com Mon Mar 19 14:55:32 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2JItWDW003427
	for <openmap-users-archive@openmap.bbn.com>; Mon, 19 Mar 2007 14:55:32 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2JItWUl003426
	for openmap-users-archive; Mon, 19 Mar 2007 14:55:32 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2JItVGi003423
	for <openmap-users@openmap.bbn.com>; Mon, 19 Mar 2007 14:55:31 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HTMys-0003jz-4W; Mon, 19 Mar 2007 14:53:18 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2JIpiV24266
	for openmap-users-outgoing; Mon, 19 Mar 2007 14:51:44 -0400 (EDT)
Message-ID: <45FEDBAF.3070501@io.com>
Date: Mon, 19 Mar 2007 13:51:27 -0500
From: JR Andreassen <janrune@io.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.13) Gecko/20060414
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Jeroen van Dijk <jeroen@sentient.nl>
CC: openmap-users@bbn.com
Subject: Re: [OpenMap Users] Coloring the lines from a shapefile
References: <5CDCE8E138ACB445B11E9F7B85FC782A4A840E@radon.smr.intern>
In-Reply-To: <5CDCE8E138ACB445B11E9F7B85FC782A4A840E@radon.smr.intern>
Content-Type: multipart/mixed;
 boundary="------------010802080703020004050804"
X-Virus-Scanned: ClamAV version 0.88.7, clamav-milter version 0.88.7 on smtp.prismnet.com
X-Virus-Status: Clean
Old-X-Spam-Score: -1.0 (-)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multi-part message in MIME format.
--------------010802080703020004050804
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by smtp.prismnet.com id l2JIon4p069251

Hi...
That's esentially what I did for Locations/Points:
Sorry if the comments leave a little to be desired
I use it to create colored Icon's for the Location as Dot's.
You can probably change it to update the "DrawingAttribute.lineColor"
Here is my property string
UnitHandler.colorFormat=3DInactive:lightgray/Active:green:black/ALERT:red=
/STOPPED:yellow/OFFLINE:darkgray/STALE:Gray/PURSUIT:red(1):red

Start in :DBLocationHandler.reloadData(QuadTree qt)
Then:
UnitData.load(RecordSet drs, LocationColorFormatter colfmt) throws=20
SQLException
Hope it helps
JR

> Hello,
>
> I have an OpenMap display that shows a map with streets. I=92m using=20
> this map to show where street robberies take place. What I want now is=20
> to change the color of the street depending on the number crimes that=20
> have committed in that street. For example, a street with a low crime=20
> density would be blue and one with a high crime density would be red.=20
> I want to be able to set this color after I have loaded the=20
> shapefile.? I know how to set the color for all streets with the=20
> Properties class, but how can I do this for each specific street ?=20
> Should I set the color as an attribute and specify colors for certain=20
> values?
>
> Thanks and regards,
>
> Jeroen
>


--------------010802080703020004050804
Content-Type: text/java;
 name="LocationDataFactory.java"
Content-Disposition: inline;
 filename="LocationDataFactory.java"
Content-Transfer-Encoding: 7bit

// **********************************************************************
// 
// <copyright>
// 
//  BBN Technologies
//  10 Moulton Street
//  Cambridge, MA 02138
//  (617) 873-8000
// 
//  Copyright (C) BBNT Solutions LLC. All rights reserved.
// 
// </copyright>
// **********************************************************************
// 
// $Source: /cvs/openmap/openmap/src/openmap/com/bbn/openmap/layer/location/db/LocationData.java,v $
// $RCSfile: LocationData.java,v $
// $Revision: 1.4 $
// $Date: 2004/10/14 18:18:18 $
// $Author: dietrick $
// 
// **********************************************************************
package com.bbn.openmap.layer.location.generic;

import com.bbn.openmap.omGraphics.OMGraphic;
import com.bbn.openmap.layer.location.Location;
import java.awt.Image;
/**
 * This class is responsible for producing LocationData
 */
public interface LocationDataFactory 
{
		public static int	IDX_LATNAME = 0;
		public static int	IDX_LONNAME = 1;
	
    public String[]							getLatLonNameArr();
    public LocationDataRecord makeLocationData();
		public Location						makeLocation(float latitude, float longitude, String name, Image locationMarker);
		public Location						makeLocation(float latitude, float longitude, String name, String locationMarker);
}
--------------010802080703020004050804
Content-Type: text/java;
 name="LocationDataRecord.java"
Content-Disposition: inline;
 filename="LocationDataRecord.java"
Content-Transfer-Encoding: 7bit

// **********************************************************************
// 
// <copyright>
// 
//  BBN Technologies
//  10 Moulton Street
//  Cambridge, MA 02138
//  (617) 873-8000
// 
//  Copyright (C) BBNT Solutions LLC. All rights reserved.
// 
// </copyright>
// **********************************************************************
// 
// $Source: /cvs/openmap/openmap/src/openmap/com/bbn/openmap/layer/location/db/LocationData.java,v $
// $RCSfile: LocationData.java,v $
// $Revision: 1.4 $
// $Date: 2004/10/14 18:18:18 $
// $Author: dietrick $
// 
// **********************************************************************

package com.bbn.openmap.layer.location.generic;

import java.awt.Color;
import java.awt.Image;
import com.bbn.openmap.omGraphics.OMGraphic;
import java.sql.*;
import com.bbn.openmap.layer.location.db.*;

/**
 * This class is responsible for retrieving Latitude and Longitude
 * Data from a table in a Database.. Also
 * it retrieves identifier of the object that would be used to
 * represent this location on Map. For instance, identifier can be
 * either a url or a name that can be looked up somewhere else.
 * <P>
 * This class needs the RecordSet to be called with the following
 * query: <BR>
 * The class is expecting the results in this order.
 */
public interface LocationDataRecord {

//    public LocationData();

    public boolean load(RecordSet drs, LocationColorFormatter colfmt) throws SQLException;

/*    public void close() throws SQLException {
        rset.close();
        stmt.close();
    }

    public Connection getConnection() {
        return connection;
    }
    public void setConnection(Connection inConnection) {
        connection = inConnection;
    }
*/

    /**
     * @return city name of current record
     */
    public String getDisplayName();
/*    public String getStateName() {
        return stateName;
    }
*/
		public int		getRecID();
    public String getGraphicName();

    public float getLatitude();

    public float getLongitude();

		// ----------------------------------------------------------------
    /**
		 * Description string
     * @return String
     */
		public String getDetails();

		// ----------------------------------------------------------------
    /**
		 * Default output string
     * @return String
     */
    public String toString(); 
    /**
     * Get the color used for the location graphic.
     */
    public Color getLocationColor(Color defcolor);
		
   /**
     * Get the color used for the label.
     */
    public Color getLabelColor(Color defcolor);

		// ----------------------------------------------------------------
		public Image getLocationImage();
		// ----------------------------------------------------------------
		public String getImageUrl();
}
--------------010802080703020004050804
Content-Type: text/java;
 name="LocationDataRecordImpl.java"
Content-Disposition: inline;
 filename="LocationDataRecordImpl.java"
Content-Transfer-Encoding: 7bit

// **********************************************************************
// 
// <copyright>
// 
//  BBN Technologies
//  10 Moulton Street
//  Cambridge, MA 02138
//  (617) 873-8000
// 
//  Copyright (C) BBNT Solutions LLC. All rights reserved.
// 
// </copyright>
// **********************************************************************
// 
// $Source: /cvs/openmap/openmap/src/openmap/com/bbn/openmap/layer/location/db/UnitData.java,v $
// $RCSfile: UnitData.java,v $
// $Revision: 1.4 $
// $Date: 2004/10/14 18:18:18 $
// $Author: dietrick $
// 
// **********************************************************************

package com.bbn.openmap.layer.location.generic;

import java.awt.Color;
import java.awt.Image;
import java.awt.image.BufferedImage;
import javax.swing.ImageIcon;

import java.net.URL;
import java.sql.*;
import com.bbn.openmap.layer.location.db.*;
import com.bbn.openmap.util.PropUtils;
import com.bbn.openmap.omGraphics.OMGraphic;
import com.bbn.openmap.omGraphics.OMRaster;
/**
 * This class is responsible for retrieving Latitude and Longitude
 * Data from a table in a Database given a City/Town name, State. Also
 * it retrieves identifier of the object that would be used to
 * represent this City/Town on Map. For instance, identifier can be
 * either a url or a name that can be looked up somewhere else.
 * <P>
 * This class needs the RecordSet to be called with the following
 * query: <BR>
 * select CITY (string), STATE (string), GRAPHIC (string, url or
 * graphic name), LATITUDE (float), LONGITUDE (float) from
 * LOCATION_TABLE (tablename where data is stored) <BR>
 * The class is expecting the results in this order.
 */
public abstract class  LocationDataRecordImpl
				implements LocationDataRecord
{

    /* variables that would hold current values of record set */
		protected	int		recID;
    protected String labelString;
		protected LocationColorFormatter.LocColorEntry	colorFormatter;
    protected float latitude, longitude;

    public LocationDataRecordImpl() {}

		// ----------------------------------------------------------------
    /** Modifier methods     */
		public void		setRecID(int val)						{ recID = val;}
    public void		setDisplayName(String val)	{ labelString = val;}
    public void		setGraphicName(String val)	{	    }
    public void		setLatitude(float val)			{	latitude = val; }
    public void		setLongitude(float val)			{	longitude = val;  }
    public void		setColorFormatter(LocationColorFormatter.LocColorEntry val)			{	colorFormatter = val;  }
		
		// ----------------------------------------------------------------
    /** Accessor methods     */
		public int		getRecID()				{ return recID;}
    public String getDisplayName()	{ return labelString;}
    public String getGraphicName()	{	return "";    }
    public float	getLatitude()			{	return latitude; }
    public float	getLongitude()		{	return longitude;  }
    public LocationColorFormatter.LocColorEntry	getColorFormatter()			{	return colorFormatter;  }
		
		// ----------------------------------------------------------------
		public void setLocationColors(LocationColorFormatter colfmt, Object value)
		{
			if(colfmt != null && value != null)
			{	
					setColorFormatter(colfmt.getEntry(value));
			}
		}
		
		// ----------------------------------------------------------------
    /**
		 * Description string
     * @return String
     */
		public String getDetails()
		{ return toString();}
		
		// ----------------------------------------------------------------
    /**
		 * Default output string
     * @return String
     */
    public String toString() {
        StringBuffer s = new StringBuffer();
        s.append(getDisplayName());
        s.append(" @ ( " + latitude + "," + longitude + ")");
        return s.toString();
    }
		// ----------------------------------------------------------------
    /**
     * Get the color used for the location graphic.
     */
    public Color getLocationColor(Color defcolor)		{ return defcolor;}
		// ----------------------------------------------------------------
   /**
     * Get the color used for the label.
     */
    public Color getLabelColor(Color defcolor)		{ return defcolor;}
		
		// ----------------------------------------------------------------
   /**
     * Get the color used for the label.
     */
		public OMGraphic getGraphic()
		{
			OMRaster retVal = new OMRaster();
			retVal.setImageIcon(getImageIcon(null));
			return retVal;
				
		}
		// ----------------------------------------------------------------
		public String getImageUrl()
		{
//			ImageIcon icon = new ImageIcon(iconURL);
				return "file:///C:/J_Projects/GIS/openmap-4.6.3/src/openmap/com/bbn/openmap/layer/location/generic/CYAN16_D.png";
		}
		// ----------------------------------------------------------------
		public Image getImage()
		{
			Image img	= java.awt.Toolkit.getDefaultToolkit().getImage(getImageUrl());
			BufferedImage bi =	new BufferedImage(16, 16, BufferedImage.TYPE_INT_ARGB);
//			Graphics2D g = bi.createGraphics();
//			g.drawImage(img);
			bi.createGraphics().drawImage(img, 0, 0, null);
			return bi;
		}
		// ----------------------------------------------------------------
		public ImageIcon getImageIcon(LocationColorFormatter colfmt)
		{
//			ImageIcon icon = new ImageIcon(iconURL);
				return new ImageIcon(getImage());
		}

		// ----------------------------------------------------------------
		public URL getIcon(String iconurl)
		{
        try 
				{
            return PropUtils.getResourceOrFileOrURL(null, iconurl);
        } 
				catch (java.net.MalformedURLException mue) 
				{	throw new com.bbn.openmap.util.HandleError(mue);        }
		}		
}
--------------010802080703020004050804
Content-Type: text/java;
 name="UnitData.java"
Content-Disposition: inline;
 filename="UnitData.java"
Content-Transfer-Encoding: 7bit

// **********************************************************************
// 
// <copyright>
// 
//  BBN Technologies
//  10 Moulton Street
//  Cambridge, MA 02138
//  (617) 873-8000
// 
//  Copyright (C) BBNT Solutions LLC. All rights reserved.
// 
// </copyright>
// **********************************************************************
// 
// $Source: /cvs/openmap/openmap/src/openmap/com/bbn/openmap/layer/location/db/UnitData.java,v $
// $RCSfile: UnitData.java,v $
// $Revision: 1.4 $
// $Date: 2004/10/14 18:18:18 $
// $Author: dietrick $
// 
// **********************************************************************

package com.bbn.openmap.layer.location.generic;

import java.awt.Color;
import java.sql.*;
import java.io.File;
import java.awt.Image;
import java.awt.image.BufferedImage;
import java.awt.Graphics2D;
import javax.imageio.ImageIO;

import com.bbn.openmap.layer.location.db.*;

/**
 * This class is responsible for retrieving Latitude and Longitude
 * Data from a table in a Database given a City/Town name, State. Also
 * it retrieves identifier of the object that would be used to
 * represent this City/Town on Map. For instance, identifier can be
 * either a url or a name that can be looked up somewhere else.
 * <P>
 * This class needs the RecordSet to be called with the following
 * query: <BR>
 * select CITY (string), STATE (string), GRAPHIC (string, url or
 * graphic name), LATITUDE (float), LONGITUDE (float) from
 * LOCATION_TABLE (tablename where data is stored) <BR>
 * The class is expecting the results in this order.
 */
public class UnitData 
				extends LocationDataRecordImpl
{

		public static String ATTRNAME_LAT	= "Lattitude";
		public static String ATTRNAME_LON	= "Longitude";
    /* variables that would hold current values of record set */
    protected float speed, alt, heading;
		protected	String	status, event, logtype;
		protected java.sql.Timestamp fix_Time;
		protected String fixtimestr, location;
		protected int fixage;
    public UnitData() {}

		// ----------------------------------------------------------------
		public static String[]		getLatLonNameArr()
		{
			String[] retVal = new String[2];
			if(retVal != null)
			{
				retVal[LocationDataFactory.IDX_LATNAME] = ATTRNAME_LAT;
				retVal[LocationDataFactory.IDX_LONNAME] = ATTRNAME_LON;
			}
			return retVal;
		}

		// ----------------------------------------------------------------
    public boolean load(RecordSet drs, LocationColorFormatter colfmt) throws SQLException 
		{

        ResultSet rset = drs.getResultSet();
        setRecID(rset.getInt("RecKey"));
				StringBuffer tmpstrb = new StringBuffer();
				String tmpstr = null;
				try
				{
					tmpstrb.append(rset.getString("Name"));
				} // try
				catch (SQLException sqlE) 
				{ 
					tmpstr = rset.getString("Radio_Number");
					if(tmpstr != null)
					{		tmpstrb.append(tmpstrb);	}
					tmpstr = rset.getString("Machine_Name");
					if(tmpstr != null)
					{   tmpstrb.append("[");
							tmpstrb.append(tmpstr);
							tmpstrb.append("]");
					}
				}
				setDisplayName(tmpstrb.toString());
        setLatitude(rset.getFloat(ATTRNAME_LAT));
        setLongitude(rset.getFloat(ATTRNAME_LON));
				//
				status = rset.getString("Status");
				event = rset.getString("Event");
				speed= rset.getFloat("Speed");
        alt= rset.getFloat("Altitude");
        heading= rset.getFloat("Heading");
				fix_Time = rset.getTimestamp("Fix_Time");
				if(!rset.wasNull())
				{	fixtimestr = fix_Time.toString();}
				try
				{
					fixage =  rset.getInt("Fix_Age");
					if(!rset.wasNull())
					{	
						if(fixtimestr != null &&  fixage < 24 * 60)
						{	fixtimestr = fixtimestr.substring(11, 19);	}
					}
					logtype = rset.getString("TZ");
					if(!rset.wasNull())
					{	fixtimestr += " "+logtype;}
				
					logtype = rset.getString("Type");
					location = rset.getString("Location");
				} // try
				catch (SQLException sqlE) 
				{    }
					
				if(colfmt != null)
				{	setLocationColors(colfmt, status);	}
				return true;
    }

		// ----------------------------------------------------------------
		public  String	getStatus()
		{
			String retVal = status;
/*			if(fix_Time != null)
			{
				fix_Time
			}
*/			return retVal;
		}
		
		public char getUnitTypeCharacter()
		{
			char retVal = ' ';
			if(logtype != null)
			{	retVal = logtype.charAt(0);	}
			return retVal;
		}
		// ----------------------------------------------------------------
    /**
		 * Description string
     * @return String
     */
		public String getDetails()
		{
        StringBuffer s = new StringBuffer();
				if(location != null)
				{s.append(" ").append(location);} 
        s.append(" @ "+fixtimestr +"( " + latitude + "," + longitude + ")");
        s.append(" Head: " + getHeadingString(heading) + " @ " + speed +"Mph");
        return s.toString();
		}
		// ----------------------------------------------------------------
    /**
		 * Default output string
     * @return String
     */
    public String toString() {
        return getDetails();
    }
		
		// ----------------------------------------------------------------
		// ----------------------------------------------------------------
		// ----------------------------------------------------------------
		// ----------------------------------------------------------------
    /**
     * Get the color used for the location graphic.
     */
    public Color getLocationColor(Color defcolor)
		{ 
			LocationColorFormatter.LocColorEntry e	= getColorFormatter();
			Color retVal = defcolor;
			if(e != null)
			{	retVal = e.getColor();	}
			if(retVal == null)
			{retVal = defcolor;}
			return retVal;
		}
		// ----------------------------------------------------------------
   /**
     * Get the color used for the label.
     */
    public Color getLabelColor(Color defcolor)
		{ 
			LocationColorFormatter.LocColorEntry e	= getColorFormatter();
			Color retVal = defcolor;
			if(e != null)
			{	retVal = e.getColor(1);	}
			if(retVal == null)
			{retVal = defcolor;}
			return retVal;
		}
		
		// ----------------------------------------------------------------
		public Image getLocationImage()
		{
			Image retVal = null;
			LocationColorFormatter.LocColorEntry e	= getColorFormatter();
			if(e != null)
			{	
					retVal = IconFactory.getImage(16, e.getColorName(0), e.getColor(0), getUnitTypeCharacter(), false);
			}
			return retVal;
		}
		
		////////////////////////////////////////////////////////////
		public static void main(String args[])
		{
			Image ii = IconFactory.getImage(16, "Cyan", Color.CYAN, 'C');
//			for(int i = 0; i < 361; i += 12)
//			{		System.out.println(i+" Degrees =>" + getHeadingString((float) i));}
			
		}
		////////////////////////////////////////////////////////////////////
		/**
		 * Method: getHeadingString
		 *  This method does...
		 * @param heading
		 * @param param2
		 * @return String
		 * @
		 */
		public static String getHeadingString(float heading)
		{
			String retVal = null;
			int multiples = (int)(heading / 11.25);
			float remainder = (float)(heading % 11.25);
			
			switch(multiples)
			{
        case 31: // <348.75 Degrees
					retVal = "NNW";
					break;
        case 32: // <360.0 Degrees
        case 0: // <0.0 Degrees
					retVal = "N";
					break;
        case 1: // <11.25 Degrees
        case 2: // <22.5 Degrees
					retVal = "NNE";
					break;
        case 3: // <33.75 Degrees
        case 4: // <45.0 Degrees
					retVal = "NE";
					break;
        case 5: // <56.25 Degrees
        case 6: // <67.5 Degrees
					retVal = "ENE";
					break;
        case 7: // <78.75 Degrees
        case 8: // <90.0 Degrees
					retVal = "E";
					break;
        case 9: // <101.25 Degrees
        case 10: // <112.5 Degrees
					retVal = "ESE";
					break;
        case 11: // <123.75 Degrees
        case 12: // <135.0 Degrees
					retVal = "SE";
					break;
        case 13: // <146.25 Degrees
        case 14: // <157.5 Degrees
					retVal = "SSE";
					break;
        case 15: // <168.75 Degrees
        case 16: // <180.0 Degrees
					retVal = "S";
					break;
        case 17: // <191.25 Degrees
        case 18: // <202.5 Degrees
					retVal = "SSW";
					break;
        case 19: // <213.75 Degrees
        case 20: // <225.0 Degrees
					retVal = "SW";
					break;
        case 21: // <236.25 Degrees
        case 22: // <247.5 Degrees
					retVal = "WSW";
					break;
        case 23: // <258.75 Degrees
        case 24: // <270.0 Degrees
					retVal = "W";
					break;
        case 25: // <281.25 Degrees
        case 26: // <292.5 Degrees
					retVal = "WNW";
					break;
        case 27: // <303.75 Degrees
        case 28: // <315.0 Degrees
					retVal = "NW";
					break;
        case 29: // <326.25 Degrees
        case 30: // <337.5 Degrees
					retVal = "NNW";
					break;
			}
			return retVal;
		}// Method: getHeadingString
		
}
--------------010802080703020004050804
Content-Type: text/java;
 name="UnitDataFactory.java"
Content-Disposition: inline;
 filename="UnitDataFactory.java"
Content-Transfer-Encoding: 7bit

// **********************************************************************
// **********************************************************************

package com.bbn.openmap.layer.location.generic;

import java.awt.Image;

import com.bbn.openmap.omGraphics.OMGraphic;
import com.bbn.openmap.omGraphics.OMRaster;
import com.bbn.openmap.layer.location.Location;
import com.bbn.openmap.layer.location.BasicLocation;
import com.bbn.openmap.layer.location.URLRasterLocation;
import com.bbn.openmap.layer.location.ImageIconRasterLocation;

/**
 * This class is responsible for producing LocationData
 */
public class UnitDataFactory
				implements LocationDataFactory 
{
	
	public UnitDataFactory()	{};
	// ----------------------
    public String[]		getLatLonNameArr()
		{
				return UnitData.getLatLonNameArr();
		}
	// ------------------------------------
    public LocationDataRecord makeLocationData()
		{
			return new UnitData();
		}
		// ---------------------------------------------------------------------------------------------
		public Location	makeLocation(float latitude, float longitude, String name, Image locationMarker)
		{
			Location retVal = null;
				if(locationMarker != null)
				{ 
					//retVal = new ImageIconRasterLocation(latitude, longitude, name, locationMarker);
					retVal = new BasicLocation(latitude, longitude, name, getIconRaster(latitude, longitude, locationMarker));
				}
				else
				{ retVal = new BasicLocation(latitude, longitude, name, null);}
			return retVal;
		}
		// ---------------------------------------------------------------------------------------------
		public Location	makeLocation(float latitude, float longitude, String name, String locationMarker)
		{
			Location retVal = null;
				if(locationMarker != null)
				{	retVal = new URLRasterLocation(latitude, longitude, name, locationMarker);}
				else
				{	retVal = new BasicLocation(latitude, longitude, name, null);}
				return retVal;
		}
		
		// ---------------------------------------------------------------------------------------------
   /**
     * Create an OMRaster at a latitude/longitude, from a image URL.
     * 
     * @param lat latitide in decimal degrees
     * @param lon longitude in decimal degrees.
     * @param iconURL a URL for an image
     */
    public static OMRaster getIconRaster(float lat, float lon, Image icon) 
		{
			OMRaster retVal = null;
      if (icon != null)
			{
        int offX = icon.getWidth(null) / 2;
        int offY = icon.getHeight(null) / 2;
        retVal = new OMRaster(lat, lon, -(offX+1), -offY, icon);
			}
			return retVal;
    }
		
}
--------------010802080703020004050804
Content-Type: text/java;
 name="AbstractDBLocationHandler.java"
Content-Disposition: inline;
 filename="AbstractDBLocationHandler.java"
Content-Transfer-Encoding: 7bit

// **********************************************************************
// **********************************************************************

package com.bbn.openmap.layer.location.generic;

/*  Java Core  */
import java.awt.Color;
import java.util.Properties;

import javax.swing.JLabel;
import javax.swing.JPanel;

import com.bbn.openmap.Environment;
import com.bbn.openmap.I18n;
import com.bbn.openmap.omGraphics.DrawingAttributes;
import com.bbn.openmap.util.PropUtils;

import com.bbn.openmap.layer.location.*;
/**
 * The <tt>AbstractLocationHandler</tt> class facilitates the implementation
 * of a <code>LocationHandler</code> by implementing a number of methods. By
 * extending this class, a developer need only implement get(), setProperties(),
 * and reloadData().
 * 
 * <pre>
 *    
 *     locationhandler.locationColor=FF0000
 *     locationhandler.nameColor=008C54
 *     locationhandler.showNames=false
 *     locationhandler.showLocations=true
 *     locationhandler.override=true
 *     
 * </pre>
 * 
 * @see com.bbn.openmap.layer.location.LocationHandler
 * @version $Revision: 1.8 $ $Date: 2006/02/13 17:01:24 $
 * @author Michael E. Los D530/23448
 */
public abstract class AbstractDBLocationHandler 
				extends AbstractLocationHandler 
{

	
    // - - - - - - - - - - - - - -
    // DB Location-related Variables
    // - - - - - - - - - - - - - -
    /** The default setting for the locations at startup. */
    private boolean showInactive = false;

    /** (showNames) */
    public final static String showInactiveCommand = "showInactive";
		
    /**
     * See if the handler is displaying Inactive.
     */
    public boolean isShowInactive() 
		{	return showInactive;   }
    /**
     * Set the handler to show/hide location graphics at a global level.
     */
    public void setShowInactive(boolean set) 
		{	showInactive = set;    }
	
}
--------------010802080703020004050804
Content-Type: text/java;
 name="DBLocationHandler.java"
Content-Disposition: inline;
 filename="DBLocationHandler.java"
Content-Transfer-Encoding: 7bit

// **********************************************************************
// **********************************************************************

package com.bbn.openmap.layer.location.generic;

/*  Java  */
import java.awt.Color;
import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.*;
import java.util.Properties;
import java.util.Vector;
import javax.swing.Box;
import javax.swing.JButton;
import javax.swing.JCheckBox;

/*  OpenMap  */
import com.bbn.openmap.layer.location.*;
import com.bbn.openmap.layer.location.db.*;
import com.bbn.openmap.util.Debug;
import com.bbn.openmap.util.PropUtils;
import com.bbn.openmap.util.quadtree.QuadTree;
import com.bbn.openmap.util.quadtree.QuadTreeNode;
import com.bbn.openmap.util.quadtree.QuadTreeRect;

/**
 * The DBLocationLayer is a LocationHandler designed to let you put
 * data on the map based on information from a Database. The
 * properties file lets you set defaults on whether to draw the
 * locations and the names by default. For crowded layers, having all
 * the names displayed might cause a cluttering problem. In gesture
 * mode, OpenMap will display the name of each location as the mouse
 * is passed over it. Pressing the left mouse button over a location
 * brings up a popup menu that lets you show/hide the name label, and
 * also to display attributes of the location in a Browser window that
 * OpenMap launches.
 * 
 * <P>
 * If you want to extend the functionality of this LocationHandler,
 * there are a couple of methods to focus your changes: The
 * setProperties() method lets you add properties to set from the
 * properties file. The createData() method, by default, is a one-time
 * method that creates the graphic objects based on the data. By
 * modifying these methods, and creating a different combination
 * graphic other than the default LocationDataRecordSet, you can
 * create different layer effects pretty easily.
 * 
 * <P>
 * In the openmap.properties file (for instance):
 * 
 * <pre>
 * 
 *  # In the section for the LocationLayer:
 *  locationLayer.locationHandlers=dblocationhandler
 *  
 *  dblocationhandler.class=com.bbn.openmap.layer.location.db.DBLocationHandler
 *  dblocationhandler.locationColor=FF0000
 *  dblocationhandler.nameColor=008C54
 *  dblocationhandler.showNames=false
 *  dblocationhandler.showLocations=true
 *  dblocationhandler.jdbcDriver=oracle.jdbc.driver.OracleDriver
 *  dblocationhandler.jdbcString=jdbc login string
 *  dblocationhandler.userName=username
 *  dblocationhandler.userPassword=password
 *  dblocationhandler.locationQueryString=select statement the data
 *   object needs.  See each Data object (like LocationData) to see what
 *   kind of select statement it needs.
 *  
 * </pre>
 * 
 * In addition, this particular location handler is using the
 * LocationData object to handle the results from the location.
 */
public class DBLocationHandler extends AbstractDBLocationHandler implements
        LocationHandler, ActionListener {

    /** The storage mechanism for the locations. */
    protected QuadTree quadtree = null;

    //Database variables.
    /*
     * This String should be completely specified based on which
     * Database is being used including username and password.
     * Alternately, username and password can be specified by in
     * properties file as jdbc.user=USERNAME jdbc.password=PASSWORD
     */
    /** String that would be used for making a connection to Database */
    protected String jdbcString = null;
    /** Property that should be specified for setting jdbc String */
    public static final String jdbcStringProperty = "jdbcString";
    /**
     * This String would be used to load the driver. If this string is
     * null, jdbc Connection Manager would try to load the approriate
     * driver.
     */
    protected String jdbcDriver = null;
    /** Property to specify jdbc driver to loaded. */
    public static final String jdbcDriverProperty = "jdbcDriver";
    /** User name to be used for connecing to DB. */
    protected String userName = null;
    /** Password to be used with for connecting to DB. */
    protected String userPassword = null;
    /** Property to specify userName for connecting to Database */
    public static final String userNameProperty = "userName";
    /** Property to specify password for connecting to Database */
    public static final String userPasswordProperty = "userPassword";
		// -------------------------------------------------------------------------
    public String getJdbcString() 
		{	return jdbcString;   }

		// -------------------------------------------------------------------------
    public String getJdbcDriver() 
		{	return jdbcDriver;    }

		// -------------------------------------------------------------------------
    public String getUserName() 
		{	return userName;   }

		// -------------------------------------------------------------------------
    public String getUserPassword() 
		{	return userPassword;  }
		
		private Connection mydbConn;
		// -------------------------------------------------------------------------
    public void resetDBConnection() 
		{
			if(mydbConn != null)
			{	
				try
				{	mydbConn.close();
					mydbConn = null;
				}
				catch (Exception e)
				{
//					myLog.logException(e, "(" + getTaskName() + ", Cought ");
				}
			}
		}
		// -------------------------------------------------------------------------
    public Connection getDBConnection() 
		{	
			if(mydbConn == null)
			{
				try
				{
            if (jdbcDriver != null) 
						{		Class.forName(getJdbcDriver());	}

            mydbConn = DriverManager.getConnection(getJdbcString(),
                    getUserName(),
                    getUserPassword());
				}
				catch (Exception e)
				{
//					myLog.logException(e, "(" + getTaskName() + ", Cought ");
				}
			}
			return mydbConn;
		}
		// -------------------------------------------------------------------------
    public Properties getLocationProperties() 
		{	return props;  }

		// -------------------------------------------------------------------------
    /** Property to specify password for connecting to Database */
    public static final String colorFormatProperty = "colorFormat";
		
		protected	LocationColorFormatter	colorFormatter = null;
		// -------------------------------------------------------------------------
    public LocationColorFormatter getLocationColorFormatter() 
		{	return colorFormatter;   }

   /** Password to be used with for connecting to DB. */
    protected String locationDataFactoryString = null;
    /** Property to specify the Location Data Factory. */
    public static final String locationDataFactoryProperty = "locdatafactory.class";

		protected LocationDataFactory	locDataFact = null;
    /**
     * The string used to query the database for the location
     * information.
     */
		// -------------------------------------------------------------------------
    /** Property to specify the query string passed to the database. */
    public static final String locationQueryStringProperty = "locationQueryString";
		
    /** Property to specify the query string passed to the database. */
    public static final String locationActiveConstraintStringProperty = "locationActiveConstraintString";
		// -------------------------------------------------------------------------
    protected String locationQueryString = null;
    protected String locationActiveConstraintString = null;
    protected String locationQueryConstraintsString = null;
		// ---------------------------------------------------------------
		public String getLocationQueryString(QuadTreeRect bounds)
		{
			LocationDataFactory factory = getDataFactory();
			if(factory != null)
			{	
				String[] latlonnames = factory.getLatLonNameArr();
						// ----------------------------------------------------------------
				if(latlonnames != null && latlonnames.length == 2)
				{
					
/*					locationQueryConstraintsString = new String(
								" ((" +latlonnames[LocationDataFactory.IDX_LATNAME] + " BETWEEN " + bounds.south + " AND " + bounds.north + ") AND ("
										+ latlonnames[LocationDataFactory.IDX_LONNAME] +" <= " + bounds.east + " AND " + bounds.west + ")) ");
*/					locationQueryConstraintsString = new String(
								" ((" +latlonnames[LocationDataFactory.IDX_LATNAME] + " >= " + bounds.south + " AND " 
											+latlonnames[LocationDataFactory.IDX_LATNAME] + " <= " +  bounds.north + ") AND ("
										+ latlonnames[LocationDataFactory.IDX_LONNAME]  + " >= " + bounds.west + " AND " 
										+ latlonnames[LocationDataFactory.IDX_LONNAME]  + " <= " + bounds.east + ")) ");
				}
				else
				{	locationQueryConstraintsString = null;}
			}
			return getLocationQueryString();
		}
		// ---------------------------------------------------------------
		public String getLocationQueryString()
		{
			String retVal = locationQueryString; 
			String constraints = "";
			if(!isShowInactive())
			{ constraints += locationActiveConstraintString;}
			if(retVal != null && locationQueryConstraintsString != null)
			{	
				if(constraints.length() > 1)
				{	constraints = "(" + constraints + ") AND (" +locationQueryConstraintsString + ")";}
				else
				{	constraints = locationQueryConstraintsString;}
			}
			
			if(constraints.length() > 1)
			{ retVal += " WHERE "+ constraints;}
			
			return retVal;
		}
    /** A copy of properties used to construct this Layer */
    protected Properties props;

    /**
     * The default constructor for the Layer. All of the attributes
     * are set to their default values.
     */
    public DBLocationHandler() {}

		public LocationDataFactory getDataFactory()
		{
			if(locDataFact == null)
			{
				try
				{
					Object o = Class.forName(locationDataFactoryString).newInstance();
					if(o instanceof LocationDataFactory)
					{		locDataFact = (LocationDataFactory)o;			}
				}
				catch(Exception e)
				{
					
				}
			}
			return locDataFact;
		}
    /**
     * The properties and prefix are managed and decoded here, for the
     * standard uses of the DBLocationHandler.
     * 
     * @param prefix string prefix used in the properties file for
     *        this layer.
     * @param properties the properties set in the properties file.
     */
    public void setProperties(String prefix, Properties properties) {
        super.setProperties(prefix, properties);

        prefix = getPropertyPrefix();
        if (prefix != null) {
            prefix = prefix + ".";
        } else {
            prefix = "";
        }

        props = properties; // Save it now. We would need it in future

        jdbcString = properties.getProperty(prefix + jdbcStringProperty);
        jdbcDriver = properties.getProperty(prefix + jdbcDriverProperty);
        userName = properties.getProperty(prefix + userNameProperty);
        userPassword = properties.getProperty(prefix + userPasswordProperty);

        locationQueryString = properties.getProperty(prefix
                + locationQueryStringProperty);
        locationActiveConstraintString = properties.getProperty(prefix
                + locationActiveConstraintStringProperty);
        locationDataFactoryString = properties.getProperty(prefix
                + locationDataFactoryProperty);
        
				
				colorFormatter = LocationColorFormatter.newLocationColorFormatter(properties.getProperty(prefix
                + colorFormatProperty), getLocationColor());
    }

    /**
     * PropertyConsumer method, to fill in a Properties object,
     * reflecting the current values of the layer. If the layer has a
     * propertyPrefix set, the property keys should have that prefix
     * plus a separating '.' prepended to each propery key it uses for
     * configuration.
     * 
     * @param props a Properties object to load the PropertyConsumer
     *        properties into.
     * @return Properties object containing PropertyConsumer property
     *         values. If getList was not null, this should equal
     *         getList. Otherwise, it should be the Properties object
     *         created by the PropertyConsumer.
     */
    public Properties getProperties(Properties props) {
        props = super.getProperties(props);

        String prefix = getPropertyPrefix();
        if (prefix != null) {
            prefix = prefix + ".";
        } else {
            prefix = "";
        }

        props.put(prefix + "class", this.getClass().getName());
        props.put(prefix + jdbcStringProperty, PropUtils.unnull(jdbcString));
        props.put(prefix + jdbcDriverProperty, PropUtils.unnull(jdbcDriver));
        props.put(prefix + userNameProperty, PropUtils.unnull(userName));
        props.put(prefix + userPasswordProperty, PropUtils.unnull(userPassword));
        props.put(prefix + locationQueryStringProperty,
                PropUtils.unnull(locationQueryString));
        props.put(prefix + locationQueryStringProperty,
                PropUtils.unnull(locationActiveConstraintString));

        props.put(prefix + locationDataFactoryProperty,
                PropUtils.unnull(locationDataFactoryString));

        // Put the properties in here for the RawDataRecordSet, which
        // gets images that can be used for the locations.
        props.put(prefix + RawDataRecordSet.tableNameProperty,
                PropUtils.unnull(props.getProperty(prefix
                        + RawDataRecordSet.tableNameProperty)));
        props.put(prefix + RawDataRecordSet.rawDataColumnNameProperty,
                PropUtils.unnull(props.getProperty(prefix
                        + RawDataRecordSet.rawDataColumnNameProperty)));
        props.put(prefix + RawDataRecordSet.rawDataKeyColumnNameProperty,
                PropUtils.unnull(props.getProperty(prefix
                        + RawDataRecordSet.rawDataKeyColumnNameProperty)));

        return props;
    }

    /**
     * Method to fill in a Properties object with values reflecting
     * the properties able to be set on this PropertyConsumer. The key
     * for each property should be the raw property name (without a
     * prefix) with a value that is a String that describes what the
     * property key represents, along with any other information about
     * the property that would be helpful (range, default value,
     * etc.). This method takes care of the basic LocationHandler
     * parameters, so any LocationHandlers that extend the
     * AbstractLocationHandler should call this method, too, before
     * adding any specific properties.
     * 
     * @param list a Properties object to load the PropertyConsumer
     *        properties into. If getList equals null, then a new
     *        Properties object should be created.
     * @return Properties object containing PropertyConsumer property
     *         values. If getList was not null, this should equal
     *         getList. Otherwise, it should be the Properties object
     *         created by the PropertyConsumer.
     */
    public Properties getPropertyInfo(Properties list) {
        list = super.getPropertyInfo(list);

        list.put("class" + ScopedEditorProperty,
                "com.bbn.openmap.util.propertyEditor.NonEditablePropertyEditor");
        list.put(jdbcStringProperty, "JDBC login string");
        list.put(jdbcDriverProperty, "JDBC driver class name");
        list.put(userNameProperty, "User name");
        list.put(userPasswordProperty, "User password");
        list.put(locationQueryStringProperty,
                "Select statement that the data object needs.");
				list.put(locationActiveConstraintStringProperty,
                "SQL Where(Fagment) clause to constrain to only active.");
        list.put(RawDataRecordSet.tableNameProperty,
                "The name of the table in the database that holds the images.");
        list.put(RawDataRecordSet.rawDataColumnNameProperty,
                "The name of the column in the table in the database that holds the name (key) of the image.");
        list.put(RawDataRecordSet.rawDataKeyColumnNameProperty,
                "The name of the column in the table in the database that holds the raw image bytes.");

        return list;
    }

    /**
     * Look in the database and create the QuadTree holding all the
     * Locations.
     */
    protected QuadTree createData() 
		{
				long starttime = System.currentTimeMillis();
        QuadTree qt = new QuadTree(90.0f, -180.0f, -90.0f, 180.0f, 100, 50f);
        return qt;
    }

		// -------------------------------------------------------------------------
		/**
     * Look in the database and create the QuadTree holding all the
     * Locations.
     */
    protected QuadTree reloadData(QuadTree qt) 
		{
				long starttime = System.currentTimeMillis();
        Location loc;
        byte bytearr[];
        Color  loccolor		=	getLocationColor();
        Color  labelcolor	=	getNameColor();
				
				String queryString = getLocationQueryString();
        if (queryString == null) 
				{	return qt; }

        // Code for reading from DB and pushing it into QuadTree.
        try 
				{
						Connection connection = getDBConnection();
//            RawDataRecordSet gifdataRS = new RawDataRecordSet(connection, getPropertyPrefix(), props);
						LocationDataFactory factory = getDataFactory();
//						factory.getQueryConstraint()
            RecordSet locationdataRS = new RecordSet(connection, getLocationQueryString(qt.getBounds()));
            while (locationdataRS.next()) 
						{
                LocationDataRecord ld = factory.makeLocationData();
								if(ld == null)
								{	continue;}
								ld.load(locationdataRS, getLocationColorFormatter());
                if (Debug.debugging("location")) {
                    Debug.output("DBLocationHandler:  location information:"+ ld);
                }

//                bytearr = gifdataRS.getRawData(ld.getGraphicName());

                float lat = ld.getLatitude();
                float lon = ld.getLongitude();

//                loc = new ByteRasterLocation(lat, lon, ld.getCityName(), bytearr);
//                loc = new BasicLocation(lat, lon, ld.getDisplayName(), null);
//								loc = factory.makeLocation(lat, lon, ld.getDisplayName(), null);
								loc = factory.makeLocation(lat, lon, ld.getDisplayName(), ld.getLocationImage());
//								loc = factory.makeLocation(lat, lon, ld.getDisplayName(), (String)null);
//								loc = factory.makeLocation(lat, lon, ld.getDisplayName(), ld.getImageUrl());

                loc.setLocationHandler(this);

                // let the layer handler default set these
                // initially...
                loc.setShowName(isShowNames());
                loc.setShowLocation(isShowLocations());

//								loc.setLocationPaint( loccolor);
//                loc.getLabel().setLinePaint(ld.getLabelColor(labelcolor));
//								Color col = ld.getLocationColor(loccolor);
                loc.setLocationPaint( ld.getLocationColor(loccolor));
								loc.getLabel().setLinePaint(ld.getLabelColor(labelcolor));
//							loc.setDetails(ld.getDisplayName() + " is at lat: " + lat + ", lon: " + lon);
								loc.setDetails(ld.getDetails());
                qt.put(lat, lon, loc);

            }

            locationdataRS.close();

        } 
				catch (SQLException sqlE) 
				{
            Debug.error("DBLocationHandler:SQL Exception: " + sqlE.getMessage());
            sqlE.printStackTrace();
						resetDBConnection();
        }

				if (Debug.debugging("location")) 
				{
						starttime = System.currentTimeMillis() - starttime;
            Debug.output("DBLocationHandler:  Loaded in  " + starttime);
        }
        return qt;
    }
		// -------------------------------------------------------------------------
    public void reloadData() 
		{
        quadtree = reloadData((quadtree == null ? createData() : quadtree));
//        quadtree = reloadData(quadtree);
    }


		// -------------------------------------------------------------------------
    /**
     * Prepares the graphics for the layer. This is where the
     * getRectangle() method call is made on the location.
     * <p>
     * Occasionally it is necessary to abort a prepare call. When this
     * happens, the map will set the cancel bit in the LayerThread,
     * (the thread that is running the prepare). If this Layer needs
     * to do any cleanups during the abort, it should do so, but
     * return out of the prepare asap.
     *  
     */
    public Vector get(float nwLat, float nwLon, float seLat, float seLon,
                      Vector graphicList) {

        // IF the quadtree has not been set up yet, do it!
/*        if (quadtree == null) 
				{
            Debug.output("DBLocationHandler: Figuring out the locations and names! (This is a one-time operation!)");
            quadtree = reloadData(new QuadTree(nwLat, nwLon, seLat, seLon, 20, QuadTreeNode.NO_MIN_SIZE)) ;
        }
*/
        quadtree = reloadData(new QuadTree(nwLat, nwLon, seLat, seLon, 20, QuadTreeNode.NO_MIN_SIZE)) ;
        if (quadtree != null) {
            if (Debug.debugging("location")) {
                Debug.output("DBLocationHandler|DBLocationHandler.get() ul.lon = "
                        + nwLon
                        + " lr.lon = "
                        + seLon
                        + " delta = "
                        + (seLon - nwLon));
            }
						quadtree.get(nwLat, nwLon, seLat, seLon, graphicList);
        }
        return graphicList;
    }
/*    public Vector get(float nwLat, float nwLon, float seLat, float seLon,
                      Vector graphicList) {

        // IF the quadtree has not been set up yet, do it!
        if (quadtree == null) {
            Debug.output("DBLocationHandler: Figuring out the locations and names! (This is a one-time operation!)");
            quadtree = createData();
        }

        if (quadtree != null) {
            if (Debug.debugging("location")) {
                Debug.output("DBLocationHandler|DBLocationHandler.get() ul.lon = "
                        + nwLon
                        + " lr.lon = "
                        + seLon
                        + " delta = "
                        + (seLon - nwLon));
            }

            quadtree.get(nwLat, nwLon, seLat, seLon, graphicList);
        }
        return graphicList;
    }
*/
    public void fillLocationPopUpMenu(LocationPopupMenu locMenu) {

        LocationCBMenuItem lcbi = new LocationCBMenuItem(LocationHandler.showname, locMenu, getLayer());
        lcbi.setState(locMenu.getLoc().isShowName());
        locMenu.add(lcbi);
        locMenu.add(new LocationMenuItem(showdetails, locMenu, getLayer()));
    }

    /** Box used for constructing the palette widgets */
    protected Box box = null;

    /**
     * Provides the palette widgets to control the options of showing
     * maps, or attribute text.
     * 
     * @return Component object representing the palette widgets.
     */
    public Component getGUI() {
        if (box == null) {
            JCheckBox showDBLocationCheck, showNameCheck, showInactiveCheck;
            JButton rereadFilesButton;

            showDBLocationCheck = new JCheckBox("Show Locations", isShowLocations());
            showDBLocationCheck.setActionCommand(showLocationsCommand);
            showDBLocationCheck.addActionListener(this);

            showNameCheck = new JCheckBox("Show Location Names", isShowNames());
            showNameCheck.setActionCommand(showNamesCommand);
            showNameCheck.addActionListener(this);

            rereadFilesButton = new JButton("Reload Data From Source");
            rereadFilesButton.setActionCommand(readDataCommand);
            rereadFilesButton.addActionListener(this);

            showInactiveCheck = new JCheckBox("Show Inactive", isShowInactive());
            showInactiveCheck.setActionCommand(showInactiveCommand);
            showInactiveCheck.addActionListener(this);
						
            box = Box.createVerticalBox();
            box.add(showDBLocationCheck);
            box.add(showNameCheck);
            box.add(rereadFilesButton);
            box.add(showInactiveCheck);
						
        }
        return box;
    }

    //----------------------------------------------------------------------
    // ActionListener interface implementation
    //----------------------------------------------------------------------

    /**
     * The Action Listener method, that reacts to the palette widgets
     * actions.
     */
    public void actionPerformed(ActionEvent e) {
        String cmd = e.getActionCommand();
        if (cmd == showLocationsCommand) 
				{
            JCheckBox locationCheck = (JCheckBox) e.getSource();
            setShowLocations(locationCheck.isSelected());
            if (Debug.debugging("location")) {
                Debug.output("DBLocationHandler::actionPerformed showLocations is "
                        + isShowLocations());
            }
            getLayer().repaint();
        } 
				else if (cmd == showNamesCommand) 
				{
            JCheckBox namesCheck = (JCheckBox) e.getSource();
            setShowNames(namesCheck.isSelected());
            if (Debug.debugging("location")) {
                Debug.output("DBLocationHandler::actionPerformed showNames is "
                        + isShowNames());
            }
            getLayer().repaint();
        } 
				else if (cmd == readDataCommand) 
				{
            Debug.output("DBLocationHandler: Re-reading Locations file");
            quadtree = null;
            getLayer().doPrepare();
        } 
				else if (cmd == showInactiveCommand) 
				{
            JCheckBox showInactiveCheck = (JCheckBox) e.getSource();
            setShowInactive(showInactiveCheck.isSelected());
            if (Debug.debugging("location")) {
                Debug.output("DBLocationHandler::actionPerformed showInactive is "
                        + isShowInactive());
            }
            getLayer().repaint();
        } 
				else 
				{
            Debug.error("DBLocationHandler: Unknown action command \"" + cmd
                    + "\" in actionPerformed().");
        }
    }

}
--------------010802080703020004050804
Content-Type: text/java;
 name="IconFactory.java"
Content-Disposition: inline;
 filename="IconFactory.java"
Content-Transfer-Encoding: 7bit

// **********************************************************************
// **********************************************************************
package com.bbn.openmap.layer.location.generic;

import java.awt.Toolkit;
import java.awt.Color;
import java.awt.Font;
import java.awt.Polygon;
import java.awt.font.FontRenderContext;
import java.awt.font.TextLayout;
import java.awt.Image;
import java.awt.AlphaComposite;
import java.awt.image.BufferedImage;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import javax.swing.ImageIcon;
import java.util.Map;
import java.util.Hashtable;

//------------------------------
import java.io.File;
import javax.imageio.ImageIO;
//------------------------------

import com.bbn.openmap.omGraphics.OMGraphic;
import com.bbn.openmap.omGraphics.OMRaster;
import com.bbn.openmap.layer.location.Location;
import com.bbn.openmap.layer.location.BasicLocation;
import com.bbn.openmap.layer.location.URLRasterLocation;

/**
 * 
 * @See http://weblogs.java.net/blog/kirillcool/archive/2005/02/how_to_create_y.html
 */
public class IconFactory
{
	protected static Map		imageCache;	
	static
	{
				imageCache = new Hashtable();
	}
	// ------------------------------
	public IconFactory()	
	{
	}
   /**
     * Create an OMRaster at a latitude/longitude, from a image URL.
     * 
     * @param lat latitide in decimal degrees
     * @param lon longitude in decimal degrees.
     * @param iconURL a URL for an image
     */
    public static OMRaster getIconRaster(float lat, float lon, ImageIcon icon) 
		{
			OMRaster retVal = null;
      if (icon != null)
			{
        int offX = icon.getIconWidth() / 2;
        int offY = icon.getIconHeight() / 2;
        retVal = new OMRaster(lat, lon, -offX, -offY, icon);
			}
			return retVal;
    }

		////////////////////////////////////////////////////////////////////
		/**
		 * Method: getBaseImage
		 *  This method does...
		 * @param width
		 * @param height
		 * @return BufferedImage
		 * @
		 */
		public static BufferedImage getBaseImage(int width, int height)
		{
			BufferedImage retVal = new BufferedImage(width, height,
					BufferedImage.TYPE_INT_ARGB);
/*			
			 // set completely transparent
			 for (int col = 0; col < width; col++) 
			 {
					for (int row = 0; row < height; row++) 
					{	 retVal.setRGB(col, row, 0x0);}
					return retVal;
			 } // for
*/
			Graphics2D g = (Graphics2D) retVal.getGraphics();
			g.setComposite(AlphaComposite.Src);
			g.setColor(new Color(0));
			g.fillRect(0, 0, width, height);			
			return retVal;
		}// Method: getBaseImage
		
		////////////////////////////////////////////////////////////////////
		/**
		 * Method: getRenderingContext
		 *  This method does...
		 * @param image
		 * @param param2
		 * @return Graphics2D
		 * @
		 */
		public static Graphics2D getRenderingContext(BufferedImage image)
		{
			Graphics2D retVal = (Graphics2D) image.getGraphics();
			retVal.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,
					RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
			retVal.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
					RenderingHints.VALUE_ANTIALIAS_ON);
			return retVal;
		}// Method: getRenderingContext
		
		////////////////////////////////////////////////////////////////////
		/**
		 * Method: makeDot
		 *  This method does...
		 * @param image
		 * @param dim	Dimention
		 * @return void
		 * @
		 */
		public static void makeDot(BufferedImage image, int imagedim)
		{
			// create a whitish spot in the left-top corner of the icon
			double id4 = imagedim / 4.0;
			double spotX = id4;
			double spotY = id4;
			for (int col = 0; col < imagedim; col++) 
			{
					for (int row = 0; row < imagedim; row++) {
						 // distance to spot
						 double dx = col - spotX;
						 double dy = row - spotY;
						 double dist = Math.sqrt(dx * dx + dy * dy);

						 // distance of 0.0 - comes 90% to Color.white
						 // distance of ICON_DIMENSION - stays the same

						 if (dist > imagedim) {
								dist = imagedim;
						 }

						 int currColor = image.getRGB(col, row);
						 int transp = (currColor >>> 24) & 0xFF;
						 int oldR = (currColor >>> 16) & 0xFF;
						 int oldG = (currColor >>> 8) & 0xFF;
						 int oldB = (currColor >>> 0) & 0xFF;

						 double coef = 0.9 - 0.9 * dist / imagedim;
						 int dr = 255 - oldR;
						 int dg = 255 - oldG;
						 int db = 255 - oldB;

						 int newR = (int) (oldR + coef * dr);
						 int newG = (int) (oldG + coef * dg);
						 int newB = (int) (oldB + coef * db);

						 int newColor = (transp << 24) | (newR << 16) | (newG << 8)
								| newB;
						 image.setRGB(col, row, newColor);
					}
			}
		}// Method: makeDot
		
		////////////////////////////////////////////////////////////////////
		/**
		 * Method: drawLetter
		 *  This method does...
		 * @param graphics
		 * @param letter
		 * @param	imagedim
		 * @return void
		 * @
		 */
		public static void drawLetter(Graphics2D graphics, char letter, int imagedim, Color fgcol)
		{
			letter = Character.toUpperCase(letter);
			graphics.setFont(new Font("Arial", Font.BOLD, imagedim-5));
			FontRenderContext frc = graphics.getFontRenderContext();
			TextLayout mLayout = new TextLayout("" + letter, graphics.getFont(), frc);

			float x = (float) (-.5 + (imagedim - mLayout.getBounds()
      .getWidth()) / 2);
			float y = imagedim - (float) ((imagedim - mLayout.getBounds().getHeight()) / 2);
			graphics.setColor(fgcol);
			// draw the letter
			graphics.drawString("" + letter, x, y);
		}// Method: DrawLetter
		////////////////////////////////////////////////////////////////////
		/**
		 * Method: drawLetter
		 *  This method does...
		 * @param graphics
		 * @param letter
		 * @param	imagedim
		 * @return void
		 * @
		 */
		public static void drawString(Graphics2D graphics, String str, int imagedim)
		{
//		str = Character.toUpperCase(str);
			graphics.setFont(new Font("Arial", Font.BOLD, imagedim-5));
			FontRenderContext frc = graphics.getFontRenderContext();
			TextLayout mLayout = new TextLayout(str, graphics.getFont(), frc);

			float x = (float) (-.5 + (imagedim - mLayout.getBounds().getWidth()) / 2);
			float y = imagedim - (float) ((imagedim - mLayout.getBounds().getHeight()) / 2);
			// draw the letter
			graphics.drawString(str, x, y);
		}// Method: DrawLetter

		////////////////////////////////////////////////////////////////////
		/**
		 * Method: drawPlus
		 *  This method does...
		 * @param graphics
		 * @param height
		 * @return void
		 * @
		 */
		public static void drawPlus(Graphics2D graphics, int width, int height)
		{
//			int height = 6;
			BufferedImage image = new BufferedImage(width, height,
				BufferedImage.TYPE_INT_ARGB);
			// set completely transparent
			for (int col = 0; col < width; col++) 
			{
				for (int row = 0; row < height; row++) 
				{	image.setRGB(col, row, 0x0);    }
			}			
		}// Method: drawPlus
		
		////////////////////////////////////////////////////////////////////
		/**
		 * Method: drawArrow
		 *	Set antialiasing hint and draw an arrow of specified color:
		 * @param graphics
		 * @param color
		 * @param width
		 * @return void
		 * @
		 */
		public static void drawArrow(Graphics2D graphics, Color color, int width)
		{
			graphics.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
				RenderingHints.VALUE_ANTIALIAS_ON);

			// draw arrow
			Polygon pol = new Polygon();
			int ya = 3;
			pol.addPoint(1, ya);
			pol.addPoint(width / 2 + 3, ya);
			pol.addPoint(width / 2 + 3, ya + 2);
			pol.addPoint(width - 1, ya);
			pol.addPoint(width / 2 + 3, ya - 2);
			pol.addPoint(width / 2 + 3, ya);
			graphics.setColor(color);
			graphics.drawPolygon(pol);			
		}// Method: drawArrow
		
		////////////////////////////////////////////////////////////////////
		/**
		 * Method: drawHalo
		 *  And now for the tricky part - we have to compute the halo. 
		 * Here, if an arrow pixel was completely opaque, it should have 
		 * less transparent halo than arrow pixel that was only partly 
		 * opaque (as on arrow's head for example). 
		 * Here, we create another image with the halo footprint, 
		 * and then draw the original arrow on top of it. 
		 * Each arrow pixel contributes to its 8 neighbouring pixels. 
		 * The final opacity of the halo footprint is the maximal opacity of 
		 * all neighbouring arrow pixels:
		 * @param graphics
		 * @param color
		 * @return void
		 * @
		 */
		public static void drawHalo(BufferedImage image, Color color)
		{
			int width = image.getWidth();
			int height = image.getHeight();
			
			// create semi-transparent halo around arrow (to make it stand
			// out)
/*			BufferedImage fimage = new BufferedImage(width, height,
				BufferedImage.TYPE_INT_ARGB);
			// set completely transparent
			for (int col = 0; col < width; col++) {
				for (int row = 0; row < height; row++) {
					 fimage.setRGB(col, row, 0x0);
				}
			}
 */
			BufferedImage fimage = getBaseImage(width, height);
			
			Graphics2D fgraphics = (Graphics2D) fimage.getGraphics();
			for (int col = 0; col < width; col++) {
				int xs = Math.max(0, col - 1);
				int xe = Math.min(width - 1, col + 1);
				for (int row = 0; row < height; row++) {
					 int ys = Math.max(0, row - 1);
					 int ye = Math.min(height - 1, row + 1);
					 int currColor = image.getRGB(col, row);
					 int opacity = (currColor >>> 24) & 0xFF;
					 if (opacity > 0) {
							// mark all pixels in 3*3 area
							for (int x = xs; x <= xe; x++) {
								 for (int y = ys; y <= ye; y++) {
										int oldOpacity = (fimage.getRGB(x, y) >>> 24) & 0xFF;
										int newOpacity = Math.max(oldOpacity, opacity);
										// set semi-transparent white
										int newColor = (newOpacity << 24) | (255 << 16) |
											 (255 << 8) | 255;
										fimage.setRGB(x, y, newColor);
								 }
							}
					 }
				}
			}
			// reduce opacity of all pixels by 30%
			for (int col = 0; col < width; col++) {
				for (int row = 0; row < height; row++) {
					 int oldOpacity = (fimage.getRGB(col, row) >>> 24) & 0xFF;
					 int newOpacity = (int)(0.7*oldOpacity);
					 int newColor = (newOpacity << 24) | (255 << 16) |
							(255 << 8) | 255;
					 fimage.setRGB(col, row, newColor);
				}
			}
			// draw the original arrow image on top of the halo
			fgraphics.drawImage(image, 0, 0, null);
			//Going back to the original image (the letter and optional plus sign) - draw the arrow image on top of it:	 
//			BufferedImage arrowImage = getArrowImage(color, height);
//			graphics.drawImage(arrowImage, 0, height - arrowImage.getHeight(), null);
//			drawArrow(graphics, 
	 
		}// Method: drawHalo
		

		
		////////////////////////////////////////////////////////////////////
		/**
		 * Method: getBasicIcon
		 *  This method does...
		 * @param imagedim
		 * @param height
		 * @return BufferedImage
		 * @
		 */
		public static BufferedImage getBasicImage(int imagedim, Color col)
		{	return getBasicImage(imagedim, col, true);}
		// ------------------------
		public static BufferedImage getBasicImage(int imagedim, Color col, boolean drawoutline)
		{
			BufferedImage retVal = getBaseImage(imagedim, imagedim);
			if(retVal != null)
			{
				Graphics2D graphics = getRenderingContext(retVal);
				graphics.setColor(col);
				graphics.fillOval(0, 0, imagedim - 1, imagedim - 1);
				makeDot(retVal, imagedim);
				// draw outline of the icon
				if(drawoutline)
				{	
					graphics.setColor(Color.black);
					graphics.drawOval(0, 0, imagedim - 1, imagedim - 1);		
				}
			}
			return retVal;
		}// Method: getBasicIcon
		
		////////////////////////////////////////////////////////////////////
		/**
		 * Method: getIcon
		 *  This method does...
		 * @param imagedim
		 * @param height
		 * @return BufferedImage
		 * @
		 */
		public static Image getImage(int imagedim, String colname, Color col, char letter)
		{			return getImage(imagedim, colname, col, letter, false);}

		public static Image getImage(int imagedim, String colname, Color col, char letter, boolean save)
		{
			String imagename =  colname + Integer.toString(imagedim) +'_'+ letter;
			imagename = imagename.toUpperCase();
			Image retVal = (Image)imageCache.get(imagename);
			if(retVal == null)
			{
						BufferedImage opImage = IconFactory.getBasicImage(imagedim, col, false);
						Graphics2D graphics = IconFactory.getRenderingContext(opImage);
						if(letter != ' ')
						{	IconFactory.drawLetter(graphics, Character.toUpperCase(letter), imagedim, Color.BLACK);}
//						IconFactory.drawString(graphics, "NW", imagedim);
						if(save)
						{
//							String iconPath = "/J_Projects/GIS/openmap-4.6.3/src/openmap/com/bbn/openmap/layer/location/generic/";
							String iconPath = "./";
							File outputFile = new File(iconPath + imagename+".png");
							try 
							{	ImageIO.write(opImage, "PNG", outputFile);} 
							catch (Exception e) 
							{	throw new RuntimeException(e); }		
						} // if(save)
						retVal = Toolkit.getDefaultToolkit().createImage(opImage.getSource());
						imageCache.put(imagename, retVal);
			}
			return retVal;
		}
		
}
--------------010802080703020004050804
Content-Type: text/java;
 name="LocationColorFormatter.java"
Content-Disposition: inline;
 filename="LocationColorFormatter.java"
Content-Transfer-Encoding: 7bit

/******************************************************************************
 * Copyright 1998-1999 by Strategic Database Inc.,
 * 1604 Forest Trail, Austin, Texas, 78703, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of Strategic 
 * Database Inc.(SDI) ("Confidential Information"). You shall not disclose such
 * Confidential Information and shall use it only in accordance with the terms 
 * of the license agreement you entered into with SDI.
 *****************************************************************************/
package com.bbn.openmap.layer.location.generic;

import java.awt.Color;
import com.bbn.openmap.layer.location.db.*;
import com.bbn.openmap.util.ColorFactory;
import java.util.*;
import java.sql.*;
import java.awt.*;

 /**
 this class allows you to dynamically change treenode colors based 
 on the value of a DB field, the DB.prop file has the following:
 'RN_Radio_Number.colorFormat=RN_Condition/41:green/6:blue'
    -this is the DB attrib to compare, followed by the
    the values for that attrib and the color to show
    when the attrib has the given value
 this class parses up the string and stores the color mappings
 in a hashtable for quick lookup on the fly.   
 @author Craig McClendon
 @version 1.0
 */
public class LocationColorFormatter 
//				extends LocationColorFormatter
{
	// -------------------------------------------------
	public class ColorEntry
	{
		public ColorEntry()
		{color = null; colorName = null;}
		public ColorEntry(String name, Color col)
		{color = col; colorName = name;}
		public ColorEntry(String name)
		{this(name, null);}
		// ---------------------------------
		public Color	color;
		public String	colorName;
	} // class ColorEntry
	// -------------------------------------------------
	
	// -------------------------------------------------
	public class LocColorEntry
	{
			String	entryName;
			ColorEntry[]	colors;
			
			protected void setColor(int idx, ColorEntry cole)		{	colors[idx] = cole;}
			// ---------------------------------------------
			public ColorEntry getEntry(int idx)			
			{	
				ColorEntry retVal = defaultColor;
				if(0 < colors.length)
				{  
					if(idx < colors.length)
					{  retVal = colors[idx];} 
					else
					{  retVal = colors[0];} 
				} 
				return retVal;
			}
			// ---------------------------------------------
			public int				getColorCount()				{return colors.length;}
			public Color			getColor(int idx)			{return getEntry(idx).color;}
			public String			getColorName(int idx)	{return getEntry(idx).colorName;}
			// ---------------------
			public ColorEntry getEntry()				{return getEntry(0);}
			public Color			getColor()				{return getColor(0);}
			public String			getColorName()		{return getColorName(0);}
			// ---------------------------------------------
			public LocColorEntry(int i, String ename, ColorEntry e)
			{
				entryName = ename;
				i = (i < 1 ? 1:i);
				colors = new ColorEntry[i];
				if(e != null && i > 0)
				{		setColor(0, e);}
			}
	} // class LocColorEntry
	// -------------------------------------------------
  private int colorFieldIndex;
  protected Hashtable colorEntryHash;
	protected ColorEntry defaultColor;
  /////////////////////////////////////////////////////////////////
	protected static String majorDelimiter = "/";
	protected static String minorDelimiter = ":";
	protected static	LocationColorFormatter	myFactoryInstance;
	/////////////////////////////////////////////////////////////////
//  private static final boolean isFinal = false;
 	static
	{
		if (myFactoryInstance == null)
		{	myFactoryInstance = new LocationColorFormatter(Color.BLACK);
		}		
	}
 
  
	/////////////////////////////////////////////////////////////////  
	public  LocationColorFormatter(Color defcolor)
	{
		colorFieldIndex = 0;
		defaultColor = new ColorEntry("Default", defcolor);
    colorEntryHash= new Hashtable();
		colorEntryHash.put(defaultColor.colorName, new LocColorEntry(1, defaultColor.colorName, defaultColor));
		
	}
	/////////////////////////////////////////////////////////////////
	public static LocationColorFormatter newLocationColorFormatter(String colorCodes, Color defcol)
	{	
		LocationColorFormatter retVal = new LocationColorFormatter(defcol);
		retVal.parseCodes(colorCodes);
		return retVal;
	}

	public ColorEntry parseColor(String colorstring)
	{
		ColorEntry retVal = new ColorEntry(colorstring);
			//pull out the lighten/darken factor
			int openNdx = colorstring.indexOf("(");
			int factor = 0;

				if ( openNdx > 0 )
				{
					int closeNdx = colorstring.indexOf(")");
					String factorStr = colorstring.substring(openNdx+1, closeNdx);
					retVal.colorName = colorstring.substring(0, openNdx);

					try
					{
						factor = Integer.parseInt(factorStr);
					}
					catch(NumberFormatException nfe)
					{
						System.err.println("nfe->" + nfe);
						factor = 0;
					}
				}//if
					try
					{	retVal.color = ColorFactory.parseColor(retVal.colorName);		}
					catch(NumberFormatException nfe)
					{			}
			if ( retVal.color == null )
			{	retVal.color = ColorFactory.getNamedColor(retVal.colorName, null);		}
			if( retVal.color != null && factor != 0)
			{		retVal.color = alterColorByFactor(retVal.color, factor);}
		return retVal;
	}
	/////////////////////////////////////////////////////////////////  
	public void parseCodes(String colorCodes)
	{
//			if (Log.DEBUG && myLog != null)
//			{	myLog.println(3,"LocationColorFormatter.initColorTable(meta, "+colorCodes+")");	}
    //parse up the colorCodes string into the table
    //tokenize the string from site.properties
    //we start with something like this '41:green/6:blue'
		if(colorCodes != null)
		{
			StringTokenizer st = new StringTokenizer(colorCodes, majorDelimiter);

			String tempString = null;    
			ColorEntry color = null;
			ColorEntry color2 = null;
			String code = null;

			StringTokenizer tempST = null;
			LocColorEntry locentry = null;
			while( st.hasMoreTokens() )
			{
				//grab a 'part', separate it into it's 2 pieces
				tempString = st.nextToken();

				//we now have something like this '41:green'
				tempST = new StringTokenizer(tempString, minorDelimiter);

				//sepate it into the two pieces, put it in the Hashtable
				code	=	tempST.nextToken(); //the '41' part
				color =	parseColor(tempST.nextToken()); //the 'color' part
				
				if(tempST.hasMoreTokens())
				{	color2=	parseColor(tempST.nextToken());}
				else
				{	color2=	null;}
								
				
				//all thats left to do is put a Color object in the table
				if(color != null) 
				{	code = code.toUpperCase();
					locentry = new LocColorEntry((color2 == null? 1: 2), code, color);
					if(color2 != null)
					{	locentry.setColor(1, color2);}
					colorEntryHash.put(code, locentry);
				}

			}//for	
		} // if          	
  }//method

	// --------------------------------------------
	public LocColorEntry getEntry(Object key)
  {    
		LocColorEntry retVal = null;
    //make sure there is a (hash)table for this (DB)table
    if( colorEntryHash == null || colorFieldIndex < 0 )
		{ return retVal;}

		if( key == null )
		{	return retVal;}
			
    String codeVal = key.toString();
    if( codeVal != null)
		{	retVal = (LocColorEntry)colorEntryHash.get(codeVal.toUpperCase());}
      
    return retVal;
	}//method

  /////////////////////////////////////////////////////////////////
  public Color getColor(Object val)
  {    
		Color retVal = null;
		LocColorEntry e = getEntry(val);
    //make sure there is a (hash)table for this (DB)table
    if( e != null)
		{ retVal = e.getColor();}
      
    return retVal;
	}//method

  /////////////////////////////////////////////////////////////////
  public String getColorName(Object val)
  {    
		String retVal = null;
		LocColorEntry e = getEntry(val);
    //make sure there is a (hash)table for this (DB)table
    if( e != null)
		{ retVal = e.getColorName();}
      
    return retVal;
	}//method
	
  /////////////////////////////////////////////////////////////////
	/**
	 * This method darkens or brightens the Color passed in 
	 * by the factor given. 
	 */
	public static Color alterColorByFactor(Color color, int factor)
	{
		boolean darken = true;
		
		if ( factor < 0 )
		{
			factor = -factor;
			darken = false;
		}//if
		
		for( int i=0; i < factor; i++ )
		{
			if( darken == true )
				color = color.darker();
			else
				color = color.brighter();
		}//for
		
		return color;
		
	}//method
	
  /////////////////////////////////////////////////////////////////
	/////////////////////////////////////////////////////////////////
	public static LocationColorFormatter LocationColorFormatterFactory(String colorCodes, Color defcol)
	{	LocationColorFormatter retVal = null;
		if (myFactoryInstance != null)
		{	retVal = myFactoryInstance.newLocationColorFormatter(colorCodes, defcol);
		}
		return retVal;
	}
	
  /////////////////////////////////////////////////////////////////

} // class

--------------010802080703020004050804--

--
[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"]


From mail@openmap.bbn.com Tue Mar 20 03:01:51 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2K71pHP007074
	for <openmap-users-archive@openmap.bbn.com>; Tue, 20 Mar 2007 03:01:51 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2K71pkw007073
	for openmap-users-archive; Tue, 20 Mar 2007 03:01:51 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2K71pWN007070
	for <openmap-users@openmap.bbn.com>; Tue, 20 Mar 2007 03:01:51 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HTYLH-00011i-6B; Tue, 20 Mar 2007 03:01:11 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2K6xgr00166
	for openmap-users-outgoing; Tue, 20 Mar 2007 02:59:43 -0400 (EDT)
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C76AB7.F3F320A8"
Subject: [OpenMap Users] Maximum number of animated OMPoly objects
Date: Tue, 20 Mar 2007 14:21:10 +0800
Message-ID: <69596D9C5887874E9A35F6C8DF94B2AB02D86227@nautilus>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [OpenMap Users] Clone OMLine with ArrowHead
Thread-Index: AcdqO8h4zhvafk8rRsKmdCxbqvQDkQAe7myg
From: "Alex Yeo" <alexyeo@stee.stengg.com>
To: <openmap-users@bbn.com>
Old-X-Spam-Score: -1.0 (-)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=HTML_MESSAGE 
	autolearn=unavailable version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

This is a multi-part message in MIME format.

------_=_NextPart_001_01C76AB7.F3F320A8
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,
=20
Has anyone implemented an application involving OpenMap which has in =
excess of 500 animated OMPoly objects (where each object represents a =
moving platform)? Were there any load or problems encountered? Any =
optimisations required?
=20
Cheers.
=20
Alex

------_=_NextPart_001_01C76AB7.F3F320A8
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR></HEAD>
<BODY>
<DIV><SPAN class=3D874591706-20032007><FONT face=3DArial color=3D#0000ff =

size=3D2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=3D874591706-20032007><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D874591706-20032007><FONT face=3DArial color=3D#0000ff =
size=3D2>Has=20
anyone implemented an application involving OpenMap which has in excess =
of 500=20
animated OMPoly objects (where each object represents a moving =
platform)? Were=20
there any load or problems encountered? Any optimisations=20
required?</FONT></SPAN></DIV>
<DIV><SPAN class=3D874591706-20032007><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D874591706-20032007><FONT face=3DArial color=3D#0000ff =

size=3D2>Cheers.</FONT></SPAN></DIV>
<DIV><SPAN class=3D874591706-20032007><FONT face=3DArial color=3D#0000ff =

size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D874591706-20032007><FONT face=3DArial color=3D#0000ff =

size=3D2>Alex</FONT></SPAN></DIV></BODY></HTML>

------_=_NextPart_001_01C76AB7.F3F320A8--

--
[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"]


From mail@openmap.bbn.com Tue Mar 20 11:14:24 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2KFEOmT009968
	for <openmap-users-archive@openmap.bbn.com>; Tue, 20 Mar 2007 11:14:24 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2KFEOGT009967
	for openmap-users-archive; Tue, 20 Mar 2007 11:14:24 -0400
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2KFENZX009964
	for <openmap-users@openmap.bbn.com>; Tue, 20 Mar 2007 11:14:23 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HTfyu-0001TB-4J; Tue, 20 Mar 2007 11:10:36 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2KF7qB06128
	for openmap-users-outgoing; Tue, 20 Mar 2007 11:07:52 -0400 (EDT)
Message-ID: <45FFF89E.3010805@ticom-geo.com>
Date: Tue, 20 Mar 2007 10:07:10 -0500
From: Rob Ratcliff <rratcliff@ticom-geo.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: Alex Yeo <alexyeo@stee.stengg.com>
CC: openmap-users@bbn.com
Subject: Re: [OpenMap Users] Maximum number of animated OMPoly objects
References: <69596D9C5887874E9A35F6C8DF94B2AB02D86227@nautilus>
In-Reply-To: <69596D9C5887874E9A35F6C8DF94B2AB02D86227@nautilus>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: Symantec AntiVirus Scan Engine
Old-X-Spam-Score: -0.6 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk


One thing we did was schedule repaints at some user-specified value 
(defaulted to 250 ms). It only repainted if something changed as well. 
The idea was to coalesce paints. (I haven't looked into it much, but I 
imagine that one could create a RepaintManager that did that for the 
entire application so that the application code wouldn't have to change.)

Also, make sure layers like the VPF layer are using the  
BufferedImageRenderPolicy.  Your poly layer might benefit from using  
BufferedImageRenderPolicy as well.

Hope that helps,

Rob

p.s. Let us know  what you finally come up with!


Alex Yeo wrote:
> Hi,
>  
> Has anyone implemented an application involving OpenMap which has in 
> excess of 500 animated OMPoly objects (where each object represents a 
> moving platform)? Were there any load or problems encountered? Any 
> optimisations required?
>  
> Cheers.
>  
> Alex

--
[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"]


From mail@openmap.bbn.com Tue Mar 20 12:22:54 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2KGMssY010500
	for <openmap-users-archive@openmap.bbn.com>; Tue, 20 Mar 2007 12:22:54 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2KGMsnR010499
	for openmap-users-archive; Tue, 20 Mar 2007 12:22:54 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2KGMrW8010496
	for <openmap-users@openmap.bbn.com>; Tue, 20 Mar 2007 12:22:53 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HTh3J-0005dq-5Q; Tue, 20 Mar 2007 12:19:13 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2KGHrk07666
	for openmap-users-outgoing; Tue, 20 Mar 2007 12:17:53 -0400 (EDT)
Message-ID: <45FFF8F9.4000802@futuretek.com>
Date: Tue, 20 Mar 2007 10:08:41 -0500
From: Rob Ratcliff <rrr6399@futuretek.com>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: openmap-users@bbn.com
Subject: Re: [OpenMap Users] Maximum number of animated OMPoly objects
References: <69596D9C5887874E9A35F6C8DF94B2AB02D86227@nautilus>
In-Reply-To: <69596D9C5887874E9A35F6C8DF94B2AB02D86227@nautilus>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: Symantec AntiVirus Scan Engine
Old-X-Spam-Score: -0.5 (/)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.5 required=2.5 tests=FROM_ENDS_IN_NUMS 
	autolearn=no version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk


One thing we did was schedule repaints at some user-specified value
(defaulted to 250 ms). It only repainted if something changed as well.
The idea was to coalesce paints. (I haven't looked into it much, but I
imagine that one could create a RepaintManager that did that for the
entire application so that the application code wouldn't have to change.)

Also, make sure layers like the VPF layer are using the
BufferedImageRenderPolicy.  Your poly layer might benefit from using
BufferedImageRenderPolicy as well.

Hope that helps,

Rob

p.s. Let us know  what you finally come up with!


Alex Yeo wrote:
> Hi,
>  
> Has anyone implemented an application involving OpenMap which has in 
> excess of 500 animated OMPoly objects (where each object represents a 
> moving platform)? Were there any load or problems encountered? Any 
> optimisations required?
>  
> Cheers.
>  
> Alex


--
[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"]


From mail@openmap.bbn.com Tue Mar 20 14:23:39 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2KINdPT011425
	for <openmap-users-archive@openmap.bbn.com>; Tue, 20 Mar 2007 14:23:39 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2KINd1Q011424
	for openmap-users-archive; Tue, 20 Mar 2007 14:23:39 -0400
Received: from mx12.bbn.com (mx12.bbn.com [128.33.0.81])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2KINPgq011421
	for <openmap-users@openmap.bbn.com>; Tue, 20 Mar 2007 14:23:25 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx12.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HTiy2-0007HG-3i; Tue, 20 Mar 2007 14:21:54 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2KIKaG10594
	for openmap-users-outgoing; Tue, 20 Mar 2007 14:20:36 -0400 (EDT)
Message-ID: <46002074.1040309@ctm.gdynia.pl>
Date: Tue, 20 Mar 2007 18:57:08 +0100
From: Mirek Pawlowski <mirek.pawlowski@ctm.gdynia.pl>
Reply-To: mirek.pawlowski@ctm.gdynia.pl
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: openmap-users@bbn.com
Subject: Re: [OpenMap Users] Maximum number of animated OMPoly objects
References: <69596D9C5887874E9A35F6C8DF94B2AB02D86227@nautilus> <45FFF8F9.4000802@futuretek.com>
In-Reply-To: <45FFF8F9.4000802@futuretek.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Old-X-Spam-Score: -0.6 (/)
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by stout.bbn.com id l2KIKYv10586
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Rob Ratcliff napisaÅ‚(a):
>
> One thing we did was schedule repaints at some user-specified value
> (defaulted to 250 ms). It only repainted if something changed as well. 
> The idea was to coalesce paints. (I haven't looked into it much, but I
> imagine that one could create a RepaintManager that did that for the
> entire application so that the application code wouldn't have to change.)

We also doing scheduled repaints. IIRC we deal with 2000 objects 
repainted each second. Of course repaint time might be adjusted by user.
In our applications we have several so called dynamical layers. One 
thread is responsible for preparing data for them (especially 
interpolate new position of moving objects). After that repaint is 
called in EventDispatchThread.

>
> Also, make sure layers like the VPF layer are using the
> BufferedImageRenderPolicy. Your poly layer might benefit from using
> BufferedImageRenderPolicy as well.
Agree with that :)


-- 
Miroslaw Pawlowski

--
[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"]


From mail@openmap.bbn.com Tue Mar 20 16:08:00 2007
Return-Path: <mail@openmap.bbn.com>
Received: from openmap.bbn.com (localhost [127.0.0.1])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2KK80d1011806
	for <openmap-users-archive@openmap.bbn.com>; Tue, 20 Mar 2007 16:08:00 -0400
Received: (from mail@localhost)
	by openmap.bbn.com (8.13.8/8.13.8/Submit) id l2KK80uj011805
	for openmap-users-archive; Tue, 20 Mar 2007 16:08:00 -0400
Received: from mx11.bbn.com (mx11.bbn.com [128.33.0.80])
	by openmap.bbn.com (8.13.8/8.13.8) with ESMTP id l2KK7xjS011801
	for <openmap-users@openmap.bbn.com>; Tue, 20 Mar 2007 16:07:59 -0400
Received: from stout.bbn.com ([128.89.72.17])
	by mx11.bbn.com with esmtp (Exim 4.60)
	(envelope-from <owner-openmap-users@stout.bbn.com>)
	id 1HTkYy-0005VT-4i; Tue, 20 Mar 2007 16:04:08 -0400
Received: (from majdart@localhost)
	by stout.bbn.com (8.11.4/8.11.4) id l2KK2X912531
	for openmap-users-outgoing; Tue, 20 Mar 2007 16:02:34 -0400 (EDT)
In-Reply-To: <52741F34-C45A-4285-BB62-7AC3FBBDA9F3@pvv.ntnu.no>
References: <52741F34-C45A-4285-BB62-7AC3FBBDA9F3@pvv.ntnu.no>
Mime-Version: 1.0 (Apple Message framework v752.2)
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
Message-Id: <BB1D66F1-78AB-459B-9D64-E4F238C9E0F0@bbn.com>
Cc: openmap questions <openmap-users@bbn.com>
Content-Transfer-Encoding: 7bit
From: Don Dietrick <dietrick@bbn.com>
Subject: Re: [OpenMap Users] UTMPoint outside a zone
Date: Tue, 20 Mar 2007 16:02:24 -0400
To: Tore Halset <halset@pvv.ntnu.no>
X-Mailer: Apple Mail (2.752.2)
X-Scanned-By: Spam Assassin
X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on stout
X-Spam-Level: 
X-Spam-Status: No, score=0.0 required=2.5 tests=none autolearn=unavailable 
	version=3.0.4
Sender: owner-openmap-users@bbn.com
Precedence: bulk

Hi Tore,

Thanks for sending this class and the UTM projection in, I'll take a  
look at them this week.

Best Regards,

Don



On Mar 16, 2007, at 10:57 AM, Tore Halset wrote:

> Hello.
>
> I am build support for UTM projections into the WMS-part of  
> OpenMap. I am using UTMPoint for the calculation, but would like to  
> be able to convert a LatLonPoint to a UTMPoint for a specified UTM  
> zone that may not include the given LatLonPoint. This is normal  
> practice in the WMS context.
>
> Does this seem to be a good idea? I have attached a patch to  
> UTMPoint that works for me.
>
> Regards,
>  - Tore.
> ### Eclipse Workspace Patch 1.0
> #P openmap
> Index: src/openmap/com/bbn/openmap/proj/coords/UTMPoint.java
> ===================================================================
> RCS file: /cvs/openmap/openmap/src/openmap/com/bbn/openmap/proj/ 
> coords/UTMPoint.java,v
> retrieving revision 1.10
> diff -u -r1.10 UTMPoint.java
> --- src/openmap/com/bbn/openmap/proj/coords/UTMPoint.java	24 Oct  
> 2005 14:39:14 -0000	1.10
> +++ src/openmap/com/bbn/openmap/proj/coords/UTMPoint.java	16 Mar  
> 2007 14:26:23 -0000
> @@ -197,8 +197,31 @@
>      public static UTMPoint LLtoUTM(LatLonPoint llpoint, Ellipsoid  
> ellip,
>                                     UTMPoint utmpoint) {
> -        double Lat = llpoint.getLatitude();
> -        double Long = llpoint.getLongitude();
> +        // find the native zone for the given llpoint
> +        int zoneNumber = zoneNumber(llpoint.getLatitude(),  
> llpoint.getLongitude());
> +        boolean isnorthern = (llpoint.getLatitude() >= 0f);
> +
> +        return LLtoUTM(llpoint, ellip, utmpoint, zoneNumber,  
> isnorthern);
> +     }
> +
> +    /**
> +     * Converts a set of Longitude and Latitude co-ordinates to UTM
> +     * given an ellipsoid and the UTM zone to use.
> +     *
> +     * @param ellip an ellipsoid definition.
> +     * @param llpoint the coordinate to be converted
> +     * @param utmpoint A UTMPoint instance to put the results in. If
> +     *        null, a new UTMPoint will be allocated.
> +     * @param ZoneNumber the number of the zone
> +     * @param isnorthern true if
