Skip to content

Commit

Permalink
add definition for rasterdata
Browse files Browse the repository at this point in the history
  • Loading branch information
jansule committed Apr 2, 2019
1 parent 6907995 commit e10d6fd
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export type DataSchema = {
title?: string;

/**
* Optional type definition for the described entity
* Type definition for the described entity
*
* @type {string}
*/
Expand All @@ -92,6 +92,18 @@ export type DataSchema = {
properties: { [name: string]: SchemaProperty };
};

/**
* Type represents the schema of imported raster-data,
* to have information about a single band.
*
* @type BandSchema
*/
export type BandSchema = {
minValue?: number;
maxValue?: number;
[key: string]: any;
};

/**
* Internal data object for imported geo data.
* Aggregates a data schema and some example data (FeatureCollection).
Expand All @@ -109,6 +121,13 @@ export interface Data {
* Example features of imported geo-data
*/
exampleFeatures: FeatureCollection<Geometry>;

/**
* Info on imported raster bands. Only used for raster data.
* Each band should be a unique key with arbitrary subproperties.
* These can include projections, statistics and other information.
*/
rasterBandInfo?: {[bandname: string]: BandSchema }
}

/**
Expand Down

0 comments on commit e10d6fd

Please sign in to comment.