Re: [OpenMap Users] reading of elevation data from dted file

From: <subratkrsethi_at_bel.co.in>
Date: Sat, 19 Jun 2010 14:48:53 +0530 (IST)

Hi,
As per your suggestion i tried to run
the (com.bbn.openmap.dataAccess.dted.DTEDFrame) class directly on the frame file :Data\e074\n34.dt1
I got the following expected output (some parameters listed for information)

 lat_origin: 34.0
 lon_origin: 74.0
  sw_lat: 34.0
  sw_lon: 74.0
  nw_lat: 35.0
  nw_lon: 74.0
  ne_lat: 35.0
  ne_lon: 75.0
  se_lat: 34.0
  se_lon: 75.0
  orient_ang: 0.0
  lat_post_interval: 30
  lon_post_interval: 30
  num_lat_lines: 1201
  num_lon_points: 1201

 But when i add the DTED layer (com.bbn.openmap.layer.dted) in map handler of openmap providing the file path
Data\e074\n34.dt1
I got the following output

  lat_origin: 34.75
  lon_origin: 74.0
  sw_lat: 34.75 // different from above output
  sw_lon: 74.0
  nw_lat: 35.0
  nw_lon: 74.0
  ne_lat: 35.0
  ne_lon: 74.25 // different from above output
  se_lat: 34.75 // different from above output
  se_lon: 74.25 // different from above output
  orient_ang: 0.0
  lat_post_interval: 10 // different from above output
  lon_post_interval: 10 // different from above output
  num_lat_lines: 901 // different from above output
  num_lon_points: 901 // different from above output

May be because of this output difference ,The elevation information of DTED in map handler is not coming correct

Any suggestion please

Subrat

> Hello,
>
> Can you run the com.bbn.openmap.dataAccess.dted.DTEDFrame class directly on the frame file you think is giving you
> trouble? It should print out the attributes and display that frame, and is a good test to see if the data is valid.
> The DSI is a section of the frame file, and the error below is saying the parser is not finding numbers where
> expected.
>
>> java -cp openmap.jar com.bbn.openmap.dataAccess.dted.DTEDFrame <path to file>
>
> Is the layer displaying any of the frames?
>
> -Don
>
>
> On Jun 18, 2010, at 1:25 AM, subratkrsethi_at_bel.co.in wrote:
>
>> Hi,
>>
>> I am trying to read dted level 1 data
>> after putting file in \e074\n34.dt1 as per openmamp program procedure.
>> All files are loaded when openmap program run.
>> but it give exception error from the following file
>>
>> DTEDFrameDSI.java
>>
>>
>> *** ERROR ***
>> DTEDFrameDSI: Number format error!
>> java.lang.NumberFormatException: For input string: "
>> *************
>> Exception in thread "Thread-247" java.lang.NumberFormatException: For input string: "I*"
>> at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1224)
>> at java.lang.Float.valueOf(Float.java:388)
>> at com.bbn.openmap.layer.dted.DTEDFrameUtil.stringToLon(DTEDFrameUtil.java:91)
>> at com.bbn.openmap.layer.dted.DTEDFrameUHL.<init>(DTEDFrameUHL.java:59)
>> at com.bbn.openmap.layer.dted.DTEDFrame.read(DTEDFrame.java:186)
>> at com.bbn.openmap.layer.dted.DTEDFrame.<init>(DTEDFrame.java:148)
>> at com.bbn.openmap.layer.dted.DTEDFrame.<init>(DTEDFrame.java:128)
>> at com.bbn.openmap.layer.dted.DTEDFrameCache.load(DTEDFrameCache.java:257)
>> at com.bbn.openmap.layer.util.cacheHandler.CacheHandler.get(CacheHandler.java:105)
>> at com.bbn.openmap.layer.dted.DTEDFrameCache.get(DTEDFrameCache.java:216)
>> at com.bbn.openmap.layer.dted.DTEDCacheHandler.getNextImage(DTEDCacheHandler.java:355)
>> at com.bbn.openmap.layer.dted.DTEDCacheManager.getRectangle(DTEDCacheManager.java:341)
>> at com.bbn.openmap.layer.dted.DTEDLayer.prepare(DTEDLayer.java:607)
>> at com.bbn.openmap.layer.dted.DTEDLayer$DTEDWorker.construct(DTEDLayer.java:280)
>> at com.bbn.openmap.util.SwingWorker$2.run(SwingWorker.java:127)
>> at java.lang.Thread.run(Thread.java:619)
>> BUILD SUCCESSFUL (total time: 30 seconds)
>>
>>
>>
>> Confidentiality Notice
>>
>> The information contained in this electronic message and any
>> attachments to this message are intended for the exclusive use of
>> the addressee(s) and may contain confidential or privileged
>> information. If you are not the intended recipient, please notify
>> the sender at Bharat Electronics or support_at_bel.co.in immediately
>> and destroy all copies of this message and any attachments.
>>
>> --
>> [To unsubscribe to this list send an email to "majdart_at_bbn.com"
>> with the following text in the BODY of the message "unsubscribe openmap-users"]
>



Confidentiality Notice

The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of
the addressee(s) and may contain confidential or privileged
information. If you are not the intended recipient, please notify
the sender at Bharat Electronics or support_at_bel.co.in immediately
and destroy all copies of this message and any attachments.

--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Sat Jun 19 2010 - 05:18:42 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:09 EDT