地理

Paths

  • d3.geo.path - create a new geographic path generator.
  • path - project the specified feature and render it to the context.
  • path.projection - get or set the geographic projection.
  • path.context - get or set the render context.
  • path.pointRadius - get or set the radius to display point features.
  • path.area - compute the projected area of a given feature.
  • path.centroid - compute the projected centroid of a given feature.
  • path.bounds - compute the projected bounds of a given feature.
  • d3.geo.graticule - create a graticule generator.
  • graticule - generate a MultiLineString of meridians and parallels.
  • graticule.lines - generate an array of LineStrings of meridians and parallels.
  • graticule.outline - generate a Polygon of the graticule’s extent.
  • graticule.extent - get or set the major & minor extents.
  • graticule.majorExtent - get or set the major extent.
  • graticule.minorExtent - get or set the minor extent.
  • graticule.step - get or set the major & minor step intervals.
  • graticule.majorStep - get or set the major step intervals.
  • graticule.minorStep - get or set the minor step intervals.
  • graticule.precision - get or set the latitudinal precision.
  • d3.geo.circle - create a circle generator.
  • circle - generate a piecewise circle as a Polygon.
  • circle.origin - specify the origin in latitude and longitude.
  • circle.angle - specify the angular radius in degrees.
  • circle.precision - specify the precision of the piecewise circle.
  • d3.geo.area - compute the spherical area of a given feature.
  • d3.geo.bounds - compute the latitude-longitude bounding box for a given feature.
  • d3.geo.centroid - compute the spherical centroid of a given feature.
  • d3.geo.distance - compute the great-arc distance between two points.
  • d3.geo.interpolate - interpolate between two points along a great arc.
  • d3.geo.length - compute the length of a line string or the perimeter of a polygon.
  • d3.geo.rotation - create a rotation function for the specified angles [λ, φ, γ].
  • rotation - rotate the given location around the sphere.
  • rotation.invert - inverse-rotate the given location around the sphere.

Projections

  • d3.geo.projection - create a standard projection from a raw projection.
  • projection - project the specified location.
  • projection.invert - invert the projection for the specified point.
  • projection.rotate - get or set the projection’s three-axis rotation.
  • projection.center - get or set the projection’s center location.
  • projection.translate - get or set the projection’s translation position.
  • projection.scale - get or set the projection’s scale factor.
  • projection.clipAngle - get or set the radius of the projection’s clip circle.
  • projection.clipExtent - get or set the projection’s viewport clip extent, in pixels.
  • projection.precision - get or set the precision threshold for adaptive resampling.
  • projection.stream - wrap the specified stream listener, projecting input geometry.
  • d3.geo.projectionMutator - create a standard projection from a mutable raw projection.
  • d3.geo.albers - the Albers equal-area conic projection.
  • albers.parallels - get or set the projection's two standard parallels.
  • d3.geo.albersUsa - a composite Albers projection for the United States.
  • d3.geo.azimuthalEqualArea - the azimuthal equal-area projection.
  • d3.geo.azimuthalEquidistant - the azimuthal equidistant projection.
  • d3.geo.conicConformal - the conic conformal projection.
  • d3.geo.conicEquidistant - the conic equidistant projection.
  • d3.geo.conicEqualArea the conic equal-area (a.k.a. Albers) projection.
  • d3.geo.equirectangular - the equirectangular (plate carreé) projection.
  • d3.geo.gnomonic - the gnomonic projection.
  • d3.geo.mercator - the spherical Mercator projection.
  • d3.geo.orthographic - the azimuthal orthographic projection.
  • d3.geo.stereographic - the azimuthal stereographic projection.
  • d3.geo.azimuthalEqualArea.raw - the raw azimuthal equal-area projection.
  • d3.geo.azimuthalEquidistant.raw - the azimuthal equidistant projection.
  • d3.geo.conicConformal.raw - the raw conic conformal projection.
  • d3.geo.conicEquidistant.raw - the raw conic equidistant projection.
  • d3.geo.conicEqualArea.raw the raw conic equal-area (a.k.a. Albers) projection.
  • d3.geo.equirectangular.raw - the raw equirectangular (plate carrée) projection.
  • d3.geo.gnomonic.raw - the raw gnomonic projection.
  • d3.geo.mercator.raw - the raw Mercator projection.
  • d3.geo.orthographic.raw - the raw azimuthal orthographic projection.
  • d3.geo.stereographic.raw - the raw azimuthal stereographic projection.
  • d3.geo.transverseMercator.raw - the raw transverse Mercator projection.

Streams

  • d3.geo.stream - convert a GeoJSON object to a geometry stream.
  • stream.point - indicate an x, y (and optionally z) coordinate.
  • stream.lineStart - indicate the start of a line or ring.
  • stream.lineEnd - indicate the end of a line or ring.
  • stream.polygonStart - indicate the start of a polygon.
  • stream.polygonEnd - indicate the end of a polygon.
  • stream.sphere - indicate a sphere.
  • d3.geo.transform - transform streaming geometries.
  • transform.stream - wraps a given stream.
  • d3.geo.clipExtent - a stream transform that clips geometries to a given axis-aligned rectangle.
  • clipExtent.extent - sets the clip extent.