Re: [openstreetmap/openstreetmap-website] Hello, no matter how I calculate the tile according to the official method, it is always incorrect. Can someone help explain? (Issue #6099)
YyJyyy left a comment (openstreetmap/openstreetmap-website#6099) > https://github.com/openstreetmap/quad_tile/blob/9fcba83fcbca8a206fa518da5a52f840dc2ecb09/ext/quad_tile/quad_tile.h#L3是从定点整数版本中的经度和纬度计算图块编号的基本函数。 Thank you so much. Your step-by-step guidance has helped me get what I want. Thank you very much. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6099#issuecomment-2976162211 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Hello, no matter how I calculate the tile according to the official method, it is always incorrect. Can someone help explain? (Issue #6099)
YyJyyy left a comment (openstreetmap/openstreetmap-website#6099) > 顺便说一下,调用原始 Rails 代码将返回以下结果: > > ``` > QuadTile.tile_for_point(35.2000381, 114.6629926) > => 3875963095 > ``` > > 这匹配: > > ``` > id | latitude | longitude | changeset_id | visible | > timestamp |tile| version > -+---++--+-+++- > 12394725448 | 352000381 | 1146629926 |159556585 | t | 2025-06-14 > 18:37:20.996467 | 3875963095 | 1 > ``` 您好,我自己在window上装的ruby,但是我写的公式:require_relative 'quad_tile' # 支持命令行输入整数经纬度和 zoom,自动转为度 print '请输入纬度 (整数): ' lat_int = gets.strip.to_i print '请输入经度 (整数): ' lon_int = gets.strip.to_i print '请输入缩放级别 (zoom): ' zoom = gets.strip.to_i lat = lat_int / 10_000_000.0 lon = lon_int / 10_000_000.0 tile_id = QuadTile.tile_for_point(lat, lon, zoom) puts "tile_id: #{tile_id}" # 反查中心经纬度 center = QuadTile.tile_center_latlon(tile_id, zoom) puts "tile center lat/lon: #{center.inspect}" 结果算出来的结果是这样的: C:\Users\Administrator\Desktop\test\lib>ruby quad_tile_test.rb 请输入纬度 (整数): 351704956 请输入经度 (整数): 1130668539 请输入缩放级别 (zoom): 17 tile_id: 6795010254 tile center lat/lon: [35.170440629756364, 113.06716918945312] -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6099#issuecomment-2974912595 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Hello, no matter how I calculate the tile according to the official method, it is always incorrect. Can someone help explain? (Issue #6099)
YyJyyy left a comment (openstreetmap/openstreetmap-website#6099) > 顺便说一下,调用原始 Rails 代码将返回以下结果: > > ``` > QuadTile.tile_for_point(35.2000381, 114.6629926) > => 3875963095 > ``` > > 这匹配: > > ``` > id | latitude | longitude | changeset_id | visible | > timestamp |tile| version > -+---++--+-+++- > 12394725448 | 352000381 | 1146629926 |159556585 | t | 2025-06-14 > 18:37:20.996467 | 3875963095 | 1 > ``` Thank you very much for your guidance. I currently have a clear understanding of how this value was obtained, but I would like to clarify what the formula inside looks like? Just like how num integrates numbers in Java, what is the QuadTile formula that depends on it? Could you please explain it to me? Thank you -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6099#issuecomment-2974874288 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Hello, no matter how I calculate the tile according to the official method, it is always incorrect. Can someone help explain? (Issue #6099)
YyJyyy left a comment (openstreetmap/openstreetmap-website#6099) > Also, please stop spamming unrelated repos: > [openstreetmap/iD#11132](https://github.com/openstreetmap/iD/issues/11132) Could you please help solve this problem -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6099#issuecomment-2972550977 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] openstreetmap在数据库的中有个表current_nodes中的tile是怎么计算的? (Issue #6098)
YyJyyy left a comment (openstreetmap/openstreetmap-website#6098) Hello, no matter how I calculate the tile according to the official method, it is always incorrect. Can someone help explain? My results 请输入纬度(可整数1e7或度数):35.2000381 请输入经度(可整数1e7或度数):114.6629926 tile = 1040445921102437142  -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6098#issuecomment-2972513690 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
[openstreetmap/openstreetmap-website] Hello, no matter how I calculate the tile according to the official method, it is always incorrect. Can someone help explain? (Issue #6099)
YyJyyy created an issue (openstreetmap/openstreetmap-website#6099) ### Problem Hello, no matter how I calculate the tile according to the official method, it is always incorrect. Can someone help explain? My results 请输入纬度(可整数*1e7或度数):35.2000381 请输入经度(可整数*1e7或度数):114.6629926 tile = 1040445921102437142  ### Description _No response_ ### Screenshots _No response_ -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6099 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
[openstreetmap/openstreetmap-website] openstreetmap在数据库的中有个表current_nodes中的title是怎么计算的? (Issue #6098)
YyJyyy created an issue (openstreetmap/openstreetmap-website#6098) ### Problem 我在用我的自己的数据放到对应的表里面的时候,发现这个title一直提示不对,所以我想知道咱们这个是怎么进行计算的,然后我按这个计算规则,来转换我的数据, ### Description _No response_ ### Screenshots _No response_ -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6098 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] openstreetmap在数据库的中有个表current_nodes中的tile是怎么计算的? (Issue #6098)
YyJyyy left a comment (openstreetmap/openstreetmap-website#6098)  Hello, I deployed using Docker on a Windows system, and all other operations are carried out according to the documentation. However, after completing all operations, I cannot use the internal editor of ID. Why is this? Very anxious, can anyone help me? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6098#issuecomment-3018448658 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] Hello, no matter how I calculate the tile according to the official method, it is always incorrect. Can someone help explain? (Issue #6099)
YyJyyy left a comment (openstreetmap/openstreetmap-website#6099)  Why did I deploy according to the ID process, but why is it like this later on,help me!!! -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6099#issuecomment-3018005894 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] openstreetmap在数据库的中有个表current_nodes中的tile是怎么计算的? (Issue #6098)
YyJyyy left a comment (openstreetmap/openstreetmap-website#6098) > 您是否启用了符号链接?`/public/iD`应该是指向内部 iD 的符号链接`vendor/`。 I'm sorry, I'm a bit confused about what you mean by 'change this'. Could you please make it easier to understand -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6098#issuecomment-3021351975 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] openstreetmap在数据库的中有个表current_nodes中的tile是怎么计算的? (Issue #6098)
YyJyyy left a comment (openstreetmap/openstreetmap-website#6098) > 您是否启用了符号链接?`/public/iD`应该是指向内部 iD 的符号链接`vendor/`。 Thank you very much. It's like a system issue. I installed everything directly on the Windows system using Docker. Everything else was installed successfully, but it was just like this when editing. As you said, where should I modify to start using Docker on the Windows system? -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6098#issuecomment-3021362309 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev
Re: [openstreetmap/openstreetmap-website] openstreetmap在数据库的中有个表current_nodes中的tile是怎么计算的? (Issue #6098)
YyJyyy left a comment (openstreetmap/openstreetmap-website#6098) > Do you have symlinks enabled? `/public/iD` should be a symlink to iD inside > `vendor/`. Thank you very much. As a result of the system issue, I installed everything directly on the Windows system using Docker. Everything else was successfully installed, but it was just like this when editing. As you said, I should go and make the necessary changes. Only by using Docker on the Windows system can this project be fully launched. -- Reply to this email directly or view it on GitHub: https://github.com/openstreetmap/openstreetmap-website/issues/6098#issuecomment-3021365498 You are receiving this because you are subscribed to this thread. Message ID: ___ rails-dev mailing list rails-dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/rails-dev