Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谷歌告诉我日本的纬度/经度值为 (36,138) 但.NET 抛出错误
24201: Latitude values must be between -90 and 90 degrees.
任何想法为什么?
我遇到了和你一样的问题,我在使用DbGeography.PointFromText("Point(lat lng)")lat & lng 参数时使用相反的方式。完整的答案是这样的:
DbGeography.PointFromText("Point(lat lng)")
// From Google, Japan's latitude: 36; longitude: 138 var lat = 36; var lng = 138; var location = DbGeography.PointFromText($"Point({lng} {lat})");