[GRASS-user] Error importing MapInfo Tab file

Hi,

I'm getting the following error on attempting to import MapInfo files. I've
tried the two files below from different sources. Both files open and
display correctly in QGIS.

v.in.ogr
dsn=/home/user/DATASOURCES/mapinfo_cannri/cmbs_mapinfo/cmbs_mapinfo/Nswcatch01.tab
layer=Nswcatch01.tab output=Nswcatch01
ERROR: Layer <Nswcatch01.tab> not available

v.in.ogr
dsn=/user/GIS_guide/DATASOURCES/world_geocomm_mapinfo/world_11/country_col.TAB
layer=country_col.TAB output=country_col
ERROR: Layer <country_col.TAB> not available

Cheers,
Richard

GRASS: 6.4.2

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-importing-MapInfo-Tab-file-tp4987673.html
Sent from the Grass - Users mailing list archive at Nabble.com.

I think you do not want to specify the full name of the *.TAB file both as the dsn and layer. If you add the layer parameter, then dsn should refer to a directory. If you give the full name of the TAB file as the dsn, then don’t add the layer parameter.

···

On 11/07/2012 16:44, RichardC wrote:

Hi,

I'm getting the following error on attempting to import MapInfo files. I've
tried the two files below from different sources. Both files open and
display correctly in QGIS.

v.in.ogr
dsn=/home/user/DATASOURCES/mapinfo_cannri/cmbs_mapinfo/cmbs_mapinfo/Nswcatch01.tab
layer=Nswcatch01.tab output=Nswcatch01
ERROR: Layer <Nswcatch01.tab> not available

v.in.ogr
dsn=/user/GIS_guide/DATASOURCES/world_geocomm_mapinfo/world_11/country_col.TAB
layer=country_col.TAB output=country_col
ERROR: Layer <country_col.TAB> not available

Cheers,
Richard

GRASS: 6.4.2

--
View this message in context: [http://osgeo-org.1560.n6.nabble.com/Error-importing-MapInfo-Tab-file-tp4987673.html](http://osgeo-org.1560.n6.nabble.com/Error-importing-MapInfo-Tab-file-tp4987673.html)
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
[grass-user@lists.osgeo.org](mailto:grass-user@lists.osgeo.org)
[http://lists.osgeo.org/mailman/listinfo/grass-user](http://lists.osgeo.org/mailman/listinfo/grass-user)

This mail was received via Mail-SeCure System.

-- 
Micha Silver
052-3665918

Thanks Micha.

I removed the layer parameter and it imports without trouble.

As a reference for other users - the layer parameter is automatically added
when trying to import using the GRASS' GUI. Alternatively, click on the
'Command dialogue' button at the bottom of the 'Import vector data' window
and specify the 'OGR datasource name'.

Richard

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Error-importing-MapInfo-Tab-file-tp4987673p4987976.html
Sent from the Grass - Users mailing list archive at Nabble.com.