Skip to content

Instantly share code, notes, and snippets.

@FrissAnalytics
Last active April 29, 2024 13:51
Show Gist options
  • Save FrissAnalytics/a5b18dc15b73f34f92c7448cbb62c38e to your computer and use it in GitHub Desktop.
Save FrissAnalytics/a5b18dc15b73f34f92c7448cbb62c38e to your computer and use it in GitHub Desktop.
TopoJSON Collection
license: mit

TopoJSON Collection

Converted to TopoJSON from original shapefiles, GeoJSON, etc. as noted in the source. All files are believed to have been converted from sources that are licensed for reuse or which are in the public domain. If you find a file and believe that its original source is not licensed for this type of use, please create an Issue in this repository.

Please make sure that you click through the links below and download the RAW version of each TopoJson file. Do not right-click on the links below and Save As.

World

Continents

Algeria

Argentina

Azerbaijan

Belgium

China

Colombia

Czech Republic

Denmark

Finland

France

Germany

India

Ireland

Italy

Japan

Liberia

Nepal

Netherlands

New Zealand

Norway

Pakistan

Peru

Philippines

Poland

Portugal

Romania

South Africa

Spain

Sweden

Turkey

  • turkiye (provided by local contributor)

United Arab Emirates

United Kingdom

United States - National

United States - State Level

Venezuela

<!DOCTYPE html>
<head>
<meta charset="utf-8">
<script src="https://d3js.org/d3.v4.min.js"></script>
<style>
body { margin:0;position:fixed;top:0;right:0;bottom:0;left:0; }
</style>
</head>
<body>
<script>
// Feel free to change or delete any of the code you see in this editor!
var svg = d3.select("body").append("svg")
.attr("width", 960)
.attr("height", 500)
svg.append("text")
.text("TopoJSON Collection, see README of this block.")
.attr("y", 200)
.attr("x", 20)
.attr("font-size", 36)
.attr("font-family", "monospace")
</script>
</body>
@turtlesforyou
Copy link

Links are not working. When I click on them it takes me to a new tab which says 404 this is not the web page you are looking for.

@FrissAnalytics
Copy link
Author

These files are very old. The block came from BlockBuilder, a d3.js site that is no longer working.

Most content is available at https://observablehq.com/@d3

FYI: You can find many shapefiles at https://www.diva-gis.org/gdata and change them using https://mapshaper.org/ to topoJSON or geoJSON.

You can simply download the shapefiles and drag & drop them in mapshaper (an online tool) and select an output type you like.

You can also easily compress these files , making for smaller downloads or simplify them using mapshaper.

Anyways, good luck!

@amirbare
Copy link

Is there anyway to get access to these old files. I was able to bring these to power bi and they worked perfectly.

@FrissAnalytics
Copy link
Author

FrissAnalytics commented Mar 13, 2024 via email

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