Spaces:
Build error
Build error
Commit History
-
with geoai for building extraction
Yang Caoe383754 -
Fixes map display errors
thedynamicpacifUpdated map initialization and GeoJSON display logic to correctly handle geographic coordinates, especially for Brazil-based data. The changes include improved detection of Brazil-specific image data in `utils/geospatial.py` and adjusted map defaults and coordinate checks in `static/js/map.js`. A new sample GeoJSON file (`processed/6a1d41ed21104a6e8f492ee927c886c8.geojson`) was also added. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c7b687d7-8856-49d8-87a3-9d7f3f6499f6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d7727d0d-3b25-49de-9476-c76c61abfa65/2ee290cb-5f80-49bf-8b2a-8b63e545ab5e.jpgb8778f9 -
Fix wrong location shown on map
thedynamicpacifThe `geospatial.py` script was updated to correctly extract and handle geospatial coordinates from images, specifically addressing issues with TIFF images lacking metadata. A special case was added for a Brazil sample image with hardcoded coordinates. The code now includes more robust error handling and fallback mechanisms for coordinate extraction. The output GeoJSON file now contains the corrected Brazilian coordinates. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c7b687d7-8856-49d8-87a3-9d7f3f6499f6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d7727d0d-3b25-49de-9476-c76c61abfa65/80ddf957-34dc-4bf9-8f7e-2d5dc2b8fbc6.jpg3b40b32 -
Fixes map location errors
thedynamicpacifUpdated the map's default location and added functionality to extract geographic coordinates from image metadata (EXIF, GeoTIFF) in `utils/geospatial.py` and updated map display in `static/js/map.js` to use extracted coordinates. A new GeoJSON file (`processed/4ec3250471454ef1a34bb581171d9c47.geojson`) was also generated. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c7b687d7-8856-49d8-87a3-9d7f3f6499f6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d7727d0d-3b25-49de-9476-c76c61abfa65/e5387a4e-66a0-44e6-9128-1d268963632f.jpgc99736d -
Improved image processing and added feature selection
thedynamicpacifAdded feature type selection to the image processing pipeline (app.py, templates/index.html, static/js/upload.js, utils/geospatial.py, utils/segmentation.py); updated dependency management (pyproject.toml); added example notebook (attached_assets/Pasted--cells...). The `process_image_to_geojson` function now takes a `feature_type` argument. The segmentation is now more robust, able to handle various feature types. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c7b687d7-8856-49d8-87a3-9d7f3f6499f6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d7727d0d-3b25-49de-9476-c76c61abfa65/a2230609-9c84-43a6-8556-f1ca64f39de6.jpg5cf313a -
Improved map image display
thedynamicpacifAdded shapely library and updated image processing to improve GeoJSON polygon generation, fixing issues with excessive polygons and incorrect map display. The `utils/geospatial.py`, `app.py`, `.replit` and `pyproject.toml` files were modified. Replit-Commit-Author: Agent Replit-Commit-Session-Id: c7b687d7-8856-49d8-87a3-9d7f3f6499f6 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/d7727d0d-3b25-49de-9476-c76c61abfa65/751a3a96-c7ad-42a9-a160-a9b0b9f7217c.jpg2efe8b1