<div class="gmail_quote">2010/1/17 Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org">neteler@osgeo.org</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Sun, Jan 17, 2010 at 5:12 PM, John A Stevenson<br>
<<a href="mailto:john.stevenson@manchester.ac.uk">john.stevenson@manchester.ac.uk</a>> wrote:<br>
> Luigi Ponti wrote:<br>
...<br>
<div class="im">> There is a lot of nice data on there. I've had some trouble trying to<br>
> import the vector data, however. I keep getting a buffer-overflow with<br>
> v.in.ogr (see below). It happens with 6.4.0RC5, and with 6.5.svn. How did<br>
> you import them?<br>
<br>
</div>Are you on Ubuntu?<br>
<div class="im"><br>
> GRASS 6.4.0RC5<br>
> (global):~/laptop/GIS_datasets/Natural_Earth_GIS_data_10m/physical ><br>
> v.in.ogr ../cultural/10m-populated-places.shp out=cities<br>
> Projection of input dataset and current location appear to match<br>
> Layer: 10m-populated-places<br>
> Importing map 6599 features...<br>
> *** buffer overflow detected ***: v.in.ogr terminated<br>
> ======= Backtrace: =========<br>
> /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x48)[0xb7057ed8]<br>
> /lib/tls/i686/cmov/libc.so.6[0xb7056f10]<br>
> /lib/tls/i686/cmov/libc.so.6[0xb7056869]<br>
> /lib/tls/i686/cmov/libc.so.6(__snprintf_chk+0x34)[0xb7056754]<br>
> /usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x34e)[0xb74eb3be]<br>
> /usr/lib/libgdal1.5.0.so.1(OGR_F_GetFieldAsString+0x28)[0xb74ec1c8]<br>
> v.in.ogr(main+0x21e8)[0x804d9d8]<br>
> /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb6f8db56]<br>
> v.in.ogr[0x804aab1]<br>
<br>
</div>Does ogrinfo work on the data set?<br>
It looks a bike like<br>
<a href="https://bugs.launchpad.net/ubuntu/+source/libgdal-grass/+bug/308158" target="_blank">https://bugs.launchpad.net/ubuntu/+source/libgdal-grass/+bug/308158</a><br>
<a href="http://trac.osgeo.org/grass/ticket/402" target="_blank">http://trac.osgeo.org/grass/ticket/402</a><br>
to me.<br>
<font color="#888888"><br>
Markus<br>
</font><div><div></div><div class="h5"><br></div></div></blockquote><div><br>Hi <br><br>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.<br>
<br>Cheers<br><br>Will<br> </div></div><br>