NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I'd like to save coordinates of points and boundary boxes in my local db, as quadtiles.

I am looking for more doc than provided in the link above: a precise guide with code / pseudo code on how to convert long / lat to Quadtile format, and back. Any pointer on this?

asked 24 Aug '18, 13:30

seinecle's gravatar image

accept rate: 0%

This Wiki article discusses conversion between tile names and lat/lon, and also includes pseudocode and example code for various languages.

permanent link

answered 24 Aug '18, 16:54

alester's gravatar image

accept rate: 28%

... which is linked in the introduction of the wiki article which seincle linked. I just wanted to add it. ;-) @seinecle, did you want something different your just not seen the link?

(24 Aug '18, 20:59) aseerel4c26 ♦

Thanks! I might be wrong but I thought the slippy tiles are not quad tiles? The logic of the naming conventions are completely different, if I read the page you linked to, and the link I provided?

(24 Aug '18, 22:14) seinecle

If I understand correctly, the quad system for naming tiles starts with the biggest tile (number from 0 to 3), then adds a 0-3 number for the subtile, et .. until the required level of zoom is achieved. That' the general idea. Now I'd need docs and a lib to play with it! It seems Bing map has the equivalent (search for "quadkey + Bing maps")

(24 Aug '18, 22:21) seinecle

@seinecle oh, umm, maybe I should have read better ("that's not really what this page is about"). So, you are right, if I understand correctly, slippy map tilenames are not what you are looking for. I have inserted a paragraph break into the wiki page's intro to make that clearer. Let's wait for other answers.

(24 Aug '18, 22:43) aseerel4c26 ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 24 Aug '18, 13:30

question was seen: 2,399 times

last updated: 24 Aug '18, 22:43

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum