Geospatial Data (Datahub Entry)¶
Reference documentation for Geospatial Data entries in EnergyAtlas Datahub.
Overview¶
Geospatial Data entries store geographic and spatial information in the Datahub. These entries can represent building footprints, district boundaries, or other geographic features used in energy modeling.
Object Structure¶
Properties¶
id (string, required) - Unique identifier for the entry - Format: UUID or custom identifier
type (string, required) - Entry type, must be "geospatial_data" - Value: "geospatial_data"
name (string, required) - Human-readable name - Example: "Building Footprint B001"
description (string, optional) - Description of the geospatial data
geometry (object, required) - Geographic geometry (GeoJSON format) - See geometry structure below
properties (object, required) - Attribute properties - Can include building characteristics, IDs, etc.
crs (string, optional) - Coordinate Reference System - Format: EPSG code (e.g., "EPSG:4326") - Default: WGS84 (EPSG:4326)
created_at (datetime, required) - Creation timestamp
updated_at (datetime, required) - Last update timestamp
Geometry Structure¶
Supported Geometry Types¶
Point
1 2 3 4 | |
Polygon (Building footprint)
1 2 3 4 | |
MultiPolygon
1 2 3 4 | |
Example Entry¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | |
Operations¶
Create Entry¶
1 2 3 4 5 6 7 | |
Get Entry¶
1 | |
Update Entry¶
1 2 3 4 5 | |
Delete Entry¶
1 | |
Usage Examples¶
Creating Building Footprint¶
- Navigate to Datahub
- Select datahub
- Click "Add Entry"
- Choose "Geospatial Data"
- Enter geometry (coordinates or upload GeoJSON)
- Add properties
- Save entry
Importing Multiple Entries¶
- Prepare GeoJSON file with multiple features
- Navigate to Datahub
- Click "Import"
- Select GeoJSON file
- Map fields to properties
- Import entries
Updating Geometry¶
- Select geospatial data entry
- Click "Edit"
- Modify geometry coordinates
- Save changes
Geometry Validation¶
Requirements¶
- Valid coordinates: Within valid ranges
- Closed polygons: First and last points must match
- No self-intersections: Polygon edges must not cross
- Right-hand rule: Exterior ring counter-clockwise
Common Issues¶
Invalid Polygon: - Fix: Ensure first and last coordinates match - Fix: Check coordinate order
Self-Intersection: - Fix: Simplify geometry - Fix: Repair using GIS tools
Wrong CRS: - Fix: Specify correct CRS - Fix: Transform coordinates if needed
Best Practices¶
- Use GeoJSON: Preferred format for geospatial data
- Validate geometry: Check geometry validity
- Specify CRS: Always include coordinate reference system
- Store properties: Include relevant attributes
- Simplify when needed: Reduce complexity for large datasets
Coordinate Reference Systems¶
Common CRS¶
WGS84 (EPSG:4326) - Geographic coordinates (lat/lon) - Default for EnergyAtlas - Use for most cases
Web Mercator (EPSG:3857) - Web mapping standard - Use for web visualizations
Local CRS - Project-specific systems - Specify EPSG code
Related Objects¶
- Datahub - Parent datahub object
- Weather File - Weather data entries
References¶
- Data Preparation - Preparing geospatial data
- Urban Data Integration Workflow - Importing data