# [QGIS-es] Problemas con procesos GRASS

Pablo Schweitzer pablosarg en gmail.com
Sab Sep 24 13:57:45 PDT 2016

```Hola
Necesito calcular distancias entre puntos usando una red de rutas, por lo
que estoy explorando las distintas herramientas v.net ... pero no logro
entender como funcionan. Por ejemplo el v.net.distance resulta en:

Algoritmo v.net.distance - Computes shortest distance via the network
between the given sets of features. comenzando...

g.proj -c proj4="+proj=tmerc +lat_0=-90 +lon_0=-60 +k=1 +x_0=5500000 +y_0=0
+ellps=WGS84 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"

v.in.ogr min_area=0.0001 snap=-1
input="/tmp/processingbf3a2cb8557f4ee8af785f1fed0b4a81/edabaf3427c34746b96bc4040bd059fc"
layer=RedVial output=tmp14747504593747 --overwrite -o

v.in.ogr min_area=0.0001 snap=-1
input="/tmp/processingbf3a2cb8557f4ee8af785f1fed0b4a81/85f544717fb54897b172ba6ba8a25313"

v.in.ogr min_area=0.0001 snap=-1

g.region n=4884023.19787 s=4161932.073 e=5065588.72624 w=4553392.96446
res=100

v.net -s input=tmp14747504593747 points=tmp14747504593848
out=tmp14747504593850 op=connect threshold=50 arc_layer=1 node_layer=2

v.db.connect -o map=tmp14747504593850 table=tmp14747504593848 layer=2

v.net -s input=tmp14747504593850 points=tmp14747504593849
out=tmp14747504593851 op=connect threshold=50 arc_layer=1 node_layer=3

v.db.connect -o map=tmp14747504593851 table=tmp14747504593849 layer=3

v.net.distance input=tmp14747504593851 arc_type=line,boundary to_type=point
from_layer="2" to_layer="3" output=outputb5f43166300d412ca1c300cf7a07d550
--overwrite

v.out.ogr -s -e input=outputb5f43166300d412ca1c300cf7a07d550 type=auto
output="/tmp/processingbf3a2cb8557f4ee8af785f1fed0b4a81/f58746b6f48c4f44b3b7a317ee0f37a4"
format=ESRI_Shapefile output_layer=output --overwrite

Iniciando GRASS GIS...

Ejecutando '/home/pablo/.qgis2//processing/grass7_batch_job.sh'...

Default region was updated to the new projection, but if you have multiple
mapsets `g.region -d` should be run in each to update the region from the
default

Projection information updated

ADVERTENCIA: El datum no es reconocido por GRASS y no se han encontrado
parÃ¡metros.

Over-riding projection check

Check if OGR layer contains polygons...

0..2..4..6..8..10..12..14..16..18..20..22..24..26..28..30..32..34..36..38..40..42..44..46..48..50..52..54..56..58..60..62..64..66..68..70..72..74..76..78..80..82..84..86..88..90..92..94..96..98..100

Importing 3434 features (OGR layer )...

0..2..4..6..8..10..12..14..16..18..20..22..24..26..28..30..32..34..36..38..40..42..44..46..48..50..52..54..56..58..60..62..64..66..68..70..72..74..76..78..80..82..84..86..88..90..92..94..96..98..100

-----------------------------------------------------

Construyendo topologÃ­a para el mapa vectorial ...

Registrando primitivas...

3436 primitives registered

54390 vertices registered

Construyendo Ã¡reas.

0..2..4..6..8..10..12..14..16..18..20..22..24..26..28..30..32..34..36..38..40..42..44..46..48..50..52..54..56..58..60..62..64..66..68..70..72..74..76..78..80..82..84..86..88..90..92..94..96..98..100

0 areas built

0 isles built

1..3..5..7..9..11..13..15..17..19..21..23..25..27..29..31..33..35..37..39..41..43..45..47..49..51..53..55..57..59..61..63..65..67..69..71..73..75..77..79..81..83..85..87..89..91..93..95..97..99..100

NÃºmero de nodos: 2610.

NÃºmero de primitivas: 3436.

NÃºmero de puntos: 0.

NÃºmero de lÃ­neas: 3436.

NÃºmero de contornos: 0.

NÃºmero de centroides (baricentros): 0.

NÃºmero de Ã¡reas: 0.

NÃºmero de Ã­slas: 0.

ADVERTENCIA: El datum no es reconocido por GRASS y no se han encontrado
parÃ¡metros.

Over-riding projection check

Check if OGR layer contains polygons...

0..20..40..60..80..100

Importing 5 features (OGR layer )...

0..20..40..60..80..100

-----------------------------------------------------

Construyendo topologÃ­a para el mapa vectorial ...

Registrando primitivas...

5 primitives registered

5 vertices registered

Construyendo Ã¡reas.

0..20..40..60..80..100

0 areas built

0 isles built

20..40..60..80..100

NÃºmero de nodos: 0.

NÃºmero de primitivas: 5.

NÃºmero de puntos: 5.

NÃºmero de lÃ­neas: 0.

NÃºmero de contornos: 0.

NÃºmero de centroides (baricentros): 0.

NÃºmero de Ã¡reas: 0.

NÃºmero de Ã­slas: 0.

ADVERTENCIA: El datum no es reconocido por GRASS y no se han encontrado
parÃ¡metros.

Over-riding projection check

Check if OGR layer contains polygons...

0..100

Importing 1 features (OGR layer )...

0..100

-----------------------------------------------------

Construyendo topologÃ­a para el mapa vectorial ...

Registrando primitivas...

One primitive registered

One vertex registered

Construyendo Ã¡reas.

0..100

0 areas built

0 isles built

100

NÃºmero de nodos: 0.

NÃºmero de primitivas: 1.

NÃºmero de puntos: 1.

NÃºmero de lÃ­neas: 0.

NÃºmero de contornos: 0.

NÃºmero de centroides (baricentros): 0.

NÃºmero de Ã¡reas: 0.

NÃºmero de Ã­slas: 0.

Copying features...

2..5..8..11..14..17..20..23..26..29..32..35..38..41..44..47..50..53..56..59..62..65..68..71..74..77..80..83..86..89..92..95..98..100

Construyendo topologÃ­a para el mapa vectorial ...

Registrando primitivas...

3436 primitives registered

54390 vertices registered

NÃºmero de nodos: 2610.

NÃºmero de primitivas: 3436.

NÃºmero de puntos: 0.

NÃºmero de lÃ­neas: 3436.

NÃºmero de contornos: 0.

NÃºmero de centroides (baricentros): 0.

NÃºmero de Ã¡reas: -

NÃºmero de Ã­slas: -

Copying attributes...

Construyendo topologÃ­a para el mapa vectorial ...

Registrando primitivas...

3436 primitives registered

54390 vertices registered

Construyendo Ã¡reas.

0..2..4..6..8..10..12..14..16..18..20..22..24..26..28..30..32..34..36..38..40..42..44..46..48..50..52..54..56..58..60..62..64..66..68..70..72..74..76..78..80..82..84..86..88..90..92..94..96..98..100

0 areas built

0 isles built

1..3..5..7..9..11..13..15..17..19..21..23..25..27..29..31..33..35..37..39..41..43..45..47..49..51..53..55..57..59..61..63..65..67..69..71..73..75..77..79..81..83..85..87..89..91..93..95..97..99..100

NÃºmero de nodos: 2610.

NÃºmero de primitivas: 3436.

NÃºmero de puntos: 0.

NÃºmero de lÃ­neas: 3436.

NÃºmero de contornos: 0.

NÃºmero de centroides (baricentros): 0.

NÃºmero de Ã¡reas: 0.

NÃºmero de Ã­slas: 0.

v.net completo. 0 lines (network arcs) written to output.

The table is now part of vector map and may be deleted or overwritten by
GRASS modules

Select privileges were granted on the table

Copying features...

2..5..8..11..14..17..20..23..26..29..32..35..38..41..44..47..50..53..56..59..62..65..68..71..74..77..80..83..86..89..92..95..98..100

Construyendo topologÃ­a para el mapa vectorial ...

Registrando primitivas...

3436 primitives registered

54390 vertices registered

NÃºmero de nodos: 2610.

NÃºmero de primitivas: 3436.

NÃºmero de puntos: 0.

NÃºmero de lÃ­neas: 3436.

NÃºmero de contornos: 0.

NÃºmero de centroides (baricentros): 0.

NÃºmero de Ã¡reas: -

NÃºmero de Ã­slas: -

Copying attributes...

Construyendo topologÃ­a para el mapa vectorial ...

Registrando primitivas...

3436 primitives registered

54390 vertices registered

Construyendo Ã¡reas.

0..2..4..6..8..10..12..14..16..18..20..22..24..26..28..30..32..34..36..38..40..42..44..46..48..50..52..54..56..58..60..62..64..66..68..70..72..74..76..78..80..82..84..86..88..90..92..94..96..98..100

0 areas built

0 isles built

1..3..5..7..9..11..13..15..17..19..21..23..25..27..29..31..33..35..37..39..41..43..45..47..49..51..53..55..57..59..61..63..65..67..69..71..73..75..77..79..81..83..85..87..89..91..93..95..97..99..100

NÃºmero de nodos: 2610.

NÃºmero de primitivas: 3436.

NÃºmero de puntos: 0.

NÃºmero de lÃ­neas: 3436.

NÃºmero de contornos: 0.

NÃºmero de centroides (baricentros): 0.

NÃºmero de Ã¡reas: 0.

NÃºmero de Ã­slas: 0.

v.net completo. 0 lines (network arcs) written to output.

The table is now part of vector map and may be deleted or overwritten by
GRASS modules

Select privileges were granted on the table

ERROR: No 'from' features selected. Please check options 'from_layer',
'from_where', 'from_cats'.

ADVERTENCIA: Unable to open vector map on level 2. Try to rebuild vector
topology with v.build.

ERROR: Unable to open vector map

La ejecuciÃ³n de '/home/pablo/.qgis2//processing/grass7_batch_job.sh' ha

Cleaning up temporary files...

Iniciando GRASS GIS...

Ejecutando '/home/pablo/.qgis2//processing/grass7_batch_job.sh'...

ADVERTENCIA: Unable to open vector map on level 2. Try to rebuild vector
topology with v.build.

ERROR: Unable to open vector map

La ejecuciÃ³n de '/home/pablo/.qgis2//processing/grass7_batch_job.sh' ha

Cleaning up temporary files...

Converting outputs

Cargando las capas resultantes

The following layers were not correctly generated.

- Network_Distance

of the algorithm

Algunas sugerencia o un buen tutorial apto para torpes?

Gracias

Pablo
------------ próxima parte ------------