Problems with v.in.ogr importing shp files

6 messages Options
Embed this post
Permalink
Ferruccio Sarra

Problems with v.in.ogr importing shp files

Reply Threaded More More options
Print post
Permalink
Hi all.
Compiled and installed Grass 6.5 from source on a 64x Ubuntu 9.04
machine. It seemed to me it worked fine but when I tried to import the
curvespear shape file (following the step by step tutorial
http://www.ing.unitn.it/~grass/docs/tutorial_62/index.html ) by v.in.ogr
function, the procedure didn't go on. In the output window:
...
Layer: curvespear
Importing map 1755 features...

and nothing else.
The imported file is in the right place but with nearly no feature inside.

I'v been looking for a tip in the user mailing list archive but Rafael
Moraes suggestion doesn't help.     Added      http://les-ejk.cz/ubuntu 
repository to source list     and reinstalled gdal... but nothing happend.
   The same with Grass 6.2.3. (Maybe I made some newbe mistake in
updating gdal).
Any suggestion?
Thank you.
Ferro
P.S
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Jhon Ortiz

Problems with v.in.ogr importing shp files

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
> Hi all.

> Compiled and installed Grass 6.5 from source on a 64x Ubuntu 9.04
> machine. It seemed to me it worked fine but when I tried to import the
> curvespear shape file (following the step by step tutorial
> http://www.ing.unitn.it/~grass/docs/tutorial_62/index.html ) by v.in.ogr
> function, the procedure didn't go on. In the output window:
> ...
> Layer: curvespear
> Importing map 1755 features...
>
> and nothing else.
> The imported file is in the right place but with nearly no feature inside.
>
> I'v been looking for a tip in the user mailing list archive but Rafael
> Moraes suggestion doesn't help. Added http://les-ejk.cz/ubuntu
> repository to source list and reinstalled gdal... but nothing happend.
> The same with Grass 6.2.3. (Maybe I made some newbe mistake in
> updating gdal).
> Any suggestion?
> Thank you.
> Ferro
> P.S

Hi all,

I have the same problem when I tried to import the shapefile with v.in.org 
I'm working with GRASS 6.4.0svn on a 64x Ubuntu 9.04

In the terminal give this errors
 
GRASS 6.4.0svn (Prueba_location):~ > *** buffer overflow detected ***: v.in.ogr terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x37)[0x7f95d00bc2c7]
/lib/libc.so.6[0x7f95d00ba170]
/lib/libc.so.6[0x7f95d00b97ab]
/lib/libc.so.6(__snprintf_chk+0x7b)[0x7f95d00b967b]
/usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x346)[0x7f95d0de2296]
v.in.ogr(main+0x2284)[0x406b50]
/lib/libc.so.6(__libc_start_main+0xe6)[0x7f95cffdb5a6]
v.in.ogr[0x403969]

Some advice?

Thaks

John Ortiz



Disfruta antes que nadie del nuevo Windows Live Messenger
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Nikos Alexandris

Re: Problems with v.in.ogr importing shp files

Reply Threaded More More options
Print post
Permalink

Jhon Ortiz:

...

> I have the same problem when I tried to import the shapefile with
> v.in.org
> I'm working with GRASS 6.4.0svn on a 64x Ubuntu 9.04

> In the terminal give this errors
> GRASS 6.4.0svn (Prueba_location):~ > *** buffer overflow detected ***:

...

> Some advice?


Hi John.

This is a known "situation". Look at [1][2][3] and I am convinced that
you'll resolve the conflict.

( Maybe we should add a wiki-page with these kind of errors? )

Kind regards, Nikos
---

[1]
http://n2.nabble.com/Buffer-overflow-v.in.ogr-on-GRASS-6.4-RC2-tc2151192.html#a2151192
[2] http://n2.nabble.com/gdal%2C-v.in.ogr%
2C-Ubuntu-intrepid-tc1886320.html#a1886323
[3]
http://n2.nabble.com/GRASS-6.4-and-Ubuntu-Intrepid-tc1885119.html#a1885119


_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Ferruccio Sarra

Re: Problems with v.in.ogr importing shp files

Reply Threaded More More options
Print post
Permalink
In reply to this post by Jhon Ortiz
Hope John solved his issue but it's quite different from mine.
I guess the problem I'm facing with v.in.ogr function have been solved
by Jachym Cepicky (
http://n2.nabble.com/grass-gdal-ubuntu-issue-solved-(-)-td2352498.html 
), whose unofficial repository hold some updated packages that seems to
work very well... Unfortunately I'm working on a 64bit pc with Ubuntu
9.04 and  no package for this configuration is available there.
I compiled a Grass 6.5 from source but really don't know on how to
compile a more recent version of gdal and even don't know exactly wich
libraries have to be updated.
Some useful suggestion on what to do to make v.in.ogr work correctly
with shp files?
Thank you in advance.
Ferro


