Guide5 min read
GeoJSON, Shapefile, GeoPackage or GeoTIFF: which file fits a web map?
A practical way to choose a source format for points, boundaries and imagery before you share an interactive map.
By Sarkoa
Updated
You have a GIS file and want someone to explore it online. Should you convert it first? The useful first question is simpler: Does the file describe features, or is it an image or grid of values?
Points, lines and polygons are vector data. An orthomosaic, elevation model or other gridded surface is raster data. A web map can put both on screen, but the source formats and preparation checks differ. The Open Geospatial Consortium's tiles overview distinguishes vector features from map and imagery tiles.
Match the file to the data
| Format | What it commonly holds | Check before upload |
|---|---|---|
| GeoJSON | Vector features and their properties in one JSON file | Check coordinates and every property you are willing to share. The GeoJSON standard describes features and collections. |
| Shapefile | A vector layer spread across companion files | Keep .shp, .shx, .dbf and projection .prj together; a lone .shp is incomplete. GDAL documents the file set. |
| GeoPackage | A database container that can hold vector layers and raster tile tables | Check which layer you mean to publish. GDAL documents both kinds; Sarkoa currently accepts vector layers, not raster tiles stored inside a GeoPackage. |
| GeoTIFF | Georeferenced raster imagery or measurements | Check its coordinate system, band meaning, nodata and whether the pixels represent a photo or numerical values. GDAL's GeoTIFF driver documents the raster format. |
This is a choice of source file, not a demand that you build web tiles yourself. For supported uploads, Sarkoa retains the original and prepares a separate map-ready copy. Its supported-format list covers more than these four formats; its file-optimization guide explains what happens after upload.
Publish one GeoPackage layer as a web map
Download the Ottawa review GeoPackage (124 KiB). It contains two fictional vector layers, delivery_areas with three polygons and inspection_sites with three points. For a client reviewing delivery boundaries, publish the polygons on their own.
- In the QGIS Browser panel, expand the GeoPackage and add delivery_areas. Open its attribute table and check that Central review area has priority 2.
- Right-click that layer and choose Export → Save Features As…. Choose GeoJSON, set the CRS to EPSG:4326 – WGS 84, and save as
delivery-areas.geojson. Open the export in QGIS and check that it contains three polygons. The inspection points stay in the GeoPackage. - Sign in to Sarkoa, upload the GeoJSON in Files, and wait for processing. In Custom maps, add the layer, style it by
priority, and show the area name and priority in its popup. Save the map, choose who can open it, then copy the viewer link.
Open the finished delivery-area map and click the blue polygon to compare its name and priority with the source. If the client needs the GeoPackage itself, check that every layer and field in the download is suitable for that recipient. QGIS vector export options
Share a Google Earth route or placemarks
For a Google Earth project with several folders, open the KML and KMZ publishing guide. Follow two named stops and a route from a downloadable KMZ to a browser map. The example shows which layers to export in QGIS and how to handle the project’s custom icon and ground overlay.
A small example: three sites and one map
Suppose your deliverable is three inspection locations with a name, status and inspection count. Sarkoa's fictional sample GeoJSON gives you exactly that practice layer. Open it before upload: confirm there are three features near Ottawa and that Central has an inspection_count of 8. Upload it, wait for processing and add it to a custom map. Style by status, then open Central's popup and check the value. The first-map walkthrough gives the screen-by-screen steps.
If those same point features are in a Shapefile, keep the required companion files together in the upload. If your project is in a GeoPackage, confirm that the vector layer you intend to show is the one processed. If the extra layer is an orthomosaic or elevation surface, use a suitable raster source such as GeoTIFF and check its display mode and legend separately. Sarkoa's troubleshooting guide covers missing Shapefile parts, unsupported GeoPackage rasters and processing failures.
Check the result, not just the extension
A file named .geojson can still contain wrong coordinates. A GeoTIFF can have a valid extension but an unhelpful band interpretation or nodata edge. Open the processed layer at a familiar location, inspect a feature or pixel where appropriate, and confirm that the map communicates the right units and source credit. Sarkoa optimizes for viewing; it does not perform atmospheric correction, cloud masking or other analysis on your behalf.
Automatic cloud optimization accepts supported source files up to 10 GiB. Split larger sources or export a smaller area before upload. If you prepare PMTiles or a Cloud Optimized GeoTIFF yourself, the prepared-file route accepts up to 500 MiB per file. Check your storage allowance and the file preparation instructions.
Finally, decide whether the audience needs the map or the original data. A public map can display its layers while source files remain on organization access; a file share link or email invite is a separate handoff. Vector tile attributes still reach the browser, so remove private fields and locations before publishing. See Sharing and access for the permission split.
Start with the small GeoJSON practice file if you are new to web maps. Once it works, bring the actual format your project already uses and check its processing result before sharing the link.
Related posts
- Guide4 min read
Agentic GIS in practice: turn an inspection question into a field map
Use a GIS AI agent to query three inspection sites, check the two that need review, and publish an interactive map your field team can open.
Read more → - Guide4 min read
Share a KML or KMZ online as an interactive map
Turn two Google Earth placemarks and a route into a browser map. Try the KMZ, export the right layers in QGIS and see what happens to icons and overlays.
Read more →