https://github.com/azeemk210/flask-raster-viewer

A simple Flask web app to upload, georeference, and visualize raster files (GeoTIFF `.tif`, Sentinel `.jp2`) using Leaflet.

https://github.com/azeemk210/flask-raster-viewer

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (7.3%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

A simple Flask web app to upload, georeference, and visualize raster files (GeoTIFF `.tif`, Sentinel `.jp2`) using Leaflet.

Basic Info
  • Host: GitHub
  • Owner: azeemk210
  • Language: Python
  • Default Branch: main
  • Size: 0 Bytes
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Created about 1 year ago · Last pushed about 1 year ago
Metadata Files
Readme

README.md

🗺️ Flask Raster Viewer

A simple Flask web app to upload, georeference, and visualize raster files (GeoTIFF .tif, Sentinel .jp2) using Leaflet.


📦 Features

  • Upload .tif, .tiff, or .jp2 files
  • Automatically:
    • Converts .jp2.tif.png
    • Extracts WGS84 bounds with GDAL
    • Displays the raster on a Leaflet map
  • Toggle layer visibility on the map

🚀 Quick Start

1. Clone this repo

bash git clone https://github.com/azeemk210/flask-raster-viewer.git cd flask-raster-viewer

2. Create environment

Using conda (recommended)

bash conda env create -f environment.yml conda activate geoapp

3. Run the app

bash python app.py

Then open http://localhost:5000 in your browser.


📁 Upload Format

Supported file types: - .tif, .tiff (GeoTIFF with georeference) - .jp2 (Sentinel-2 imagery)

After upload: - The raster is converted to .png - Bounds are extracted and passed to Leaflet - Map auto-zooms to the raster extent


📸 Screenshot

!## 📸 Screenshot

Map Viewer Screenshot


🧪 Dev Notes

  • Built using:
    • Flask
    • GDAL (Python bindings)
    • Leaflet.js
  • GDAL is required and must be installed properly with conda or a precompiled wheel (Windows users see: Gohlke Wheels)

📝 License

MIT License — feel free to use, modify, and share.

Owner

  • Name: azeemk210
  • Login: azeemk210
  • Kind: user

GitHub Events

Total
  • Push event: 4
Last Year
  • Push event: 4

Dependencies

environment.yml pypi
requirements.txt pypi
  • Flask *
  • GDAL *
  • pyproj *