Load and Display
Load a zipped shapefile from your device, or use the sample dataset to explore the workflow. Display the original map before choosing the anonymisation parameters.
Read the guide
Browser ApplicationSharing geospatial data is essential for research, planning and decision-making, but revealing precise locations can put individuals, communities and sensitive sites at risk. MapSafe brings together spatial masking, encryption and blockchain notarisation to help you manage these risks and retain control over access to your data.
Designed for researchers, GIS professionals, organisations and communities, MapSafe makes geospatial data protection accessible without the need to install specialist software.
MapSafe processes geospatial datasets locally in your browser, without requiring you to upload them to a server for processing. This documentation explains how to use the browser-based application to safeguard and access sensitive datasets.
Use MapSafe to protect sensitive geospatial datasets before publishing, displaying or sharing them with others. The application combines three complementary techniques: anonymisation to reduce location disclosure, encryption to control who can recover the data, and blockchain notarisation to support subsequent checks of file integrity. Each technique serves a different purpose. Combining them provides data owners with a way to manage both the spatial detail and accessibility of the information they release.
As a data owner, create masked or binned representations of the original dataset and encrypt the appropriate levels of spatial detail into a single volume. Share that volume and the appropriate passphrase terms with the intended recipients. If the encrypted volume is notarised, recipients can compare its cryptographic hash against the blockchain record before decrypting it and displaying the map. The two workflows bring these functions together within a single browser-based environment.
MapSafe was developed to support geospatial data sovereignty: the ability of data owners to retain control over how their sensitive geographic information is protected, shared and accessed. The research paper MapSafe: A complete tool for achieving geospatial data sovereignty describes the approach of combining geographic masking, encryption and blockchain notarisation in a single tool.
Geospatial datasets are often valuable precisely because they contain detailed information about where observations, events or features are located. However, releasing the original coordinates may reveal sensitive information about people, communities or sites. In many situations a recipient needs only an approximate distribution of observations rather than the exact coordinates of every point. MapSafe allows the data owner to prepare different representations of the same dataset for these different purposes.
The browser application implements its protection mechanisms using JavaScript, including the browser's built-in Web Crypto API for encryption and Uber's H3 JavaScript library for hexagonal binning. There is no need to install specialist GIS software to use the browser workflows. The spatial processing and encryption take place locally; notarisation, when undertaken, involves a separate blockchain transaction.

Protect sensitive geospatial information before sharing it using three complementary techniques in sequence: anonymise, encrypt and notarise. Begin by loading and displaying the original dataset. Together, the protection steps address location privacy, access control and data integrity, rather than treating any one of these as a substitute for the others.
MapSafe works with zipped shapefiles and also provides a fictional sample dataset for learning the workflow. The map helps the data owner inspect the original data and assess how the anonymised representation differs from it before proceeding with encryption.
Load a zipped shapefile from your device, or use the sample dataset to explore the workflow. Display the original map before choosing the anonymisation parameters.
Read the guideReduce the risk of revealing sensitive locations using donut masking or hexagonal binning (spatial aggregation). Choose parameters that balance location privacy with the usefulness of the resulting map.
Read the guideEncrypt the original dataset and, where required, its anonymised representations using the browser's Web Crypto API. Control access to different levels of spatial detail by sharing the appropriate passphrase terms.
Read the guideNotarise the encrypted volume's filename and cryptographic hash on the Ethereum blockchain. This establishes a record that recipients can use to check whether the encrypted file has changed since notarisation.
Read the guideRead the Safeguarding overview or open the individual guides above for instructions on loading data, choosing anonymisation parameters, encrypting the volume and notarising its hash.
Once a geospatial dataset has been safeguarded and shared, the recipient needs a way to check the integrity of the encrypted volume and recover the representation for which access has been granted. MapSafe provides a corresponding Accessing workflow to verify, decrypt and display the dataset. The recipient begins by loading the encrypted file and, where available, obtains the associated notarisation record and the appropriate passphrase from the data provider.
Verification and decryption serve different purposes. Comparing the hash against the corresponding blockchain record provides evidence that the encrypted volume has not changed since notarisation. Decryption then makes the protected information usable at the level of detail corresponding to the passphrase supplied by the data owner.
Generate the SHA-256 hash of the received encrypted volume and compare it with the previously notarised value. A matching hash supports the conclusion that the file has not changed since notarisation.
Read the guideDecrypt the encrypted volume locally using the appropriate passphrase. Select the fine, medium or coarse level corresponding to the access provided by the data owner and download the recovered dataset.
Read the guideDisplay the decrypted geospatial dataset directly in your browser. View the original, masked or binned representation according to the level recovered during decryption.
Read the guideThe recipient loads the encrypted .enc file into MapSafe and compares the displayed hash with the relevant blockchain record. If the values do not match, the recipient should stop and confirm the file and record with the data provider. If the file is verified, the recipient can select the appropriate level, enter the required passphrase terms, decrypt and download the dataset, and display the resulting map.
For example, a recipient given the 10-term passphrase can recover the medium representation if that level is included, rather than the precise original dataset protected by the full passphrase. The same encrypted volume can therefore be distributed to recipients with different requirements. A matching hash does not prove the accuracy of the underlying observations, the authority of the publisher or the anonymity of the recovered map.
Read the Accessing overview for the full recipient workflow, including verification, decryption and map display.
Watch the original browser-based demonstrations to see how the individual protection mechanisms fit together in practice. The first video follows the data owner's safeguarding workflow; the second follows the recipient's accessing workflow.
These demonstrations were produced for earlier versions of the browser application; some labels may differ from the current interface. See the Video demonstrations page for both recordings.
For the research underpinning MapSafe, read MapSafe: A complete tool for achieving geospatial data sovereignty. The geographic masking technique draws on the work implemented in MaskMy.XYZ; its associated research paper provides further methodological context.
MapSafe is also available as a QGIS plugin and a mobile GIS application. These platforms share the broad objectives of safeguarding and accessing sensitive geospatial information, but their technical implementations and workflows differ. This documentation specifically describes the browser-based version. Visit the MapSafe GitHub repository to explore the browser application's source code.