Skip to content

Latest commit

 

History

History
104 lines (97 loc) · 1.84 KB

intersect.md

File metadata and controls

104 lines (97 loc) · 1.84 KB

Intersect - API Call

In this document we will describe important and good-to-know facts about the intersection service.

Functionality

Returns all features that are touched by the transferred geometries.

Examples

Post-call http://localhost:3000/v1/intersect with JSON body:

Polygon

{
  "inputGeometries": [{
    "type": "Feature",
    "geometry": {
      "type": "Polygon",
      "coordinates": [[
        [15.75, 51.07],
        [15.77, 51.08],
        [15.79, 51.07],
        [15.80, 51.08],
        [15.75, 51.07]
      ]
      ]
    },
    "properties": {
      "name": "example"
    }
  }],
  "topics": ["kreis"],
  "returnGeometry": false,
  "outputFormat": "geojson",
  "outSRS": 4326
}

Point

{
  "inputGeometries": [{
    "type": "Feature",
    "geometry": {
      "type": "Point",
      "coordinates": [15.75, 51.07]
    },
    "properties": {
      "name": "example"
    }
  }],
  "topics": ["kreis", "land"],
  "returnGeometry": false,
  "outputFormat": "geojson",
  "outSRS": 4326
}

Line

{
  "inputGeometries": [{
    "type": "Feature",
    "geometry": {
      "type": "LineString",
      "coordinates": [ [15.75, 51.07],[15.79, 51.18]]
    },
    "properties": {
      "name": "example"
    }
  }],
  "topics": ["kreis"],
  "returnGeometry": false,
  "outputFormat": "geojson",
  "outSRS": 4326
}

EsriJSON Point

{
  "inputGeometries": [{
    "geometry": {
      "x": 413093.3077572279,
      "y": 5659110.3644715585,
      "spatialReference": {
        "wkid": 25833
      }
    },
    "attributes": {
      "name": "testname"
    }
  }],
  "topics": ["kreis"],
  "returnGeometry": true,
  "outputFormat": "esrijson",
  "outSRS": 25833
}

Known Limitations - Not planned to implement

  • Unsupported geo-types in GeoJSON
    • MultiPolygon
    • MultiLineString
    • MultiPoint
    • GeometryCollection