env-able 2.3.3__tar.gz → 2.3.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. {env_able-2.3.3 → env_able-2.3.4}/CHANGELOG.md +8 -0
  2. {env_able-2.3.3 → env_able-2.3.4}/PKG-INFO +6 -1
  3. {env_able-2.3.3 → env_able-2.3.4}/README.md +5 -0
  4. {env_able-2.3.3 → env_able-2.3.4}/pyproject.toml +1 -1
  5. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/__init__.py +1 -1
  6. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/index.html +15 -1
  7. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/server.py +18 -0
  8. {env_able-2.3.3 → env_able-2.3.4}/.gitignore +0 -0
  9. {env_able-2.3.3 → env_able-2.3.4}/LICENSE +0 -0
  10. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/_gdal_env.py +0 -0
  11. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/_gdal_utils.py +0 -0
  12. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/_pipeline.py +0 -0
  13. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/_result.py +0 -0
  14. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/aggregate.py +0 -0
  15. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/__init__.py +0 -0
  16. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/aix.py +0 -0
  17. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/brandmark.py +0 -0
  18. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/calc.py +0 -0
  19. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/claude_bridge.py +0 -0
  20. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/client.py +0 -0
  21. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/compliance.html +0 -0
  22. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/databricks.py +0 -0
  23. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/debug.py +0 -0
  24. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/desktop.py +0 -0
  25. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/docs/atlas-guide.md +0 -0
  26. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/docs/atlas-layout-view.md +0 -0
  27. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/docs/cartographic-judgment.md +0 -0
  28. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/docs/env-able-library.md +0 -0
  29. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/edits.py +0 -0
  30. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/eirstyle.py +0 -0
  31. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/env_layers.py +0 -0
  32. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/landing.html +0 -0
  33. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/ltv_api.py +0 -0
  34. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/naming.py +0 -0
  35. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/palette.py +0 -0
  36. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/project.py +0 -0
  37. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/qaqc/ltv.css +0 -0
  38. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/qaqc/ltv.js +0 -0
  39. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/session.py +0 -0
  40. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/splash.html +0 -0
  41. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/templates/Summary A4 Landscape.pagx +0 -0
  42. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/templates/Summary A4 Portrait.pagx +0 -0
  43. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/templates/Title Bar A4 Landscape.pagx +0 -0
  44. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/templates/Title Bar A4 Portrait.pagx +0 -0
  45. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/HTML-TO-IMAGE-LICENSE.txt +0 -0
  46. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/MAPLIBRE-LICENSE.txt +0 -0
  47. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/MERRIWEATHER-LICENSE.txt +0 -0
  48. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/PROTOMAPS-LICENSE.txt +0 -0
  49. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/ROBOTO-LICENSE.txt +0 -0
  50. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/html-to-image.js +0 -0
  51. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/maplibre-gl.css +0 -0
  52. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/maplibre-gl.js +0 -0
  53. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/merriweather-latin-400-normal.woff +0 -0
  54. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/pmtiles.js +0 -0
  55. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/protomaps-basemaps.js +0 -0
  56. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/roboto-latin-400-italic.woff2 +0 -0
  57. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/roboto-latin-400-normal.woff2 +0 -0
  58. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/roboto-latin-500-normal.woff2 +0 -0
  59. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/atlas/vendor/roboto-latin-700-normal.woff2 +0 -0
  60. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/classify.py +0 -0
  61. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/editing.py +0 -0
  62. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/expression.py +0 -0
  63. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/features.py +0 -0
  64. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/fields.py +0 -0
  65. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/housestyle.py +0 -0
  66. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/layout.py +0 -0
  67. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/ltv.py +0 -0
  68. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/morph.py +0 -0
  69. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/pull.py +0 -0
  70. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/pwx.py +0 -0
  71. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/remote.py +0 -0
  72. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/selection.py +0 -0
  73. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/stream.py +0 -0
  74. {env_able-2.3.3 → env_able-2.3.4}/src/env_able/vector.py +0 -0
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [2.3.4] - 2026-11-30
4
+ ### Fixed
5
+ - **A small classed layer after a big one folded a class into Other**: Vaca Muerta's 5 hydrocarbon
6
+ windows, coloured after 8 operators, got 4 colours and *Other (1)*. Past the categorical palette, the
7
+ ArcMap palette carries on by the same dE 30 rule.
8
+ - **Page furniture covered map names**: placement takes a list of label layers to keep clear, and the
9
+ legend no longer lands on a state name.
10
+
3
11
  ## [2.3.3] - 2026-11-30
4
12
  ### Added
5
13
  - **`GET /api/layers/in_view?bounds=w,s,e,n`**: how many features each layer draws inside a box, filter
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: env-able
3
- Version: 2.3.3
3
+ Version: 2.3.4
4
4
  Summary: AI-ready GIS toolkit for energy and subsurface workflows.
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -506,6 +506,11 @@ print(f"{rows:,} rows written")
506
506
  ---
507
507
 
508
508
  ## Changelog
509
+ ### v2.3.4 — 2026-11-30
510
+ **Fixed**
511
+ - **A small classed layer after a big one folded a class into Other**: Vaca Muerta's 5 hydrocarbon windows, coloured after 8 operators, got 4 colours and *Other (1)*. Past the categorical palette, the ArcMap palette carries on by the same dE 30 rule.
512
+ - **Page furniture covered map names**: placement takes a list of label layers to keep clear, and the legend no longer lands on a state name.
513
+
509
514
  ### v2.3.3 — 2026-11-30
510
515
  **Added**
511
516
  - **`GET /api/layers/in_view?bounds=w,s,e,n`**: how many features each layer draws inside a box, filter applied, so a per-page legend can leave out a layer with nothing on the page.
@@ -479,6 +479,11 @@ print(f"{rows:,} rows written")
479
479
  ---
480
480
 
481
481
  ## Changelog
482
+ ### v2.3.4 — 2026-11-30
483
+ **Fixed**
484
+ - **A small classed layer after a big one folded a class into Other**: Vaca Muerta's 5 hydrocarbon windows, coloured after 8 operators, got 4 colours and *Other (1)*. Past the categorical palette, the ArcMap palette carries on by the same dE 30 rule.
485
+ - **Page furniture covered map names**: placement takes a list of label layers to keep clear, and the legend no longer lands on a state name.
486
+
482
487
  ### v2.3.3 — 2026-11-30
483
488
  **Added**
484
489
  - **`GET /api/layers/in_view?bounds=w,s,e,n`**: how many features each layer draws inside a box, filter applied, so a per-page legend can leave out a layer with nothing on the page.
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "env-able"
7
- version = "2.3.3"
7
+ version = "2.3.4"
8
8
  description = "AI-ready GIS toolkit for energy and subsurface workflows."
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"
@@ -1,4 +1,4 @@
1
- __version__ = "2.3.3"
1
+ __version__ = "2.3.4"
2
2
 
3
3
  # Resolve GDAL_DATA / PROJ_LIB before anything imports osgeo. IDEs and bare
4
4
  # `python script.py` runs skip conda's activation scripts, which is where those
