I fixed that, however:
1) bpol should be used as first cleaning tool, it does the same as break, but it is faster on clean (identical boundaries) polygons
2) bpol works only with type=boundary, the same break,rmdupl etc.
Radim
Maciek Sieczka wrote:
Try to select the features causing segfault (repeated select half)
Guilty is tool=bpol.
and send it to me.
Please always specify your email. That makes replaying simplier as "Radim Blazek via RT <grass-bugs@intevation.de>" is a black hole.
Maciek
P.S.
Thank you for taking care of this! (Although I'm aware you don't appreciate such "thank yous" too much ;)).Radim
Request Tracker wrote:
this bug's URL: http://intevation.de/rt/webrt?serial_num=3017
-------------------------------------------------------------------------Subject: v.clean segfault
Platform: GNU/Linux/i386
grass obtained from: Trento Italy site
grass binary for platform: Compiled from Sources
GRASS Version: grass-6.0.cvs_src_snapshot_2005_02_12I encounter a segfault with one particular dataset with the following options:
GRASS 6.0.cvs:~ > v.clean input=i output=j type=area err=j_err tool=break,rmdupl,rmdac,bpol,rmarea
+---------------------------------+---------------+
| Tool | Threshold |
+---------------------------------+---------------+
| Break | 0.000000e+00 |
| Remove duplicates | 0.000000e+00 |
| Remove duplicate area centroids | 0.000000e+00 |
| Break polygons | 0.000000e+00 |
| Remove small areas | 0.000000e+00 |
+---------------------------------+---------------+
Copying vector lines ...
--------------------------------------------------
Rebuilding parts of topology ...
Building topology ...
407 primitives registered
Topology was built.
Number of nodes : 329
Number of primitives: 407
Number of points : 0
Number of lines : 0
Number of boundaries: 307
Number of centroids : 100
Number of areas : -
Number of isles : -
--------------------------------------------------
Tool: Break lines at intersections
Intersections: 0
--------------------------------------------------
Tool: Remove duplicates
Duplicates: 0
--------------------------------------------------
Rebuilding parts of topology ...
Building topology ...
Building areas: 100%
100 areas built
22 isles built
Attaching islands: 100%
Attaching centroids: 100%
Topology was built.
Number of nodes : 329
Number of primitives: 407
Number of points : 0
Number of lines : 0
Number of boundaries: 307
Number of centroids : 100
Number of areas : 100
Number of isles : 22
--------------------------------------------------
Tool: Remove duplicate area centroids
Duplicate area centroids: 0
--------------------------------------------------
Tool: Break polygons
Registering points ... 0
All points (vertices): 0
Registered points (unique coordinates): 0
Points marked for break: 0
Breaks: 0Segmentation faultMaciek
-------------------------------------------- Managed by Request Tracker
_______________________________________________
grass5 mailing list
grass5@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass5--- Headers Follow ---
From blazek@itc.it Mon Feb 21 08:40:10 2005
Return-Path: <blazek@itc.it>
Delivered-To: grass-bugs@lists.intevation.de
Received: from mail.intevation.de (aktaia [212.95.126.10])
by lists.intevation.de (Postfix) with ESMTP id D8C54102BCB
for <grass-bugs@lists.intevation.de>; Mon, 21 Feb 2005 08:40:10 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
by mail.intevation.de (Postfix) with ESMTP id 8DF2C36EDF
for <grass-bugs@lists.intevation.de>; Mon, 21 Feb 2005 08:40:10 +0100 (CET)
Received: from mail.itc.it (ns.itc.it [217.77.80.3])
by mail.intevation.de (Postfix) with ESMTP id 1AE4836DC6
for <grass-bugs@intevation.de>; Mon, 21 Feb 2005 08:40:08 +0100 (CET)
Received: from ntmain.itc.it ([10.0.20.40])
by mail.itc.it (8.12.11/8.12.11) with SMTP id j1L7e7IN010683
for <grass-bugs@intevation.de>; Mon, 21 Feb 2005 08:40:07 +0100
Received: from orchestra.itc.it ([10.0.10.11])
by ntmain.itc.it (SMSSMTP 4.0.4.64) with SMTP id M2005022108400618391
for <grass-bugs@intevation.de>; Mon, 21 Feb 2005 08:40:06 +0100
Received: from itc.it (janacek [10.40.0.140])
by orchestra.itc.it (8.12.11/8.12.11) with ESMTP id j1L7e7Ng026616
for <grass-bugs@intevation.de>; Mon, 21 Feb 2005 08:40:07 +0100
Message-ID: <42199054.5050204@itc.it>
Date: Mon, 21 Feb 2005 08:40:04 +0100
From: Radim Blazek <blazek@itc.it>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: Request Tracker <grass-bugs@intevation.de>
Subject: Re: [GRASS5] [bug #3017] (grass) v.clean segfault
References: <20050219130424.66CF2102C28@lists.intevation.de>
In-Reply-To: <20050219130424.66CF2102C28@lists.intevation.de>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Status: No, hits=-4.9 tagged_above=-999.0 required=3.0 tests=BAYES_00
X-Spam-Level:-------------------------------------------- Managed by Request Tracker