I'm trying to use LINQ with SQL server net core 2.2 to get a buffer around a line representing a route as a Geography type line.
Journey is a table which holds details of a route in JourneyAsGeogLine represented a s a Geography line (SRID 4326). When I use code as below it appears to be interpreting bufferWidth as degrees: I understand that EF ignores SRID when running on client so is not treating bufferwidth as metres. How can I resolve this and create a buffer defined in metres round a Geography line (SRID:4326) using LINQ?
var thisRouteBuffer = _context.Journey.Where(f => f.Id == journeyID)
.FirstOrDefault().JourneyAsGeogLine.Buffer(bufferWidth);