DbGeography.PointFromText()抛出'纬度值必须度之间-90和90年代的日本纬度、日本、抛出、年代

2023-09-02 10:51:55 作者:不与情长

谷歌告诉我,日本的Lat /长值(36138),但.NET引发错误

Google tells me that Japan's lat/long values are (36,138) but .NET throws the error

24201:纬度值必须在-90度到90度之间

任何想法,为什么?

推荐答案

我有同样的问题,因为你,我是用 DBGeography.fromText(点(LAT LNG))时,纬度和放大器;液化天然气的论点,预计其他方式。所以它应该是 DBGeography.fromText(点(138 36))

I have had the same issue as you, I was using DBGeography.fromText("Point(lat lng)") when the lat & lng arguments are expected the other way around. So it should be DBGeography.fromText("Point(138 36)")