@@ -12273,7 +12273,7 @@ document.addEventListener('dblclick', function (e) {
12273
12273
  * Returns what it did, so a caller can print it. Atlas Pro does not call this on its own: a
12274
12274
  * page a person arranged is theirs. ML calls it, because nobody arranged a ML page.
12275
12275
  */
12276
- function lvAutoPlace(contextNames, textAvoid) {
12276
+ function lvAutoPlace(contextNames, textAvoid, keepClear) {
12277
12277
  if (!_lo || !_lo.elements || !_lo.elements.length || !_lo.page) return { moved: [] };
12278
12278
  var page = document.querySelector('.lv-page');
12279
12279
  if (!page || !map) return { moved: [] };
@@ -12282,6 +12282,9 @@ function lvAutoPlace(contextNames, textAvoid) {
12282
12282
  // not for bare text: the Bakken title sat on the 49th-parallel state line. Counting that line
12283
12283
  // as data for everything pushed the legend onto the wells, so it counts for the title only.
12284
12284
  var light = new Set(textAvoid || []);
12285
+ // Names no piece of furniture may cover: the legend landed on "Louisiana", because one name is
12286
+ // 2% of a legend's box and the sampling counted it as nearly empty ground.
12287
+ var clear = new Set(keepClear || []);
12285
12288
  var pw = _lo.page.pw, ph = _lo.page.ph;
12286
12289
  var pr = page.getBoundingClientRect(), cr = map.getCanvas().getBoundingClientRect();
12287
12290
  var k = pr.width / pw; // px per mm
@@ -12306,6 +12309,16 @@ function lvAutoPlace(contextNames, textAvoid) {
12306
12309
  return light.has(ft.source) && ft.layer && ft.layer.type === 'line';
12307
12310
  }) ? 1 : 0;
12308
12311
  }
12312
+ function coversClear(box0) {
12313
+ if (!clear.size) return 0;
12314
+ var a = [pr.left + box0[0] * k - cr.left, pr.bottom - box0[3] * k - cr.top];
12315
+ var b = [pr.left + box0[2] * k - cr.left, pr.bottom - box0[1] * k - cr.top];
12316
+ var f = [];
12317
+ try { f = map.queryRenderedFeatures([a, b]); } catch (e) {}
12318
+ return f.some(function (ft) {
12319
+ return clear.has(ft.source) && ft.layer && ft.layer.type === 'symbol';
12320
+ }) ? 1 : 0;
12321
+ }
12309
12322
  function covered(box0, asText) { // share of samples on data
12310
12323
  var box = [box0[0] - 2, box0[1] - 2, box0[2] + 2, box0[3] + 2]; // 2 mm clearance
12311
12324
  var n = 7, hit = 0;
@@ -12410,6 +12423,7 @@ function lvAutoPlace(contextNames, textAvoid) {
12410
12423
  if (placedBoxes.some(function (q) { return overlaps(q, b); })) return;
12411
12424
  var s = covered(b, title), drop = (b[4] || 0) / 4 * 0.03;
12412
12425
  var cross = title ? 0.3 * crossesLight(b) : 0;
12426
+ cross += 0.5 * coversClear(b);
12413
12427
  var score = Math.round((s + 0.05 * cornerDist(b) + drop + cross) * 1e6) / 1e6;
12414
12428
  if (!best || score < best.score) best = { b: b.slice(0, 4), s: s, score: score };
12415
12429
  });
@@ -15799,6 +15799,24 @@ def _mcp_call(name: str, args: dict) -> str:
15799
15799
  fixed[str(v)] = s
15800
15800
  free = [c for c in _eir_top.MAP_ORDER
15801
15801
  if not any(_eir_top._de(c, u) < 30 for u in taken + list(fixed.values()))]
15802
+ # When the house colours are spent, the ArcMap palette carries on, by the same dE 30
15803
+ # rule: Vaca Muerta's five hydrocarbon windows, coloured after eight operators, got
15804
+ # four colours and an "Other (1)" holding Wet Gas -- a legend that names four of five
15805
+ # windows is not one. Saturated cells first; the greys and pale tints are left out,
15806
+ # since a grey reads as Other and a pale tint vanishes on the page ground.
15807
+ need = min(top_n, len(ranked)) - len(fixed)
15808
+ if len(free) < need:
15809
+ from . import palette as _pal_top
15810
+ for c in _pal_top.categorical(120):
15811
+ if len(free) >= need:
15812
+ break
15813
+ row = next((p[2] for p in _pal_top.ARCMAP_COLORS if p[1] == c), 1)
15814
+ if row < 2 or row > 8:
15815
+ continue
15816
+ if any(_eir_top._de(c, u) < 30
15817
+ for u in taken + list(fixed.values()) + free + [OTHER_GREY]):
15818
+ continue
15819
+ free.append(c.lower())
15802
15820
  # As many classes as there are colours to tell them apart. Past that the rest join
15803
15821
  # Other, which says how many it holds, rather than two classes sharing a colour.
15804
15822
  n_col = len(free) + len(fixed)
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes