Details Ticket 2034


Comment | Reply | Take | Open


Serial Number 2034
Subject v.in.shape: ERROR: Polygon controller contained error.
Area bug
Queue grass
Requestors hamish_nospam@yahoo.com
Owner none
Status resolved
Last User Contact Mon Feb 5 22:01:05 2007 (2 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Tue Feb 6 07:29:04 2007 (2 yr ago)
Created Wed Jul 23 13:21:31 2003 (5 yr ago)

Transaction History Ticket 2034


Wed, Jul 23 2003 13:21:31    Request created by guest  
Subject: v.in.shape: ERROR: Polygon controller contained error.

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: CVS_source snapshot 19 July 2003

v.in.shape from CVS source snapshot July 19 2003
Linux/i686/RedHat9


When running v.in.shape on a large-ish shape file (15mb), I get the
following error:


GRASS:~ > v.in.shape in=lake_poly.shp scale=50000 verbose=3

WARNING: Log file not specified. Sending messages to 'standard error'

File `lake_poly.shp' is of Type Area (Polygon) with 55721 entries.

Bounds:
W:  1093834.922949, E:  2088890.657221, S:  4749802.598574, N: 6191029.998727.
[...]
      1186982.276431    4938013.152221
      1186972.132724    4938030.668606
      1186972.125677    4938035.477167

++++++++++++++++++++++++++++++++++++++++++++++++++++++

      POLYGON (SHAPE) NUMBER  55716

  Polygon contains 1 outer rings and a total of 0 holes.
  An area point is supplied at   1187008.349075 |   4938058.613332.
  No height co-ordinates are supplied for the vertices.

    Main ring 1 has 0 holes 

++++++++++++++++++++++++++++++++++++++++++++++++++++++

Shape No. 55717: Polygon Shape with 9350 vertices.
  Part 1
      1173392.346227    4941858.726825
      1173391.861858    4941847.103953
      1173391.282877    4941831.573488
[...]
      1157434.648327    4944583.842922
      1157437.859545    4944580.540597
      1157445.987586    4944572.435234
      1157448.195342    4944570.133572
      1157453.814728    4944564.529865
      1157461.630670    4944564.640992
      1157463.534588    4944564.643652
  Part 29
    ERROR: Polygon controller contained error.



FATAL ERROR: There was a problem importing the map.
GRASS: ~>

That's about 1200 vertices into Shape #55717; one of the previous 
Shapes in the same file had over 2300 verticies and worked ok.

plently of memory and disk space to spare.

If I try v.support on the partial result, I get thousands of 
"PNT_TO_AREA failed:" errors, sequentially up to Category 55716.

input file(s) or further tests available upon request.


thanks,
Hamish

hamish_nospam @@ yahoo.com
Wed, Jul 23 2003 13:28:09    Comments added by hbowman  
see also:

http://article.gmane.org/gmane.comp.gis.grass.user/1792
http://article.gmane.org/gmane.comp.gis.grass.user/2035
Wed, Jul 23 2003 13:34:19    Mail sent by neteler@itc.it  
Return-Path <neteler@itc.it>
Delivered-To grass-bugs@lists.intevation.de
Date Wed, 23 Jul 2003 13:33:45 +0200
From Markus Neteler <neteler@itc.it>
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #2034] (grass) v.in.shape: ERROR: Polygon controller contained error.
Message-ID <20030723133345.E569@itc.it>
Mail-Followup-To Request Tracker <grass-bugs@intevation.de>, grass5@grass.itc.it
References <20030723112132.659EE139C0@lists.intevation.de>
Mime-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.2.5.1i
In-Reply-To <20030723112132.659EE139C0@lists.intevation.de>; from grass-bugs@intevation.de on Wed, Jul 23, 2003 at 01:21:32PM +0200
X-Spam-Status No, hits=-5.0 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.55
X-Spam-Level
X-Spam-Checker-Version SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)
On Wed, Jul 23, 2003 at 01:21:32PM +0200, Request Tracker wrote:
> this bug's URL: http://intevation.de/rt/webrt?serial_num=2034
> -------------------------------------------------------------------------
> 
> Subject: v.in.shape: ERROR: Polygon controller contained error.
> 
> Platform: GNU/Linux/i386
> grass obtained from: Mirror of Trento site
> grass binary for platform: Compiled from Sources
> GRASS Version: CVS_source snapshot 19 July 2003
> 
> v.in.shape from CVS source snapshot July 19 2003
> Linux/i686/RedHat9
> 
> 
> When running v.in.shape on a large-ish shape file (15mb), I get the
> following error:
[...]
> 
> input file(s) or further tests available upon request.

Hamish

just being curious: does "v.in.ogr" in GRASS 5.1 accept the file?

Markus


Fri, Jul 25 2003 08:13:22    Mail sent by hbowman  
> just being curious: does "v.in.ogr" in GRASS 5.1 accept the file?
>
> Markus

Yes, it does. Here's the output:

[5.1 v.* (i.e. and dbm) commands make great use of a dual-processor machine,
by the way]

GRASS 5.1.0-cvs:~ > v.in.ogr dsn=. out=lake_poly layer=lake_poly
WARNING: 42 feature without geometry.
Registering lines:        
111982 primitives registered
Building areas:  100%
56280 areas built
56233 isles built
Attaching islands:  100%
Attaching centroids:  100%
Topology was built.
Number of nodes     :   111929
Number of primitives:   111982
Number of points    :   0
Number of lines     :   0
Number of boundaries:   56303
Number of centroids :   55679
Number of faces     :   0
Number of kernels   :   0
Number of areas     :   56280
Number of isles     :   56233
Map is 3D           :   0
WARNING: Area boundaries are not cleaned by this module. Run v.clean
         (tool=bpol,rmdupl) on imported vector on new map <lake_poly>.

GRASS 5.1.0-cvs:~ > v.clean in=lake_poly out=lake_poly_clean tool=bpol,rmdupl
+---------------------------------+--------------+
| Tool                            | Threshold    |
+---------------------------------+--------------+
| Break polygons                  | 0.000000e+00 |
| Remove duplicates               | 0.000000e+00 |
+---------------------------------+--------------+
Building topology for copy of input vector ...
Registering lines:        
111982 primitives registered
Building areas:  100%
56280 areas built
56233 isles built
Attaching islands:  100%
Attaching centroids:  100%
Topology was built.
Number of nodes     :   111929
Number of primitives:   111982
Number of points    :   0
Number of lines     :   0
Number of boundaries:   56303
Number of centroids :   55679
Number of faces     :   0
Number of kernels   :   0
Number of areas     :   56280
Number of isles     :   56233
Map is 3D           :   0
--------------------------------------------------
Tool: Break polygons
Registerd points:    769999
All points: 826403
Registered points: 769999
Points marked for break: 111951
Intersections:   121
--------------------------------------------------
Tool: Remove duplicates
Duplicates:    28
--------------------------------------------------
Building topology ...
Registering lines:        
112018 primitives registered
Building areas:  100%
56302 areas built
56236 isles built
Attaching islands:  100%
Attaching centroids:  100%
Topology was built.
Number of nodes     :   111951
Number of primitives:   112018
Number of points    :   0
Number of lines     :   0
Number of boundaries:   56339
Number of centroids :   55679
Number of faces     :   0
Number of kernels   :   0
Number of areas     :   56302
Number of isles     :   56236
Map is 3D           :   0

GRASS 5.1.0-cvs:~ >

Fri, Jul 25 2003 09:10:33    Comments added by hbowman  
further, after export from 5.1 (v.out.ascii -o) and re-import into 5.0.3cvs
(v.in.ascii, v.support), I get the following errors.

Hopefully something in here might be meaningful (are errors from the original
data, stuff 5.1 v.clean missed, or i/o error between 5.1/5.0 ?).


GRASS:~ > v.support lake_poly

V.SUPPORT:

Selected information from vector header
 Organization:  
 Map Name:      
 Source Date:   
 Orig. Scale:   1
 Snapping threshold    0.00
Snapp No snapping will be done 
    Reading Vector file 100%
    Building areas 100%
Unclosed area, free end or edge inside area: line 7924
Unclosed area, free end or edge inside area: line 8190
Unclosed area, free end or edge inside area: line 16789
Unclosed area, free end or edge inside area: line 17013
Unclosed area, free end or edge inside area: line 18608
Unclosed area, free end or edge inside area: line 18632
Unclosed area, free end or edge inside area: line 23413
Unclosed area, free end or edge inside area: line 23429
Unclosed area, free end or edge inside area: line 25134
Unclosed area, free end or edge inside area: line 25136
Unclosed area, free end or edge inside area: line 42441
Unclosed area, free end or edge inside area: line 42442
    Building islands 100%
    Attaching labels
PNT_TO_AREA failed: (1900731.879913, 5624845.778844) (Category 7870)
PNT_TO_AREA failed: (1900701.428509, 5624838.770068) (Category 8136)
PNT_TO_AREA failed: (1779970.474077, 5569343.120254) (Category 16713)
PNT_TO_AREA failed: (1779962.616104, 5569343.382271) (Category 16936)
PNT_TO_AREA failed: (1830414.504053, 5539002.300622) (Category 18524)
PNT_TO_AREA failed: (1830416.210949, 5538991.538262) (Category 18548)
PNT_TO_AREA failed: (1868511.983572, 5719120.908251) (Category 23331)
PNT_TO_AREA failed: (1868497.745508, 5719087.410089) (Category 23346)
PNT_TO_AREA failed: (1898118.772873, 5807799.631711) (Category 25011)
PNT_TO_AREA failed: (1898131.666922, 5807830.603696) (Category 25013)
PNT_TO_AREA failed: (1584756.709577, 5387612.197049) (Category 42181)
PNT_TO_AREA failed: (1584755.346341, 5387630.310544) (Category 42182)
 Number of lines:   56303
 Number of nodes:   56250
 Number of areas:   56291
 Number of isles:   56244
 Number of atts :   55667
 Number of unattached atts :   12
 Snapped lines  :   0

GRASS:~ >
Mon, Feb 5 2007 22:01:05    Mail sent by mneteler  
I hope we can close this report :-)

Markus
Tue, Feb 6 2007 07:29:04    Status changed to resolved by hbowman  
Tue, Feb 6 2007 07:29:04    Comments added by hbowman  
v.in.shape (GRASS 5) is no longer maintained. This bug does not exist in GRASS
6.


"won't fix", closing & archiving bug report.


Hamish
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request