Hi,
I tried to use your latest version 6.0.343.0.
it seems you remove GetAllPoints method form feature,
-feature.MakeValid().getAllPoints()
what's new method name which do the same work?
Regards,
Ben
Hi,
I tried to use your latest version 6.0.343.0.
it seems you remove GetAllPoints method form feature,
-feature.MakeValid().getAllPoints()
what's new method name which do the same work?
Regards,
Ben
Hi Ben,
Thanks for your post, would you please try the follow in code:
private Collection<Vertex> GetAllPoints(Feature feature)
{
Collection<Vertex> vertices = new Collection<Vertex>();
SqlGeometry geom = SqlGeometry.STGeomFromWKB(new SqlBytes(feature.GetWellKnownBinary()), 0);
int count = geom.STNumPoints().Value;
for (int i = 1; i <= count; i++)
{
SqlGeometry point = geom.STPointN(i);
vertices.Add(new Vertex(point.STX.Value, point.STY.Value));
}
return vertices;
}
Collection<Vertex> points = GetAllPoints(feature.MakeValid());
Hope it helps,
Edgar