[GRASS-dev] v.line.center port to G7

Luca Delucchi lucadeluge at gmail.com
Wed Jun 19 03:27:13 PDT 2013


On 19 June 2013 10:37, Johannes Radinger <johannesradinger at gmail.com> wrote:
> Hi,
>

Hi

> As I'd like to use the v.line.center add-on also in G7, I though about
> porting
> the tool. I think there are just minor changes needed to adapt the parameter
> names
> of the used modules v.to.db and v.segment to the newer G7.
>
> The add-on is a shell script. The folder of the tool contains a Makefile and
> the html description.
> The make file contains:
>
> MODULE_TOPDIR = ../..
>
> PGM = v.line.center
>
> include $(MODULE_TOPDIR)/include/Make/Script.make
>
> default: script
>
> The Makefile in the /scripts folder has also been adapted and the
> v.line.center subdir has
> been added. However when I try to run make I get following error:
>
> GRASS GIS 7.0.svn 56779M compilation log
> --------------------------------------------------
> Started compilation: Wed Jun 19 09:51:21 CEST 2013
> --
> Errors in:
> /usr/local/src/grass7_trunk/scripts/v.line.center
> --
> In case of errors please change into the directory with error and run
> 'make'.
> If you get multiple errors, you need to deal with them in the order they
> appear in the error log. If you get an error building a library, you will
> also get errors from anything which uses the library.
> --
> Finished compilation: Wed Jun 19 09:51:38 CEST 2013
> make: *** [default] Error 1
> radinger at grassgis:/usr/local/src/grass7_trunk$ cd
> /usr/local/src/grass7_trunk/scripts/v.line.center/
> radinger at grassgis:/usr/local/src/grass7_trunk/scripts/v.line.center$ make
> make: *** No rule to make target
> `/usr/local/src/grass7_trunk/dist.i686-pc-linux-gnu/scripts/v.line.center',
> needed by `script'.  Stop.
>
> As I could not find any other shell script in that folder I am not sure if
> the problem is the shell script in general? Attached the slightly adapted
> script (v.to.db, v.segment).
>

bash it doesn't work more with grass7, you have to convert it in python ;-)

> /Johannes
>

--
ciao
Luca

http://gis.cri.fmach.it/delucchi/
www.lucadelu.org


More information about the grass-dev mailing list