Pleiades GeoJSON

JSON formatted features and collections. Because sometimes XML is a pain.

Pleiades uses JSON to transport map contexts and map features from Plone to our OpenLayers?-based javascript applications. This page documents our evolving flavor of JSON.

Guidelines

Feature Collections

This is what's needed to get a feature on an OL map, plus a classname that can be used to map symbolizers to features, and a convenient center point.

{ "features": [
    { "id": "alesia",
      "title": "Alesia",
      "classname": "settlement",
      "geometryType": "point",
      "spatialCoordinates": [[47.535, 4.478, 0.0]],
      "srs": "EPSG:4326",
      "center": [47.535, 4.478, 0.0]
    }
  ]
}

Map Context

This is the bare minimum of parameters needed to create an OL map with a layer.

{ "name": "map-1",
  "title": "Pleiades Map 1",
  "boundingBox": [-12.0, 32.0, 40.0, 58.0],
  "srs": "EPSG:4326",
  "layers": [
    { "name": "dphysio",
      "title: "Demis Physiography"
      "layers": "Bathymetry,Topography,Rivers,Waterbodies",
      "styles": ",,,",
      "onlineResource": "http:\/\/www2.demis.nl\/mapserver\/request.asp",
      "srs": "EPSG:4326"
    }
  ]
}