System.InvalidOperationException: Vertex components can't be NaN.
System.InvalidOperationException:
at NetTopologySuite.Coordinates.BufferedCoordinate2DFactory.getVertexInternal(Double x, Double y, Double w)
at NetTopologySuite.Coordinates.BufferedCoordinate2DFactory.getVertexInternal(Double x, Double y)
at NetTopologySuite.Coordinates.BufferedCoordinate2DFactory.Create(Double x, Double y)
at GisSharpBlog.NetTopologySuite.Algorithm.CentroidArea`1.get_Centroid()
at GisSharpBlog.NetTopologySuite.Geometries.Geometry`1.get_Centroid()
at GisSharpBlog.NetTopologySuite.Geometries.Geometry`1.GeoAPI.Geometries.IGeometry.get_Centroid()
at UserDefinedFunctions.Centroid(SqlBytes ewkb)
System.InvalidOperationException:
at NetTopologySuite.Coordinates.BufferedCoordinate2DFactory.getVertexInternal(Double x, Double y, Double w)
at NetTopologySuite.Coordinates.BufferedCoordinate2DFactory.getVertexInternal(Double x, Double y)
at NetTopologySuite.Coordinates.BufferedCoordinate2DFactory.Create(Double x, Double y)
at GisSharpBlog.NetTopologySuite.Algorithm.CentroidArea`1.get_Centroid()
at GisSharpBlog.NetTopologySuite.Geometries.Geometry`1.get_Centroid()
at GisSharpBlog.NetTopologySuite.Geometries.Geometry`1.GeoAPI.Geometries.IGeometry.get_Centroid()
at UserDefinedFunctions.Centroid(SqlBytes ewkb)