[GRASS-user] Re:Using v.colors in WinGRASS

well, please keep in mind that we have not enough manpower to maintain
the same scripts in two languages. So please developers, maintain
primary Python scripts! Don’t waste your time with GRASS 6. Forget
about bash scripts. Windows users please consider some problems using
GRASS 6 because of bash scripts which are pain on Windows.

Hey… I’m working on winGRASS and, as long as v.colors works I’m ok. As a matter of fact I’0m using only Py Scripts on 6.4.0 and I cannot complain (except on the Windows-paths inputs). So, please, how can I put v.colors working on 6.4.1? (I really need that). any suggestion?
Luisa

Hi,

2010/11/14 Luisa Peña <luisapena1979@gmail.com>:

well, please keep in mind that we have not enough manpower to maintain
the same scripts in two languages. So please developers, maintain
primary Python scripts! Don't waste your time with GRASS 6. Forget
about bash scripts. Windows users please consider some problems using
GRASS 6 because of bash scripts which are pain on Windows.

Hey... I'm working on winGRASS and, as long as v.colors works I'm ok. As a
matter of fact I'0m using only Py Scripts on 6.4.0 and I cannot complain
(except on the Windows-paths inputs). So, please, how can I put v.colors
working on 6.4.1? (I really need that). any suggestion?

download manually Python scripts v.colors [1] and v.db.addcolumn [2]
and integrate them to your GRASS 6 installation. You have of course
more possibilities

1) use developers GRASS 7 or wait for GRASS 7.0 (~year)
2) fix Bash scripts on Windows (keep in mind that these fixes will
disappear in GRASS7 because it uses Python)
3) force developers to replace bash scripts with Python in GRASS 6

Martin

[1] https://svn.osgeo.org/grass/grass/trunk/scripts/v.colors/
[2] https://svn.osgeo.org/grass/grass/trunk/scripts/v.db.addcolumn/

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hello Martin

download manually Python scripts v.colors [1] and v.db.addcolumn [2]
and integrate them to your GRASS 6 installation. You have of course
more possibilities

In This case, these are python scripts right? Ok I will give a try.

  1. fix Bash scripts on Windows (keep in mind that these fixes will
    disappear in GRASS7 because it uses Python)

But, as far as I can see from this discussion, there is no FIX for this

  1. force developers to replace bash scripts with Python in GRASS 6

Hi,

2010/11/15 Luisa Peña <luisapena1979@gmail.com>:

download manually Python scripts v.colors [1] and v.db.addcolumn [2]
and integrate them to your GRASS 6 installation. You have of course
more possibilities

In This case, these are python scripts right? Ok I will give a try.

they should be OK, if not, it's *much more* easier to fix them.

2) fix Bash scripts on Windows (keep in mind that these fixes will
disappear in GRASS7 because it uses Python)

But, as far as I can see from this discussion, there is no FIX for this

Read as: you fix them or convince someone to do it.

Martin

--
Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa

Hi
Ok here it goes.
1- I needed to remove .py from v.colors and v.db.addcolumn scripts in order to run them in GRASS6.4.0.
2- v.info teste12

±---------------------------------------------------------------------------+
(…)
| Type of Map: vector (level: 2) |
| |
| Number of points: 0 Number of areas: 87 |
| Number of lines: 0 Number of islands: 28 |
| Number of boundaries: 164 Number of faces: 0 |
| Number of centroids: 87 Number of kernels: 0 |
| |
| Map is 3D: No |
| Number of dblinks: 1 |
| |
| Projection: Universal Transverse Mercator (zone 0) |
| N: 9332730.901707 S: 9315930.306024 |
| E: 657285.028897 W: 631785.609702 |
| |
| Digitization threshold: 0 |
| Comments: |
| |
±---------------------------------------------------------------------------+

3- If I select an area I get this info:

East: 638957.32135
North: 9327883.257322
Map: teste12
Mapset: Regional
Type: Centroid
Id: 201
Layer: 1
Category: 2
Driver: dbf
Database: C:\ISdata/Brazil/Regional/dbf/
Table: teste12
Key column: cat
cat : 2
label :

4- then I did:

v.colors map=teste12@Regional column=cat color=aspect
And I got:
ERROR: Column is not numeric
This is weird because, I get CATEGORY values.

5- Then I decided to add GRASSRGB column like this

v.db.addcolumn map=teste11@Regional columns=GRASSRGB varchar(11)
and I got the following error
-: No such file or directory
ERROR: Unable to add column <GRASSRGB varchar(11)>.

Can anybody give me an hand on this?
Thanks

2010/11/15 Martin Landa <landa.martin@gmail.com>

Hi,

2010/11/15 Luisa Peña <luisapena1979@gmail.com>:

download manually Python scripts v.colors [1] and v.db.addcolumn [2]
and integrate them to your GRASS 6 installation. You have of course
more possibilities

In This case, these are python scripts right? Ok I will give a try.

they should be OK, if not, it’s much more easier to fix them.

  1. fix Bash scripts on Windows (keep in mind that these fixes will
    disappear in GRASS7 because it uses Python)

But, as far as I can see from this discussion, there is no FIX for this

Read as: you fix them or convince someone to do it.

Martin


Martin Landa <landa.martin gmail.com> * http://geo.fsv.cvut.cz/~landa