Skip to content
HALOWERK

Ortwerk

planar polygon hole membership

Return inside, outside, hole or boundary membership for points against supplied planar rings. Cartesian coordinates only; no map fetch or CRS conversion.

POST https://ort.halowerk.com/v1/planar-polygon-hole-membership

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
outerarrayYes
holesarrayYes
pointsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "outer": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number",
          "minimum": -1000000,
          "maximum": 1000000
        },
        "maxItems": 2,
        "minItems": 2
      },
      "maxItems": 100,
      "minItems": 4
    },
    "holes": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "array",
          "items": {
            "type": "number",
            "minimum": -1000000,
            "maximum": 1000000
          },
          "maxItems": 2,
          "minItems": 2
        },
        "maxItems": 100,
        "minItems": 4
      },
      "maxItems": 10,
      "minItems": 0
    },
    "points": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "type": "number",
          "minimum": -1000000,
          "maximum": 1000000
        },
        "maxItems": 2,
        "minItems": 2
      },
      "maxItems": 100,
      "minItems": 1
    }
  },
  "required": [
    "outer",
    "holes",
    "points"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "outer": [
    [
      0,
      0
    ],
    [
      10,
      0
    ],
    [
      10,
      10
    ],
    [
      0,
      10
    ],
    [
      0,
      0
    ]
  ],
  "holes": [
    [
      [
        3,
        3
      ],
      [
        7,
        3
      ],
      [
        7,
        7
      ],
      [
        3,
        7
      ],
      [
        3,
        3
      ]
    ]
  ],
  "points": [
    [
      1,
      1
    ],
    [
      5,
      5
    ],
    [
      3,
      5
    ],
    [
      12,
      5
    ]
  ]
}

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 โ†’