Jhon Ortiz ha scritto:

>
>
>  
>> Hi all.
>> Compiled and installed Grass 6.5 from source on a 64x Ubuntu 9.04
>> machine. It seemed to me it worked fine but when I tried to import the
>> curvespear shape file (following the step by step tutorial
>> http://www.ing.unitn.it/~grass/docs/tutorial_62/index.html ) by v.in.ogr
>> function, the procedure didn't go on. In the output window:
>> ...
>> Layer: curvespear
>> Importing map 1755 features...
>>
>> and nothing else.
>> The imported file is in the right place but with nearly no feature inside.
>>
>> I'v been looking for a tip in the user mailing list archive but Rafael
>> Moraes suggestion doesn't help.     Added      http://les-ejk.cz/ubuntu 
>> repository to source list     and reinstalled gdal... but nothing happend.
>>    The same with Grass 6.2.3. (Maybe I made some newbe mistake in
>> updating gdal).
>> Any suggestion?
>> Thank you.
>> Ferro
>> P.S
>>    
>
> Hi all,
>
> I have the same problem when I tried to import the shapefile with v.in.org  
> I'm working with GRASS 6.4.0svn on a 64x Ubuntu 9.04
>
> In the terminal give this errors
>  
> GRASS 6.4.0svn (Prueba_location):~ > *** buffer overflow detected ***: v.in.ogr terminated
> ======= Backtrace: =========
> /lib/libc.so.6(__fortify_fail+0x37)[0x7f95d00bc2c7]
> /lib/libc.so.6[0x7f95d00ba170]
> /lib/libc.so.6[0x7f95d00b97ab]
> /lib/libc.so.6(__snprintf_chk+0x7b)[0x7f95d00b967b]
> /usr/lib/libgdal1.5.0.so.1(_ZN10OGRFeature16GetFieldAsStringEi+0x346)[0x7f95d0de2296]
> v.in.ogr(main+0x2284)[0x406b50]
> /lib/libc.so.6(__libc_start_main+0xe6)[0x7f95cffdb5a6]
> v.in.ogr[0x403969]
>
> Some advice?
>
> Thaks
>
> John Ortiz
>
>
> _________________________________________________________________
> Llévate Messenger en el móvil a todas partes ¡Conéctate!
> http://www.microsoft.com/spain/windowsmobile/messenger/default.mspx
>  
> ------------------------------------------------------------------------
>
> _______________________________________________
> grass-user mailing list
> [hidden email]
> http://lists.osgeo.org/mailman/listinfo/grass-user
>  

_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
hamish-2

Re: Problems with v.in.ogr importing shp files

Reply Threaded More More options
Print post
Permalink
In reply to this post by Ferruccio Sarra

Ferruccio Sarra wrote:
> I'm working on a 64bit pc with Ubuntu 9.04 and  no package for this
> configuration is available there.
> I compiled a Grass 6.5 from source but really don't know on
> how to compile a more recent version of gdal and even don't
> know exactly wich libraries have to be updated.

I would suggest to rebuilt from source the DebianGIS packages found in
Debian/experimental.

search the web for instructions on how to use "debuild", and see the
instructions for GRASS in the grass SVN source code debian/ dir.


> Some useful suggestion on what to do to make v.in.ogr work
> correctly with shp files?

well, it's really a matter of getting v.in.ogr to work at all!


after rebuilding and reinstalling GDAL you will want to 'make distclean'
and rebuild GRASS completely too.


Hamish



     

_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Ferruccio Sarra

Re: Problems with v.in.ogr importing shp files

Reply Threaded More More options
Print post
Permalink
I'll read everything and report my attempts results as soon as possible
(engaged in other tasks by now :-). By now  "solved" installing a Grass
6.3.0 on Ubuntu 8.10 (x86 pc) following  http://les-ejk.cz/ubuntu/
v.in.ogr function worked and let me obtain a dtm from contour lines shp
file.
Thanks Hamish
Ferro

Hamish ha scritto:

> Ferruccio Sarra wrote:
>  
>> I'm working on a 64bit pc with Ubuntu 9.04 and  no package for this
>> configuration is available there.
>> I compiled a Grass 6.5 from source but really don't know on
>> how to compile a more recent version of gdal and even don't
>> know exactly wich libraries have to be updated.
>>    
>
> I would suggest to rebuilt from source the DebianGIS packages found in
> Debian/experimental.
>
> search the web for instructions on how to use "debuild", and see the
> instructions for GRASS in the grass SVN source code debian/ dir.
>
>
>  
>> Some useful suggestion on what to do to make v.in.ogr work
>> correctly with shp files?
>>    
>
> well, it's really a matter of getting v.in.ogr to work at all!
>
>
> after rebuilding and reinstalling GDAL you will want to 'make distclean'
> and rebuild GRASS completely too.
>
>
> Hamish
>
>
>
>      
>
>
>  

_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user