User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_network

TGIS_Network class

DK11 for .NET | TatukGIS.NDK.TGIS_Network | Classes | Constructors | Fields | Methods | Properties | Events

Class for storing and retrieving network graph for TGIS_ShortestPathLink purposes and other network analysis classes.

Available also on: Delphi | Java | ActiveX.

Syntax

// C#
public class TGIS_Network : TGIS_BaseObjectDisposable
{
}
' VisualBasic
Public Class TGIS_Network
  Inherits TGIS_BaseObjectDisposable
End Class
// Oxygene
type
  TGIS_Network = public class( TGIS_BaseObjectDisposable )
  end;

Inheritance

→ TGIS_BaseObjectDisposable

Constructors

Inherited Overrides Protected
Name Visibility Description
TGIS_Network() public Create a new network on provided layer

Fields

Inherited Protected
Name Visibility Description
arNodes protected array of nodes residing in memory.
FLayer protected Associated layer.
FOnLink protected Event for the link cost calculation.
FStoragePath protected Path to the network storage file.
linksId protected Last generated links id.
lstLinks protected List of links resides in memory.
lstNodes protected List of nodes residing in memory.
nodesId protected Last generated nodes id.
oRtree protected Nodes index (for in memory objects)
oStorage protected Persistent network storage file.
tmpLink protected Storage for temporary link use for getLink operations

Methods

Inherited Overrides Protected
Name Visibility Description
AddNode public Add a node at the specific location.
AddShape public Add new shape to the network.
Clean public Clean the network to prepare it for next searching.
CleanDynamicLinks public Clean all dynamic links like created by geocoder.
Delete public Delete saved network.
FindNode(TGIS_Point, double) public Find closest node corresponding to provided location regardless of the nide level.
FindNode(TGIS_Point, double, sbyte) public Find closest node corresponding to provided location.
GetLink public Read from network (storage or memory) a link corresponding to provided ObjectId
GetNode public Read from network (storage or memory) a node corresponding to provided ObjectId
GetShape public Get shape object from the network corresponding to provided link identifier
Open public Open network (must exists first
Serialize public Save current network to the underlying storage

Properties

Inherited Protected
Name Visibility Description
Layer public Network base layer.
Ready public True if network is properly generated.

Events

Inherited Protected
Name Visibility Description
LinkEvent public Event fired upon calling AddShape procedure.

2019/01/25 17:09