Skip to content

BrasilData 0.1.28: solar radiation, water stress and irrigation layers, with their layouts - #60

Open
elpidioassinaturas wants to merge 1 commit into
opengeos:mainfrom
elpidioassinaturas:brasildata-0.1.28
Open

elpidioassinaturas wants to merge 1 commit into
opengeos:mainfrom
elpidioassinaturas:brasildata-0.1.28

Conversation

@elpidioassinaturas

@elpidioassinaturas elpidioassinaturas commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Plugin: BrasilData (brasildata), elpidioassinaturas/BrasilData

What it does: this updates registry/brasildata.json from 0.1.27 to 0.1.28. Nothing else changes.

Unchanged: the permissions (edit, files, network), the minimum RustGIS (0.5.0) and the categories.

0.1.28: solar radiation, water stress and irrigation, with their layouts

These are the layers for a bivariate map of sun and water stress over irrigated land in Brazil.

  • Solar radiation (Meio físico › Clima): the NASA POWER climatology (all-sky surface shortwave, 2001 to 2025, kWh/m² per day), read from the POWER regional API.
    • The 1° cells around the area, with one cell of margin, become a 1° raster (raster.rasterize). It is interpolated (bilinear) onto the project grid and clipped by the area.
    • A script can ask for one month with "mes": 1 to 12.
    • It needs raster.rasterize, from RustGIS 0.6.0; on 0.5.0 the command says so.
  • Water stress (Água › Recursos hídricos): the WRI Aqueduct 4.0 baseline water stress, from the Aqueduct Water Risk service of the ArcGIS Living Atlas (CC BY 4.0), as one more ArcGIS theme in fontes.csv.
    • The plugin adds an estresse field with the categories in Portuguese, and the Aqueduct colours, when the layer first arrives.
  • Area equipped for irrigation (Água and Agricultura): the FAO Global Map of Irrigation Areas v5 (CC BY 4.0), the percentage of each 5′ cell equipped for irrigation around 2005.
  • Irrigation systems (Água and Agricultura): the MapBiomas irrigation map (centre pivot, flooding and other systems, 30 m, 1985 to 2025), as a tile map of all of Brazil, like the land-cover map. MapBiomas publishes no file of it that can be read by window.
  • Layout:
  • Map projection: choosing the area, or making the project grid, now draws the map in the grid's system (or the area's automatic one). A world projection such as Eckert IV made a state 27% too narrow on screen.

Tested:

  • In rustgis-cli 0.6.0:
    • all four layers in Paracatu (MG) and in the whole of Bahia (27 s, 156 POWER cells, 392 Aqueduct polygons);
    • a layout exported for each layer;
    • the map projection following the area and the grid (Eckert IV → EPSG:10857, then EPSG:5880).
  • In rustgis-cli 0.5.0: the Aqueduct layer works; solar radiation and irrigation stop with a message.
  • In a desktop build of RustGIS main with #1581 and #1723, for Bahia:
    • all four layers;
    • the GMIA window arriving and the command re-running;
    • the Layout button;
    • the view switching from Web Mercator to EPSG:10857.
  • The smoke test passes in rustgis-cli 0.5.0 and 0.6.0, and the release asset's SHA-256 matches the entry.

Not tested in the web app: the four new layers.

  • The entry's source.url is a release asset of the plugin's repository, and sha256 is that file's.
  • The plugin asks only for the permissions it uses.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Updates
    • Updated the BrasilData integration to release v0.1.28.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The BrasilData registry entry now points to plugin release v0.1.28. Its recorded SHA-256 digest is also updated.

Changes: BrasilData release metadata

Layer / File(s) Summary
Update registered release
registry/brasildata.json
The source URL now references BrasilData v0.1.28, and the recorded SHA-256 digest is updated.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Feature

Possibly related PRs

Suggested labels: claude-review

Merge Risk: Minimal · up to 69453

This registry update points BrasilData to release v0.1.28 and updates its checksum. No concrete merge-blocking risk was found in the metadata change.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed The title clearly identifies the BrasilData 0.1.28 update and its main additions: solar radiation, water stress, irrigation layers, and layouts.
Description check Passed The description includes the plugin, purpose, detailed changes, testing information, and both required checklist confirmations. It also records the web app testing limitation.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the release string,
Then watches fresh checksums take wing.
The registry points to v0.1.28,
Its digest now matches the date.
One hop, one nibble, update complete!

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 2131051c-b30b-4096-a04e-ae1e5920de62
Commits

Reviewing files that changed from the base of the PR and between 0f5e48f and 69453fb.

Files selected for processing: 1

  • registry/brasildata.json

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@github-actions

Copy link
Copy Markdown

Code review

