{
  "slug": "geojson-merge",
  "name": "gizza-ai/geojson-merge",
  "version": "0.1.0",
  "title": "GeoJSON Merge — combine files into one FeatureCollection — gizza.ai",
  "description": "Merge multiple GeoJSON files, features, or geometries into a single FeatureCollection. Round coordinates, renumber ids, tag by source — in your browser, nothing uploaded.",
  "tags": [
    "geojson merge",
    "combine geojson",
    "merge geojson files",
    "featurecollection",
    "geojson combine online",
    "merge map data"
  ],
  "category": "data",
  "urls": {
    "page": "https://gizza.ai/tools/geojson-merge/",
    "markdown": "https://gizza.ai/tools/geojson-merge/index.md",
    "descriptor": "https://gizza.ai/tools/geojson-merge/tool.json",
    "deep_link_example": "https://gizza.ai/tools/geojson-merge/?geojson=%7B%22type%22%3A%22FeatureCollection%22%2C%22features%22%3A%5B%7B%22type%22%3A%22Feature%22%2C%22properties%22%3A%7B%22name%22%3A%22A%22%7D%2C%22geometry%22%3A%7B%22type%22%3A%22Point%22%2C%22coordinates%22%3A%5B0%2C0%5D%7D%7D%5D%7D%0A%7B%22type%22%3A%22Point%22%2C%22coordinates%22%3A%5B1%2C1%5D%7D&indent=2&precision=-1&renumber=true&source_property=source"
  },
  "cli": "gizza tool geojson-merge '{\"type\":\"FeatureCollection\",\"features\":[{\"type\":\"Feature\",\"properties\":{\"name\":\"A\"},\"geometry\":{\"type\":\"Point\",\"coordinates\":[0,0]}}]}\n{\"type\":\"Point\",\"coordinates\":[1,1]}'",
  "tool": {
    "description": "Combine multiple GeoJSON inputs into a single FeatureCollection. Inputs are provided concatenated (whitespace/newline separated, so line-delimited GeoJSON works): FeatureCollections contribute their features, bare Features pass through, and raw geometries are wrapped into Features — all flattened in input order. Options: indent (0 minifies), precision (round coordinates to N decimals; -1 keeps full precision), renumber (assign sequential integer ids), and source_property (tag each feature with its 1-based source-document number). Returns the merged GeoJSON. Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "geojson": {
          "description": "One or more GeoJSON values to combine — FeatureCollections, bare Features, and raw geometries, concatenated (whitespace/newline separated, so line-delimited GeoJSON works too), e.g. '{\"type\":\"Point\",\"coordinates\":[0,0]}\\n{\"type\":\"Point\",\"coordinates\":[1,1]}'. All features are flattened, in order, into one FeatureCollection.",
          "type": "string"
        },
        "indent": {
          "default": 2,
          "description": "Output indentation in spaces (1-8). Use 0 to minify. Default 2.",
          "maximum": 8,
          "minimum": 0,
          "type": "integer"
        },
        "precision": {
          "default": -1,
          "description": "Round every coordinate to this many decimal places to shrink the output (0-15). Use -1 (default) to keep full precision.",
          "maximum": 15,
          "minimum": -1,
          "type": "integer"
        },
        "renumber": {
          "default": false,
          "description": "Assign each output feature a fresh sequential integer id (0, 1, 2, …), overwriting existing ids. Fixes id collisions when merging sources. Default false.",
          "type": "boolean"
        },
        "source_property": {
          "default": "",
          "description": "If set to a property name, tag every feature with that property set to its 1-based source-document number, so merged features stay traceable to their origin. Blank (default) adds nothing.",
          "type": "string"
        }
      },
      "required": [
        "geojson"
      ],
      "type": "object"
    }
  }
}