A comprehensive urban analysis framework that creates detailed city portraits through the integration of spatial, documentary, and data-driven methodologies. This project showcases architectural heritage and urban development patterns across Albanian cities.
CityPortraits bridges traditional architectural analysis with modern data science to reveal hidden patterns and relationships in urban systems. The framework combines:
- Contextual Analysis: Historical and narrative sources translated into structured knowledge
- Spatial Analysis: Geometric and relational structures derived from mapped data
- Data Analysis: Quantification and validation across multiple urban datasets
- OpenStreetMap (OSM): Street networks, building footprints, POI data
- Global Human Settlement Layer (GHSL): Population density and built-up areas
- Global Data Explorer (GDE): Socio-economic indicators
- Albanian State Inspectorate of Geology (ASIG): Geological and environmental data
- Population Census: Demographic and socio-economic statistics
- Urban pattern recognition and classification
- Spatial relationship modeling
- Temporal evolution tracking
- Comparative urban metrics
- MkDocs: Static site generation with Material theme
- JavaScript Libraries: Cytoscape (network graphs), Leaflet (maps), Mermaid (diagrams)
- Data Processing: JSON-based data structures for actors, events, and places
- Interactive Visualizations: Timeline maps, network graphs, and pattern displays
CityPortraits/
├── docs/
│ ├── index.md
│ ├── print_all.md
│ ├── about/
│ ├── assets/
│ │ ├── data/
│ │ ├── images/
│ │ └── outputs/
│ ├── case_studies/
│ │ ├── index.md
│ │ └── *.ipynb
│ ├── methodology/
│ │ ├── contextual_analysis/
│ │ ├── spatial_analysis/
│ │ └── data_analysis/
│ ├── model/
│ ├── javascripts/
│ └── stylesheets/
├── mkdocs.yml
└── README.md
- Python 3.8+
- pip package manager
-
Clone the repository
git clone https://github.com/greamarchitects/CityPortraits.git cd CityPortraits -
Create virtual environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Serve locally
mkdocs serve
-
Open in browser
http://127.0.0.1:8000
- Build for production:
mkdocs build - Deploy:
mkdocs gh-deploy - Add content: Edit Markdown files in
docs/directory - Customize styling: Modify
docs/stylesheets/extra.css
- Timeline Maps: Historical event visualization with Leaflet
- Network Graphs: Actor-event-place relationships with Cytoscape
- Urban Patterns: GIF animations of morphological evolution
- Responsive Design: Mobile-friendly interface
- Multi-scale Analysis: From building to territorial levels
- Cross-temporal Comparison: Historical vs. contemporary patterns
- Data Validation: Statistical consistency checking
- Pattern Recognition: Automated urban morphology classification
- Urban System Reconstruction: Reconstruct comprehensive urban systems from fragmented data
- Cross-contextual Comparison: Enable meaningful comparison across geographical contexts
- Evidence-based Insights: Generate actionable insights for urban planning and heritage conservation
We welcome contributions to improve the framework and expand the analysis to additional cities.
- Add new case studies
- Improve data processing pipelines
- Enhance visualization components
- Expand methodological documentation
- Report bugs and suggest features
- Collaborate! : Contact
- Maintain data format consistency
- Document new features and methodologies
This project is licensed under the MIT License - see the LICENSE file for details.
- GREAM Architects: For providing the analytical framework and case study data
- Summer School DOCOMOMO: For the collaborative research environment
- Open Data Community: For providing accessible urban datasets
- Material for MkDocs: For the excellent documentation framework
GREAM Architects
- Website: greamarchitects.com
- Project: CityPortraits Urban Analysis Framework
- Date: April 2026
This framework represents a comprehensive approach to urban analysis, combining traditional architectural expertise with modern data science methodologies to create meaningful insights for urban planning and heritage conservation.