2

それの何が問題なのですか??

const string lonMin="-19";      
const string latMin = "25";
const string lonMax = "-24";
const string latMax = "25.6";

//Create a polygon
var geoEncuadre = DbGeography.FromText("POLYGON ((" + lonMin + " " + latMin + "," +
            lonMax + " " + latMin + ","+ lonMax + " "+ latMax +","+lonMin+" " + latMax +","+lonMin + " "+latMin +  "))", 4326);
//Check for every node if intersects with the polygon
var nodos = (from n in _bd.Nodo
             where n.Geo.Intersects(geoEncuadre)
             select n).ToList();

これはEntityCommandExecutionException. DbGeography の代わりにDbGeometryを使用すると正常に動作するため、奇妙です。DbGeographyIntersect操作はどうなりますか?

4

0 に答える 0