2

When I'm saving a new layer made in QGIS (v 3.14), it gives me only an option of saving it as .gpkg file. I sent these to a person using ArcMap for further work and he's insisting that I send him all (.shp, .dbf, .shx, .prj, .sbn, .sbx). I have used ArcMap before, but within last year I have access only to QGIS.

Is it possible that ArcMap cannot open .gpkg file or there is something else that is the problem?

0
8

ArcMap should be able to open a GPKG, but you may need to follow these steps (I don't believe you can drag and drop)

Alternatively, you can export to ESRI SHP direct from QGIS, although bear in mind this has limitations on field name length (processing tools default to GPKG, but right click on a layer -> Export -> Save As/Save Features As and you should have many more formats)

1
  • 1
    It's also worth noting Arc may not understand the projection format in a shapefile created in QGIS, so you should inform the recipient what projection and datum to use. (Eg mention it in the body of the email that the shapefiles are attached to.)
    – csk
    Dec 29 '20 at 21:24
5

Shapefile has so many limitations, it's hard to imagine that this would be the preferred exchange format (I'd prefer UTF-8 CSV with Well-Known Text geometry over shapefile). In any case, the .sbn/.sbx components are not part of the shapefile specification, and therefore should not be expected.

It seems the limitation is on the user's part more than on the software, though if this person's Desktop release is elderly (<10.4) there could be geopackage compatibility issues.

QGIS should also be able to create file geodatabase (with the Esri, not Open, FGDB library).

You should be able to negotiate an acceptable format with a little flexibility on both sides.

1
  • 4
    "Shapefile has so many limitations, it's hard to imagine that this would be the preferred exchange format" - Unfortunately there are throngs of people with only tangential experience with GIS who still only recognize shapefiles as a valid data source. Doubly frustrating when they actually do hit one of the many limitations and then complain that the data was not produced correctly.
    – wfgeo
    Dec 29 '20 at 13:41
4

If you have the GDAL/OGR command line tools installed you can convert a geopackage to a folder of shapefiles (and .dbf files for non-spatial tables) in one line. I'm not sure how to get these installed in Windows/Mac (am using Linux) but it is possible.

I have a geopackage with two layers:

$ ogrinfo -so -al data.gpkg | grep "Layer name"
Layer name: localauth
Layer name: inhours

and if I do:

$ ogr2ogr -f "ESRI Shapefile" shapes data.gpkg 

I get a new folder called "shapes" with:

$ ls shapes
inhours.dbf  localauth.dbf  localauth.prj  localauth.shp  localauth.shx

which is one non-spatial layer (inhours.dbf) and localauth shapefile set. If there were more layers they would appear here.

I could now zip this folder up to send to someone who really really really can't deal with a geopackage.

1

I guess they need the files in shapefile format instead of geopackage. Whatever is the file you have to exchange with them you could just export it as shapefile from QGIS. You can do so by right clicking on the file in QGIS, clicking export objects as.., the selecting ESRI shapefile on format and then saving it within the folder directory you want. Aditionally you could create a zip file with all the files that you just produced to make file exchanges easier.

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.