[gdal-dev] ogr problems with MapInfo

Chaitanya kumar CH chaitanya.ch at gmail.com
Sat Oct 2 07:54:58 EDT 2010


Hi,

I think the problem is with the call to stat() on the samba mounted files.
tab2tab reported the same problem.

On Thu, Sep 30, 2010 at 7:10 PM, Sebastian E. Ovide <
sebastian.ovide at gmail.com> wrote:

> done... didn't work...
>
> Copied on the same SMB folder with undercase names... both ogrinfo and
> tab2tab failed.
> Copied the same files to a local folder and both ogrinfo and tab2tab
> succeeded...
>
> same errors....
>
>
> On Thu, Sep 30, 2010 at 1:44 PM, Daniel Morissette <
> dmorissette at mapgears.com> wrote:
>
>> Sebastian E. Ovide wrote:
>> >
>> > can verbosity be increased further ?
>> >
>>
>> I don't think so... the only way to know more about what is happening
>> would be to run this in gdb.
>>
>>
>> > and with TAB2TAB the only messages that I get are:
>> >
>> > gis at mapserver:/tmp$ /home/gis/src/mitab-1.7.0/mitab/tab2tab
>> > /home/gis/data/tmp/CA_AbandonedMine.TAB test.TAB
>> > ERROR 3: stat() failed for /home/gis/data/tmp/CA_AbandonedMine.id
>> >
>> > ERROR 3: Open() failed for /home/gis/data/tmp/CA_AbandonedMine.map
>> > ERROR 3: /home/gis/data/tmp/CA_AbandonedMine.TAB could not be opened as
>> > a MapInfo dataset.
>> > Failed to open /home/gis/data/tmp/CA_AbandonedMine.TAB
>> >
>>
>> This looks like an uppercase vs lowercase file extension problem. There
>> is some logic in MITAB to try to guess and then adjust filename
>> extensions (e.g. .MAP vs .map) on non-Windows systems that uses stat()
>> and for some reason it seems to fail with the SMB share.
>>
>> Can you please try renaming all files for a given table to lowercase
>> extensions (.tab, .map, .dat, .ind, .id) and then see if that changes
>> anything with the tab2tab program on the SMB share?
>>
>> If that solves the issue then we'll need to reproduce this here and run
>> this in gdb to figure the exact source of the problem and fix it.
>>
>> Daniel
>> --
>> Daniel Morissette
>> http://www.mapgears.com/
>> _______________________________________________
>> gdal-dev mailing list
>> gdal-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>>
>
>
>
> --
> Sebastian E. Ovide
>
>
>
>
>
> _______________________________________________
> gdal-dev mailing list
> gdal-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/gdal-dev
>



-- 
Best regards,
Chaitanya kumar CH.
/tʃaɪθənjə/ /kʊmɑr/
+91-9494447584
17.2416N 80.1426E
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20101002/b171731b/attachment.html


More information about the gdal-dev mailing list