[GRASS-user] v.to.rast Segmentation fault

Hi all,
I just installed the grass distribution with version 6.4.0 RC5 on a linux box (Ubuntu 9.10) downloaded from the website. (not cvs)
I'm trying to work with the "v.to.ras" module as a CLI and I'm unsing this command to get some help message:

/usr/local/grass-6.4.0RC5/bin/v.to.rast help

and... the result is a wonderful Segmentation fault.
Does someone has any idea?

Thanks.

--
GP.

On Fri, Nov 27, 2009 at 5:33 PM, Giacomo Piva <piva@meeo.it> wrote:

Hi all,
I just installed the grass distribution with version 6.4.0 RC5 on a linux
box (Ubuntu 9.10) downloaded from the website. (not cvs)
I'm trying to work with the "v.to.ras" module as a CLI and I'm unsing this
command to get some help message:

/usr/local/grass-6.4.0RC5/bin/v.to.rast help

and... the result is a wonderful Segmentation fault.
Does someone has any idea?

Please check
ldd `which v.to.rast`

I suspect that you have GDAL 1.5.x there which apparently
causes problems on Ubuntu (update to 1.6.x helps).

Markus

Hi Markus,
Thanks for your reply.
The current GDAL installed is the version 1.6.0 (released 2008/12/04) and I did run the lddconfig because the libgrass_vect.so was not found.
Since the result of the "not found" ldd is empty, it seems there is't problems with shared libraries.

Do you have any suggestion?

Markus Neteler wrote:

On Fri, Nov 27, 2009 at 5:33 PM, Giacomo Piva <piva@meeo.it> wrote:
  

Hi all,
I just installed the grass distribution with version 6.4.0 RC5 on a linux
box (Ubuntu 9.10) downloaded from the website. (not cvs)
I'm trying to work with the "v.to.ras" module as a CLI and I'm unsing this
command to get some help message:

/usr/local/grass-6.4.0RC5/bin/v.to.rast help

and... the result is a wonderful Segmentation fault.
Does someone has any idea?
    
Please check
ldd `which v.to.rast`

I suspect that you have GDAL 1.5.x there which apparently
causes problems on Ubuntu (update to 1.6.x helps).

Markus

--
Giacomo Piva

MEEO S.r.l.
Via Saragat 9
I-44122 Ferrara, Italy
Tel: +39 0532 1861501
Fax: +39 0532 1861637
http://www.meeo.it

========================================
"ATTENZIONE:le informazioni contenute in questo messaggio sono
da considerarsi confidenziali ed il loro utilizzo è riservato unicamente
al destinatario sopra indicato. Chi dovesse ricevere questo messaggio
per errore è tenuto ad informare il mittente ed a rimuoverlo
definitivamente da ogni supporto elettronico o cartaceo."

"WARNING:This message contains confidential and/or proprietary
information which may be subject to privilege or immunity and which
is intended for use of its addressee only. Should you receive this
message in error, you are kindly requested to inform the sender and
to definitively remove it from any paper or electronic format."

Hi Giacomo,

are you by any chance running this command outside a GRASS session? If grass is running, there is no need to give the full path, typing

v.to.rast help

in the terminal where grass is running is enough. Also, grass should know where to look for libgrass_vect.so, no need to run ldconfig. If you really want to use grass modules outside a standard grass session, see the grass book [1], third edition, page 338, 9.3 Automated usage of GRASS.

Hope that helps,

Markus M

[1] http://www.grassbook.org/

Giacomo Piva wrote:

Hi Markus,
Thanks for your reply.
The current GDAL installed is the version 1.6.0 (released 2008/12/04) and I did run the lddconfig because the libgrass_vect.so was not found.
Since the result of the "not found" ldd is empty, it seems there is't problems with shared libraries.

Do you have any suggestion?

Markus Neteler wrote:

On Fri, Nov 27, 2009 at 5:33 PM, Giacomo Piva <piva@meeo.it> wrote:

Hi all,
I just installed the grass distribution with version 6.4.0 RC5 on a linux
box (Ubuntu 9.10) downloaded from the website. (not cvs)
I'm trying to work with the "v.to.ras" module as a CLI and I'm unsing this
command to get some help message:

/usr/local/grass-6.4.0RC5/bin/v.to.rast help

and... the result is a wonderful Segmentation fault.
Does someone has any idea?
    
Please check
ldd `which v.to.rast`

I suspect that you have GDAL 1.5.x there which apparently
causes problems on Ubuntu (update to 1.6.x helps).

Markus

Hi all,
I have already read and tested how to integrate the GRASS modules on a BASH script as Markus suggested.
I'm running GRASS 6.4RC5 version.

I should convert a shapefile given in the Italian projection system (Gauss-Boaga) into a raster file (GeoTIFF format) at a given resolution.
I have tried to use the v.to.rast module, but it first requires the import module v.in.ogr.
So, I found some troubles in the region defining.

I've tried to set it manually with the command:
g.region s=... n=... e=.. w=..

But the command returns the following error:
ERROR: default region is not set.

I've tried also other solutions, as the command: g.region vect="path/to/file.shp"

But it returns the same error.

Could anyone give me any suggestions?
Thank you.

--
Giacomo

Markus Metz wrote:

Hi Giacomo,

are you by any chance running this command outside a GRASS session? If grass is running, there is no need to give the full path, typing

v.to.rast help

in the terminal where grass is running is enough. Also, grass should know where to look for libgrass_vect.so, no need to run ldconfig. If you really want to use grass modules outside a standard grass session, see the grass book [1], third edition, page 338, 9.3 Automated usage of GRASS.

Hope that helps,

Markus M

[1] http://www.grassbook.org/

Hi list!

How it is possible install add-ons on ubuntu karmic koala?

I downloaded Hydrofoss from add-ons svn repository, and according to the
addons wiki page typed the #make MODULE_TOPDIR=/usr/lib/grass64/
but it returned with this error message: make: *** No rule to make
target `/usr/lib/grass64/include/Make/Dir.make'. Stop.

What should be the solution? (I use the latest svn grass 7.0)

Thanks.

--
Balázs

Szabó Balázs wrote:

How it is possible install add-ons on ubuntu karmic koala?

I downloaded Hydrofoss from add-ons svn repository, and
according to the
addons wiki page typed the #make
MODULE_TOPDIR=/usr/lib/grass64/
but it returned with this error message: make: *** No rule
to make
target `/usr/lib/grass64/include/Make/Dir.make'.
Stop.

What should be the solution? (I use the latest svn grass 7.0)

point MODULE_TOPDIR to the grass 7 top dir not the Ubuntu GRASS
6.4 package one (where you'd also need the grass-dev package).

so

MODULE_TOPDIR=/usr/local/src/grass7-svn/

or wherever you put it.

Hamish

Thanks!

Balazs

2010. 03. 6, szombat keltezéssel 15.35-kor Hamish ezt írta:

Szabó Balázs wrote:
> How it is possible install add-ons on ubuntu karmic koala?
>
> I downloaded Hydrofoss from add-ons svn repository, and
> according to the
> addons wiki page typed the #make
> MODULE_TOPDIR=/usr/lib/grass64/
> but it returned with this error message: make: *** No rule
> to make
> target `/usr/lib/grass64/include/Make/Dir.make'.
> Stop.
>
> What should be the solution? (I use the latest svn grass 7.0)

point MODULE_TOPDIR to the grass 7 top dir not the Ubuntu GRASS
6.4 package one (where you'd also need the grass-dev package).

so

MODULE_TOPDIR=/usr/local/src/grass7-svn/

or wherever you put it.

Hamish