Skip to content

Instantly share code, notes, and snippets.

@rgwozdz
Last active May 30, 2018 17:41
Show Gist options
  • Select an option

  • Save rgwozdz/5080e5e66ee1b3452bdb300602150247 to your computer and use it in GitHub Desktop.

Select an option

Save rgwozdz/5080e5e66ee1b3452bdb300602150247 to your computer and use it in GitHub Desktop.
Koop Provider metadata
metadata: {
name: String, // The name of the layer
description: String, // The description of the layer
extent: Array, // valid extent array e.g. [[180,90],[-180,-90]]
displayField: String, // The display field to be used by a client
geometryType: String // REQUIRED if no features are returned with this object Point || MultiPoint || LineString || MultiLineString || Polygon || MultiPolygon
idField: Integer || String, // unique identifier field,
maxRecordCount: Number, // the maximum number of features a provider can return at once
limitExceeded: Boolean, // whether or not the server has limited the features returned
timeInfo: Object // describes the time extent and capabilities of the layer,
transform: Object // describes a quantization transformation
fields: [
{ // Subkeys are optional
name: String,
type: String, // 'Date' || 'Double' || 'Integer' || 'String'
alias: String, // how should clients display this field name
length: Number // max length for a String or Date field (optional)
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment