4

I downloaded open street map data via Quick OSM in QGIS 3.16. Exporting the data to shapefiles works, but I need them as mapinfo (tab). When I export as tab, the file is saved (Successfully saved vector layer to...), but cannot be loaded: "CRITICAL Invalid Data Source : .../GIS/shops1.tab|layername=shops1 is not a valid or recognized data source." The same happens when I export the shp as tab from GRASS GIS and try to import. Happens both on Windows and Mac. Any hints what can cause this?

4
  • 1
    One thing to check is the file size. Is the Shape file close to 2GB? If so, that might make the TAB files run over the 2GB file limit. If you open the Shape file in MapInfo Pro, you can try saving it into the extended tab format that doesn't have the file size limitation Aug 23 at 19:25
  • 1
    Do you also have the other parts (.map, .dat)? Could you share test data? What program gives the error?
    – user30184
    Aug 23 at 19:29
  • Thank you! The shp file is around 40KB, the tab 100MB. The error is in QGIS. GRASS GIS does not find a layer for import. Link to data (shp and tab - not sure if that is the appropriate way to share data): wetransfer.com/downloads/…
    – Peter
    Aug 23 at 19:55
  • I just tried to export only supermarkets (downloaded as supermarkets from OSM) instead of all shops - that worked.
    – Peter
    Aug 23 at 20:29
1

The file you shared has 200 field, and there must be some export issue from QGIS.

Workaround

Export from QGIS to Mapinfo's TAB only selecting some fields. I tried with the following ones using the shp you provided:

enter image description here

The generated .tab file imports flawlessly:

enter image description here

My guess is that some field names have non-ascii characters: if you need more/all fields, you might need to hunt down which ones cause the problem, and rename it before exporting.

1
  • 1
    Indeed - that was the problem. Export with just the required fields worked. Simple - could have figured that out myself I recon. Thank you!
    – Peter
    Aug 24 at 10:10
0

Not an answer to the problem directly, but a work-around: download from Overpass Turbo as kml (not geojson - same problem as above!), then convert to tab.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.