Entry Point

Land Desktop Map 3D Samples

 
Entry Point
 
 
 

When you netload the FindIntersects.dll, you cause the Initialize method of the AppEntry class in Commands.cs to run.

The Initialize method stores the path to the FinderIntersects.dll and prints the message Find Intersects Sample application initialized. to the Map command-line. It creates an instance of the Commands class, which is also defined in Commands.cs. It then calls the PrepareCommand method on this instance.

The PrepareCommand method creates an instance of the Implement class, which is defined in Implements.cs, and calls its Prepare method. This method does the following:

  1. Uses the path to the FindIntersects.dll stored earlier to construct a pathname for the Roads.sdf file.
  2. Creates an MgResourceIdentifier object, which identifies the Roads.sdf file as a resource in the Resource Service repository. This is described in the topic ConnectToSdfFile.
  3. Uses the MgResourceIdentifier object to add the features in the Road.sdf file to the current map. This is described in topic AddAllToMap.