I want to convert a GeoJSON file to a Layer within a GeoPackage.

For this, I'm trying to use the following command:

ogr2ogr dist.gpkg mah.geojson -nlt PROMOTE_TO_MULTI

This sucessfully creates a new GeoPackage, with a layer whose name is mah.

I want to have control over the name of the output layer.

I have also tried adding a -lco IDENTIFIER=dist_2019 parameter, but this does set the name to what I want.

What is the correct way to specify the name of the output Table/Layer in the GeoPackage?

1 Answer 1


This can be done by using the -nln parameter.

The following command should work:

ogr2ogr dist.gpkg mah.geojson -nlt PROMOTE_TO_MULTI -nln dist_2019


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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