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

Markus Metz markus.metz.giswork at googlemail.com
Mon Nov 9 01:10:02 EST 2009


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?
>   


More information about the grass-user mailing list