[GRASS-dev] Re: [GRASS GIS] #1185: v.in.ogr on WinGrass: "Bad file descriptor"

GRASS GIS trac at osgeo.org
Fri Oct 1 14:13:27 EDT 2010


#1185: v.in.ogr on WinGrass: "Bad file descriptor"
--------------------------------+-------------------------------------------
 Reporter:  hamish              |       Owner:  grass-dev@…              
     Type:  defect              |      Status:  new                      
 Priority:  normal              |   Milestone:  6.4.1                    
Component:  Vector              |     Version:  unspecified              
 Keywords:  v.in.ogr, wingrass  |    Platform:  MSWindows XP             
      Cpu:  Unspecified         |  
--------------------------------+-------------------------------------------

Comment(by hellik):

 Replying to [ticket:1185 hamish]:
 > Hi, this was posted to the wiki by "JeeJah".
 >
 > Not tested, no other idea about it. version and binary build unknown.
 But it warrants looking into..
 >
 >
 > {{{
 > When importing an ESRI shapefile using the v.in.ogr
 > command the following error may occur:
 >
 > [Bad file descriptor: Files]
 >
 > The output vector file is created but GRASS is "unable
 > to open the vector map."
 >
 > Sample dialog:
 >
 > [v.in.ogr dsn=D:\acadia\Skyland\ortho\G_Ortho_Index.shp \
 >   output=orthoindex01
 > Projection of input dataset and current location appear to match
 > Layer: G_Ortho_Index
 >  Bad file descriptor: Files
 > Please note that the data are left in incosistent stage
 > and can be corrupted (Thu Sep 30 14:15:16 2010) Command
 >  aborted (20 sec)]
 >
 >
 > Solution:
 >
 > ???
 > }}}
 >
 >
 > HB: It seems you found a bug: "C:\Program" got sent as the first
 argument, and the second half, "Files\GRASS-64\..." was sent as the second
 argument. Somewhere some path variable is not quoted correctly to protect
 against spaces in pathnames.

 test with the actual WinGrass64-release (installed in c:\Program
 Files\...):

 {{{
 v.in.ogr --verbose dsn=C:\wd\gextension\firestations.shp
 output=testvimport
 Die Projektionsinformationen des Eingabedatensatzes und der aktuellen
 Location scheinen übereinzustimmen.
 Layer: firestations
 Spaltenname wurde geändert: 'cat' -> 'cat_'
 Importiere 71 Objekte der Karte...
 -----------------------------------------------------
 Erstelle Topologie für die Vektorkarte <testvimport>...
 Registriere Primitive...
 71 Primitive registriert
 71 Vertices registriert
 Erzeuge Flächen...
 0 Flächen angelegt
 0 Inseln angelegt
 Füge Inseln hinzu...
 Füge Zentroide hinzu...
 Die Topologie wurde erstellt
 Anzahl der Knoten: 71
 Anzahl der Primitive: 71
 Anzahl der Punkte: 71
 Anzahl der Linien: 0
 Anzahl der Grenzen: 0
 Anzahl der Zentroide: 0
 Anzahl der Flächen: 0
 Anzahl der Inseln: 0
 (Fri Oct 01 20:08:31 2010) Command finished (0 sec)
 }}}

 it works. I would vote for closing the ticket.

 Helmut

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



More information about the grass-dev mailing list