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

--- Comment #2 from Karl Ove Hufthammer <k...@huftis.org> ---
(In reply to animtim from comment #1)
> The new maps have been drawn using EPSG:4326 (WGS 84,
> https://en.wikipedia.org/wiki/World_Geodetic_System), which is the default
> format given by osm-boundaries.com, in pure latitude/longitude coordinates.
> It is not "wrong", but you probably expected to have it in EPSG:3857 (Web
> Mercator Projection).

It is not ‘wrong’ in that is a mathematical description of the country, but it
is wrong in that the result looks nothing like the country it is supposed to
look like, i.e. both areas, angles and distances are completely distorted.

No, I don’t expect it to be shown in the EPSG 3857 (Web Mercator). The global
(Web) Mercator projection has nothing going for it except mathematical
simplicity (which isn’t relevant for a precomputed map), and is wholly
unsuitable for displaying Norway.

As I originally wrote, a suitable projection would EPSG 32633 (UTM 33N), which
is commonly used for Norway. (There also exists an oblique Mercator
specifically tailored for Norway, but the difference from UTM 33N is slight.)

For other countries and continents, other projections are suitable. E.g., for
the European continent, EPSG 3034 can be used (https://epsg.io/3034) (EPSG 3035
is also suitable). For the USA, EPSG 102003 or 102004 can be used.

> I think I'll keep this format for continents-maps, but for countries maps I
> can probably redo them by converting the data to EPSG:3857.
> osm-boundaries.com has an option to download in this format, but it seems to
> not work for all the countries... I've found another library that allows to
> do the conversion (https://github.com/perliedman/reproject).
> The little
> problem is that in this format the svg output from geojson-to-svg is
> insanely huge and needs a bit more editing to make it usable, but it should
> be doable.

ogr2ogr should be able to do it (for geojson files) without any problems.

I’m not familar with the reproject tool. A reproject file shouldn’t take up any
more space than the original unless that tool adds intermediate points (which
usually shouldn’t be necessary). Is that perhaps what is done?

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

Reply via email to