edit: Initially underestimated so did some calculations below
Key Data Points for Estimate of SVG Size
- Radius of Earth: 6371 km
- Surface Area of Earth: 510e6 km^2
- Approximate Number of Countries: 250
- Land Area of Earth: 29% of Surface Area = 150e6 km^2
Corrections and Estimations Based on Average Country Size - Average Land Area per Country: 150e6 km^2 / 250 = 6e5 km^2
- Country Closest to Average Size: Ukraine, with 603550 km^2, or roughly 6e5 km^2
- World Resources Institute Measure of Ukraine Coastline: 4953 km, or around 5e3 km
Assumptions for SVG Complexity 1. Only coastlines matter for the paths.
2. Resolution set at 10 meters.
SVG Data Calculations and Estimates - Coastline Points for Average Country:
- 5e3 km = 5e6 m
- Equals 5e5 X,Y points (at 10m resolution)
- Total Points for All Countries:
- 250 countries * 5e5 points = 1.25e8 X,Y points
- Storage Requirement for Each Point:
- 6 figures per coordinate + delimiters = roughly 15 bytes
- Total Storage = 1.25e8 points * 15 bytes = ~1.875e9 bytes or about 1.875 GB
Even with a simplified approach, we're looking at an SVG that'd be almost 2 GB, just for coastlines at a 10m resolution. Definitely some hefty complexities in play here.What about 1000m resolution? 20 megabytes. Much more achievable.