{"name": "MapBiomas Fogo", "package_name": "mapbiomas_fogo", "version": "1.3", "experimental": false, "qgis_min": "3.0.0", "qgis_max": "4.99.0", "downloads": 149, "uploaded_by": "newton787", "upload_datetime": "2026-07-23T12:16:37.272105", "changelog": "Version 1.3 - Major Update\r\nNew Features:\r\nFull integration with the new MapBiomas Fire API for direct access to\r\nfire products in QGIS\r\n\r\nHierarchical territorial clipping system with support for\r\nadministrative boundaries\r\n\r\nCustom polygon geometry clipping with local processing (no API upload\r\nrequired)\r\n\r\nDynamic legend system based on API responses with automatic layer\r\nstyle updates\r\n\r\nInteractive statistics panel with area queries and context-based\r\ncalculations\r\n\r\nEnhanced statistics table with color-coded legends, separate unit\r\ncolumns, and highlighted totals\r\n\r\nImproved statistics export functionality with separate columns for\r\nvalues, units, and year ranges\r\n\r\nImprovements:\r\nAutomatic intersection of fire features (FGB) with selected\r\nterritories or custom geometries\r\n\r\nOptimized territoryId handling to avoid redundant API requests\r\n\r\nEnhanced error handling with retry functionality and detailed debug\r\nlogs\r\n\r\nBetter user feedback during data loading operations\r\n\r\nBug Fixes:\r\nFixed year filter issues in burned area frequency maps\r\n\r\nResolved API endpoint connectivity problems\r\n\r\nCorrected metadata links and repository URLs\r\n\r\nFixed Qt6/QGIS 4 compatibility issues:\r\n\r\nImplemented compatibility layer (compat.py) for Qt5/Qt6 enum handling\r\ndifferences\r\n\r\nResolved QHeaderView.ResizeToContents attribute errors in QGIS 4 (Qt6\r\nuses nested enums)\r\n\r\nFixed duplicate import issue that was overriding Qt compatibility\r\nlayer\r\n\r\nStatistics panel now works correctly in both QGIS 3 (Qt5) and QGIS 4\r\n(Qt6)\r\n\r\nCompatibility:\r\nQGIS 3.0 - 4.99\r\n\r\nMapBiomas Fire Plugin - Behavior Modifications\r\nSummary of Changes\r\nThis document describes the changes implemented in the MapBiomas Fire\r\nplugin regarding the download behavior of fire features (FGB -\r\nFlatGeobuf).\r\n\r\nNew Download Behavior for Features\r\n1. Brazil (Default)\r\nAction: Loads the FlatGeobuf layer normally, with no additional\r\nprocessing\r\n\r\nResult: Fire features for all of Brazil for the selected years\r\n\r\n2. Other Territorial Clipping\r\nAction: Performs an INTERSECT between the fire features (FGB) and the\r\nfull boundaries of the territory provided by the API (not just\r\nbounding box)\r\n\r\nResult: Only the fire features located inside the selected territory\r\nboundaries are added to the canvas\r\n\r\nExample: If you select Cerrado, only the fire inside the Cerrado\r\nboundaries will be displayed\r\n\r\n3. Custom Geometry\r\nAction:\r\n\r\nApplies configured treatments to the geometry (dissolve, selection,\r\netc.)\r\n\r\nPerforms an INTERSECT between the fire features (FGB) and the custom\r\ngeometry\r\n\r\nDoes NOT upload to the API - works locally within QGIS\r\n\r\nResult: Only the fire features located inside the custom geometry are\r\nadded to the canvas\r\n\r\nUsage Workflow\r\nFor Downloading with a Specific Territory:\r\nOpen the MapBiomas Fire plugin\r\n\r\nGo to the Download tab\r\n\r\nSelect the desired years from the combobox (multiple years can be\r\nselected)\r\n\r\nGo to the Territorial Clipping tab\r\n\r\nSelect the desired territory (e.g., a state, biome, etc.)\r\n\r\nClick OK\r\n\r\nResult: Fire features will be loaded with an automatic intersect to\r\nthe selected territory\r\n\r\nFor Downloading with Custom Geometry:\r\nOpen the MapBiomas Fire plugin\r\n\r\nCreate a polygon vector layer in QGIS representing your area of\r\ninterest\r\n\r\nGo to the Download tab\r\n\r\nSelect the desired years\r\n\r\nGo to the Custom Geometry tab\r\n\r\nSelect your layer from the combobox\r\n\r\n(Optional) Check \"Selected features only\" if you want to use only\r\nselected features\r\n\r\nClick OK\r\n\r\nResult: Fire features will be loaded with an intersect to the custom\r\ngeometry (without sending data to the API)\r\n\r\nBehavior of Other Queries\r\nAll other plugin functionalities (rasters, heatmaps, statistics, etc.)\r\ncontinue to work exactly as before:\r\n\r\nUse the territoryId passed to the API\r\n\r\nReceive data already processed by the server\r\n\r\nBehavior remains unchanged\r\n\r\nTechnical Details\r\nAdded Imports\r\nQgsCoordinateReferenceSystem\r\n\r\nQgsGeometry\r\n\r\nQgsField\r\n\r\nQgsFeature\r\n\r\njson\r\n\r\nNew Methods in MapbiomasfogoDialog\r\n_build_qgs_geometry_from_geojson(geometry_payload) (static)\r\n\r\nConverts GeoJSON to QgsGeometry\r\n\r\nFallback for older QGIS versions via OGR\r\n\r\n_intersect_with_territory_geometry(fgb_layer, territory_ids,\r\napi_client, year)\r\n\r\nRetrieves territory geometry via API\r\n\r\nPerforms intersect with FGB\r\n\r\n_intersect_with_user_geometry(fgb_layer, user_geometry_layer, year)\r\n\r\nRetrieves geometry from user layer\r\n\r\nPerforms intersect with FGB\r\n\r\n_get_dissolved_geometry(vector_layer, selected_only=False)\r\n\r\nCombines multiple features into a single geometry\r\n\r\nRespects feature selection\r\n\r\n_perform_intersect(fgb_layer, clip_geometry, year, clip_source_name)\r\n\r\nExecutes the intersect\r\n\r\nCreates a temporary memory layer with the result\r\n\r\nAdds it to the project\r\n\r\nModifications to Existing Methods\r\n_load_selected_fgb_layers(api_client=None)\r\n\r\nNow collects selected territories\r\n\r\nPasses api_client to operations\r\n\r\n_load_fgb_layer(year, territory_ids=None, user_geometry_layer=None,\r\napi_client=None)\r\n\r\nAdded parameters for territories and custom geometry\r\n\r\nImplemented intersect logic\r\n\r\naccept()\r\n\r\nPasses api_client to _load_selected_fgb_layers()\r\n\r\nCompatibility\r\n\u2713 QGIS 3.x\r\n\r\n\u2713 QGIS 4.x\r\n\r\n\u2713 OGR/GDAL (for GeoJSON conversion)\r\n\r\nPotential Log Messages\r\nWhen working with intersection, you may see log messages such as:\r\n\r\n[MapBiomas Fire] Starting intersect with territories: ['1-2-3']\r\n\r\n[MapBiomas Fire] Performing intersect with Territory (2024)\r\n\r\n[MapBiomas Fire] Intersect completed: 1234 features for 2024\r\n(Territory)\r\n\r\n[MapBiomas Fire] Starting intersect with custom geometry\r\n\r\nImportant Notes\r\nPerformance: The intersect is computed locally within QGIS, so it may\r\ntake time for large FGB files\r\n\r\nFallback: If an error occurs during intersection, the layer is loaded\r\nnormally (unclipped)\r\n\r\nMemory: Resulting layers from the intersection are created as\r\ntemporary memory layers\r\n\r\nFeature Selection: If using custom geometry with \"Selected features\r\nonly\", only selected features will be used in the intersect\r\ncalculation\r\n\r\nVersion: 1.3\r\n\r\nDate: July 2025\r\n\r\nPlugin: MapBiomas Fire", "external_deps": null, "download_url": "https://plugins.qgis.org/plugins/mapbiomas_fogo/version/1.3/download/"}