question about polyline ?!!!

Topics: Data Access, General Topics, SharpMap v0.9 / v1.x
Apr 18, 2008 at 3:56 PM
in class geomertries found type of shap file polyline but not found class of it
and now i want to convert poly line to lines and point to built network with my shapfile
anyone can help me in this !!!!!!!!!
Developer
Apr 19, 2008 at 5:40 AM
you can use function follow:
public Sharpmam.Geomertry.LineString ConvertPolygonToLineString(Polygon poly)
{
SharpMap.Geomertrys.LineString result;
System.Collections.ObjectModel.Collection<SharpMap.Geomerties,Point> lPoint=new Collection<SharpMap.Geomerties,Point>
for(int i=0; i< poly.ExteriorRing.NumberPoint -1; i++)
{
lPoint.Add( poly.ExteriorRing.Points(i);
}
result=new SharpMap.Geomertrys.LineString(lPoint);
return result;
}