2

We're moving a project from .NET 4.5.2 to .NET 5.0. In the process, this means moving a dependency on the NetTopologySuite NuGet package from v1.14.0 to v2.2.0.

In v1.14.0, there are a number of places where we're using the NetTopologySuite.Algorithm.SimplePointInRing class.

In v2.2.0, there is no SimplePointInRing class in the NetTopologySuite.Algorithm. Or at least, not in any of the NuGet Packages we've installed:

  • NetToplogySuite v2.2.0
  • NetToplogySuite.Core v1.15.3
  • NetToplogySuite.IO.GeoJson v2.0.4

Has it been deprecated? Removed? Moved to a new NuGet package?

Jeff Dege
  • 11,190
  • 22
  • 96
  • 165
  • 1
    Please don't mix NTS v1.15.3 and v2.2. What do you need NTS v1.15.3 for? Have a look at https://github.com/NetTopologySuite/NetTopologySuite/wiki/Upgrading-to-2.0-from-1.x – FObermaier Mar 16 '21 at 07:33

1 Answers1

1

Seems like it was removed in v1.15.0 because v1.15.0-pre2 still had a SimplePointInRing class in that namespace.

Since things have changed a bit, the closest "replacement" I have found so far is the LocatePointInRing(Coordinate p, CoordinateSequence ring) method inside the NetTopologySuite.Tests.NUnit.Algorithm namespace.

Dharman
  • 30,962
  • 25
  • 85
  • 135
Bart Simons
  • 121
  • 3
  • I was going to suggest PointLocation.IsInRing - which may allow you to facade away this easier. Either would seem to work. – Mike Miller Mar 15 '21 at 18:50