Skip to content

Latitude -90 is treated as invalid value #20

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. Pass for example -90 to encode
2. Watch the exception being raised.


def encode(latitude, longitude, precision=12):
    if latitude >= 90.0 or latitude < -90.0:
        raise Exception("invalid latitude.")

What is the expected output? What do you see instead?
If I'm not wrong -90 is still correct value. it's south pole.


Original issue reported on code.google.com by fi...@fizyk.net.pl on 3 Mar 2015 at 11:24

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions