CrossSectionDataFindClosestCrossSection Method |
Find the closest cross section based on the location and topoID. If no cross section
is found, null is returned.
If the reach defined in the location has a global cross section, the global cross section
is returned. TODO: Consider returning null instead
This is meant for editing the cross sections, use Get to always get a cross section at a location.
Namespace:
DHI.Mike1D.CrossSectionModule
Assembly:
DHI.Mike1D.CrossSectionModule (in DHI.Mike1D.CrossSectionModule.dll) Version: 19.0.0.0 (11.1.1.1111)
Syntax public ICrossSection FindClosestCrossSection(
ILocation location,
string topoID
)
Public Function FindClosestCrossSection (
location As ILocation,
topoID As String
) As ICrossSection
public:
ICrossSection^ FindClosestCrossSection(
ILocation^ location,
String^ topoID
)
Parameters
- location
- Type: DHI.Mike1D.GenericILocation
Location at which to look for a cross section - topoID
- Type: SystemString
Topo id to look for
Return Value
Type:
ICrossSectionA cross section at the location. null if not found
See Also