[mapserver-users] vmap0 to shape file

Frank Warmerdam warmerdam at pobox.com
Sat Nov 23 14:32:04 EST 2002

woodbri at swoodbridge.com wrote:
> OK, I tried this, if you don't have the xvt libraries and includes it 
> will not be easy and will only be fun if you like pain and headaches.
> Frank, 
> Does ogr2ogr support converting VPF to shapefiles?
> What is the command syntax?
> What are the limits on conversion?


Yes, ogr2ogr can be used to translate VPF to shapefile, if you have a
build with OGDI support (such as the OpenEV_FW binary builds).  For
instance, to extract the political boundaries you might do this:

warmerda at gdal[589]% ogr2ogr polbnda.shp gltp:/vrf/usr4/mpp1/v0noa/vmaplv0/noamer
'polbnda at bnd(*)_area'
warmerda at gdal[590]% ls -l polbnda*
-rw-r--r--    1 warmerda users     1052287 Nov 22 11:58 polbnda.dbf
-rw-r--r--    1 warmerda users         327 Nov 22 11:57 polbnda.prj
-rw-r--r--    1 warmerda users    10335532 Nov 22 11:58 polbnda.shp
-rw-r--r--    1 warmerda users       85980 Nov 22 11:58 polbnda.shx

In the dataset name 'gltp:/vrf/usr4/mpp1/v0noa/vmaplv0/noamer' the gltp:/vrf
part is not really in the filesystem.  The VPF data was at
/usr4/mpp1/v0noa.  The "noamer" directory should be at the same level as
the dht. and lat. files.

The resulting political boundaries seem to include a "nam" attribute with
the state names/province names.  Not too sure about namtional level boundaries.
I couldn't browse around in the data very easily since it was still fairly

The limits?  I'm not too sure what issues you will run into.  The data model
is VPF as exposed through the OGDI VPF (vrf) driver.

Best regards,

I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the mapserver-users mailing list