[OpenMap Users] Problem viewing DTED data

From: Lee Chun Leong <lchunl@writeme.com>
Date: Thu Jan 02 2003 - 22:57:19 EST
('binary' encoding is not supported, stored as-is)

 
 
Note: forwarded message attached.

----- Original Message -----
From: "Lee Chun Leong" <lchunl@writeme.com>
Date: Thu, 02 Jan 2003 22:54:26 -0500
To: dietrick@bbn.com
Subjec0t: Problem viewing DTED data

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
Meet Singles
http://corp.mail.com/lavalife

attached mail follows:


('binary' encoding is not supported, stored as-is)

Hi Don,
  
  Thanks for your pointers, i have tried your suggestion but still unable to get it working. I had reproduced my code but the difference is that this time, i had kept it short and crisp and even go to the extend of specifying the absolute path, just to make sure. I suspect that my DTED1 data is either too small or too big in resolution for OpenMap to read, i not sure. I have tried using MICRODEM to read my data and it shows up fine. Even reuse MICRODEM sample dted data (after converting DEM into DT1) but still the same outcome. Funny thing is that even i purposely remove the dted1 data from the directory, there are no error message to indicate that dted data is not available.

(by the way, i have tried various scaling values not just the one shown here)

Thanks Don

Regards

Chun Leong

        // Create a Swing frame
        JFrame frame = new JFrame("Simple Map");

        // Size the frame appropriately
        frame.setSize(640, 480);

        // Create a MapBean
        BufferedMapBean mapBean = new BufferedMapBean();

        // Create a Map Handler
        MapHandler mapHandler = new MapHandler();
        mapHandler.add(mapBean);

        ToolPanel toolPanel = new ToolPanel();
        mapHandler.add(toolPanel);
        mapHandler.add(new OMToolSet());
        frame.getContentPane().add(toolPanel, BorderLayout.NORTH);
        String[] mypath = {"c:/unzipped/openmap-4.5.4/openmap-4.5.4/com/bbn/openmap/examples/TestMap/data/dted/"};

        //Create a DTEDLayer to display simple DTED data
        DTEDLayer dtedLayer = new DTEDLayer(mypath);

        Properties dtedLayerProps = new Properties();

        dtedLayer.setProperties(dtedLayerProps);

        //Create projection
        Projection proj = mapBean.getProjection() ;

        //Create CADRG projection
        CADRG cadrg = new CADRG(proj.getCenter(), 10000000 , proj.getWidth() , proj.getHeight() );
        mapBean.setProjection(cadrg);

        //Add the dted layer to the map
        mapBean.add(dtedLayer);

        // Add the map to the frame
        frame.getContentPane().add(mapBean);

-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
Meet Singles
http://corp.mail.com/lavalife
--
[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 Jan 2 22:59:25 2003

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