Microsoft.SqlServer.Types icon indicating copy to clipboard operation
Microsoft.SqlServer.Types copied to clipboard

Add ShortestLineTo and STDistance method to library.

Open DenKn opened this issue 6 years ago • 2 comments

Hi.

You did the great work. Are you planning to add others methods, for example ShortestLineTo, STDistance?

DenKn avatar Feb 06 '19 08:02 DenKn

@DenKn Generally I'm not planning on adding geometric operations and calculations to the library. The reason being there's no way for me to exactly match the results of the official library without knowing their exact implementation, and I think having consistent results should be a hard requirement. My main goal of the library is to be able to make geometry-based queries, CRUD operations and read the geometries that comes out, so basically serialization and deserialization, and the object model that comes with that.

If you need these calculations, you should make them server-side as part of your SQL Query instead.

dotMorten avatar Feb 06 '19 15:02 dotMorten

Ok. I see. Thanks for reply. Server-side isn't my case. And I hope we'll see support of Microsoft.SqlServer.Types in .net core 3.0 https://github.com/dotnet/corefx/issues/31775

DenKn avatar Feb 07 '19 07:02 DenKn