Click or drag to resize

PolygonSelection Constructor

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Selects all links touching or intersecting with the given Telogis.Geometry.Polygon.

Namespace:  Telogis.GeoBase.Routing.LinkEdit
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public PolygonSelection(
	Polygon polygon
)

Parameters

polygon
Type: Telogis.GeoBase.GeometryPolygon
The polygon that is used to select the links for editing.
Examples
C#
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...
}
See Also