simplify SVGs

I tried to make my SVGs more robust in terms of only using features supported on a wide variety of platforms.  in particular, it turns out nested CSS blocks may not be a core CSS thing... they're a Sass thing?  but chrome and firefox both seem to interpret it correctly automaticly.  in any case, I got rid of that and told the user to do their circle showing manually.  I also deleted all these namespaces and metadata tags because it seems like intellij is having trubble resolving their sources and idk what's the point of including them in the first place.  all of this information is either already included or is better given in supplementary files.  I also added more background rectangles.
This commit is contained in:
Justin Kunimune 2023-12-14 21:03:25 -08:00
parent fbfe0f07bc
commit b88c3fae3e
12 changed files with 79 additions and 381 deletions

View File

@ -1,37 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<metadata>
<rdf:RDF>
<cc:work>
<rdf:Description
about="https://github.com/jkunimune/Map-Projections/"
dc:title="Blank world map (de facto country borders)"
dc:description="A map of the world, showing all countries' de facto borders, with major lakes overlaid. Borders precise to 110km. Equirectangular projection."
dc:creator="Justin Kunimune"
dc:source="http://www.naturalearthdata.com/"
dc:date="2018-02-04"
dc:format="image/svg+xml"
dc:language="en" >
</rdf:Description>
</cc:work>
<cc:License>
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution" />
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
<cc:permits rdf:resource="http://web.resource.org/cc/Sharing" />
<cc:requires rdf:resource="http://web.resource.org/cc/Attribution" />
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
</cc:License>
</rdf:RDF>
</metadata>
<svg xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<title>Blank world map (de facto country borders)</title>
<desc>
A map of the world, showing all countries' de facto borders, with major lakes overlaid. Borders precise to 110km. Equirectangular projection.
@ -41,17 +13,16 @@
stroke:#ffffff;
stroke-width:.1;
fill:#c0c0c0; /* gray */
circle {
display:none;
}
}
/* color in countries here by inserting their ISO 3166 A3 codes. */
/* for example:
.BRA, .FRA, .USV {
fill:#00ff00;
circle {
display:block;
}
.country circle {
display:none;
}
/* color in countries and show their circles here by inserting their ISO 3166 A3 codes. for example:
.BRA, .FRA, .VIR {
fill:#00ff00; (color Brazil, France, and the US Virgin Islands green)
}
.BRA circle, .FRA circle, .VIR circle {
display:block; (display the small-country circles for these regions and their dependencies)
}
*/
.water {
@ -60,6 +31,7 @@
}
</style>
<g transform="matrix(1,0,0,-1,180,90)">
<rect class="water" x="-180" y="-90" width="360" height="180" />
<g class="country">
<g class="AFG">
<path id="AFG" d="M66.519,37.363 L67.076,37.356 L67.830,37.145 L68.136,37.023 L68.859,37.344 L69.196,37.151 L69.519,37.609 L70.117,37.588 L70.271,37.735 L70.376,38.138 L70.807,38.486 L71.348,38.259 L71.239,37.953 L71.542,37.906 L71.449,37.066 L71.845,36.738 L72.193,36.948 L72.637,37.048 L73.260,37.495 L73.949,37.422 L74.980,37.420 L75.158,37.133 L74.576,37.021 L74.068,36.836 L72.920,36.720 L71.846,36.510 L71.262,36.074 L71.499,35.651 L71.613,35.153 L71.115,34.733 L71.157,34.349 L70.882,33.989 L69.931,34.020 L70.324,33.359 L69.687,33.105 L69.263,32.502 L69.318,31.901 L68.927,31.620 L68.557,31.713 L67.793,31.583 L67.683,31.303 L66.939,31.305 L66.381,30.739 L66.346,29.888 L65.047,29.472 L64.350,29.560 L64.148,29.341 L63.550,29.468 L62.550,29.319 L60.874,29.829 L61.781,30.736 L61.699,31.380 L60.942,31.548 L60.864,32.183 L60.536,32.981 L60.964,33.529 L60.528,33.676 L60.803,34.404 L61.211,35.650 L62.231,35.271 L62.985,35.404 L63.194,35.857 L63.983,36.008 L64.546,36.312 L64.746,37.112 L65.589,37.305 L65.746,37.661 L66.217,37.394 Z" />

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 191 KiB

View File

@ -1,50 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<metadata>
<rdf:RDF>
<cc:work>
<rdf:Description
about="https://github.com/jkunimune/Map-Projections/"
dc:title="Blank world map"
dc:description="A map of the world, showing all countries and top-level administrative divisions, with major lakes overlaid. Borders precise to 10km. Equirectangular projection."
dc:creator="Justin Kunimune"
dc:source="http://www.naturalearthdata.com/"
dc:date="2018-02-04"
dc:format="image/svg+xml"
dc:language="en" >
</rdf:Description>
</cc:work>
<cc:License>
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution" />
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
<cc:permits rdf:resource="http://web.resource.org/cc/Sharing" />
<cc:requires rdf:resource="http://web.resource.org/cc/Attribution" />
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
</cc:License>
</rdf:RDF>
</metadata>
<svg xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<title>Blank world map</title>
<desc>
A map of the world with the top-level administrative divisions for all countries shown. Borders precise to 50&#0160;km.
</desc>
<style type="text/css">
/* color in provinces here by inserting their or their countries' ISO 3166 A2 codes. */
/* for example:
/* color in provinces here by inserting their or their countries' ISO 3166 A2 codes. for example:
.CA-AB {
fill:#ff0000;
fill:#ff0000; (color Alberta, Canada in red)
}
.BR {
fill:#00ff00;
fill:#00ff00; (color all of Brazil in green)
}
*/
.province {
@ -63,6 +33,7 @@
}
</style>
<g transform="matrix(1,0,0,-1,180,90)">
<rect class="water" x="-180" y="-90" width="360" height="180" />
<g class="province">
<g class="AD">
<g class="AD-02">

Before

Width:  |  Height:  |  Size: 29 MiB

After

Width:  |  Height:  |  Size: 29 MiB

View File

@ -1,37 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<metadata>
<rdf:RDF>
<cc:work>
<rdf:Description
about="https://github.com/jkunimune/Map-Projections/"
dc:title="Equirectangular map of the world - coastlines and lakes"
dc:description="A map of the world, showing all landmasses as SVG paths. Coastlines precise to 50km."
dc:creator="Justin Kunimune"
dc:source="http://www.naturalearthdata.com/"
dc:date="2018-02-04"
dc:format="image/svg+xml"
dc:language="en" >
</rdf:Description>
</cc:work>
<cc:License>
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution" />
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
<cc:permits rdf:resource="http://web.resource.org/cc/Sharing" />
<cc:requires rdf:resource="http://web.resource.org/cc/Attribution" />
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
</cc:License>
</rdf:RDF>
</metadata>
<svg xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<title>Equirectangular map of the world &#8211; coastlines and lakes</title>
<desc>
A map of the world, showing all landmasses as SVG paths. Coastlines precise to 50&#0160;km.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

@ -1,37 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
width="1600"
height="800"
viewBox="0 0 360 180"
version="1.1">
<metadata>
<rdf:RDF>
<cc:work>
<rdf:Description
about="https://github.com/jkunimune/Map-Projections/"
dc:title="Equirectangular map of the world - coastlines, graticule, and indicatrices"
dc:description="A map of the world, showing all landmasses with 10 degree graticule and Tissot's indicatrices of diameter 1,000km and spacing 30 degrees. Coastlines precise to 110km."
dc:creator="Justin Kunimune"
dc:source="http://www.naturalearthdata.com/"
dc:date="2018-02-04"
dc:format="image/svg+xml"
dc:language="en" >
</rdf:Description>
</cc:work>
<cc:License>
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution" />
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
<cc:permits rdf:resource="http://web.resource.org/cc/Sharing" />
<cc:requires rdf:resource="http://web.resource.org/cc/Attribution" />
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
</cc:License>
</rdf:RDF>
</metadata>
<svg xmlns="http://www.w3.org/2000/svg"
width="1600"
height="800"
viewBox="0 0 360 180"
version="1.1">
<title>Equirectangular map of the world &#8211; coastlines, graticule, and indicatrices</title>
<desc>
A map of the world, showing all landmasses with 10&#0176; graticule and Tissot's indicatrices of diameter 1,000&#0160;km and spacing 30&#0176;. Coastlines precise to 110&#0160;km.

Before

Width:  |  Height:  |  Size: 290 KiB

After

Width:  |  Height:  |  Size: 289 KiB

View File

@ -1,37 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
width="1600"
height="800"
viewBox="0 0 360 180"
version="1.1">
<metadata>
<rdf:RDF>
<cc:work>
<rdf:Description
about="https://github.com/jkunimune/Map-Projections/"
dc:title="Equirectangular map of the world - coastlines, graticule, and indicatrices"
dc:description="A map of the world, showing all landmasses with 10 degree graticule and Tissot's indicatrices of diameter 1,000km and spacing 30 degrees. Coastlines precise to 110km."
dc:creator="Justin Kunimune"
dc:source="http://www.naturalearthdata.com/"
dc:date="2018-02-04"
dc:format="image/svg+xml"
dc:language="en" >
</rdf:Description>
</cc:work>
<cc:License>
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution" />
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
<cc:permits rdf:resource="http://web.resource.org/cc/Sharing" />
<cc:requires rdf:resource="http://web.resource.org/cc/Attribution" />
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
</cc:License>
</rdf:RDF>
</metadata>
<svg xmlns="http://www.w3.org/2000/svg"
width="1600"
height="800"
viewBox="0 0 360 180"
version="1.1">
<title>Equirectangular map of the world &#8211; coastlines, graticule, and indicatrices</title>
<desc>
A map of the world, showing all landmasses with 10&#0176; graticule and Tissot's indicatrices of diameter 1,000&#0160;km and spacing 30&#0176;. Coastlines precise to 110&#0160;km.

Before

Width:  |  Height:  |  Size: 290 KiB

After

Width:  |  Height:  |  Size: 288 KiB

View File

@ -1,37 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<metadata>
<rdf:RDF>
<cc:work>
<rdf:Description
about="https://github.com/jkunimune/Map-Projections/"
dc:title="Equirectangular map of the world - coastlines and lakes"
dc:description="A map of the world, showing all landmasses as SVG paths. Coastlines precise to 50km."
dc:creator="Justin Kunimune"
dc:source="http://www.naturalearthdata.com/"
dc:date="2018-02-04"
dc:format="image/svg+xml"
dc:language="en" >
</rdf:Description>
</cc:work>
<cc:License>
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution" />
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
<cc:permits rdf:resource="http://web.resource.org/cc/Sharing" />
<cc:requires rdf:resource="http://web.resource.org/cc/Attribution" />
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
</cc:License>
</rdf:RDF>
</metadata>
<svg xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<title>Equirectangular map of the world &#8211; coastlines and lakes</title>
<desc>
A map of the world, showing all landmasses as SVG paths. Coastlines precise to 50&#0160;km.
@ -47,6 +19,7 @@
}
</style>
<g transform="matrix(1,0,0,-1,180,90)">
<rect class="water" x="-180" y="-90" width="360" height="180" />
<g class="land">
<path d="M179.999,-16.169 L179.848,-16.302 L179.794,-16.370 L179.748,-16.446 L179.619,-16.528 L179.564,-16.637 L179.568,-16.747 L179.697,-16.632 L179.841,-16.538 L179.885,-16.518 L179.930,-16.519 L179.927,-16.552 L179.906,-16.584 L179.890,-16.667 L179.928,-16.744 L179.821,-16.737 L179.715,-16.744 L179.589,-16.787 L179.465,-16.806 L179.419,-16.807 L179.375,-16.792 L179.346,-16.770 L179.323,-16.718 L179.300,-16.710 L179.202,-16.713 L179.055,-16.814 L179.007,-16.900 L178.950,-16.904 L178.884,-16.886 L178.803,-16.952 L178.707,-16.976 L178.665,-16.920 L178.638,-16.851 L178.604,-16.801 L178.497,-16.788 L178.514,-16.726 L178.542,-16.700 L178.568,-16.664 L178.584,-16.622 L178.634,-16.649 L178.686,-16.666 L178.745,-16.634 L178.805,-16.631 L178.866,-16.540 L178.961,-16.483 L179.091,-16.438 L179.225,-16.405 L179.294,-16.399 L179.359,-16.380 L179.475,-16.294 L179.552,-16.250 L179.635,-16.223 L179.715,-16.208 L179.789,-16.221 L179.848,-16.214 L180,-16.153 Z" />
<path d="M177.234,-17.147 L177.183,-17.164 L177.210,-17.084 L177.239,-17.059 L177.258,-17.054 L177.287,-17.049 L177.276,-17.105 Z" />

