LinearRing Error

Bug #1066019 reported by Jon Hill
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Meshing to Realistic Domains
New
Undecided
Unassigned

Bug Description

Meshing an ancient bathymetry. Extracted a coastline from bathymetry (after projecting into stereographic space), tidied up the shapefile (removing lakes, isolated nodes, etc) and meshed and got the error below. I can provide the shapefile on request, but it's commercial-in-confidence so can't post it here.

What does the error mean? Is it possible to get more diagnostic info (which ring?)

An error has occured while executing Python code:

Traceback (most recent call last):
  File "/usr/share/qgis/python/plugins/mesh_netcdf/meshnetcdf.py", line 170, in run
    self.meshNetCDF()
  File "/usr/share/qgis/python/plugins/mesh_netcdf/meshnetcdf.py", line 71, in meshNetCDF
    MeshOperations.MeshOp.meshNetCDF(self)
  File "/usr/share/qgis/python/plugins/mesh_netcdf/MeshOperations.py", line 146, in meshNetCDF
    self.getFiles()
  File "/usr/share/qgis/python/plugins/mesh_netcdf/meshnetcdf.py", line 56, in getFiles
    PreMeshingFunctions.PreMesh.getFiles(self)
  File "/usr/share/qgis/python/plugins/mesh_netcdf/PreMeshingFunctions.py", line 85, in getFiles
    self.runIdDef()
  File "/usr/share/qgis/python/plugins/mesh_netcdf/meshnetcdf.py", line 54, in runIdDef
    PreMeshingFunctions.PreMesh.runIdDef(self)
  File "/usr/share/qgis/python/plugins/mesh_netcdf/PreMeshingFunctions.py", line 61, in runIdDef
    self.define_bounds(self.dlg.ui.grpDefID.isChecked())
  File "/usr/share/qgis/python/plugins/mesh_netcdf/PreMeshingFunctions.py", line 39, in define_bounds
    DefineDomain.define_bounds(self, ok)
  File "/usr/share/qgis/python/plugins/mesh_netcdf/define_id.py", line 12, in define_bounds
    self.assignIDsMethod(isIdLayer)
  File "/usr/share/qgis/python/plugins/mesh_netcdf/define_id.py", line 18, in assignIDsMethod
    assignIDs.assignIDsMethod(self,ok)
  File "/usr/share/qgis/python/plugins/mesh_netcdf/define_boundary_id.py", line 21, in assignIDsMethod
    self.IDPolygons.append(Polygon([self.boundaryData.points[j][i] for i in range(len(self.boundaryData.points[j]))]))
  File "/usr/lib/python2.7/dist-packages/shapely/geometry/polygon.py", line 214, in __init__
    self._geom, self._ndim = geos_polygon_from_py(shell, holes)
  File "/usr/lib/python2.7/dist-packages/shapely/geometry/polygon.py", line 422, in geos_polygon_from_py
    geos_shell, ndim = geos_linearring_from_py(shell)
  File "/usr/lib/python2.7/dist-packages/shapely/geometry/polygon.py", line 370, in geos_linearring_from_py
    "A LinearRing must have at least 3 coordinate tuples")
ValueError: A LinearRing must have at least 3 coordinate tuples

Python version:
2.7.3 (default, Aug 1 2012, 05:25:23)
[GCC 4.6.3]

QGIS version:
1.8.0-Lisboa Lisboa, exported

Python path: ['/usr/share/qgis/python', '/home/jhill1/.qgis//python', '/home/jhill1/.qgis//python/plugins', '/usr/share/qgis/python/plugins', '/data2/jhill1/projects/Ancient_seas/data/palaeo_bathy/i', '/data2/jhill1/projects/Ancient_seas/data/palaeo_bathy', '/home/jhill1/projects/python', '/data2/jhill1/fluidity/trunk/tools', '/data2/jhill1/fluidity/trunk/python', '/home/jhill1/Data/software/p4-phylogenetics-read-only', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PIL', '/usr/lib/python2.7/dist-packages/gst-0.10', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/lib/python2.7/dist-packages/ubuntuone-client', '/usr/lib/python2.7/dist-packages/ubuntuone-control-panel', '/usr/lib/python2.7/dist-packages/ubuntuone-couch', '/usr/lib/python2.7/dist-packages/ubuntuone-installer', '/usr/lib/python2.7/dist-packages/ubuntuone-storage-protocol', '/usr/lib/python2.7/dist-packages/wx-2.6-gtk2-unicode', '/usr/share/qgis/python/plugins/QuickMultiAttributeEdit/forms', '/usr/lib/python2.7/dist-packages/Scientific/linux2', '/usr/share/qgis/python/plugins/fTools/tools']

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.