[GRASS-dev] [GRASS GIS] #1018: v.in.ogr.. Bad file descriptor: Files

#1018: v.in.ogr.. Bad file descriptor: Files
--------------------------------+-------------------------------------------
Reporter: MilenaN | Owner: grass-dev@lists.osgeo.org
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: v.in.ogr, wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------------+-------------------------------------------
Using RC6/wxgui import of shapefile fails:
{{{
v.in.ogr dsn=M:\MIWZP\dane_mi\Drogi_krajowe92_polyline.shp output=drogi
Projection of input dataset and current location appear to match
Layer: Drogi_krajowe92_polyline
Column name changed: 'DłUGOść_Z_' -> 'D3UGO_f_Z_'
Bad file descriptor: Files
}}}

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1018&gt;
GRASS GIS <http://grass.osgeo.org>

#1018: v.in.ogr.. Bad file descriptor: Files
--------------------------------+-------------------------------------------
Reporter: MilenaN | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: v.in.ogr, wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------------+-------------------------------------------

Comment(by hellik):

Replying to [ticket:1018 MilenaN]:
> Using RC6/wxgui import of shapefile fails:
> {{{
> v.in.ogr dsn=M:\MIWZP\dane_mi\Drogi_krajowe92_polyline.shp output=drogi
> Projection of input dataset and current location appear to match
> Layer: Drogi_krajowe92_polyline
> Column name changed: 'DłUGOść_Z_' -> 'D3UGO_f_Z_'
> Bad file descriptor: Files
> }}}

still valid?

maybe you can supply a sample-shapefile containing non-ascii column names

Helmut

p.s. I've tried to add in the attribute table manager of a vector (dbf-
table) a column named "UGOść".

{{{
Traceback (most recent call last):
   File "c:\Program
Files\GRASS-64-SVN\etc\wxpython\gui_modules\dbm.py", line
1683, in OnTableItemAdd

index = list.InsertStringItem(sys.maxint, str(name))
UnicodeEncodeError
:
'ascii' codec can't encode characters in position 3-4:
ordinal not in range(128)
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1018#comment:1&gt;
GRASS GIS <http://grass.osgeo.org>

#1018: v.in.ogr.. Bad file descriptor: Files
--------------------------------+-------------------------------------------
Reporter: MilenaN | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: v.in.ogr, wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------------+-------------------------------------------

Comment(by hamish):

the DBF format dates back to the early 1980s. It's not surprising that it
doesn't deal well with ascii chars >127. does it fail if you switch to a
more modern DB as the back-end? (db.connect)

Hamish

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1018#comment:2&gt;
GRASS GIS <http://grass.osgeo.org>

#1018: v.in.ogr.. Bad file descriptor: Files
--------------------------------+-------------------------------------------
Reporter: MilenaN | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Keywords: v.in.ogr, wingrass | Platform: MSWindows 7
      Cpu: x86-64 |
--------------------------------+-------------------------------------------

Comment(by glynn):

Replying to [comment:2 hamish]:
> the DBF format dates back to the early 1980s. It's not surprising that
it doesn't deal well with ascii chars >127. does it fail if you switch to
a more modern DB as the back-end? (db.connect)

The error is in the GUI, not the database code. Even if there are problems
with DBF and non-ASCII characters, it isn't getting that far.

Is the str() call actually necessary? I would have expected
`InsertStringItem` to accept a Unicode object.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1018#comment:3&gt;
GRASS GIS <http://grass.osgeo.org>

#1018: v.in.ogr.. Bad file descriptor: Files
--------------------------+-------------------------------------------------
  Reporter: MilenaN | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 6.4.0
Component: wxGUI | Version: 6.4.0 RCs
Resolution: worksforme | Keywords: v.in.ogr, wingrass
  Platform: MSWindows 7 | Cpu: x86-64
--------------------------+-------------------------------------------------
Changes (by MilenaN):

  * status: new => closed
  * resolution: => worksforme

Comment:

Tried again and it works now.

--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1018#comment:4&gt;
GRASS GIS <http://grass.osgeo.org>