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 -
Fixes image upload failures
thedynamicpacifImproved the image upload process by adding error handling for network issues, increasing upload timeout, and setting a maximum file size limit. Specifically, modified `app.py` to set `MAX_CONTENT_LENGTH` and `UPLOAD_TIMEOUT`, and updated `static/js/upload.js` to include a timeout and error handling within the fetch request. 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/5db894a3-8b66-4603-922a-3c556a1b1242.jpgc8cd0d2 -
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 -
Improves map visualization
thedynamicpacifUpdated the map to display different feature types (buildings, trees, water, roads) with distinct colors and styles. Added a feature type selection to the upload form and updated the displayResults function to handle and display the feature type. Changes made to `static/js/map.js` and `static/js/upload.js`. 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/e5f084ec-b0de-4b77-93ae-2162e40cb521.jpgb96ab7a -
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
-
Adds image-to-GeoJSON processing
thedynamicpacifAdds a Flask web application to process uploaded images, convert them to GeoJSON using OpenCV and GDAL (if available), and display the results on a Leaflet map. Includes file uploads, error handling, and download functionality. The application uses `app.py`, `main.py`, `utils/image_processing.py`, `utils/geo_processing.py`, and associated static files and templates. 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/142cb962-b872-46ed-96ac-2c68830b8dbb.jpg3a84963