Loading VMAP0 data

This documentation is no longer maintained. Please see the new GeoServer documentation at http://docs.geoserver.org

Version 4 by dblasby
on Mar 24, 2006 17:07.


compared with
Current by leicester
on May 05, 2006 16:37.


 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 7 changes. View first change.

 1. Get the Dataset
 * download from here [here|http://www.mapability.com/index1.html?http&&&www.mapability.com/info/vmap0_index.html]
  * download from here [here|http://www.mapability.com/index1.html?http&&&www.mapability.com/info/vmap0_index.html]
 * That site has excellent documentation and summary of VMAP0 files
* There is also a bit torrent download [here|http://uo.space.frot.org/?GeodataTorrents]
 * You can get an "improved" data dictionary [here|http://www.terragear.org/docs/vmap0/coverage.html]
 * Most of VMAP0 is free to redistribute, but some of it (the political boundaries layer) is for non-commercial use (see the readme.txt).
  * There is also a bit torrent download [here|http://uo.space.frot.org/?GeodataTorrents]
 * You can get an "improved" data dictionary [here|http://www.terragear.org/docs/vmap0/coverage.html]
 * 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
  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
 {code}
 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;
 {code}
 
 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.
 
 {info:title=World Polygon}
 The country-level world dataset contains:
 gen_full - (full resolution) 1,912,574 points
 gen1 - (reduced resolution) 675,536 points
 gen1 - (reduced resolution) 290,013 points
 gen1 - (reduced resolution) 59,765 points
 {info}
  
View Attachments (4) Info