https://bugs.kde.org/show_bug.cgi?id=439493

--- Comment #5 from Karl Ove Hufthammer <[email protected]> ---
(In reply to animtim from comment #4)
> When I said "the svg output from geojson-to-svg is insanely huge", I didn't
> mean in file size but in svg coordinates (actually the file size is also a
> bit bigger as the coordinates values are quite longer, but that's not what I
> meant).

Hmm, do you mean the *number* of coordinates or their precision (e.g.
1.42798673123 instead of 1.43)?

> I went for EPSG:3857 as it's the one used by virtually all online map
> providers, and as it's easier to use the same for all the countries. But as
> you mentioned some specific ones can be better depending on the countries,
> I'll update it again with EPSG:32633 for Norway, and look for the best ones
> to use for each country. Thank you for the explanations and the hints!

Thanks for using EPSG 32633 for Norway. :)

A simple formula that works well for all countries that are not *too wide*, is
to use the UTM zone corresponding to the middle of the longitudinal bounding
box. The UTM zone can be calculated using this formula: ceiling((180 +
longitude) / 6).

For example, the middle of France has a longitude of about 2 (Paris is at
longitude ~2.35). So an appropriate UTM zone would be ceiling((180 + 2) / 6 ) =
31, e.g., EPSG 32631 (just add 32600 to get the EPSG code). That should give an
adequate result. (Though EPSG 2154 is more commonly used for France.)

This will work OK for most European countries (but not Russia, with spans
*many* UTM zones, and not other wide areas, like the USA).

BTW, I think even using the European EPSG 3034 for *all* European countries
(except Russia) wouldn’t be *too* bad.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to