Loading VMAP0 data
This documentation is no longer maintained. Please see the new GeoServer documentation at http://docs.geoserver.org
1. Get the Dataset
- download from here here
- That site has excellent documentation and summary of VMAP0 files
- There is also a bit torrent download here
- You can get an "improved" data dictionary here
- Most of VMAP0 is free to redistribute, but some of it (the political boundaries layer) is for non-commercial use (see the readme.txt).
2. Make sure your decompressor isnt mangling things (see the mapability (above) site for how to configure winzip). Unix users should be okay.
3. decompress and use ogr2ogr to process. I've attached 2 script files that do all the processing for you. They're windows .bat files, but they are simple and can be easily converted to unix, or use the attached shell script.
4. load the files into Postgis
foreach i (*.shp) echo $i echo shp2pgsql -D -s 4326 -I $i $i:r shp2pgsql -D -s 4326 -I $i $i:r | psql vmap0 > $i.out end vacuum analyse;
5. load my derived data
I fixed the polical boundary layers (there were topology problems). I've attached a .zip file with the countries and the sub-national boundaries.
| World Polygon The country-level world dataset contains: |
Comments ( Hide )
|
|
bw says:The problem was that you need to give the absolute path which I didn't Cheers, Bastiaan |
|
|
Chris Holmes says:Bastian, any chance you could attach your linux files to this page? Others might be interested in them. |
|
|
chrissi says:I can't find the attached .zip file with the fixed polical boundary layers. Can somebody help me? |
|
|
dbouzolin@yahoo.com says:"I've attached 2 script files that do all the processing for you" Where are those files ? Thanks, Dmitry. |
Hi, I am trying to crete a linux version of the .bat files. All goes well except that i get the following error when ogr2ogr is used for the first time:
ogr2ogr one.shp "gltp:/vrf/e:v0noa/vmaplv0/noamer" "landicea@phys
_area" -nln "landicea" "landicea@phys
_area"
FAILURE:
Unable to open datasource `gltp:/vrf/e:v0noa/vmaplv0/noamer' with the following drivers.
-> ESRI Shapefile
-> UK .NTF
-> SDTS
-> TIGER
-> S57
-> MapInfo File
-> DGN
-> VRT
-> AVCBin
-> REC
-> Memory
-> CSV
-> GML
-> OGDI
-> PostgreSQL
Are the values correct? If I look into the v0noa/vmaplv0/noamer directory I see not much files but a lot of directories. Is that ok
Cheers,
Bastiaan