Before

Width:  |  Height:  |  Size: 1.2 MiB

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@ -1,37 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<metadata>
<rdf:RDF>
<cc:work>
<rdf:Description
about="https://github.com/jkunimune/Map-Projections/"
dc:title="Equirectangular map of the world - coastlines and graticule"
dc:description="A map of the world, showing all landmasses with 15 degree graticule. Coastlines precise to 50km."
dc:creator="Justin Kunimune"
dc:source="http://www.naturalearthdata.com/"
dc:date="2018-02-04"
dc:format="image/svg+xml"
dc:language="en" >
</rdf:Description>
</cc:work>
<cc:License>
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution" />
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
<cc:permits rdf:resource="http://web.resource.org/cc/Sharing" />
<cc:requires rdf:resource="http://web.resource.org/cc/Attribution" />
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
</cc:License>
</rdf:RDF>
</metadata>
<svg xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<title>Equirectangular map of the world &#8211; coastlines, graticule, and indicatrices</title>
<desc>
A map of the world, showing all landmasses with 15&#0176; graticule. Coastlines precise to 50&#0160;km.

Before

Width:  |  Height:  |  Size: 1.4 MiB

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@ -1,37 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<metadata>
<rdf:RDF>
<cc:work>
<rdf:Description
about="https://github.com/jkunimune/Map-Projections/"
dc:title="Equirectangular map - 5 degree graticule"
dc:description="An Equirectangular graticule, showing all landmasses with 5 degree graticule, including the Polar Circles and the Tropics."
dc:creator="Justin Kunimune"
dc:source="http://www.naturalearthdata.com/"
dc:date="2018-02-04"
dc:format="image/svg+xml"
dc:language="en" >
</rdf:Description>
</cc:work>
<cc:License>
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution" />
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
<cc:permits rdf:resource="http://web.resource.org/cc/Sharing" />
<cc:requires rdf:resource="http://web.resource.org/cc/Attribution" />
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
</cc:License>
</rdf:RDF>
</metadata>
<svg xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<title>Equirectangular map &#8211; 5&#0176; graticule</title>
<desc>
An Equirectangular graticule, showing all landmasses with 5&#0176; graticule, including the Polar Circles and the Tropics.

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 51 KiB

View File

@ -1,37 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<metadata>
<rdf:RDF>
<cc:work>
<rdf:Description
about="https://github.com/jkunimune/Map-Projections/"
dc:title="Icosahedral orthodromic mesh - Equirectangular projection"
dc:description="A mesh of great circles that intersect with 10-fold symmetry at 12 principal nodes and 6-fold symmetry at 20 minor nodes. Aligns with the edges of an icosahedron and its dual dodecahedron."
dc:creator="Justin Kunimune"
dc:source="http://www.naturalearthdata.com/"
dc:date="2018-02-04"
dc:format="image/svg+xml"
dc:language="en" >
</rdf:Description>
</cc:work>
<cc:License>
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution" />
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
<cc:permits rdf:resource="http://web.resource.org/cc/Sharing" />
<cc:requires rdf:resource="http://web.resource.org/cc/Attribution" />
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
</cc:License>
</rdf:RDF>
</metadata>
<svg xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<title>Icosahedral orthodromic mesh &#8211; Equirectangular projection</title>
<desc>
A mesh of great circles that intersect with 10-fold symmetry at 12 principal nodes and 6-fold symmetry at 20 minor nodes. Aligns with the edges of an icosahedron and its dual dodecahedron.

