Add dataset card
#3
by
TarikKarol
- opened
README.md
CHANGED
@@ -1,3 +1,116 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Dataset Card for mag-map
|
2 |
+
|
3 |
+
## Table of Contents
|
4 |
+
|
5 |
+
- [Dataset Description](#dataset-description)
|
6 |
+
- [Dataset Summary](#dataset-summary)
|
7 |
+
- [Dataset Structure](#dataset-structure)
|
8 |
+
- [Data Instances](#data-instances)
|
9 |
+
- [Data Fields](#data-instances)
|
10 |
+
- [Data Splits](#data-instances)
|
11 |
+
- [Dataset Creation](#dataset-creation)
|
12 |
+
- [Curation Rationale](#curation-rationale)
|
13 |
+
- [Additional Information](#additional-information)
|
14 |
+
- [Dataset Curators](#dataset-curators)
|
15 |
+
- [Licensing Information](#licensing-information)
|
16 |
+
|
17 |
+
|
18 |
+
|
19 |
+
## Dataset Description
|
20 |
+
|
21 |
+
|
22 |
+
- **Homepage:** https://huggingface.co/datasets/czarna-magia/mag-map
|
23 |
+
- **Repository:** https://github.com/knsiczarnamagia/wave3-magical-drones
|
24 |
+
- **Point of Contact:** [KNSI Czarna Magia](https://discord.com/invite/aVTeDfreSD)
|
25 |
+
|
26 |
+
|
27 |
+
### Dataset Summary
|
28 |
+
|
29 |
+
|
30 |
+
This dataset consists of 16,000 pairs (32,000 total files) of topological images and corresponding vector map images of Polish cities. File names' structure: `{city}_cell_{number}.jpg` (e.g., `warszawa_cell_1.jpg`).
|
31 |
+
|
32 |
+
The dataset was created using the [QGIS](https://www.qgis.org) software with:
|
33 |
+
- Vector maps sourced from the [Geofabrik portal](https://download.geofabrik.de/europe.html),
|
34 |
+
- The [GUGiK Data Downloader plugin for QGIS](https://plugins.qgis.org/plugins/pobieracz_danych_gugik/),
|
35 |
+
- Custom scripts available in [project's repository](https://github.com/knsiczarnamagia/wave3-magical-drones).
|
36 |
+
|
37 |
+
This collection is suitable for applications in geographic information systems, urban analysis, and machine learning tasks involving spatial data.
|
38 |
+
|
39 |
+
This dataset card was created as one of the WAVE3 obligatory project requirements, as the dataset is part of the KNSI "Czarna Magia" project.
|
40 |
+
|
41 |
+
|
42 |
+
## Dataset Structure
|
43 |
+
|
44 |
+
|
45 |
+
### Data Instances
|
46 |
+
|
47 |
+
{
|
48 |
+
sat_image: "localhost:8080/sat/warszawa_cell_1.jpg",
|
49 |
+
map_image: "localhost:8080/map/warszawa_cell_1.jpg",
|
50 |
+
name: "warszawa_cell_1.jpg"
|
51 |
+
}
|
52 |
+
|
53 |
+
### Data Fields
|
54 |
+
|
55 |
+
- sat_image: a jpg image
|
56 |
+
- map_image: a jpg image
|
57 |
+
- name: a string
|
58 |
+
|
59 |
+
|
60 |
+
### Data Splits
|
61 |
+
|
62 |
+
|
63 |
+
[Needs More Information]
|
64 |
+
|
65 |
+
|
66 |
+
## Dataset Creation
|
67 |
+
|
68 |
+
|
69 |
+
### Curation Rationale
|
70 |
+
|
71 |
+
The dataset was created to supply an ML model in a student project, "Magiczne Drony." It required a pair of images because our solution is meant to create a map output from a satellite input. Our supervisor suggested QGIS as a great source of data because of existing plug-ins, shapefile vectors, and a built-in console for scripts to automate the process.
|
72 |
+
|
73 |
+
|
74 |
+
#### Initial Data Collection and Normalization
|
75 |
+
|
76 |
+
The data was collected by following these steps:
|
77 |
+
|
78 |
+
- Importing shapefile vectors of Polish voivodeships from the [Geofabrik portal](https://download.geofabrik.de/europe.html) into [QGIS](https://www.qgis.org)
|
79 |
+
- Creating a grid over a selected city to prevent the program from crashing
|
80 |
+
- Using the first script from [our repository](https://github.com/knsiczarnamagia/wave3-magical-drones) at `./datagen/step1.py` to standardize styles, coordinate system, and layers, and to create a new grid containing only cells over terrain with more than 5% building layer coverage
|
81 |
+
- Downloading the topological images using the [GUGiK Data Downloader plugin for QGIS](https://plugins.qgis.org/plugins/pobieracz_danych_gugik/)
|
82 |
+
- Importing the topological images from the directory chosen in the previous step to the program
|
83 |
+
- Using the second script from [our repository](https://github.com/knsiczarnamagia/wave3-magical-drones) at `./datagen/step2.py` to crop the vector and topological files according to grid cells and export them to the ./sat and ./map directories with appropriate file names\
|
84 |
+
|
85 |
+
|
86 |
+
## Additional Information
|
87 |
+
|
88 |
+
### Dataset Curators
|
89 |
+
|
90 |
+
- Dawid Koterwas
|
91 |
+
- Tarik Alaiwi
|
92 |
+
|
93 |
+
### Licensing Information
|
94 |
+
|
95 |
+
MIT License
|
96 |
+
|
97 |
+
Copyright (c) [2025] [KNSI Czarna Magia]
|
98 |
+
|
99 |
+
|
100 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
101 |
+
of this software and associated documentation files (the "Software"), to deal
|
102 |
+
in the Software without restriction, including without limitation the rights
|
103 |
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
104 |
+
copies of the Software, and to permit persons to whom the Software is
|
105 |
+
furnished to do so, subject to the following conditions:
|
106 |
+
|
107 |
+
The above copyright notice and this permission notice shall be included in all
|
108 |
+
copies or substantial portions of the Software.
|
109 |
+
|
110 |
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
111 |
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
112 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
113 |
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
114 |
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
115 |
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
116 |
+
SOFTWARE.
|