[GRASS-dev] [GRASS GIS] #3103: vector import wizzard and v.in.ogr --ui fails to import a vector

GRASS GIS trac at osgeo.org
Sun Jul 17 02:37:49 PDT 2016


#3103: vector import wizzard and v.in.ogr --ui fails to import a vector
-------------------------+-------------------------
 Reporter:  hellik       |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:  7.3.0
Component:  Vector       |    Version:  svn-trunk
 Keywords:               |        CPU:  x86-64
 Platform:  MSWindows 8  |
-------------------------+-------------------------
 trying to import a vector (shape file) with the import common vector
 format wizzards I get:

 {{{
 Traceback (most recent call last):
   File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8
 -msw-unicode\wx\lib\filebrowsebutton.py", line 140, in
 OnChanged

 self.changeCallback(evt)
   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\gui\wxpython\gu
 i_core\gselect.py", line 2055, in OnUpdate

 self._reloadLayers()
   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\gui\wxpython\gu
 i_core\gselect.py", line 2155, in _reloadLayers

 self.reloadDataRequired.emit(listData=listData, data=data)
   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\etc\python\gras
 s\pydispatch\signal.py", line 229, in emit

 dispatcher.send(signal=self, *args, **kwargs)
   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\etc\python\gras
 s\pydispatch\dispatcher.py", line 349, in send

 **named
   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\etc\python\gras
 s\pydispatch\robustapply.py", line 60, in robustApply

 return receiver(*arguments, **named)
   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\gui\wxpython\mo
 dules\import_export.py", line 541, in reload

 self.list.LoadData(listData)
   File "C:\OSGEO4~1\apps\grass\grass-7.3.svn\gui\wxpython\gu
 i_core\widgets.py", line 1024, in LoadData

 index = self.InsertStringItem(sys.maxsize, str(item[0]))
   File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8
 -msw-unicode\wx\lib\mixins\listctrl.py", line 753, in
 __InsertStringItem_

 index = self.InsertImageStringItem(index, label, 0)
   File "C:\OSGEO4~1\apps\Python27\lib\site-packages\wx-2.8
 -msw-unicode\wx\_controls.py", line 4769, in
 InsertImageStringItem

 return _controls_.ListCtrl_InsertImageStringItem(*args,
 **kwargs)
 OverflowError
 :
 Python int too large to convert to C long
 }}}

 then v.in.ogr --ui, selecting the shapefile by browsing to the file, no
 layer is detected.

 tested

 {{{
 System Info
 GRASS Version: 7.3.svn
 GRASS SVN revision: r68983
 Build date: 2016-07-16
 Build platform: x86_64-w64-mingw32
 GDAL: 2.1.0
 PROJ.4: 4.9.2
 GEOS: 3.5.0
 SQLite: 3.7.17
 Python: 2.7.5
 wxPython: 2.8.12.1
 Platform: Windows-8-6.2.9200 (OSGeo4W)
 }}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3103>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list