Skip to content
HALOWERK

Ortwerk

geo format convert

Reads GeoJSON (RFC 7946), KML 2.2 and GPX 1.1 (via @mapbox/togeojson), zipped Shapefiles (shpjs, .prj reprojected with proj4, .cpg encoding honoured) and GeoPackage 1.x feature tables (own reader for the GP header and ISO WKB, SRS reprojected via EPSG codes or the stored WKT), then writes the requested format: KML Placemarks with ExtendedData, GPX 1.1 waypoints and tracks with times from coordTimes, a 2D Shapefile ZIP (one layer per geometry type, dBASE III attributes with UTF-8 .cpg and.

POST https://ort.halowerk.com/v1/geo-format-convert

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
fromstringYesInput format.
tostringYesOutput format.
datastringNoInput: text for geojson, kml, gpx; base64 for shapefile (ZIP containing .shp/.shx/.dbf, ideally .prj/.cpg) and geopackage (.gpkg).
geojsonobjectNoGeoJSON object instead of data when from is geojson.
layerstringNoLayer to read from a multi-layer Shapefile ZIP or GeoPackage; default the first.
namestringNoOutput document, file or table name.
precisionintegerNoRound coordinates in geojson/kml/gpx output to this many decimals.
Show full input schema
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "from",
    "to"
  ],
  "properties": {
    "from": {
      "type": "string",
      "enum": [
        "geojson",
        "kml",
        "gpx",
        "shapefile",
        "geopackage"
      ],
      "description": "Input format."
    },
    "to": {
      "type": "string",
      "enum": [
        "geojson",
        "kml",
        "gpx",
        "shapefile",
        "geopackage"
      ],
      "description": "Output format."
    },
    "data": {
      "type": "string",
      "maxLength": 6000000,
      "description": "Input: text for geojson, kml, gpx; base64 for shapefile (ZIP containing .shp/.shx/.dbf, ideally .prj/.cpg) and geopackage (.gpkg)."
    },
    "geojson": {
      "type": "object",
      "description": "GeoJSON object instead of data when from is geojson."
    },
    "layer": {
      "type": "string",
      "maxLength": 200,
      "description": "Layer to read from a multi-layer Shapefile ZIP or GeoPackage; default the first."
    },
    "name": {
      "type": "string",
      "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,59}$",
      "default": "features",
      "description": "Output document, file or table name."
    },
    "precision": {
      "type": "integer",
      "minimum": 0,
      "maximum": 12,
      "description": "Round coordinates in geojson/kml/gpx output to this many decimals."
    }
  }
}

Open original schema

Published input example

{
  "from": "kml",
  "to": "geojson",
  "data": "<kml xmlns=\"http://www.opengis.net/kml/2.2\"><Placemark><name>Gronau</name><Point><coordinates>7.042,52.212</coordinates></Point></Placemark></kml>"
}

Result & documentation

Machine-readable documentation of this hub

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

More endpoints in this hub

All endpoints in this hub โ†’