Before

Width:  |  Height:  |  Size: 438 KiB

After

Width:  |  Height:  |  Size: 437 KiB

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 1.7 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

View File

@ -1,37 +1,9 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<metadata>
<rdf:RDF>
<cc:work>
<rdf:Description
about="https://github.com/jkunimune/Map-Projections/"
dc:title="Equirectangular map of the world - coastlines and lakes"
dc:description="A map of the world, showing all landmasses as SVG paths. Coastlines precise to 50km."
dc:creator="Justin Kunimune"
dc:source="http://www.naturalearthdata.com/"
dc:date="2018-02-04"
dc:format="image/svg+xml"
dc:language="en" >
</rdf:Description>
</cc:work>
<cc:License>
<cc:permits rdf:resource="http://web.resource.org/cc/Reproduction" />
<cc:permits rdf:resource="http://web.resource.org/cc/Distribution" />
<cc:permits rdf:resource="http://web.resource.org/cc/DerivativeWorks" />
<cc:permits rdf:resource="http://web.resource.org/cc/Sharing" />
<cc:requires rdf:resource="http://web.resource.org/cc/Attribution" />
<cc:requires rdf:resource="http://web.resource.org/cc/ShareAlike" />
</cc:License>
</rdf:RDF>
</metadata>
<svg xmlns="http://www.w3.org/2000/svg"
width="2048"
height="1024"
viewBox="0 0 360 180"
version="1.1">
<title>Equirectangular map of the world &#8211; coastlines and lakes</title>
<desc>
A map of the world, showing all landmasses as SVG paths. Coastlines precise to 50&#0160;km.
@ -47,6 +19,7 @@
}
</style>
<g transform="matrix(1,0,0,-1,180,90)">
<rect class="water" x="-180" y="-90" width="360" height="180" />\n'
<g class="land">
<path d="M179.999,-16.169 L179.619,-16.528 L179.841,-16.538 L179.906,-16.584 L179.715,-16.744 L179.375,-16.792 L179.202,-16.713 L178.884,-16.886 L178.638,-16.851 L178.542,-16.700 L178.686,-16.666 L178.961,-16.483 L179.359,-16.380 L179.715,-16.208 L180,-16.153 Z" />
<path d="M143.179,-11.954 L143.110,-12.304 L143.402,-12.640 L143.529,-13.304 L143.643,-13.964 L143.962,-14.463 L144.473,-14.232 L145.064,-14.791 L145.252,-15.097 L145.350,-15.702 L145.436,-16.305 L145.638,-16.726 L145.902,-17.070 L146.023,-18.176 L146.312,-18.667 L146.587,-19.139 L147.093,-19.333 L147.419,-19.378 L147.742,-19.770 L148.081,-19.899 L148.600,-20.145 L148.805,-20.492 L148.912,-20.845 L149.280,-21.300 L149.524,-22.024 L149.772,-22.426 L150.006,-22.522 L150.076,-22.164 L150.541,-22.559 L150.623,-22.367 L150.783,-23.177 L151.088,-23.696 L151.575,-24.034 L152.055,-24.494 L152.456,-24.802 L152.654,-25.202 L152.985,-25.816 L153.084,-26.304 L153.386,-27.769 L153.569,-28.533 L153.348,-29.290 L153.188,-30.164 L153.022,-31.087 L152.559,-32.046 L152.331,-32.558 L152.135,-32.700 L151.813,-32.901 L151.484,-33.347 L151.292,-33.581 L151.245,-33.985 L151.191,-34.015 L150.927,-34.387 L150.809,-34.994 L150.697,-35.042 L150.715,-35.155 L150.374,-35.584 L150.129,-36.120 L149.960,-36.846 L149.962,-37.444 L149.565,-37.730 L148.263,-37.831 L147.396,-38.219 L146.293,-38.700 L146.337,-38.894 L146.484,-39.065 L146.332,-39.077 L146.018,-38.867 L145.692,-38.656 L145.424,-38.477 L145.476,-38.244 L145.191,-38.384 L144.780,-38.347 L145.120,-38.091 L144.538,-38.077 L144.589,-38.158 L144.329,-38.348 L143.539,-38.821 L142.840,-38.581 L142.188,-38.399 L141.492,-38.380 L140.627,-38.028 L139.784,-37.246 L139.847,-36.748 L139.466,-36.010 L138.969,-35.581 L139.231,-35.598 L139.303,-35.399 L139.018,-35.443 L138.730,-35.551 L138.252,-35.487 L138.490,-34.764 L138.089,-34.170 L137.874,-34.727 L137.272,-35.179 L136.884,-35.240 L137.308,-34.917 L137.469,-34.490 L137.650,-33.859 L137.866,-33.314 L137.913,-32.771 L137.791,-32.823 L137.354,-33.430 L136.937,-33.750 L136.431,-34.030 L135.891,-34.661 L135.970,-34.982 L135.648,-34.940 L135.231,-34.580 L135.176,-34.497 L135.427,-34.602 L135.286,-34.142 L134.889,-33.626 L134.608,-33.190 L134.158,-32.733 L133.930,-32.412 L133.401,-32.188 L132.324,-32.020 L131.285,-31.521 L130.783,-31.604 L128.946,-31.703 L127.320,-32.264 L125.917,-32.297 L124.759,-32.883 L124.126,-33.129 L123.507,-33.916 L122.956,-33.884 L121.946,-33.857 L120.531,-33.920 L119.729,-34.042 L119.081,-34.459 L118.006,-35.013 L117.144,-35.034 L115.987,-34.795 L115.195,-34.308 L114.973,-34.051 L115.182,-33.643 L115.683,-33.193 L115.708,-32.568 L115.455,-31.303 L114.995,-30.216 L114.959,-29.434 L114.592,-28.666 L114.133,-27.976 L113.333,-26.417 L113.253,-26.197 L113.343,-26.126 L113.547,-26.437 L113.836,-26.501 L113.589,-26.099 L113.451,-25.599 L113.698,-26.004 L113.766,-26.160 L113.942,-26.259 L114.216,-26.289 L113.993,-25.545 L113.504,-24.595 L113.490,-23.870 L113.765,-23.180 L113.683,-22.638 L114.124,-21.829 L114.142,-22.483 L114.417,-22.261 L115.162,-21.631 L115.894,-21.117 L116.836,-20.647 L117.406,-20.721 L118.199,-20.375 L119.359,-20.012 L120.434,-19.842 L121.338,-19.320 L121.722,-18.660 L122.262,-18.159 L122.237,-17.969 L122.160,-17.314 L122.523,-16.943 L122.848,-16.552 L123.142,-16.863 L123.525,-17.486 L123.608,-17.220 L123.664,-17.023 L123.829,-16.997 L123.745,-16.801 L123.490,-16.491 L123.646,-16.343 L123.859,-16.382 L124.130,-16.279 L124.530,-16.395 L124.669,-16.339 L124.388,-16.203 L124.577,-16.114 L124.648,-15.805 L124.382,-15.758 L124.562,-15.496 L124.693,-15.274 L125.063,-15.442 L124.909,-15.310 L124.914,-15.110 L125.038,-15.004 L125.356,-15.120 L125.239,-14.875 L125.285,-14.584 L125.580,-14.483 L125.705,-14.291 L125.691,-14.525 L125.840,-14.534 L126.021,-14.495 L126.101,-14.184 L126.119,-13.958 L126.299,-14.136 L126.570,-14.161 L126.776,-13.788 L127.293,-13.935 L127.763,-14.299 L128.160,-14.827 L128.112,-15.312 L128.259,-15.246 L128.218,-14.996 L128.410,-14.829 L129.058,-14.884 L129.238,-15.080 L129.459,-14.933 L129.650,-15.087 L129.763,-14.845 L129.663,-14.721 L129.608,-14.560 L129.620,-14.038 L129.789,-13.720 L130.073,-13.476 L130.135,-13.146 L130.400,-12.688 L130.610,-12.491 L130.777,-12.495 L130.874,-12.367 L131.020,-12.214 L131.292,-12.068 L131.726,-12.278 L132.182,-12.227 L132.442,-12.176 L132.713,-12.123 L132.645,-11.727 L132.134,-11.501 L131.812,-11.271 L132.155,-11.311 L132.334,-11.224 L132.857,-11.391 L133.185,-11.706 L133.654,-11.811 L134.351,-12.026 L134.816,-12.055 L135.352,-12.129 L135.885,-11.822 L135.896,-11.970 L135.704,-12.210 L135.938,-12.152 L136.193,-12.435 L136.250,-12.173 L136.610,-12.134 L136.947,-12.350 L136.594,-13.004 L136.294,-13.138 L135.929,-13.622 L135.806,-14.234 L135.405,-14.758 L135.531,-15 L135.833,-15.160 L136.291,-15.570 L136.644,-15.676 L136.687,-15.788 L137.002,-15.878 L137.526,-16.167 L138.245,-16.718 L139.010,-16.899 L139.248,-17.329 L139.946,-17.654 L140.648,-17.544 L141.219,-16.646 L141.393,-15.905 L141.604,-14.853 L141.535,-14.019 L141.589,-13.425 L141.782,-12.779 L141.893,-12.681 L141.747,-12.529 L141.871,-11.976 L141.952,-11.896 L142.326,-10.884 L142.605,-10.748 L142.780,-11.115 L142.851,-11.632 L143.066,-11.924 Z" />

Before

Width:  |  Height:  |  Size: 250 KiB

After

Width:  |  Height:  |  Size: 249 KiB

View File

@ -17,6 +17,7 @@ def main():
write_svg_code_to_file(
"../../input/Basic.svg",
' <g transform="matrix(1,0,0,-1,180,90)">\n'
' <rect class="water" x="-180" y="-90" width="360" height="180" />\n'
' <g class="land">\n'
+ plot_shapes('ne_50m_land', trim_antarctica=True, mark_antarctica=True) +
' </g>\n'
@ -112,10 +113,11 @@ def main():
write_svg_code_to_file(
"../../input/Political.svg",
' <g transform="matrix(1,0,0,-1,180,90)">\n'
' <rect class="water" x="-180" y="-90" width="360" height="180" />\n'
' <g class="country">\n'
+ plot_political_shapes('ne_50m_admin_0_countries', trim_antarctica=True) +
' </g>\n'
' <g class="lakes">\n'
' <g class="water">\n'
+ plot_shapes('ne_50m_lakes', max_rank=4) +
' </g>\n'
' </g>\n'
@ -126,6 +128,7 @@ def main():
write_svg_code_to_file(
"../../input/Advanced/Template countries.svg",
' <g transform="matrix(1,0,0,-1,180,90)">\n'
' <rect class="water" x="-180" y="-90" width="360" height="180" />\n'
' <g class="country">\n'
+ plot_political_shapes('ne_110m_admin_0_countries', trim_antarctica=True, add_title=True,
mode="normal")
@ -145,6 +148,7 @@ def main():
write_svg_code_to_file(
"../../input/Advanced/Template provinces.svg",
' <g transform="matrix(1,0,0,-1,180,90)">\n'
' <rect class="water" x="-180" y="-90" width="360" height="180" />\n'
' <g class="province">\n'
+ plot_political_shapes('ne_10m_admin_1_states_provinces', trim_antarctica=True, add_title=True) +
' </g>\n'