This is the polygon I'm trying to create:

POLYGON((22.24462 114.1639, 22.25192 114.1639, 22.25192 114.1718, 22.24462 114.1718, 22.24462 114.1639))

The error I get is:

A .NET Framework error occurred during execution of user-defined routine or aggregate "geography": System.FormatException: 24201: Latitude values must be between -90 and 90 degrees.

But clearly the latitude values I've given are between -90 and 90! What's going on here?

  • SQL Server lat/lng is reversed...
    – Mapperz
    Commented Feb 1, 2018 at 14:45

1 Answer 1


The coordinates must be entered as longitude first, then latitude.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.