Re: [OSM-dev] Earth radius

2016-06-18 Thread Stadin, Benjamin
For my purpose I can ignore flattening and can assume a radius, because I need fast math. My requirement is it must not be smaller, and it should be consistent for conceptional reasons (but not for mathematical or technical). Note that the mentioned values come from OSM (as most other maps) using

Re: [OSM-dev] Earth radius

2016-06-18 Thread Greg Troxel
"Stadin, Benjamin" writes: > I indeed need to express distances in meters. This is a sinusoidal > grid with Varying cell resolutions, matching the length of web > mercator tiles at the equator. I could use any value greater or equal > to the defined sphere radius, but not smaller. To be consis

Re: [OSM-dev] Earth radius

2016-06-18 Thread Stadin, Benjamin
;> Datum: Samstag, 18. Juni 2016 um 07:38 An: Benjamin Stadin mailto:benjamin.sta...@heidelberg-mobil.com>>, OSM Dev List mailto:dev@openstreetmap.org>> Betreff: Re: [OSM-dev] Earth radius Hi, OSM uses EPSG:4326 for storing coordinates and EPSG:3857 for rendering. You can get pr

Re: [OSM-dev] Earth radius

2016-06-18 Thread Stadin, Benjamin
I indeed need to express distances in meters. This is a sinusoidal grid with Varying cell resolutions, matching the length of web mercator tiles at the equator. I could use any value greater or equal to the defined sphere radius, but not smaller. To be consistent, it should be equal. Ben Am

Re: [OSM-dev] Earth radius

2016-06-17 Thread Komяpa
Hi, OSM uses EPSG:4326 for storing coordinates and EPSG:3857 for rendering. You can get projection definitions on http://epsg.io/4326 and http://epsg.io/3857 respectively, or find it bundled with proj4 library that is widely used to deal with projection nuances. сб, 18 июн. 2016 г. в 1:37, Stadi

[OSM-dev] Earth radius

2016-06-17 Thread Stadin, Benjamin
Hi, I want to double check the earth radius used by OSM and zoom levels is exactly 6372.7982 as said here: http://wiki.openstreetmap.org/wiki/Zoom_levels. I couldn¹t find this as constant in the sources yet. I¹m creating a new storage system for vector tiles, independent of a projection. Best Be