﻿{"id":16640,"date":"2026-04-15T10:00:00","date_gmt":"2026-04-15T08:00:00","guid":{"rendered":"https:\/\/www.sigterritoires.fr\/?p=16640"},"modified":"2026-03-16T05:22:12","modified_gmt":"2026-03-16T04:22:12","slug":"shapefile-vs-geopackage","status":"publish","type":"post","link":"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/","title":{"rendered":"[EN]Shapefile vs GeoPackage: Which Format Should You Choose?"},"content":{"rendered":"\n<p>When working with geographic data in QGIS, several file formats can be used to store vector layers. Two formats are particularly common: <strong>Shapefile<\/strong> and <strong><a href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/geopackage-format-and-qgis-3\/\">GeoPackage<\/a><\/strong>.<\/p>\n\n\n\n<p>Shapefile is a historical format that has been widely used since the 1990s. GeoPackage, a more recent format, was designed to overcome the limitations of Shapefile.<\/p>\n\n\n\n<p>In this article, we will look at <strong>the differences between these two formats and when to use each of them<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-light-blue ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Contenu <\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#1_Shapefile_A_Historical_Format\" >1. Shapefile: A Historical Format<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#2_Limitations_of_the_Shapefile_Format\" >2. Limitations of the Shapefile Format<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Field_name_length\" >Field name length<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Number_of_fields\" >Number of fields<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Maximum_file_size\" >Maximum file size<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Single_geometry_type\" >Single geometry type<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Encoding_issues\" >Encoding issues<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#3_GeoPackage_A_Modern_Format\" >3. GeoPackage: A Modern Format<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#4_Advantages_of_GeoPackage\" >4. Advantages of GeoPackage<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Single_file\" >Single file<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Longer_field_names\" >Longer field names<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Multiple_layers\" >Multiple layers<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Open_standard\" >Open standard<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Better_encoding_support\" >Better encoding support<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#5_Quick_Comparison\" >5. Quick Comparison<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#6_Using_These_Formats_in_QGIS\" >6. Using These Formats in QGIS<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-17\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#7_Technical_Limitations_of_Shapefile\" >7. Technical Limitations of Shapefile<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-18\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Example\" >Example<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-19\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Common_Problem\" >Common Problem<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-20\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#8_Why_GeoPackage_Is_Often_a_Better_Choice\" >8. Why GeoPackage Is Often a Better Choice<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-21\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#9_Why_Does_a_Shapefile_Contain_Multiple_Files\" >9. Why Does a Shapefile Contain Multiple Files?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-22\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#10_Why_GeoPackage_Is_Simpler\" >10. Why GeoPackage Is Simpler<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-23\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Tip\" >Tip<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-24\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#11_A_Historical_Curiosity_About_Shapefile\" >11. A Historical Curiosity About Shapefile<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-25\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Why_Field_Names_Are_Limited_to_10_Characters\" >Why Field Names Are Limited to 10 Characters<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-26\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Why_Shapefile_Uses_Multiple_Files\" >Why Shapefile Uses Multiple Files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-27\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Why_Shapefile_Is_Still_Used\" >Why Shapefile Is Still Used<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-28\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#FAQ\" >FAQ<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-29\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#What_is_the_maximum_size_of_a_Shapefile\" >What is the maximum size of a Shapefile?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-30\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Why_does_my_Shapefile_not_open_in_QGIS\" >Why does my Shapefile not open in QGIS?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-31\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Does_GeoPackage_replace_Shapefile\" >Does GeoPackage replace Shapefile?<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-32\" href=\"https:\/\/www.sigterritoires.fr\/index.php\/en\/shapefile-vs-geopackage\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Shapefile_A_Historical_Format\"><\/span>1. Shapefile: A Historical Format<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The <strong>Shapefile<\/strong> format was developed by Esri in the early 1990s. For many years, it was the standard format for exchanging geographic data.<\/p>\n\n\n\n<p>A Shapefile is not a single file but <strong>a group of files<\/strong>.<\/p>\n\n\n\n<p>For example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>routes.shp\nroutes.shx\nroutes.dbf\nroutes.prj\n<\/code><\/pre>\n\n\n\n<p>These files must remain together for the layer to function correctly.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Limitations_of_the_Shapefile_Format\"><\/span>2. Limitations of the Shapefile Format<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Despite its popularity, the Shapefile format has several important limitations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Field_name_length\"><\/span>Field name length<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Field names are limited to <strong>10 characters<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Number_of_fields\"><\/span>Number of fields<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The number of fields is limited to <strong>255<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Maximum_file_size\"><\/span>Maximum file size<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The maximum size of a file is approximately <strong>2 GB<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Single_geometry_type\"><\/span>Single geometry type<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>A Shapefile can only contain <strong>one geometry type<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>points<\/li>\n\n\n\n<li>lines<\/li>\n\n\n\n<li>or polygons.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Encoding_issues\"><\/span>Encoding issues<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>DBF files may cause <strong>character encoding problems<\/strong>, especially with accented characters.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_GeoPackage_A_Modern_Format\"><\/span>3. GeoPackage: A Modern Format<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>GeoPackage (GPKG)<\/strong> is a more recent format based on a <strong>SQLite database<\/strong>.<\/p>\n\n\n\n<p>It was developed by the Open Geospatial Consortium.<\/p>\n\n\n\n<p>Unlike Shapefile, a GeoPackage is <strong>a single file<\/strong>.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>data.gpkg\n<\/code><\/pre>\n\n\n\n<p>This file can contain:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>multiple vector layers<\/li>\n\n\n\n<li>raster data<\/li>\n\n\n\n<li>attribute tables.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"4_Advantages_of_GeoPackage\"><\/span>4. Advantages of GeoPackage<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>GeoPackage provides several important advantages.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Single_file\"><\/span>Single file<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>All data is stored in <strong>one file<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Longer_field_names\"><\/span>Longer field names<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Field names are <strong>not limited to 10 characters<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Multiple_layers\"><\/span>Multiple layers<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>A GeoPackage can contain <strong>multiple layers<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Open_standard\"><\/span>Open standard<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>GeoPackage is an <strong>OGC standard<\/strong>, widely supported by GIS software.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Better_encoding_support\"><\/span>Better encoding support<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Character encoding problems are much less common.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"5_Quick_Comparison\"><\/span>5. Quick Comparison<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Shapefile<\/th><th>GeoPackage<\/th><\/tr><\/thead><tbody><tr><td>legacy format<\/td><td>modern format<\/td><\/tr><tr><td>multiple files<\/td><td>single file<\/td><\/tr><tr><td>limited field names<\/td><td>longer field names<\/td><\/tr><tr><td>limited size<\/td><td>more flexible size<\/td><\/tr><tr><td>single geometry type<\/td><td>multiple layers supported<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"6_Using_These_Formats_in_QGIS\"><\/span>6. Using These Formats in QGIS<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In QGIS, it is often recommended to use <strong>GeoPackage<\/strong> to store data.<\/p>\n\n\n\n<p>Shapefile is still useful for:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>exchanging data with older software<\/li>\n\n\n\n<li>certain legacy administrative formats.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"7_Technical_Limitations_of_Shapefile\"><\/span>7. Technical Limitations of Shapefile<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Shapefile is still widely used today, but it has several technical limitations inherited from its design in the 1990s.<\/p>\n\n\n\n<p>Here are some key constraints.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Limitation<\/th><th>Shapefile<\/th><\/tr><\/thead><tbody><tr><td>field name length<\/td><td>10 characters maximum<\/td><\/tr><tr><td>number of fields<\/td><td>255<\/td><\/tr><tr><td>maximum file size<\/td><td>about 2 GB<\/td><\/tr><tr><td>data storage<\/td><td>multiple files<\/td><\/tr><tr><td>character encoding<\/td><td>sometimes problematic<\/td><\/tr><tr><td>date management<\/td><td>limited<\/td><\/tr><tr><td>multiple layers in one file<\/td><td>not possible<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>A Shapefile named:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>urban_transport_network.shp\n<\/code><\/pre>\n\n\n\n<p>may include the following files:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>urban_transport_network.shp\nurban_transport_network.shx\nurban_transport_network.dbf\nurban_transport_network.prj\n<\/code><\/pre>\n\n\n\n<p>If one of these files is deleted or moved, the layer may no longer work properly.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Common_Problem\"><\/span>Common Problem<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In a Shapefile, a field named:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>population_total\n<\/code><\/pre>\n\n\n\n<p>will automatically be truncated to:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>population\n<\/code><\/pre>\n\n\n\n<p>This can lead to confusion or errors during analysis.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"8_Why_GeoPackage_Is_Often_a_Better_Choice\"><\/span>8. Why GeoPackage Is Often a Better Choice<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>GeoPackage was designed to overcome these limitations.<\/p>\n\n\n\n<p>With a GeoPackage:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>all data is stored in a <strong>single file<\/strong><\/li>\n\n\n\n<li><strong>multiple layers<\/strong> can be included<\/li>\n\n\n\n<li>field names can be longer<\/li>\n\n\n\n<li>data management is more robust.<\/li>\n<\/ul>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>project_data.gpkg\n<\/code><\/pre>\n\n\n\n<p>This file may contain:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>roads<\/li>\n\n\n\n<li>buildings<\/li>\n\n\n\n<li>administrative boundaries<\/li>\n\n\n\n<li>attribute tables.<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"9_Why_Does_a_Shapefile_Contain_Multiple_Files\"><\/span>9. Why Does a Shapefile Contain Multiple Files?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Many users are surprised to learn that a Shapefile is not a single file but a <strong>collection of files<\/strong>.<\/p>\n\n\n\n<p>A Shapefile typically includes at least three main files:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>File<\/th><th>Role<\/th><\/tr><\/thead><tbody><tr><td>.shp<\/td><td>stores geometry<\/td><\/tr><tr><td>.shx<\/td><td>geometry index<\/td><\/tr><tr><td>.dbf<\/td><td>attribute table<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Other files may also be present:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>File<\/th><th>Role<\/th><\/tr><\/thead><tbody><tr><td>.prj<\/td><td>coordinate system<\/td><\/tr><tr><td>.cpg<\/td><td>character encoding<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>roads.shp\nroads.shx\nroads.dbf\nroads.prj\nroads.cpg\n<\/code><\/pre>\n\n\n\n<p>All these files must remain <strong>in the same folder with the same name<\/strong>.<\/p>\n\n\n\n<p>If one of them is missing, the layer may stop working properly.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"10_Why_GeoPackage_Is_Simpler\"><\/span>10. Why GeoPackage Is Simpler<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>With GeoPackage, all information is stored in <strong>one file<\/strong>.<\/p>\n\n\n\n<p>Example:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>data.gpkg\n<\/code><\/pre>\n\n\n\n<p>This file can contain:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>multiple vector layers<\/li>\n\n\n\n<li>raster datasets<\/li>\n\n\n\n<li>attribute tables.<\/li>\n<\/ul>\n\n\n\n<p>This greatly simplifies data management.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Tip\"><\/span>Tip<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you receive a Shapefile, it is recommended to <strong>copy all associated files<\/strong> (.shp, .shx, .dbf, .prj, etc.).<\/p>\n\n\n\n<p>In QGIS, you can easily convert a Shapefile into a GeoPackage:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Right-click the layer \u2192 Export \u2192 Save Features As\u2026\n<\/code><\/pre>\n\n\n\n<p>Then choose <strong>GeoPackage<\/strong> as the format.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"11_A_Historical_Curiosity_About_Shapefile\"><\/span>11. A Historical Curiosity About Shapefile<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The Shapefile format was created in the early 1990s by Esri. At that time, computing constraints were very different:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>hard drives were small<\/li>\n\n\n\n<li>operating systems had strict filename limits<\/li>\n\n\n\n<li>spatial databases were rare.<\/li>\n<\/ul>\n\n\n\n<p>This explains why some Shapefile limitations still exist today.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Field_Names_Are_Limited_to_10_Characters\"><\/span>Why Field Names Are Limited to 10 Characters<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The attribute table of a Shapefile is stored in a <strong>DBF file<\/strong>, a format inherited from the <strong>dBase<\/strong> software widely used in the 1980s.<\/p>\n\n\n\n<p>This format imposes several limitations:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>field names limited to 10 characters<\/li>\n\n\n\n<li>simple table structure<\/li>\n\n\n\n<li>limited data types.<\/li>\n<\/ul>\n\n\n\n<p>Even though modern computers no longer have these constraints, these limits remain for <strong>compatibility reasons<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Shapefile_Uses_Multiple_Files\"><\/span>Why Shapefile Uses Multiple Files<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>The format was designed in a modular way:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>the <strong>.shp<\/strong> file stores geometry<\/li>\n\n\n\n<li>the <strong>.shx<\/strong> file stores the spatial index<\/li>\n\n\n\n<li>the <strong>.dbf<\/strong> file stores attributes.<\/li>\n<\/ul>\n\n\n\n<p>At the time, this architecture helped optimize data reading on less powerful computers.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_Shapefile_Is_Still_Used\"><\/span>Why Shapefile Is Still Used<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Despite its limitations, Shapefile remains very popular because:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>it is supported by almost all GIS software<\/li>\n\n\n\n<li>it is easy to exchange<\/li>\n\n\n\n<li>it has become a <strong>de facto standard<\/strong> in GIS.<\/li>\n<\/ul>\n\n\n\n<p>However, for new projects, more modern formats such as <strong>GeoPackage<\/strong> are generally recommended.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"FAQ\"><\/span>FAQ<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_is_the_maximum_size_of_a_Shapefile\"><\/span>What is the maximum size of a Shapefile?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Approximately <strong>2 GB<\/strong>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_does_my_Shapefile_not_open_in_QGIS\"><\/span>Why does my Shapefile not open in QGIS?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>This can happen if a required file (.shp, .shx, or .dbf) is missing.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Does_GeoPackage_replace_Shapefile\"><\/span>Does GeoPackage replace Shapefile?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>GeoPackage is now considered a <strong>more modern and flexible format<\/strong>, but Shapefile is still widely used for data exchange.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Shapefile remains a very common format, but it has several limitations inherited from its age.<\/p>\n\n\n\n<p>GeoPackage is a more modern, flexible format that is better suited to current GIS projects.<\/p>\n\n\n\n<p>In most cases, it is recommended to use <strong>GeoPackage as the primary data storage format in QGIS<\/strong>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When working with geographic data in QGIS, several file formats can be used to store vector layers. Two formats are particularly common: Shapefile and GeoPackage. Shapefile is a historical format that has been widely used since&hellip;<\/p>\n","protected":false},"author":1,"featured_media":16589,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"give_campaign_id":0,"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sfsi_plus_gutenberg_text_before_share":"","sfsi_plus_gutenberg_show_text_before_share":"","sfsi_plus_gutenberg_icon_type":"","sfsi_plus_gutenberg_icon_alignemt":"","sfsi_plus_gutenburg_max_per_row":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1377,4566],"tags":[1995,1919,4606,1386,4608],"class_list":["post-16640","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qgis-en","category-tutorial","tag-geopackage-en","tag-gis","tag-gis-formats","tag-qgis-en","tag-shapefile-en"],"aioseo_notices":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.sigterritoires.fr\/wp-content\/uploads\/2026\/03\/shape_gpkg.jpeg?fit=258%2C147&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p6XU0A-4ko","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/16640","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/comments?post=16640"}],"version-history":[{"count":0,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/posts\/16640\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media\/16589"}],"wp:attachment":[{"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/media?parent=16640"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/categories?post=16640"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigterritoires.fr\/index.php\/wp-json\/wp\/v2\/tags?post=16640"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}