Skip to content
Fourohtwo

Georeference a scanned map from your ground control points

bild.halowerk.com/v1/map-georeference

Georeference a scanned map from your ground control points: least-squares affine transform, residuals and RMSE, world file, corner coordinates and a GeoTIFF (deflate) with the transform and EPSG code embedded. Least-squares affine fit x = a0 + a1·col + a2·row, y = b0 + b1·col + b2·row to at least 3 control points (pixel corner convention; x = lon, y = lat for geographic EPSG).

BaseAnswering
POSThttps://bild.halowerk.com/v1/map-georeference

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://bild.halowerk.com/v1/map-georeference", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"control_points":[{"px":8,"py":8,"x":500000,"y":5600400},{"px":56,"py":8,"x":500480,"y":5600400},{"px":8,"py":40,"x":500000,"y":5600080}],"epsg":25832,"image_base64":"iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwAgMAAADcJZSMAAAACVBMVEXw6tiIpbxUgq7RR9vqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAALElEQVQokWNgYHRggANGEJsuAqFhU0PhIGxqKKYAw8A4jGFUYDCER+ggTR8AspgtoXey9kgAAAAASUVORK5CYII="}),
});
console.log(await res.json());

Example input

{
  "control_points": [
    {
      "px": 8,
      "py": 8,
      "x": 500000,
      "y": 5600400
    },
    {
      "px": 56,
      "py": 8,
      "x": 500480,
      "y": 5600400
    },
    {
      "px": 8,
      "py": 40,
      "x": 500000,
      "y": 5600080
    }
  ],
  "epsg": 25832,
  "image_base64": "iVBORw0KGgoAAAANSUhEUgAAAEAAAAAwAgMAAADcJZSMAAAACVBMVEXw6tiIpbxUgq7RR9vqAAAACXBIWXMAAAsTAAALEwEAmpwYAAAALElEQVQokWNgYHRggANGEJsuAqFhU0PhIGxqKKYAw8A4jGFUYDCER+ggTR8AspgtoXey9kgAAAAASUVORK5CYII="
}