Skip to content

Possible Error generating Quadtree for (0,0) quadrant #19

@fabioaazevedo

Description

@fabioaazevedo

Using custom functions with the coordinates:

  • Latitude: 41.14867208811922
  • Longitude: -8.61602783203125
  • Zoom: 1

Gives tiles tms_x and tms_y equal to zero, which is correct.

Then using:
quadtree = Tile.from_tms(tms_x=0,tms_y=0,zoom=1).quad_tree
gives quadtree="2", when it should be 0.

I managed to get the right result by commenting out this line:

tms_y = (2 ** self.zoom - 1) - tms_y

Is this really an error, or am I doing something wrong with the procedure?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions