Properties
public azimuthalEqualArea: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }
the azimuthal equal-area projection.
public azimuthalEquidistant: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }
the azimuthal equidistant projection.
public conicConformal: { raw(phi1: number, phi2: number): D3.Geo.RawProjection; (): D3.Geo.Projection; }
the conic conformal projection.
public conicEqualArea: { raw(phi1: number, phi2: number): D3.Geo.RawProjection; (): D3.Geo.Projection; }
the conic equal-area (a.k.a. Albers) projection.
public conicEquidistant: { raw(phi1: number, phi2: number): D3.Geo.RawProjection; (): D3.Geo.Projection; }
the conic equidistant projection.
public equirectangular: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }
the equirectangular (plate carreé) projection.
public gnomonic: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }
the gnomonic projection.
public mercator: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }
the spherical Mercator projection.
public orthographic: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }
the azimuthal orthographic projection.
public stereographic: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }
the azimuthal stereographic projection.
public transverseMercator: { raw: D3.Geo.RawProjection; (): D3.Geo.Projection; }
the transverse Mercator projection.
Methods
the Albers equal-area conic projection.
Returns
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
Returns
number
public bounds(feature: any): Array<number[]>
compute the latitude-longitude bounding box for a given feature.
Parameters
Returns
Array<number[]>
public centroid(feature: any): Array<number>
compute the spherical centroid of a given feature.
Parameters
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 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
Returns
number
public path(): Path
create a new geographic path generator
Returns
Path
create a standard projection from a raw projection.
Parameters
Returns
Projection
create a standard projection from a mutable raw projection.
Parameters
Returns
ProjectionMutator
public stream(object: GeoJSON, listener: Stream)
convert a GeoJSON object to a geometry stream.
Parameters