@types/geojson
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -6,122 +6,117 @@ // Type definitions for GeoJSON Format Specification Revision 1.0 | ||
declare namespace GeoJSON { | ||
export as namespace GeoJSON; | ||
/*** | ||
* http://geojson.org/geojson-spec.html#geojson-objects | ||
*/ | ||
export interface GeoJsonObject { | ||
type: string; | ||
bbox?: number[]; | ||
crs?: CoordinateReferenceSystem; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#geojson-objects | ||
*/ | ||
export interface GeoJsonObject { | ||
type: string; | ||
bbox?: number[]; | ||
crs?: CoordinateReferenceSystem; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#positions | ||
*/ | ||
export type Position = number[]; | ||
/*** | ||
* http://geojson.org/geojson-spec.html#positions | ||
*/ | ||
export type Position = number[]; | ||
/*** | ||
* http://geojson.org/geojson-spec.html#geometry-objects | ||
*/ | ||
interface DirectGeometryObject extends GeoJsonObject { | ||
coordinates: Position[][][] | Position[][] | Position[] | Position; | ||
} | ||
/** | ||
* GeometryObject supports geometry collection as well | ||
*/ | ||
export type GeometryObject = DirectGeometryObject | GeometryCollection; | ||
/*** | ||
* http://geojson.org/geojson-spec.html#geometry-objects | ||
*/ | ||
interface DirectGeometryObject extends GeoJsonObject { | ||
coordinates: Position[][][] | Position[][] | Position[] | Position; | ||
} | ||
/** | ||
* GeometryObject supports geometry collection as well | ||
*/ | ||
export type GeometryObject = DirectGeometryObject | GeometryCollection; | ||
/*** | ||
* http://geojson.org/geojson-spec.html#point | ||
*/ | ||
export interface Point extends DirectGeometryObject { | ||
type: 'Point'; | ||
coordinates: Position; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#point | ||
*/ | ||
export interface Point extends DirectGeometryObject { | ||
type: 'Point'; | ||
coordinates: Position; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#multipoint | ||
*/ | ||
export interface MultiPoint extends DirectGeometryObject { | ||
type: 'MultiPoint'; | ||
coordinates: Position[]; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#multipoint | ||
*/ | ||
export interface MultiPoint extends DirectGeometryObject { | ||
type: 'MultiPoint'; | ||
coordinates: Position[]; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#linestring | ||
*/ | ||
export interface LineString extends DirectGeometryObject { | ||
type: 'LineString'; | ||
coordinates: Position[]; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#linestring | ||
*/ | ||
export interface LineString extends DirectGeometryObject { | ||
type: 'LineString'; | ||
coordinates: Position[]; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#multilinestring | ||
*/ | ||
export interface MultiLineString extends DirectGeometryObject { | ||
type: 'MultiLineString'; | ||
coordinates: Position[][]; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#multilinestring | ||
*/ | ||
export interface MultiLineString extends DirectGeometryObject { | ||
type: 'MultiLineString'; | ||
coordinates: Position[][]; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#polygon | ||
*/ | ||
export interface Polygon extends DirectGeometryObject { | ||
type: 'Polygon'; | ||
coordinates: Position[][]; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#polygon | ||
*/ | ||
export interface Polygon extends DirectGeometryObject { | ||
type: 'Polygon'; | ||
coordinates: Position[][]; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#multipolygon | ||
*/ | ||
export interface MultiPolygon extends DirectGeometryObject { | ||
type: 'MultiPolygon'; | ||
coordinates: Position[][][]; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#multipolygon | ||
*/ | ||
export interface MultiPolygon extends DirectGeometryObject { | ||
type: 'MultiPolygon'; | ||
coordinates: Position[][][]; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#geometry-collection | ||
*/ | ||
export interface GeometryCollection extends GeoJsonObject { | ||
type: 'GeometryCollection'; | ||
geometries: GeometryObject[]; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#geometry-collection | ||
*/ | ||
export interface GeometryCollection extends GeoJsonObject { | ||
type: 'GeometryCollection'; | ||
geometries: GeometryObject[]; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#feature-objects | ||
*/ | ||
export interface Feature<T extends GeometryObject> extends GeoJsonObject { | ||
type: 'Feature'; | ||
geometry: T; | ||
properties: {} | null; | ||
id?: string; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#feature-objects | ||
*/ | ||
export interface Feature<T extends GeometryObject> extends GeoJsonObject { | ||
type: 'Feature'; | ||
geometry: T; | ||
properties: {} | null; | ||
id?: string; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#feature-collection-objects | ||
*/ | ||
export interface FeatureCollection<T extends GeometryObject> extends GeoJsonObject { | ||
type: 'FeatureCollection'; | ||
features: Array<Feature<T>>; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#feature-collection-objects | ||
*/ | ||
export interface FeatureCollection<T extends GeometryObject> extends GeoJsonObject { | ||
type: 'FeatureCollection'; | ||
features: Array<Feature<T>>; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#coordinate-reference-system-objects | ||
*/ | ||
export interface CoordinateReferenceSystem { | ||
type: string; | ||
properties: any; | ||
} | ||
/*** | ||
* http://geojson.org/geojson-spec.html#coordinate-reference-system-objects | ||
*/ | ||
export interface CoordinateReferenceSystem { | ||
type: string; | ||
properties: any; | ||
} | ||
export interface NamedCoordinateReferenceSystem extends CoordinateReferenceSystem { | ||
properties: { name: string }; | ||
} | ||
export interface LinkedCoordinateReferenceSystem extends CoordinateReferenceSystem { | ||
properties: { href: string; type: string }; | ||
} | ||
export interface NamedCoordinateReferenceSystem extends CoordinateReferenceSystem { | ||
properties: { name: string }; | ||
} | ||
declare module 'geojson' { | ||
export = GeoJSON; | ||
export interface LinkedCoordinateReferenceSystem extends CoordinateReferenceSystem { | ||
properties: { href: string; type: string }; | ||
} |
{ | ||
"name": "@types/geojson", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "TypeScript definitions for GeoJSON Format Specification Revision", | ||
"license": "MIT", | ||
"author": "Jacob Bruun <https://github.com/cobster/>", | ||
"contributors": [ | ||
{ | ||
"name": "Jacob Bruun", | ||
"url": "https://github.com/cobster/" | ||
} | ||
], | ||
"main": "", | ||
@@ -15,4 +20,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "d54be02b2c80f16ce56c8387c496d8fe0d7c81c48bb6f2656a41e9641bbf0326", | ||
"typesPublisherContentHash": "260e75afe31ea802a535b0551d3006961994aea146f89a0ee6c65a4717f4bf7b", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -8,10 +8,10 @@ # Installation | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/geojson | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/geojson | ||
Additional Details | ||
* Last updated: Tue, 07 Feb 2017 21:47:44 GMT | ||
* Last updated: Fri, 31 Mar 2017 18:05:13 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
* Global values: GeoJSON | ||
# Credits | ||
These definitions were written by Jacob Bruun <https://github.com/cobster/>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4233
3
105