Compare commits

..

No commits in common. "62a177108c48817dfcc8032b24c14fe172f365c0" and "1b34b64d884c1136892a134732c8d1705a802245" have entirely different histories.

5 changed files with 12 additions and 7 deletions

10
.gitignore vendored
View file

@ -13,6 +13,12 @@ ENV/
# Jupyter Notebook checkpoints
.ipynb_checkpoints/
# Raster and geodata outputs
*.tif
*.npy
*.png
trinkbrunnen_pixel_positions.npy
trinkbrunnen_karte.png
# Matplotlib figures
*.pdf
@ -37,7 +43,9 @@ htmlcov/
*.bak
*.tmp
# Ignore results folder except source data
results/
!results/s2_2025.tif
# Ignore geodata except source files
!geodata/Trinkbrunnen_Berlin.geojson

View file

@ -2,13 +2,10 @@ import rasterio
import geopandas as gpd
import numpy as np
import matplotlib.pyplot as plt
import os
# --- CONFIG ---
raster_path = os.path.join('geodata', 's2_2025.tif')
geojson_path = os.path.join('geodata', 'Trinkbrunnen_Berlin.geojson')
output_dir = os.path.join('datenvisualisierung')
os.makedirs(output_dir, exist_ok=True)
raster_path = 'geodata/s2_2025.tif'
geojson_path = 'geodata/Trinkbrunnen_Berlin.geojson'
# --- LOAD RASTER ---
with rasterio.open(raster_path) as src:
@ -41,7 +38,7 @@ for px, py in pixel_positions:
plt.scatter(px, py, c='deepskyblue', s=40, edgecolors='black', label='Trinkbrunnen')
plt.title('Trinkbrunnen auf der Berlin-Karte')
plt.axis('off')
plt.savefig(os.path.join(output_dir, 'trinkbrunnen_karte.png'), bbox_inches='tight', dpi=200)
plt.savefig('datenvisualisierung/trinkbrunnen_karte.png', bbox_inches='tight', dpi=200)
plt.show()
# --- EXPORT PIXEL POSITIONS FOR GAME ---

Binary file not shown.

Before

Width:  |  Height:  |  Size: 244 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 KiB

Binary file not shown.