[OpenMap Users] VMAP2Shape NullPointerException

From: Webb, Todd <twebb_at_titan.com>
Date: Wed, 3 Nov 2004 18:59:45 -0800

I'm having a NullPointerException while running VMAP2Shape. I found the exact same problem in a couple archive messages, but the response only says the problem is fixed in a previous version

http://openmap.bbn.com/mailArchives/openmap-users/2002-11/1232.html


I am using OpenMap 4.6.1 that I downloaded yesterday, Java 1.4.2_05-b04, and VMAP Level 0, Edition 5 that is copied to the hard drive.

Here's what I am seeing:

C:\data\dev\jregw\java>java -cp build/lib/openmap.jar com.bbn.openmap.layer.vpf.VMAP2Shape -props VM
APThinned.properties -prefix vmapCoastline -thin 0.1 0.5 VMAP_Coast.shp

vmaptype=bnd
creating VPFLayerGraphicWarehouse
VMAP2Shape.getRectangle(): calling drawTile with boundaries: LatLonPoint[lat=90.0,lon=-180.0]LatLonP
oint[lat=-90.0,lon=180.0]
VMAP2Shape.getRectangle(): read time: 3.36 seconds
1 candidates.
Skipping candidate: class com.bbn.openmap.omGraphics.OMGraphicList, 0
Dumping 0 graphics.
Checking file length...
correct.
adjusting bounds
from min: ESRIPoint[0.000000,0.000000]
to min: null
from max: ESRIPoint[0.000000,0.000000]
to max: null
Exception in thread "main" java.lang.NullPointerException
        at com.bbn.openmap.layer.shape.ShapeUtils.writePoint(ShapeUtils.java:329)
        at com.bbn.openmap.layer.shape.ShapeUtils.writeBox(ShapeUtils.java:346)
        at com.bbn.openmap.layer.shape.ShapeFile.verify(ShapeFile.java:443)
        at com.bbn.openmap.layer.vpf.VMAP2Shape.writeShapeFile(VMAP2Shape.java:113)
        at com.bbn.openmap.layer.vpf.VMAP2Shape.main(VMAP2Shape.java:413)

A file named VMAP_Coast.shp IS created and is 100 bytes.

My properties file has the following for vmapCoastline:
vmapCoastline.coverageType=bnd
vmapCoastline.featureTypes=edge
vmapCoastline.edge=coastl
vmapCoastline.searchByFeature=true
vmapCoastline.vpfPath=C\:/VMAP/V0EUR/VMAPLV0;C\:/VMAP/V0NOA/VMAPLV0;C\:/VMAP/V0SAS/VMAPLV0;C\:/VMAP/V0SOA/VMAPLV0

Any help would be appreciated! Thanks!

Todd
Todd A Webb <twebb_at_titan.com>
The Titan Corporation
3033 Science Park Road
San Diego, CA 92121
858.597.9128
--
[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 Wed Nov 03 2004 - 22:00:53 EST

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