Click or drag to resize

StkSatelliteDatabase Class

Provides access to an STK satellite database.
Inheritance Hierarchy
SystemObject
  AGI.Foundation.StkStkSatelliteDatabase

Namespace:  AGI.Foundation.Stk
Assembly:  AGI.Foundation.Models (in AGI.Foundation.Models.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public class StkSatelliteDatabase

The StkSatelliteDatabase type exposes the following members.

Constructors
  NameDescription
Public methodStkSatelliteDatabase(StreamFactory)
Initializes a new instance which will read data from a ZIP archive containing satellite database files.
Public methodStkSatelliteDatabase(String)
Initializes a new instance which will read data from a ZIP archive containing satellite database files.
Public methodStkSatelliteDatabase(String, String)
Initializes a new instance which will read data from a directory of satellite database files.
Top
Properties
  NameDescription
Public propertyLastUpdateDate
Gets the last update date reported in the Generic Database (.gd) file, or MinValue if the file does not exist or does not contain a LastUpdate field.
Public propertyVersion
Gets the version number reported in the Generic Database (.gd) file, or "Unknown" if the file does not exist or does not contain a Version field.
Top
Methods
  NameDescription
Public methodStatic memberDownload
Downloads the current stkSatDbAll satellite database from an AGI server. This method connects via HTTPS to ftp.agi.com.
Public methodStatic memberDownload(IWebProxy)
Downloads the current stkSatDbAll satellite database from an AGI server. This method connects via HTTPS to ftp.agi.com.
Public methodStatic memberDownload(StkSatelliteDatabaseType)
Downloads a current satellite database from an AGI server. This method connects via HTTPS to ftp.agi.com.
Public methodStatic memberDownload(IWebProxy, StkSatelliteDatabaseType)
Downloads a current satellite database from an AGI server. This method connects via HTTPS to ftp.agi.com.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEntries
Gets all of the entries in the database.
Public methodGetEntries(StkSatelliteDatabaseQuery)
Gets all of the entries in the database matching a specified query.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMissions
Gets the missions of the spacecraft in the database.
Public methodGetOwners
Gets the owners of the spacecraft in the database.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Extension Methods
  NameDescription
Public Extension MethodCreatePlatformsOverloaded.
Creates a platform for each satellite entry in the supplied database.
(Defined by StkSatelliteDatabaseExtensions.)
Public Extension MethodCreatePlatforms(StkSatelliteDatabaseQuery)Overloaded.
Creates platforms representing the satellites in the database that match the input query.
(Defined by StkSatelliteDatabaseExtensions.)
Top
Remarks
For more information on the files that define the satellite database, see the the Satellite Database Files topic.
Examples

The following example shows how to query the satellite database for satellites matching certain criteria:

C#
StkSatelliteDatabase db = new StkSatelliteDatabase(dbDirectory, "stkSatDb");

// Create a query object and then populate it with the properties to query on.
// Regular expressions are used to query on strings.
StkSatelliteDatabaseQuery query = new StkSatelliteDatabaseQuery
{
    CommonName = new Regex("QUICK"),
    MinimumApogee = 200000.0,
};

// Get the database entries matching the query and print out the SSC number of each.
foreach (StkSatelliteDatabaseEntry entry in db.GetEntries(query))
{
    Console.WriteLine(entry.SatelliteNumber);
}
See Also