RE: [OpenMap Users] VMAP2Shape

From: Webb, Todd <>
Date: Mon, 8 Nov 2004 16:05:33 -0800

Hey Don

Thanks, it worked and I was able to generate the shape files from our VMAP Edition 5 CDs. A .dbf, .shp, and .shx file are created for each. However, I still haven't been able to accomplish what I set out to, so maybe it would help to explain my goal.

I wanted to create an updated version of the VMAP shape files that are available on the OpenMap website, and to have everything set up to do it again when we receive Edition 6 of VMAP. So I wanted to create 4 shape files: one with higher resolution area data and one with higher resolution edge data, Then one with overview/reference area data, and one with overview edge data. I wanted the high-res files to contain as much detail as can be packed into 30Mb, and each of the overview shape files to be under 2Mb each, much like the existing shape files on the website.

The shape files that I generate are ALWAYS the same size: 12Mb. So the past few days I have playing with the options, I have used eps values of between .0001 to 1.0 and threshhold values of .001 to 1000.0 and they seem to have very little affect on the resulting file size... it is always almost exactly 12Mb. I guess it would help if I had a better understanding of these values and the effective ranges of each. I also tried different scale values in the properties file, but to no effect.

So I modified I added some additional details to the output, and added scale as a command line option. It looked like the thinning code was commented out, so I re-enabled it and made the thinning algorithm run recursively, so it doesn't matter if the list contains an OMGraphics or another OMGraphicList. I tried multiple eps and threshhold values again, as well as scales of 30,000 to 300,000,000 but to no change. I even tried different resolutions passed to the drawTile() method. I can see that graphics are actually being trimmed, but the resulting file size is still always 12Mb.

I attached my modified, and below is the command I am running and the contents of the property file.

Am I going to be able to accomplish my goal with this tool, if so, what am I missing?



: Create thinned coastline
:java -Xmx256m -cp %OPENMAP_HOME% com.bbn.openmap.layer.vpf.VMAP2Shape -props -prefix vmapCoastline -scale 300000000 -thin 0.1 0.5 VMAP_Coastline3
:java -Xmx256m -cp %OPENMAP_HOME% com.bbn.openmap.layer.vpf.VMAP2Shape -props -prefix vmapCoastline -thin 0.1 0.9 VMAP_Coastline
java -Xmx256m -cp %OPENMAP_HOME% com.bbn.openmap.layer.vpf.VMAP2Shape -props -prefix vmapCoastline -scale 3000000 -thin 0.1 0.9 VMAP_Coastline2

: Create thinned political areas (continents)
:java -Xmx256m -cp %OPENMAP_HOME% com.bbn.openmap.layer.vpf.VMAP2Shape -props -prefix vmapContinents -scale 3000000 -thin 0.2 0.5 VMAP_Continents

: Create thinned political boundaries
:java -Xmx256m -cp %OPENMAP_HOME% com.bbn.openmap.layer.vpf.VMAP2Shape -props -prefix vmapPolitical -scale 30000 -thin 0.3 0.5 VMAP_Borders

## property file that directs thinning on VMAP data

# Just political areas

# Just political boundaries

# Just coastline

-----Original Message-----
From: Don Dietrick []
Sent: Friday, November 05, 2004 7:14 AM
To: Webb, Todd
Cc: Openmap-Users (E-mail)
Subject: Re: [OpenMap Users] VMAP2Shape NullPointerException

It seems to work pretty well...

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Mon Nov 08 2004 - 19:06:59 EST

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