Opened 10 years ago

Closed 14 months ago

#245 closed defect (outdated)

gpsbabel fails to open some files

Reported by: Alister Owned by: osgeo4w-dev@…
Priority: minor Component: Package
Version: Keywords: gpsbabel
Cc:

Description

I don't know what is distinctive about the attached file, but the gpsbabel included in osgeo4w does not open it. The easiest way to demonstrate is using ogrinfo.

If I replace the osgeo4w gpsbabel executable with the one from the windows installer on the gpsbabel site, it works.

Attachments (1)

problem.gdb (23.1 KB ) - added by Alister 10 years ago.

Download all attachments as: .zip

Change History (9)

by Alister, 10 years ago

Attachment: problem.gdb added

comment:1 by maphew, 10 years ago

Keywords: gpsbabel added

Thanks for the problem report Alistair. Would you please provide some more details? For example what command(s) are failing, and what errors are reported.

And how does ogrinfo help demonstrate the issue? Ogrinfo doesn't understand the Garmin Mapsource .gdb format.

comment:2 by Alister, 10 years ago

Ogrinfo understands it here :)

With the osgeo4w gpsbabel:

$ ogrinfo problem.gdb
ERROR 1: [gpsbabel error] gdb: Unexpected end of file ((Memory stream))!


FAILURE:
Unable to open datasource `problem.gdb' with the following drivers.
  -> ESRI Shapefile
  -> MapInfo File
...

With the gpsbabel executable from the windows installer:

$ ogrinfo problem.gdb
Had to open data source read-only.
INFO: Open of `problem.gdb'
      using driver `GPSBabel' successful.
1: tracks (Multi Line String)
2: track_points (Point)

I have a couple of other .gdb files here which do work with the osgeo4w gpsbabel. They each have one point layer and no line string layers, so possibly the gpsbabel in osgeo4w doesn't understand .gdb files with multiple layers, or doesn't understand linestring layers.

comment:3 by maphew, 10 years ago

Ah, that helps. I can confirm the error on my system now. It turns out that if the gdal-filegdb package is installed ogrinfo never tries to use the gpsbabel format:

>ogrinfo problem.gdb
ERROR 1: Error: Failed to open Geodatabase (The system cannot find the path specified.)
ERROR 1: Error: Failed to open Geodatabase (The system cannot find the path specified.)
FAILURE:
Unable to open datasource `problem.gdb' with the following drivers.
  -> FileGDB
  -> ESRI Shapefile
...

What does the working gpsbabel -V report on your system? (osgeo4w is 1.4.2)

comment:4 by Alister, 10 years ago

$ gpsbabel --v
GPSBabel Version 1.4.3-beta20111112
...

If you want I can try their 1.4.2 build, to check if that works too. Might not get to it until tomorrow though.

=================================== I can't see a gdal-filegdb package. Is there some sort of testing repository with it? Or have you just built it yourself?

comment:5 by rouault, 10 years ago

I've push a fix in GDAL in http://trac.osgeo.org/gdal/changeset/23478: "FileGDB: only try to open .gdb directories, not file (http://trac.osgeo.org/osgeo4w/ticket/245)"

comment:6 by Alister, 10 years ago

If you want I can try their 1.4.2 build, to check if that works too.

Yes, it does.

comment:7 by maphew, 10 years ago

If you want I can try their 1.4.2 build, to check if that works too.

Yes, it does.

Curious that it works for you, it doesn't for me.

I can't see a gdal-filegdb package. Is there some sort of testing repository with it? Or have you just built it yourself?

No, it's in current: http://download.osgeo.org/osgeo4w/versions.html.

comment:8 by jef, 14 months ago

Resolution: outdated
Status: newclosed
Note: See TracTickets for help on using tickets.