StkAttitudeFileReadFrom Method (TextReader, StkAttitudeFileOptions)
public static StkAttitudeFile ReadFrom( TextReader reader, StkAttitudeFileOptions readOptions )
Public Shared Function ReadFrom ( reader As TextReader, readOptions As StkAttitudeFileOptions ) As StkAttitudeFile
public: static StkAttitudeFile^ ReadFrom( TextReader^ reader, StkAttitudeFileOptions^ readOptions )
static member ReadFrom : reader : TextReader * readOptions : StkAttitudeFileOptions -> StkAttitudeFile
The STK attitude file format is a mix of well-defined, unambiguous properties, and fairly STK-specific properties that are difficult to interpret outside of the context of STK. For example, the "CoordinateAxes" property can specify any coordinate axes that is known to STK's Vector Geometry Tool in the current scenario. In the general case, it's impossible to determine from the attitude file itself, in the absence of an STK scenario, what that coordinate axes actually means. As a result, this method should be considered a "best effort" that works well in most common cases, but that may have problems with certain attitude files.
By default, when this method does not understand a property or property value read from the file, it will throw an InvalidDataException describing the problem. You can attempt to read files with unsupported properties or property values setting the IgnoreUnsupportedProperties and IgnorePropertiesWithUnsupportedValues properties of the StkAttitudeFileOptions passed to this method to . With these properties set, unsupported properties and property values will be added to the UnsupportedProperties and PropertiesWithUnsupportedValues dictionaries, respectively, and the reader can make no guarantees that its results will match STK.
Here are the known limitations, compared to STK, when reading an attitude file using this method: