[GRASS-user] Natural Earth: public domain GIS datasets

Dear users,
I did not see this cited in the mailing list archive so I thought others may find it useful as a source of basic GIS layers.

Natural Earth
http://www.naturalearthdata.com/

They seem to import fine into GRASS, and vectors have clean and informative attribute tables.

Apologies if this info in redundant and/or misplaced.

Kind regards,
Luigi

Luigi Ponti wrote:

Dear users,
I did not see this cited in the mailing list archive so I thought others may find it useful as a source of basic GIS layers.

Natural Earth
http://www.naturalearthdata.com/

They seem to import fine into GRASS, and vectors have clean and informative attribute tables.

Hi Luigi,

There is a lot of nice data on there. I've had some trouble trying to import the vector data, however. I keep getting a buffer-overflow with v.in.ogr (see below). It happens with 6.4.0RC5, and with 6.5.svn. How did you import them?

Cheers

John

GRASS 6.4.0RC5 (global):~/laptop/GIS_datasets/Natural_Earth_GIS_data_10m/physical > v.in.ogr ../cultural/10m-populated-places.shp out=cities
Projection of input dataset and current location appear to match
Layer: 10m-populated-places
Importing map 6599 features...
*** buffer overflow detected ***: v.in.ogr terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7057ed8]
/lib/tls/i686/cmov/libc.so.6[0xb7056f10]
/lib/tls/i686/cmov/libc.so.6[0xb7056869]
/lib/tls/i686/cmov/libc.so.6(__snprintf_chk+0x34)[0xb7056754]
/usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x34e)[0xb74eb3be]
/usr/lib/libgdal1.5.0.so.1(OGR_F_GetFieldAsString+0x28)[0xb74ec1c8]
v.in.ogr(main+0x21e8)[0x804d9d8]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb6f8db56]
v.in.ogr[0x804aab1]
======= Memory map: ========
08048000-08050000 r-xp 00000000 08:06 24396 /usr/lib/grass64/bin/v.in.ogr
08050000-08051000 r--p 00007000 08:06 24396 /usr/lib/grass64/bin/v.in.ogr
08051000-08052000 rw-p 00008000 08:06 24396 /usr/lib/grass64/bin/v.in.ogr
086e6000-08728000 rw-p 00000000 00:00 0 [heap]
b4eb0000-b4eba000 r-xp 00000000 08:06 968 /lib/tls/i686/cmov/libnss_files-2.10.1.so
b4eba000-b4ebb000 r--p 00009000 08:06 968 /lib/tls/i686/cmov/libnss_files-2.10.1.so
b4ebb000-b4ebc000 rw-p 0000a000 08:06 968 /lib/tls/i686/cmov/libnss_files-2.10.1.so
b4ebc000-b4ec2000 r-xp 00000000 08:06 964 /lib/tls/i686/cmov/libnss_compat-2.10.1.so
b4ec2000-b4ec3000 r--p 00005000 08:06 964 /lib/tls/i686/cmov/libnss_compat-2.10.1.so
b4ec3000-b4ec4000 rw-p 00006000 08:06 964 /lib/tls/i686/cmov/libnss_compat-2.10.1.so
b4edc000-b4f1b000 r--p 00000000 08:06 134849 /usr/lib/locale/en_GB.utf8/LC_CTYPE
b4f1b000-b4f1f000 rw-p 00000000 00:00 0
b4f1f000-b4f22000 r-xp 00000000 08:06 942 /lib/libgpg-error.so.0.4.0
b4f22000-b4f23000 r--p 00002000 08:06 942 /lib/libgpg-error.so.0.4.0
b4f23000-b4f24000 rw-p 00003000 08:06 942 /lib/libgpg-error.so.0.4.0
b4f24000-b4f34000 r-xp 00000000 08:06 6439 /usr/lib/libtasn1.so.3.1.5
b4f34000-b4f35000 r--p 0000f000 08:06 6439 /usr/lib/libtasn1.so.3.1.5
b4f35000-b4f36000 rw-p 00010000 08:06 6439 /usr/lib/libtasn1.so.3.1.5
b4f36000-b4f4e000 r-xp 00000000 08:06 6375 /usr/lib/libsasl2.so.2.0.23
b4f4e000-b4f4f000 r--p 00017000 08:06 6375 /usr/lib/libsasl2.so.2.0.23
b4f4f000-b4f50000 rw-p 00018000 08:06 6375 /usr/lib/libsasl2.so.2.0.23
b4f50000-b4f51000 rw-p 00000000 00:00 0
b4f51000-b4f61000 r-xp 00000000 08:06 1006 /lib/tls/i686/cmov/libresolv-2.10.1.so
b4f61000-b4f62000 r--p 00010000 08:06 1006 /lib/tls/i686/cmov/libresolv-2.10.1.so
b4f62000-b4f63000 rw-p 00011000 08:06 1006 /lib/tls/i686/cmov/libresolv-2.10.1.so
b4f63000-b4f65000 rw-p 00000000 00:00 0
b4f65000-b4f67000 r-xp 00000000 08:06 951 /lib/libkeyutils-1.2.so
b4f67000-b4f68000 r--p 00001000 08:06 951 /lib/libkeyutils-1.2.so
b4f68000-b4f69000 rw-p 00002000 08:06 951 /lib/libkeyutils-1.2.so
b4f69000-b4f6f000 r-xp 00000000 08:06 2750 /usr/lib/libkrb5support.so.0.1
b4f6f000-b4f70000 r--p 00005000 08:06 2750 /usr/lib/libkrb5support.so.0.1
b4f70000-b4f71000 rw-p 00006000 08:06 2750 /usr/lib/libkrb5support.so.0.1
b4f71000-b4f97000 r-xp 00000000 08:06 2756 /usr/lib/libk5crypto.so.3.1
b4f97000-b4f98000 ---p 00026000 08:06 2756 /usr/lib/libk5crypto.so.3.1
b4f98000-b4f99000 r--p 00026000 08:06 2756 /usr/lib/libk5crypto.so.3.1
b4f99000-b4f9a000 rw-p 00027000 08:06 2756 /usr/lib/libk5crypto.so.3.1
b4f9a000-b4fad000 r-xp 00000000 08:06 962 /lib/tls/i686/cmov/libnsl-2.10.1.so
b4fad000-b4fae000 r--p 00012000 08:06 962 /lib/tls/i686/cmov/libnsl-2.10.1.so
b4fae000-b4faf000 rw-p 00013000 08:06 962 /lib/tls/i686/cmov/libnsl-2.10.1.so
b4faf000-b4fb2000 rw-p 00000000 00:00 0
b4fb2000-b502b000 r-xp 00000000 08:06 938 /lib/libgcrypt.so.11.5.2
b502b000-b502c000 r--p 00078000 08:06 938 /lib/libgcrypt.so.11.5.2
b502c000-b502e000 rw-p 00079000 08:06 938 /lib/libgcrypt.so.11.5.2
b502e000-b50d1000 r-xp 00000000 08:06 5969 /usr/lib/libgnutls.so.26.14.10
b50d1000-b50d5000 r--p 000a2000 08:06 5969 /usr/lib/libgnutls.so.26.14.10
b50d5000-b50d6000 rw-p 000a6000 08:06 5969 /usr/lib/libgnutls.so.26.14.10
b50d6000-b50e3000 r-xp 00000000 08:06 6159 /usr/lib/liblber-2.4.so.2.5.1
b50e3000-b50e4000 r--p 0000c000 08:06 6159 /usr/lib/liblber-2.4.so.2.5.1
b50e4000-b50e5000 rw-p 0000d000 08:06 6159 /usr/lib/liblber-2.4.so.2.5.1
b50e5000-b5115000 r-xp 00000000 08:06 6127 /usr/lib/libidn.so.11.5.44
b5115000-b5116000 ---p 00030000 08:06 6127 /usr/lib/libidn.so.11.5.44
b5116000-b5117000 r--p 00030000 08:06 6127 /usr/lib/libidn.so.11.5.44
b5117000-b5118000 rw-p 00031000 08:06 6127 /usr/lib/libidn.so.11.5.44
b5118000-b515f000 r-xp 00000000 08:06 6164 /usr/lib/libldap_r-2.4.so.2.5.1
b515f000-b5160000 ---p 00047000 08:06 6164 /usr/lib/libldap_r-2.4.so.2.5.1
b5160000-b5161000 r--p 00047000 08:06 6164 /usr/lib/libldap_r-2.4.so.2.5.1
b5161000-b5162000 rw-p 00048000 08:06 6164 /usr/lib/libldap_r-2.4.so.2.5.1
b5162000-b5164000 rw-p 00000000 00:00 0
b5164000-b516d000 r-xp 00000000 08:06 924 /lib/tls/i686/cmov/libcrypt-2.10.1.so
b516d000-b516e000 r--p 00008000 08:06 924 /lib/tls/i686/cmov/libcrypt-2.10.1.so
b516e000-b516f000 rw-p 00009000 08:06 924 /lib/tls/i686/cmov/libcrypt-2.10.1.so
b516f000-b5196000 rw-p 00000000 00:00 0
b5196000-b51be000 r-xp 00000000 08:06 2742 /usr/lib/libgssapi_krb5.so.2.2
b51be000-b51bf000 r--p 00027000 08:06 2742 /usr/lib/libgssapi_krb5.so.2.2
b51bf000-b51c0000 rw-p 00028000 08:06 2742 /usr/lib/libgssapi_krb5.so.2.2
b51c0000-b51c2000 r-xp 00000000 08:06 917 /lib/libcom_err.so.2.1
b51c2000-b51c3000 r--p 00001000 08:06 917 /lib/libcom_err.so.2.1
b51c3000-b51c4000 rw-p 00002000 08:06 917 /lib/libcom_err.so.2.1
b51c4000-b5263000 r-xp 00000000 08:06 2746 /usr/lib/libkrb5.so.3.3
b5263000-b5268000 r--p 0009f000 08:06 2746 /usr/lib/libkrb5.so.3.3
b5268000-b5269000 rw-p 000a4000 08:06 2746 /usr/lib/libkrb5.so.3.3
b5269000-b5396000 r-xp 00000000 08:06 4560 /lib/i686/cmov/libcrypto.so.0.9.8
b5396000-b539e000 r--p 0012c000 08:06 4560 /lib/i686/cmov/libcrypto.so.0.9.8
b539e000-b53ab000 rw-p 00134000 08:06 4560 /lib/i686/cmov/libcrypto.so.0.9.8
b53ab000-b53b0000 rw-p 00000000 00:00 0
b53b0000-b53f1000 r-xp 00000000 08:06 4561 /lib/i686/cmov/libssl.so.0.9.8
b53f1000-b53f2000 ---p 00041000 08:06 4561 /lib/i686/cmov/libssl.so.0.9.8
b53f2000-b53f3000 r--p 00041000 08:06 4561 /lib/i686/cmov/libssl.so.0.9.8
b53f3000-b53f6000 rw-p 00042000 08:06 4561 /lib/i686/cmov/libssl.so.0.9.8
b53f6000-b613b000 r--p 00000000 08:06 6110 /usr/lib/libicudata.so.40.1
b613b000-b613c000 r--p 00d44000 08:06 6110 /usr/lib/libicudata.so.40.1
b613c000-b6262000 r-xp 00000000 08:06 6122 /usr/lib/libicuuc.so.40.1Aborted

--

Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.stevenson@manchester.ac.uk

On Sun, Jan 17, 2010 at 5:12 PM, John A Stevenson
<john.stevenson@manchester.ac.uk> wrote:

Luigi Ponti wrote:

...

There is a lot of nice data on there. I've had some trouble trying to
import the vector data, however. I keep getting a buffer-overflow with
v.in.ogr (see below). It happens with 6.4.0RC5, and with 6.5.svn. How did
you import them?

Are you on Ubuntu?

GRASS 6.4.0RC5
(global):~/laptop/GIS_datasets/Natural_Earth_GIS_data_10m/physical >
v.in.ogr ../cultural/10m-populated-places.shp out=cities
Projection of input dataset and current location appear to match
Layer: 10m-populated-places
Importing map 6599 features...
*** buffer overflow detected ***: v.in.ogr terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7057ed8]
/lib/tls/i686/cmov/libc.so.6[0xb7056f10]
/lib/tls/i686/cmov/libc.so.6[0xb7056869]
/lib/tls/i686/cmov/libc.so.6(__snprintf_chk+0x34)[0xb7056754]
/usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x34e)[0xb74eb3be]
/usr/lib/libgdal1.5.0.so.1(OGR_F_GetFieldAsString+0x28)[0xb74ec1c8]
v.in.ogr(main+0x21e8)[0x804d9d8]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb6f8db56]
v.in.ogr[0x804aab1]

Does ogrinfo work on the data set?
It looks a bike like
https://bugs.launchpad.net/ubuntu/+source/libgdal-grass/+bug/308158
http://trac.osgeo.org/grass/ticket/402
to me.

Markus

2010/1/17 Markus Neteler <neteler@osgeo.org>

On Sun, Jan 17, 2010 at 5:12 PM, John A Stevenson
<john.stevenson@manchester.ac.uk> wrote:

Luigi Ponti wrote:

There is a lot of nice data on there. I’ve had some trouble trying to
import the vector data, however. I keep getting a buffer-overflow with
v.in.ogr (see below). It happens with 6.4.0RC5, and with 6.5.svn. How did
you import them?

Are you on Ubuntu?

GRASS 6.4.0RC5
(global):~/laptop/GIS_datasets/Natural_Earth_GIS_data_10m/physical >
v.in.ogr …/cultural/10m-populated-places.shp out=cities
Projection of input dataset and current location appear to match
Layer: 10m-populated-places
Importing map 6599 features…
*** buffer overflow detected ***: v.in.ogr terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7057ed8]
/lib/tls/i686/cmov/libc.so.6[0xb7056f10]
/lib/tls/i686/cmov/libc.so.6[0xb7056869]
/lib/tls/i686/cmov/libc.so.6(__snprintf_chk+0x34)[0xb7056754]
/usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x34e)[0xb74eb3be]
/usr/lib/libgdal1.5.0.so.1(OGR_F_GetFieldAsString+0x28)[0xb74ec1c8]
v.in.ogr(main+0x21e8)[0x804d9d8]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb6f8db56]
v.in.ogr[0x804aab1]

Does ogrinfo work on the data set?
It looks a bike like
https://bugs.launchpad.net/ubuntu/+source/libgdal-grass/+bug/308158
http://trac.osgeo.org/grass/ticket/402
to me.

Markus

Hi

If it helps, building Grass from source fixes this issue. I’m on Ubuntu 9.10. and 6.4.0RC5 is working importing shapefiles now.

Cheers

Will

William Temperley wrote:

    Are you on Ubuntu?

I am. I apt-get purged the version of gdal-bin from the repositories and compiled a nice new gdal 1.6.3 from source. It works now.

It's a really nice dataset. Just having country outlines to use as a mask is an excellent result.

Cheers

John

--

Dr John Stevenson
Postdoctoral Research Associate
School of Earth, Atmospheric and Environmental Sciences
Williamson Building (Room 2.42)
University of Manchester
Manchester M13 9PL, UK
tel. +44(0)161 306 6585; fax. +44(0)161 306 9361;
john.stevenson@manchester.ac.uk