GeoPackage (.gpkg) is defined by the Open Geospatial Consortium (OGC) as an open, non-proprietary, platform-independent, standards-based data format for geographic information systems (GIS). It is designed to be a lightweight format that can contain large amounts of varied and complex data in a single, easy-to- distribute and ready-to-use file. GeoPackage is natively supported by numerous software applications.
GeoPackage offer users the following benefits:
The single file is easy to transfer and offers the end-user a rich experience.
Attribute names are not limited in length, making the format user friendly.
The file size limit is large at 140 TB.
A file size limit could be imposed by the file system to which the file is written.
It supports raster, vector and database formats, making it a highly versatile solution.
It is an OGC standard.
In most cases, it is a plug-in-and-play format.
For further information on GeoPackage, please see the GeoPackage website.
The naming of attributes between GeoPackage and GML is very similar as neither format limits the number of characters for an attribute name. The following tables map the GML attribute name to the GeoPackage attribute name.
The GML contains an attribute which describes the geometry of the feature; this is not applicable to GeoPackage files as they are separated by their geometry.
For guidance on using the product in GeoPackage format, please see theGetting started with GeoPackage guide.
GML attribute | GeoPackage attribute |
---|---|
id
id
fictitious
fictitious
roadClassification
road_classification
roadFunction
road_function
roadClassificationNumber
road_classification_number
name1
name_1
Specified in the GML tag for name1 as xml:lang
name_1_lang
name2
name_2
Specified in the GML tag for name2 as xml:lang
name_2_lang
formOfWay
form_of_way
length
length (has two fields: length and length_uom)
primaryRoute
primary_route
trunkRoad
trunk_road
roadStructure
road_structure
loop
loop
startNode
start_node
endNode
end_node
numberTOID
road_number_toid
nameTOID
road_name_toid
GML attribute | GeoPackage attribute |
---|---|
id
id
formOfRoadNode
form_of_road_node
5.1.3 MotorwayJunction
GML attribute
GeoPackage attribute
id
id
junctionNumber
junction_number