RE: [OpenMap Users] OMGrid

From: Michael Johnson <mjohnson@diamonddata.com>
Date: Thu Mar 18 2004 - 15:04:28 EST

The layer ( my layer class) extends another layer (SessionLayer) which is an
abstract class that extends the OpenMap Layer class.

Do I need to set the projection in the layer class ?

Thanks,

Michael Johnson

-----Original Message-----
From: Don Dietrick [mailto:dietrick@bbn.com]
Sent: Monday, March 15, 2004 5:06 PM
To: mjohnson@diamonddata.com
Cc: Openmap-Users
Subject: Re: [OpenMap Users] OMGrid

HI Michael,

On Mar 8, 2004, at 11:17 AM, Michael Johnson wrote:

> Greetings,
>
> I have a layer class, that uses a 2D integer array to set the color to
> display on the map.  The array contains data that should be rendered
> in multiple places on the map.  However what appears to be happening
> is that the rendered data is in one quadrant of the map beginning with
> the lower latitude and left longitude.  Whenever a zoom is done to a
> particular area then the data appears to be rendered properly.

This is key. I wonder if the OMGrid is being generated with the latest
projection when it is created?

>
> I am using OMGrid to render the layer. 

So the layer is rendering the OMGrid? What kind if layer?

- Don

>
>  
>
>
>  
>
> Initial Map Area:
>
>  
>
> projection: Mercator
>
>  
>
> upperLat = 73.2644
>
> lowerLat = -73.2644
>
> leftLon = -153.7459
>
> rightLon = 153.7459
>
>  
>
> numPixels X = 560
>
> numPixels Y = 400
>
>  
>
> horizontal Resolution = 0.5490
>
> verticalResolution = 0.3663
>
>  
>
>
> A class to handle the Mercator projection was written by another
> developer. As mentioned previously the data is being rendered properly
> whenever a user zooms to an area.
>
> Does anyone have any idea or suggestions as to what is causing the 
> data to be displayed in one quadrant of the map?  Could the problem be
> caused by rendering data that spans hemispheres or greater than a 180
> degrees?  Similar to the restrictions listed in the Projection class
> documentation regarding Polygons and lines?
>
>  
>
>
>  
> Michael Johnson
> Senior System Analyst
> Diamond Data Systems
> Stennis Space Center, MS
> (228) 688 - 3309
> (228) 688 - 6531  (fax)
>  
>  

--
[To unsubscribe to this list send an email to "majdart@bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Thu Mar 18 16:19:29 2004

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