Just as a point of information , this is already fixed in the OpenMap
5 beta, and works properly with the DTEDFrameCacheLayer in 4.6.5.
That layer requires a DTEDFrameCache to be created and put in the
MapHandler, either programmatically or by adding one in the
openmap.components property.
It wasn't really a bug. When the code was written, NGA was
distributing DTED Level 2 data with a .dt1 extension on it. That's
why there's a dted.level2.paths written into the DTEDLayer, to
accommodate the way the data was being distributed.
I thought it had been fixed for 4.6.5, but apparently not. Sorry about that.
Cheers,
- Don
On Fri, Jul 23, 2010 at 1:06 PM, Greg Jewell <greg17@jewell.net> wrote:
> Hello Ben,
>
> There's a bug in the 4.6 versions of OpenMap where DTED Level 2 elevations
> aren't reported properly. I encountered the same thing a few months ago.
> If you have the ability to change the OpenMap source code, the fix is
> literally only 1 character. In the class
> com.bbn.openmap.layer.dted.DTEDFrameCache, there's a method called
> getElevation(float lat, float lon). In that method, it iterates backwards
> from 1 to 0. The 1 needs to be changed to 2, and the elevation will be
> properly reported.
>
> My company won't permit developers to directly change the source code of
> open source projects, so the fix that I implemented was more involved.
>
>
> Hope this helps,
> Greg Jewell
>
>
> On Fri, Jul 23, 2010 at 12:00 PM, Kacirek, Benjamin P CIV US USA TRADOC
> <ben.kacirek@us.army.mil> wrote:
>>
>> Classification: UNCLASSIFIED
>> Caveats: NONE
>>
>> I have some DTED level 0 data. When I click on an area of my map with
>> DTED0, it shows the elevation of the square next to the cursor. I also
>> have some DTED level 2 data but when I try the same thing OpenMap tells
>> me I have no data. The DTED2 data is drawing and shading correctly. What
>> other data needs to be in the DTED2 directory in order to get that
>> elevation number next to the cursor?
>>
>> Thanks,
>> -Ben
>>
>> Classification: UNCLASSIFIED
>> Caveats: NONE
>>
>>
>> --
>> [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"]Received on Fri Jul 23 14:27:18 2010
This archive was generated by hypermail 2.1.8 : Fri Jul 23 2010 - 14:27:18 EDT