Bugs

  • None found. The diff changes only the source.url and sha256 in registry/brasildata.json, from 0.1.27 to 0.1.28. The entry's id is unchanged. The manifest in the package matches it (id brasildata, version 0.1.28). (high confidence)

Security

  • The package is a WebAssembly module, so its code can't be read here. I could check only its manifest, interface and strings.
  • It asks for edit, files and network. The PR says these are unchanged, and the description and command list fit them: it fetches public data and adds layers, fields and layouts.
  • The strings name layer.remove, edit.deleteField, share.exportLayer, layer.addUrl and service.add. These plausibly serve replacing and refreshing the plugin's own layers, adding tile maps and exporting layouts. The strings can't show which paths or layers they act on, so a maintainer should confirm that layer.remove and edit.deleteField only touch the plugin's own layers and fields, and that share.exportLayer only writes paths the user picked. (low-medium confidence)
  • The new layers add these hosts: power.larc.nasa.gov (NASA POWER), services.arcgis.com (Aqueduct), data.source.coop and storage.googleapis.com (GMIA and the MapBiomas data), and prd.plataforma.mapbiomas.org and plataforma.geoserver.mapbiomas.org (MapBiomas). They fit the stated sources. The other URLs in the module are the earlier government and open-data services (IBGE, ANA, ANEEL, ANP, INCRA, CAR, IBAMA, ANM, DNIT, INPE, Copernicus, ASF, OpenTopography and others). Nothing looks unrelated to the description.
  • The module imports are only rustgis.log, rustgis.call and rustgis.result, as required.
  • The source is reachable from homepage (https://github.com/elpidioassinaturas/BrasilData).

Performance

  • The module is 7.1 MB and the package 5.0 MB. That is large, but it is a data plugin that bundles the IBGE municipal limits.
  • I could not check the loop and output bounds of the new Bahia-scale queries (156 POWER cells and 392 polygons). The PR reports a 27 s run.

Quality

  • The PR text is clear. It lists the minimum RustGIS versions for the new commands (raster.rasterize needs 0.6.0), but the manifest keeps minRustgisVersion 0.5.0. That is fine only if the 0.5.0 failure message works as the PR says, which the PR reports as tested.
  • The four new layers are not tested in the web app (stated in the PR).

CLAUDE.md

  • No CLAUDE.md issues. The change is a registry entry pointing at a released package, with no plugin source added.

Plugin packages

id version runtime package module permissions module imports commands named in strings
brasildata 0.1.28 wasm 4,998,802 B (4.8 MB) 7,092,105 B (6.8 MB) edit, files, network rustgis.log, rustgis.call, rustgis.result analysis.simulate, edit.addField, edit.calculateField, edit.deleteField, edit.enable, gp.run, host.addLayer, host.features, host.layers, host.notify, host.view, info.commands, info.project, labels.enable, labels.field, layer.addUrl, layer.color, layer.displayFilters, layer.fields, layer.moveDown, layer.outline, layer.remove, layer.rename, layer.select, layer.symbology, layer.template, layer.visibility, layer.zoomTo, layout.remove, layout.update, map.addTiles, map.projection, map.removeTiles, map.tiles, ramp.add, raster.change, raster.function, raster.functionChain, raster.info, raster.mask, raster.mosaic, raster.process, raster.stretch, raster.symbology, select.byAttributes, select.clear, select.layerFromSelection, service.add, share.exportLayer, style.add, style.apply, style.import, style.new, style.remove, table.open, table.remove, tool.set

Assessment: the package was inspected (hash verified by the trusted step). The manifest and interface are consistent with the registry entry, and the imports are the allowed ones. The permissions match the stated purpose. I did not read the module's code, since it is compiled. The only open point is the confirmation above that the destructive and file-writing commands stay within the plugin's own layers and the paths the user picks.

Change size

Compared: the whole PR against main (merge base 0f5e48f to PR head 69453fb).

Metric Value
Files changed 1 (0 added, 1 modified, 0 removed, 0 renamed)
Size before 275 B
Size after 275 B
Total size change +0 B
File Before After Change
registry/brasildata.json 275 B 275 B +0 B

@github-actions

Copy link
Copy Markdown

🧩 Plugin preview

Open in RustGIS: web.rustgis.app's Plugin Manager on this pull request's registry (1 plugin package from this pull request). Install from Browse; RustGIS shows the permissions first.

Item Value
Preview https://pr-60.rustgis-plugins-preview.pages.dev
Registry (desktop: Plugin Manager › Settings) https://pr-60.rustgis-plugins-preview.pages.dev/registry.json
This commit https://037892a6.rustgis-plugins-preview.pages.dev
Commit 69453fb

Unreviewed code: install it only to review this pull request.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants