[GRASS-user] v.clean infinite loop? bug?

This is the file I'm trying to clean http://filebin.ca/gfnoza/highway.tar.bz2
(the shp file).
The command I try running is:
v.clean input=chicago output=chicago2 type=line tool=snap,break thresh=3,3
--overwrite
I thought this was a really long operation, so I stopped it, and ran a
simpler version:
v.clean input=chicago output=chicago2 type=line tool=snap thresh=3
--overwrite
This also seems to be in an infinite loop (running 252 minutes now):
8318 tom 20 0 202m 120m 6024 R 100 6.0 252:06.24 v.clean
Can anyone help me? I did nothing special to import the shp file.
The shapefile in the filebin.ca link is a map I created using only the
chicago area from
http://downloads.cloudmade.com/north_america/united_states/illinois
Direct link:
http://downloads.cloudmade.com/north_america/united_states/illinois/illinois.shapefiles.zip

Anyone have any suggestions? Is there another way I can clean the shp file?
--
View this message in context: http://n2.nabble.com/v-clean-infinite-loop-bug-tp3970993p3970993.html
Sent from the Grass - Users mailing list archive at Nabble.com.

tomd123 wrote:

This is the file I'm trying to clean
http://filebin.ca/gfnoza/highway.tar.bz2 (the shp file).
The command I try running is:
v.clean input=chicago output=chicago2 type=line tool=snap,break thresh=3,3
--overwrite
I thought this was a really long operation, so I stopped it, and ran a
simpler version:
v.clean input=chicago output=chicago2 type=line tool=snap thresh=3
--overwrite
This also seems to be in an infinite loop (running 252 minutes now):
8318 tom 20 0 202m 120m 6024 R 100 6.0 252:06.24 v.clean
Can anyone help me? I did nothing special to import the shp file.
The shapefile in the filebin.ca link is a map I created using only the
chicago area from
http://downloads.cloudmade.com/north_america/united_states/illinois
Direct link:
http://downloads.cloudmade.com/north_america/united_states/illinois/illinois.shapefiles.zip

Anyone have any suggestions? Is there another way I can clean the shp
file?

Nevermind. I finally got it working with v.clean input=chicago
output=chicago2 type=line tool=break --overwrite the only thing different is
the threshold which is 0 (default), rather then 3. May have been just a
wrong parameter, but thresh=3 the command took longer then 400minutes (I
stopped it) and the command with thresh=0 took a short amount of time, maybe
a minute to several?
--
View this message in context: http://n2.nabble.com/v-clean-infinite-loop-bug-tp3970993p3971412.html
Sent from the Grass - Users mailing list archive at Nabble.com.

tomd123 wrote:

tomd123 wrote:
  

This is the file I'm trying to clean
http://filebin.ca/gfnoza/highway.tar.bz2 (the shp file).
The command I try running is:
v.clean input=chicago output=chicago2 type=line tool=snap,break thresh=3,3
--overwrite
    

Threshold for tool=snap is maximum distance to another vertex in map units, degrees for latlon. 3 degrees as threshold is too large, maybe this was the reason for the long time? Threshold does not apply for tool=break, if given it is ignored.

Markus M

I thought this was a really long operation, so I stopped it, and ran a
simpler version:
v.clean input=chicago output=chicago2 type=line tool=snap thresh=3
--overwrite
This also seems to be in an infinite loop (running 252 minutes now):
8318 tom 20 0 202m 120m 6024 R 100 6.0 252:06.24 v.clean
Can anyone help me? I did nothing special to import the shp file.
The shapefile in the filebin.ca link is a map I created using only the
chicago area from
http://downloads.cloudmade.com/north_america/united_states/illinois
Direct link:
http://downloads.cloudmade.com/north_america/united_states/illinois/illinois.shapefiles.zip

Anyone have any suggestions? Is there another way I can clean the shp
file?

Nevermind. I finally got it working with v.clean input=chicago
output=chicago2 type=line tool=break --overwrite the only thing different is
the threshold which is 0 (default), rather then 3. May have been just a
wrong parameter, but thresh=3 the command took longer then 400minutes (I
stopped it) and the command with thresh=0 took a short amount of time, maybe
a minute to several?
  

On Mon, Nov 9, 2009 at 7:10 AM, Markus Metz
<markus.metz.giswork@googlemail.com> wrote:

tomd123 wrote:

...

Threshold for tool=snap is maximum distance to another vertex in map units,
degrees for latlon. 3 degrees as threshold is too large, maybe this was the
reason for the long time? Threshold does not apply for tool=break, if given
it is ignored.

[tool=break]
Uhm, should the module say so? Or is that cluttering of messages?

Markus

Markus Neteler wrote:

On Mon, Nov 9, 2009 at 7:10 AM, Markus Metz
<markus.metz.giswork@googlemail.com> wrote:
  

tomd123 wrote:
    

...
  

Threshold for tool=snap is maximum distance to another vertex in map units,
degrees for latlon. 3 degrees as threshold is too large, maybe this was the
reason for the long time? Threshold does not apply for tool=break, if given
it is ignored.
    
[tool=break]
Uhm, should the module say so? Or is that cluttering of messages?
  

It says so in the manual, and v.clean prints at the beginning a summary of the tools and thresholds invoked. Not enough?

I find the currently printed summary including thresholds helpful, just to make sure every tool is used with the threshold intended, and it's quick and easy to figure out where a threshold value may be missing.

Markus M