Interface Geo

Index

Properties

Methods

Properties

public azimuthalEqualArea: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }

the azimuthal equal-area projection.

(): Projection

Returns

Projection

public azimuthalEqualArea.raw: RawProjection

public azimuthalEquidistant: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }

the azimuthal equidistant projection.

(): Projection

Returns

Projection

public azimuthalEquidistant.raw: RawProjection

public conicConformal: { raw(phi1: number, phi2: number): D3.Geo.RawProjection; (): D3.Geo.Projection; }

the conic conformal projection.

(): Projection

Returns

Projection

public raw(): RawProjection

Returns

RawProjection

.phi1.phi1: number

.phi2.phi2: number

public conicEqualArea: { raw(phi1: number, phi2: number): D3.Geo.RawProjection; (): D3.Geo.Projection; }

the conic equal-area (a.k.a. Albers) projection.

(): Projection

Returns

Projection

public raw(): RawProjection

Returns

RawProjection

.phi1.phi1: number

.phi2.phi2: number

public conicEquidistant: { raw(phi1: number, phi2: number): D3.Geo.RawProjection; (): D3.Geo.Projection; }

the conic equidistant projection.

(): Projection

Returns

Projection

public raw(): RawProjection

Returns

RawProjection

.phi1.phi1: number

.phi2.phi2: number

public equirectangular: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }

the equirectangular (plate carreé) projection.

(): Projection

Returns

Projection

public equirectangular.raw: RawProjection

public gnomonic: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }

the gnomonic projection.

(): Projection

Returns

Projection

public gnomonic.raw: RawProjection

public mercator: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }

the spherical Mercator projection.

(): Projection

Returns

Projection

public mercator.raw: RawProjection

public orthographic: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }

the azimuthal orthographic projection.

(): Projection

Returns

Projection

public orthographic.raw: RawProjection

public stereographic: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }

the azimuthal stereographic projection.

(): Projection

Returns

Projection

public stereographic.raw: RawProjection

public transverseMercator: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }

the transverse Mercator projection.

(): Projection

Returns

Projection

public transverseMercator.raw: RawProjection

Methods

public albers(): Projection

the Albers equal-area conic projection.

Returns

Projection

public albersUsa(): Projection

a composite Albers projection for the United States.

Returns

Projection

public area(feature: any): number

compute the spherical area of a given feature.

Parameters

  • feature: any

Returns

number

public bounds(feature: any): Array<number[]>

compute the latitude-longitude bounding box for a given feature.

Parameters

  • feature: any

Returns

Array<number[]>

public centroid(feature: any): Array<number>

compute the spherical centroid of a given feature.

Parameters

  • feature: any

Returns

Array<number>

public circle(): Circle

create a circle generator.

Returns

Circle

public distance(a: Array<number>, b: Array<number>): number

compute the great-arc distance between two points.

Parameters

  • a: Array<number>
  • b: Array<number>

Returns

number

public graticule(): Graticule

Returns

Graticule

public greatArc(): GreatArc

Returns

GreatArc

public interpolate(a: Array<number>, b: Array<number>): (t: number) => number[]

interpolate between two points along a great arc.

Parameters

  • a: Array<number>
  • b: Array<number>

Returns

(t: number) => number[]

public length(feature: any): number

compute the length of a line string or the circumference of a polygon.

Parameters

  • feature: any

Returns

number

public path(): Path

create a new geographic path generator

Returns

Path

public projection(raw: RawProjection): Projection

create a standard projection from a raw projection.

Parameters

Returns

Projection

public projectionMutator(rawFactory: RawProjection): ProjectionMutator

create a standard projection from a mutable raw projection.

Parameters

Returns

ProjectionMutator

public rotation(rotation: Array<number>): Rotation

Parameters

  • rotation: Array<number>

Returns

Rotation

public stream(object: GeoJSON, listener: Stream)

convert a GeoJSON object to a geometry stream.

Parameters