[OpenMap Users] Problem adding VMAP0 data

From: Heh, Jonathan <Jonathan.Heh_at_ngc.com>
Date: Mon, 9 Aug 2004 13:19:06 -0700

Hello,
I am relatively new to OpenMap and am trying to add VMAP0 data. I am trying to use the .libraryBean feature that is discussed and recommended in the documentation but it is not working. I keep getting the following exceptions: OutofMemoryError and NullPointerException. Here is my code:

         vpfLayer = new VPFLayer();
         
         Properties vpfLayerProps = new Properties();
         vpfLayerProps.put("vpfLib.class", "com.bbn.openmap.layer.vpf.LibraryBean");
         vpfLayerProps.put("vpfLib.vpfPath", "D:\\VMAPLV0");
         
         vpfLayerProps.put("vmapElev.class", "com.bbn.openmap.layer.vpf.VPFLayer");
         vpfLayerProps.put("vmapElev.prettyName", "Elevation");
         vpfLayerProps.put("vmapElev.libraryBean", "vpfLib");
         vpfLayerProps.put("vmapElev.libraryName", "noamer");
         vpfLayerProps.put("vmapElev.coverageType", "elev");
         vpfLayerProps.put("vmapElev.featureTypes", "edge epoint");
         vpfLayerProps.put("vmapElev.edge", "contourl");
         vpfLayerProps.put("vmapElev.epoint", "elevp");
         vpfLayerProps.put("vmapElev.searchByFeatures", "true");
         vpfLayerProps.put("vmapElev.lineWidth", "1");
         vpfLayerProps.put("vmapElev.lineColor", "FF0000FF");
         vpfLayerProps.put("vmapElev.fillColor", "FF0000FF");

         vpfLayer.setProperties("vpfLib", vpfLayerProps);
         //with this I am getting the NullPointerException, and when I put this:
         vpfLayer.setProperties("vmapElev", vpfLayerProps);
         //I get the desired data display on the map but when I try to zoom in or try to adjust the layer properties I get the OutofMemoryError.

         //this also gives me the NullPointerException:
         vpfLayer.setProperties(vpfLayerProps);
         
         layerHandler.addLayer(vpfLayer);

I would appreciate any help with this. Thank you.
Jonathan Heh
Software Development Engineer
Northrop Grumman Mission Systems
Phone: 937-431-2454
Fax: 937-429-1893


--
[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 Mon Aug 09 2004 - 16:20:32 EDT

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