Skip to content

Instantly share code, notes, and snippets.

@mbostock
Last active February 26, 2019 22:33
Show Gist options
  • Save mbostock/9764521 to your computer and use it in GitHub Desktop.
Save mbostock/9764521 to your computer and use it in GitHub Desktop.
Lambert Conformal Conic
license: gpl-3.0
redirect: https://observablehq.com/@d3/d3-conic-conformal
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="//d3js.org/d3.v3.min.js"></script>
<script src="//d3js.org/topojson.v1.min.js"></script>
<script>
var width = 960,
height = 700;
var path = d3.geo.path()
.projection(null);
var svg = d3.select("body").append("svg")
.attr("width", width)
.attr("height", height);
d3.json("world.json", function(error, world) {
if (error) throw error;
svg.insert("path", ".graticule")
.datum(topojson.feature(world, world.objects.countries))
.attr("class", "land")
.attr("d", path);
});
d3.select(self.frameElement).style("height", height + "px");
</script>
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jliger
Copy link

jliger commented Apr 20, 2015

Hi,
I am looking for the exact settings of the lambert projection used in the world.json file.
Is it maybe
ETRS89 / ETRS-LCC : http://spatialreference.org/ref/epsg/3034/
or NTF (Paris) / Lambert zone II : http://spatialreference.org/ref/epsg/27572/ ?

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment