Admin 0 South America projected topojson (Lambert Conformal Conic).
-
-
Save nodo20/1904a63b44b81f86b173763e1ee75f10 to your computer and use it in GitHub Desktop.
SA Lambert Conformal Conic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pais | geounit | sospechados | confirmados | casos_importados | tasa_incidencia | muertes_zika_c | |
|---|---|---|---|---|---|---|---|
| Argentina | Argentina | 1743 | 24 | 22 | 4.03 | 0 | |
| Bolivia | Bolivia | 0 | 126 | 4 | 1.16 | 0 | |
| Brasil | Brazil | 174003 | 78421 | 0 | 120.45 | 4 | |
| Chile | Chile | 0 | 0 | 0 | 0 | 0 | |
| Colombia | Colombia | 93281 | 8826 | 0 | 209.86 | 0 | |
| Ecuador | Ecuador | 2076 | 681 | 19 | 16.83 | 0 | |
| Guyana | Guyana | 0 | 6 | 0 | 0.78 | 0 | |
| Paraguay | Paraguay | 275 | 10 | 0 | 4.24 | 0 | |
| Peru | Peru | 0 | 95 | 17 | 0.3 | 0 | |
| Surinam | Suriname | 2710 | 709 | 0 | 623.91 | 4 | |
| Venezuela | Venezuela | 56032 | 1768 | 0 | 183.38 | 0 | |
| Uruguay | Uruguay | 0 | 0 | 0 | 0 | 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style> | |
| .countries { | |
| fill: #222; | |
| stroke: #fff; | |
| } | |
| .countries :hover { | |
| fill: #8a8a8a; | |
| } | |
| </style> | |
| <body> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/1.6.19/topojson.min.js"></script> | |
| <script> | |
| var width = 960, | |
| height = 800; | |
| var path = d3.geo.path() | |
| .projection(null); | |
| var svg = d3.select("body").append("svg") | |
| .attr("width", width) | |
| .attr("height", height); | |
| d3.json("sa.json", function(error, sa) { | |
| if (error) throw error; | |
| svg.append("g") | |
| .attr("class","countries") | |
| .selectAll("path") | |
| .data(topojson.feature(sa, sa.objects.countries).features) | |
| .enter().append("path") | |
| .attr("d", path) | |
| .append("title") | |
| .text(function(d) { console.log(d); return d.properties.ADMIN; }); | |
| }); | |
| d3.select(self.frameElement).style("height", height + "px"); | |
| </script> |
ogr2ogr
-f 'ESRI Shapefile'
-t_srs 'EPSG:102015'
-where "continent IN ('South America')"
sa-projected.shp
ne_10m_admin_0_countries.shp
topojson
--width 960
--height 800
--margin 20
--properties ADMIN
--properties ADMO0_A3
--properties GEOUNIT
--properties NAME
-o sa.json
-- countries=sa-projected.shp
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment