PolygonSelection Constructor |
Namespace: Telogis.GeoBase.Routing.LinkEdit
public MyForm() { InitializeComponent(); // Create a polygon Telogis.GeoBase.Geometry.Polygon myPolygon = new Telogis.GeoBase.Geometry.Polygon( new Telogis.GeoBase.Geometry.LineString[] { new Telogis.GeoBase.Geometry.LineString( new Telogis.GeoBase.LatLon(32.722237,-117.169485), new Telogis.GeoBase.LatLon(32.722398,-117.156160), new Telogis.GeoBase.LatLon(32.712340,-117.156160), new Telogis.GeoBase.LatLon(32.712259,-117.169611), new Telogis.GeoBase.LatLon(32.722237,-117.169485) ) } ); // Then create a polygon selection specifying the links within. Telogis.GeoBase.Routing.LinkEdit.PolygonSelection myPolygonSelection = new Telogis.GeoBase.Routing.LinkEdit.PolygonSelection(myPolygon); // Next, create the link edit using LinkEditDatabase.CreateLinkEdit... }