[Gdal-dev] Importing VMAP0 into PostGIS database;

Markus Neteler neteler at itc.it
Wed Aug 10 10:52:06 EDT 2005


On Tue, Aug 09, 2005 at 09:01:15PM +0000, Martin Spott wrote:
> Hello Frank,
> 
> Frank Warmerdam wrote:
> 
> > Layer name: cropa at veg(*)_area
> > Geometry: Polygon
> > Feature Count: 44114
> > Extent: (-10.377182, 30.000000) - (159.805161, 68.291046)
> [...]
> 
> O.k., I prefer yours. Mine looks like this:
> 
> INFO: Open of `gltp:/vrf/home/martin/VMAP0/v0eur/vmaplv0/eurnasia'
> using driver `OGDI' successful.
> 
> Layer name: cropa at veg(*)_area
> Geometry: Polygon
> Feature Count: 0
>               ^^^
> [...]
> 

Hi,

I guess that this comes from the trailing dot problem and
the upper case directories to lower case names problem.

The latest GRASS Newletter comes with an article on VMAP0/OGR:
 http://grass.itc.it/newsletter/index.php
 GRASS Newsletter vol. 3 (June 2005)
 -> http://grass.itc.it/newsletter/GRASSNews_vol3.pdf

It includes a script to fix the file name issues (see page 5).

For convenience saved here:

#file/dir name fixes:
 http://mpa.itc.it/markus/useful/srtm_vmap_article2005_script_fig3.sh

#OGR conversion to SHAPE:
 http://mpa.itc.it/markus/useful/srtm_vmap_article2005_script_fig4.sh

It should be easy to adapt the second procedure to write PG instead
of SHAPE (did that some time ago).

Cheers

 Markus




More information about the Gdal-dev mailing list