Open a GeoPackage
Someone has sent you a survey with two layers. Open it in QGIS or ArcGIS Pro, find the raw observations and check the count for one square. You can complete the exercise in either application.
Start with the extracted folder
Unzip AMDGS-GeoPackage-Starter.zip to a folder you can find again. It contains survey.gpkg, a shapefile folder and this guide. The survey is fictional. The 144 squares are 250 m across and use British National Grid (EPSG:27700). Each layer covers the same grid.
| Layer inside survey.gpkg | What to look for |
|---|---|
survey_counts | Observations by square. reports gives the count in that square. |
hotspot_reference | Counts plus analysis fields. local_sum gives the count in a square and its immediate neighbours. |
In QGIS
- Start a new project. If the Browser panel is hidden, enable it under View → Panels. In Browser, find your extracted folder, expand survey.gpkg and double-click survey_counts.
- Right-click the new layer and choose Zoom to Layer, then Open Attribute Table. Choose Select by Expression and enter
"cell_id" = 'I09'. Run the selection and use Show Selected Features in the table. The single row should have 18 inreports. I09 begins with a capital letter I. - Return to Browser and load hotspot_reference. Open its table. Repeat the selection with
"cell_id" = 'D04'. Comparereportsandlocal_sum. Both layers should show 144 features when all records are visible.
In ArcGIS Pro
- Open a project with a map. On the Map tab choose Add Data. Browse into the extracted survey.gpkg. Select the survey_counts feature class and add it to the map. Repeat for hotspot_reference. You can also drag individual feature classes from the Catalog pane.
- In Contents, right-click survey_counts and choose Zoom To Layer. Open its Attribute Table. In Select By Attributes, choose that layer, use a new selection and build the clause cell_id is equal to I09. Apply it, then switch the table to selected records. Read 18 in
reports. - Open the table for hotspot_reference, repeat for D04 and compare
reportswithlocal_sum. If you use both applications, close the file in the first one before opening it in the second.
Try the shapefile comparison
Add shapefile/survey.shp in your chosen GIS. Keep the companion .shx, .dbf, .prj and .cpg files together. Find D04. Which value can you recover from the shapefile alone? If a colleague needs the neighbourhood total as well, which layer and field would you point them to?
Check your answer
D04 has 9 reports in the shapefile and in survey_counts.reports. The neighbourhood total is 72 in hotspot_reference.local_sum. The shapefile in this download contains just the raw count layer.
If your results look different
- Only one layer appears on the map. Expand the GeoPackage in the data browser and add the second named layer. Both draw exactly the same boundaries, so an opaque layer can hide the other one. Use the layer names and fields to tell them apart.
- The field is missing. Open the reference layer for
local_sum. Check the source path if several copies of the survey are loaded. - Your selection returns no rows. Clear any active subset or definition query. Select by the text identifier
cell_id, include the zero, and check that you are searching the intended layer. - The colours differ between applications. The portable example supplies geometry, attributes and the CRS. Each GIS can choose its own initial symbols when a layer first opens.