1
|
Algorithm v.net.distance - Computes shortest distance via the network between the given sets of features. starting...
|
2
|
g.proj -c proj4="+proj=tmerc +lat_0=39.66825833333333 +lon_0=-8.133108333333334 +k=1 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"
|
3
|
v.in.ogr min_area=0.0001 snap=-1 input="D:\SIG\dados_exercicio_analise_redes\dados_exercicio" layer=rede_viaria_distrito_porto_break output=tmp1548434142196 --overwrite -o
|
4
|
v.in.ogr min_area=0.0001 snap=-1 input="D:\SIG\dados_exercicio_analise_redes\dados_exercicio" layer=origem output=tmp1548434142197 --overwrite -o
|
5
|
v.in.ogr min_area=0.0001 snap=-1 input="D:\SIG\dados_exercicio_analise_redes\dados_exercicio" layer=destino output=tmp1548434142198 --overwrite -o
|
6
|
g.region n=200265.166245 s=149098.806787 e=21170.1340706 w=-54560.428457 res=100
|
7
|
v.net -s input=tmp1548434142196 points=tmp1548434142197 out=tmp1548434142199 op=connect threshold=50 arc_layer=1 node_layer=2
|
8
|
v.db.connect -o map=tmp1548434142199 table=tmp1548434142197 layer=2
|
9
|
v.net -s input=tmp1548434142199 points=tmp1548434142198 out=tmp15484341421910 op=connect threshold=50 arc_layer=1 node_layer=3
|
10
|
v.db.connect -o map=tmp15484341421910 table=tmp1548434142198 layer=3
|
11
|
v.net.distance input="tmp15484341421910" arc_type=line to_type=point arc_column="dist_duplo" arc_backward_column="dist_unico" from_layer="2" to_layer="3" output="output8df48fb12fc54499af89b4d27d5d4ab5" --overwrite
|
12
|
v.out.ogr -s -e input=output8df48fb12fc54499af89b4d27d5d4ab5 type=line output="C:\Users\PEDRO~1.VEN\AppData\Local\Temp\processing87ba215f31944c14a0caf114e3623877\a8bea1cd64aa4c8d92d60aad792298ca" format=ESRI_Shapefile output_layer=output --overwrite
|
13
|
|
14
|
C:\OSGeo4W64\bin>set HOME=C:\Users\pedro.venancio
|
15
|
|
16
|
C:\OSGeo4W64\bin>set GISRC=C:\Users\pedro.venancio\.qgis2\\processing\processing.gisrc7
|
17
|
|
18
|
C:\OSGeo4W64\bin>set WINGISBASE=C:\OSGeo4W64\apps\grass\grass-7.4.4
|
19
|
|
20
|
C:\OSGeo4W64\bin>set GISBASE=C:\OSGeo4W64\apps\grass\grass-7.4.4
|
21
|
|
22
|
C:\OSGeo4W64\bin>set GRASS_PROJSHARE=C:\OSGeo4W64\apps\grass\grass-7.4.4\share\proj
|
23
|
|
24
|
C:\OSGeo4W64\bin>set GRASS_MESSAGE_FORMAT=plain
|
25
|
|
26
|
C:\OSGeo4W64\bin>if "" == "" set PATH=C:\OSGeo4W64\apps\grass\grass-7.4.4\bin;C:\OSGeo4W64\apps\grass\grass-7.4.4\lib;C:\OSGEO4~1\apps\qgis-ltr-dev\bin;C:\OSGEO4~1\apps\grass\grass-7.4.4\lib;C:\OSGEO4~1\apps\grass\grass-7.4.4\bin;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program Files\RStudio\bin;C:\OSGEO4~1\apps\Python27\lib\site-packages\numpy\.libs
|
27
|
|
28
|
C:\OSGeo4W64\bin>if not "" == "" set PATH=C:\OSGeo4W64\apps\grass\grass-7.4.4\bin;C:\OSGeo4W64\apps\grass\grass-7.4.4\lib;;C:\OSGeo4W64\apps\grass\grass-7.4.4\bin;C:\OSGeo4W64\apps\grass\grass-7.4.4\lib;C:\OSGEO4~1\apps\qgis-ltr-dev\bin;C:\OSGEO4~1\apps\grass\grass-7.4.4\lib;C:\OSGEO4~1\apps\grass\grass-7.4.4\bin;C:\OSGEO4~1\apps\Python27\Scripts;C:\OSGEO4~1\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\system32\WBem;C:\OSGEO4~1\apps\msys\bin;C:\Program Files\RStudio\bin;C:\OSGEO4~1\apps\Python27\lib\site-packages\numpy\.libs
|
29
|
|
30
|
C:\OSGeo4W64\bin>set GRASS_VERSION=7.4.4
|
31
|
|
32
|
C:\OSGeo4W64\bin>if not "en_US" == "" goto langset
|
33
|
|
34
|
C:\OSGeo4W64\bin>set PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY
|
35
|
|
36
|
C:\OSGeo4W64\bin>set PYTHONPATH=C:\OSGeo4W64\apps\Python27;C:\OSGeo4W64\apps\grass\grass-7.4.4\etc\python;C:\OSGeo4W64\apps\grass\grass-7.4.4\etc\wxpython\n
|
37
|
|
38
|
C:\OSGeo4W64\bin>g.gisenv.exe set="MAPSET=PERMANENT"
|
39
|
|
40
|
C:\OSGeo4W64\bin>g.gisenv.exe set="LOCATION=temp_location"
|
41
|
|
42
|
C:\OSGeo4W64\bin>g.gisenv.exe set="LOCATION_NAME=temp_location"
|
43
|
|
44
|
C:\OSGeo4W64\bin>g.gisenv.exe set="GISDBASE=C:\Users\PEDRO~1.VEN\AppData\Local\Temp\processing87ba215f31944c14a0caf114e3623877\grassdata"
|
45
|
|
46
|
C:\OSGeo4W64\bin>g.gisenv.exe set="GRASS_GUI=text"
|
47
|
|
48
|
C:\OSGeo4W64\bin>g.proj -c proj4="+proj=tmerc +lat_0=39.66825833333333 +lon_0=-8.133108333333334 +k=1 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs"
|
49
|
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
|
50
|
Projection information updated
|
51
|
|
52
|
C:\OSGeo4W64\bin>v.in.ogr min_area=0.0001 snap=-1 input="D:\SIG\dados_exercicio_analise_redes\dados_exercicio" layer=rede_viaria_distrito_porto_break output=tmp1548434142196 --overwrite -o
|
53
|
Over-riding projection check
|
54
|
Check if OGR layer contains polygons...
|
55
|
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
|
56
|
Creating attribute table for layer ...
|
57
|
Importing 94621 features (OGR layer )...
|
58
|
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
|
59
|
-----------------------------------------------------
|
60
|
Building topology for vector map ...
|
61
|
Registering primitives...
|
62
|
10000..20000..30000..40000..50000..60000..70000..80000..90000..
|
63
|
94621 primitives registered
|
64
|
484198 vertices registered
|
65
|
Building areas...
|
66
|
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
|
67
|
0 areas built
|
68
|
0 isles built
|
69
|
Attaching islands...
|
70
|
Attaching centroids...
|
71
|
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
|
72
|
Number of nodes: 70208
|
73
|
Number of primitives: 94621
|
74
|
Number of points: 0
|
75
|
Number of lines: 94621
|
76
|
Number of boundaries: 0
|
77
|
Number of centroids: 0
|
78
|
Number of areas: 0
|
79
|
Number of isles: 0
|
80
|
|
81
|
C:\OSGeo4W64\bin>v.in.ogr min_area=0.0001 snap=-1 input="D:\SIG\dados_exercicio_analise_redes\dados_exercicio" layer=origem output=tmp1548434142197 --overwrite -o
|
82
|
Over-riding projection check
|
83
|
Check if OGR layer contains polygons...
|
84
|
0..100
|
85
|
Creating attribute table for layer ...
|
86
|
Importing 1 features (OGR layer )...
|
87
|
0..100
|
88
|
-----------------------------------------------------
|
89
|
Building topology for vector map ...
|
90
|
Registering primitives...
|
91
|
|
92
|
One primitive registered
|
93
|
One vertex registered
|
94
|
Building areas...
|
95
|
0..100
|
96
|
0 areas built
|
97
|
0 isles built
|
98
|
Attaching islands...
|
99
|
Attaching centroids...
|
100
|
100
|
101
|
Number of nodes: 0
|
102
|
Number of primitives: 1
|
103
|
Number of points: 1
|
104
|
Number of lines: 0
|
105
|
Number of boundaries: 0
|
106
|
Number of centroids: 0
|
107
|
Number of areas: 0
|
108
|
Number of isles: 0
|
109
|
|
110
|
C:\OSGeo4W64\bin>v.in.ogr min_area=0.0001 snap=-1 input="D:\SIG\dados_exercicio_analise_redes\dados_exercicio" layer=destino output=tmp1548434142198 --overwrite -o
|
111
|
Over-riding projection check
|
112
|
Check if OGR layer contains polygons...
|
113
|
0..100
|
114
|
Creating attribute table for layer ...
|
115
|
Importing 1 features (OGR layer )...
|
116
|
0..100
|
117
|
-----------------------------------------------------
|
118
|
Building topology for vector map ...
|
119
|
Registering primitives...
|
120
|
|
121
|
One primitive registered
|
122
|
One vertex registered
|
123
|
Building areas...
|
124
|
0..100
|
125
|
0 areas built
|
126
|
0 isles built
|
127
|
Attaching islands...
|
128
|
Attaching centroids...
|
129
|
100
|
130
|
Number of nodes: 0
|
131
|
Number of primitives: 1
|
132
|
Number of points: 1
|
133
|
Number of lines: 0
|
134
|
Number of boundaries: 0
|
135
|
Number of centroids: 0
|
136
|
Number of areas: 0
|
137
|
Number of isles: 0
|
138
|
|
139
|
C:\OSGeo4W64\bin>g.region n=200265.166245 s=149098.806787 e=21170.1340706 w=-54560.428457 res=100
|
140
|
|
141
|
C:\OSGeo4W64\bin>v.net -s input=tmp1548434142196 points=tmp1548434142197 out=tmp1548434142199 op=connect threshold=50 arc_layer=1 node_layer=2
|
142
|
Copying features...
|
143
|
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
|
144
|
Building topology for vector map ...
|
145
|
Registering primitives...
|
146
|
10000..20000..30000..40000..50000..60000..70000..80000..90000..
|
147
|
94621 primitives registered
|
148
|
484198 vertices registered
|
149
|
Number of nodes: 70208
|
150
|
Number of primitives: 94621
|
151
|
Number of points: 0
|
152
|
Number of lines: 94621
|
153
|
Number of boundaries: 0
|
154
|
Number of centroids: 0
|
155
|
Number of areas: -
|
156
|
Number of isles: -
|
157
|
Copying attributes...
|
158
|
Building topology for vector map ...
|
159
|
Registering primitives...
|
160
|
10000..20000..30000..40000..50000..60000..70000..80000..90000..
|
161
|
94623 primitives registered
|
162
|
484201 vertices registered
|
163
|
Building areas...
|
164
|
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
|
165
|
0 areas built
|
166
|
0 isles built
|
167
|
Attaching islands...
|
168
|
Attaching centroids...
|
169
|
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
|
170
|
Number of nodes: 70209
|
171
|
Number of primitives: 94623
|
172
|
Number of points: 1
|
173
|
Number of lines: 94622
|
174
|
Number of boundaries: 0
|
175
|
Number of centroids: 0
|
176
|
Number of areas: 0
|
177
|
Number of isles: 0
|
178
|
v.net complete. 1 lines (network arcs) written to output.
|
179
|
|
180
|
C:\OSGeo4W64\bin>v.db.connect -o map=tmp1548434142199 table=tmp1548434142197 layer=2
|
181
|
The table is now part of vector map and may be deleted or overwritten by GRASS modules
|
182
|
Select privileges were granted on the table
|
183
|
|
184
|
C:\OSGeo4W64\bin>v.net -s input=tmp1548434142199 points=tmp1548434142198 out=tmp15484341421910 op=connect threshold=50 arc_layer=1 node_layer=3
|
185
|
Copying features...
|
186
|
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
|
187
|
Building topology for vector map ...
|
188
|
Registering primitives...
|
189
|
10000..20000..30000..40000..50000..60000..70000..80000..90000..
|
190
|
94623 primitives registered
|
191
|
484201 vertices registered
|
192
|
Number of nodes: 70209
|
193
|
Number of primitives: 94623
|
194
|
Number of points: 1
|
195
|
Number of lines: 94622
|
196
|
Number of boundaries: 0
|
197
|
Number of centroids: 0
|
198
|
Number of areas: -
|
199
|
Number of isles: -
|
200
|
Copying attributes...
|
201
|
Building topology for vector map ...
|
202
|
Registering primitives...
|
203
|
10000..20000..30000..40000..50000..60000..70000..80000..90000..
|
204
|
94625 primitives registered
|
205
|
484204 vertices registered
|
206
|
Building areas...
|
207
|
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
|
208
|
0 areas built
|
209
|
0 isles built
|
210
|
Attaching islands...
|
211
|
Attaching centroids...
|
212
|
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
|
213
|
Number of nodes: 70210
|
214
|
Number of primitives: 94625
|
215
|
Number of points: 2
|
216
|
Number of lines: 94623
|
217
|
Number of boundaries: 0
|
218
|
Number of centroids: 0
|
219
|
Number of areas: 0
|
220
|
Number of isles: 0
|
221
|
v.net complete. 1 lines (network arcs) written to output.
|
222
|
|
223
|
C:\OSGeo4W64\bin>v.db.connect -o map=tmp15484341421910 table=tmp1548434142198 layer=3
|
224
|
The table is now part of vector map and may be deleted or overwritten by GRASS modules
|
225
|
Select privileges were granted on the table
|
226
|
|
227
|
C:\OSGeo4W64\bin>v.net.distance input="tmp15484341421910" arc_type=line to_type=point arc_column="dist_duplo" arc_backward_column="dist_unico" from_layer="2" to_layer="3" output="output8df48fb12fc54499af89b4d27d5d4ab5" --overwrite
|
228
|
Building graph...
|
229
|
Registering arcs...
|
230
|
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
|
231
|
Flattening the graph...
|
232
|
Graph was built
|
233
|
Distances to 'to' features ...
|
234
|
Tracing paths from 'from' features ...
|
235
|
Building topology for vector map ...
|
236
|
Registering primitives...
|
237
|
|
238
|
19 primitives registered
|
239
|
58 vertices registered
|
240
|
Building areas...
|
241
|
0..5..10..15..21..26..31..36..42..47..52..57..63..68..73..78..84..89..94..100
|
242
|
0 areas built
|
243
|
0 isles built
|
244
|
Attaching islands...
|
245
|
Attaching centroids...
|
246
|
5..10..15..21..26..31..36..42..47..52..57..63..68..73..78..84..89..94..100
|
247
|
Number of nodes: 19
|
248
|
Number of primitives: 19
|
249
|
Number of points: 1
|
250
|
Number of lines: 18
|
251
|
Number of boundaries: 0
|
252
|
Number of centroids: 0
|
253
|
Number of areas: 0
|
254
|
Number of isles: 0
|
255
|
|
256
|
C:\OSGeo4W64\bin>v.out.ogr -s -e input=output8df48fb12fc54499af89b4d27d5d4ab5 type=line output="C:\Users\PEDRO~1.VEN\AppData\Local\Temp\processing87ba215f31944c14a0caf114e3623877\a8bea1cd64aa4c8d92d60aad792298ca" format=ESRI_Shapefile output_layer=output --overwrite
|
257
|
WARNING: 1 point found, but not requested to be exported. Verify 'type' parameter.
|
258
|
Exporting 18 features...
|
259
|
5..15..21..31..42..52..63..73..84..94..100
|
260
|
v.out.ogr complete. 18 features (Line String type) written to (ESRI_Shapefile format).
|
261
|
|
262
|
C:\OSGeo4W64\bin>exit
|
263
|
Converting outputs
|
264
|
Loading resulting layers
|
265
|
Algorithm v.net.distance - Computes shortest distance via the network between the given sets of features. finished
|