Skip to content
HALOWERK

Kartenwerk

grid rectangle cell area fractions

Return axis-aligned rectangle coverage fractions for supplied unit grid cells.

POST https://karte.halowerk.com/v1/grid-rectangle-cell-area-fractions

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
rowsintegerYes
columnsintegerYes
rectangleobjectYes
Show full input schema
{
  "type": "object",
  "properties": {
    "rows": {
      "type": "integer",
      "minimum": 1,
      "maximum": 32
    },
    "columns": {
      "type": "integer",
      "minimum": 1,
      "maximum": 32
    },
    "rectangle": {
      "type": "object",
      "properties": {
        "x_min": {
          "type": "number",
          "minimum": -1000000000,
          "maximum": 1000000000
        },
        "y_min": {
          "type": "number",
          "minimum": -1000000000,
          "maximum": 1000000000
        },
        "x_max": {
          "type": "number",
          "minimum": -1000000000,
          "maximum": 1000000000
        },
        "y_max": {
          "type": "number",
          "minimum": -1000000000,
          "maximum": 1000000000
        }
      },
      "required": [
        "x_min",
        "y_min",
        "x_max",
        "y_max"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "rows",
    "columns",
    "rectangle"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "rows": 1,
  "columns": 2,
  "rectangle": {
    "x_min": 0.5,
    "y_min": 0.25,
    "x_max": 1.5,
    "y_max": 0.75
  }
}

Result & documentation

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-18 UTC.

More endpoints in this hub

All endpoints in this hub โ†’