-
This is still a preliminary observation, but for some testing, I now used the new 'openstreetmap-carto-flex' LUA style and the --flat-nodes option of osm2pgsql. While, if I have understood it well from previous discussions here in the repository, the loading data as 3857 is faster in general due to some shortcuts in the code, I generally assumed this would not relate to the --flat-nodes loading stage, as I assumed the major difference would likely be in processing ways and relations in the different projections. But I now noticed a slightly higher node loading speed (7000k/s versus 5800k/s) using the new 'openstreetmap-carto-flex' style that loads data as 3857, while I routinely process the data as 4326 using my own custom flex style, which results in the lower figure. This also raises another question: does --flat-nodes store node data always in 4326 as per the OpenStreetMap PBF, or in the style's defined projection (which might explain the difference I am seeing)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The flat node store stores the raw coordinates as they come from OSM before any kind of projection. |
Beta Was this translation helpful? Give feedback.
The flat node store stores the raw coordinates as they come from OSM before any kind of projection.