Chameleon is an Open Source cross-platform (MacOS, Linux, Windows) OpenStreetMap companion software developed by Kaart
with PySide
and Python
. This application compares tabulated OSM data (.csv) and provide users with an output documenting changes between two timestamps. Current functionalities allows users to compare OSM tags from two snapshots. Some metadata OSM tags are default outputs of Chameleon, including type
, id
, name
, user
, timestamp
, version
. Chameleon also features change grouping (consolidation similar changes for compared tag) and multi-tag processing (sequential tag comparisons).
Chameleon aims to inform OSM editors about changes that occurred in an area from the OSM database. The goal of Chameleon is to engage individual and organized OSM community memebers in collaborative editing.
- Install dependencies:
PyInstaller
,yaml
,appdirs
,PySide
,pandas
:
pip3 install pyinstaller pyyaml appdirs PySide6 pandas
- Clone the repo
git clone git@github.com:KaartGroup/Chameleon.git
- Change into the directory
cd Chameleon/
- Run
initialize.py
to generate some neccessary files and the self-contained executable
./initialize.py
- Find the executable in the
dist
directory
Tabulated OSM data (.csv) is required for Chameleon. OSM data snapshots can be obtained from Overpass Turbo
. Default tags that are needed for Chameleon processing include type
, id
, name
, user
, timestamp
, version
. Users will need acquire the two snapshots of OSM data with all of the above-listed tags to compare OSM data with Chameleon. With Overpass Turbo, output should be exported using the "raw data directly from Overpass API" option:
Sample Query for extracting Overpass snapshot OSM data:
- Modify
[date:"YYYY-MM-DDT00:00:00Z"]
for desired snapshot. - Modify
{geocodeArea:LOCATION}
for desired location. - Modify
way["building"]
for desired OSM objects.
[out:csv(::type,::id,name,::user,::timestamp,::version,highway,ref,int_ref)][timeout:250][date:"YYYY-MM-DDT00:00:00Z"];
{{geocodeArea:LOCATION}}->.searchArea;
(
way["building"](area.searchArea);
);
out meta;
Chameleon requires OSM data snapshots to perform the analysis. Simply navigate or drag in your file options for Old and New snapshots. Then specify an Output location for the summaries to be generated. Note that there is an editable and noneditable portion of the Output field. Chameleon will append whatever you type with the name of the mode analyzed and a .csv
suffix. For example, typing /home/me/Documents/peru
into this field might give output files like /home/me/Documents/peru_highway.csv
and /home/me/Documents/peru_name.csv
, depending on which tags are selected in the next step.
Provide the tags you would like to compare. Tags can be entered either from the Popular OSM Tags buttons or the search bar. As you use Chameleon, your most-frequently-used tags will automatically replace the defaults on the five buttons.
Decide whether or not to group the changes by type of change. For example, with the box checked and while analyzing a ref
tag, all ways that had a ref tag changed from “I 5” to “I 90” would be grouped together into one row in the output CSV, with a count of how many ways are in the group, a list of editors who last edited the ways in the group, the datestamp of the last edit to a member of the group, and a link to load the whole group into JOSM. Ways where “I 5” was removed entirely would appear in a different row.
Hit Run to generate your output CSVs.
Chameleon provides a list of defaulted column headers with the output. A comprehensive list of definition for the output columns can be found below! The purpose of the Chameleon output is to inform OSM mappers about how the area they are trying to map has changed, and by identifying the change, one can collaborate with other mappers in the area more effectively.
id
(OSM object ID)url
(JOSM remote control)user
(OSM username)timestamp
(Last edited date)old_tag
(Tag value from older snapshot)new_tag
(Tag value from newer snapshot)action
(How has the object changed?)notes
(Empty column for Chameleon user)count
(only with grouping enabled, sum of objects with identical change)
- Submit bugs and requests through our
issue
page! - Fork the
Chameleon
repository, make changes and then make apull
request!
Chameleon is licensed under GNU General Public LIcense V3.0. More details can be found in LICENSE
.
The Kaart development team will like to thank everyone for using and contributing to the development of Chameleon.
Initial development by @austin61293, @dericke, @geografer and @LiuTwo
Logo designed by @sammi1