Export STK object data into a shapefile
GIS <ScenarioPath> Export "<ShapefilePath>" {ShapeType} <ObjectPath>... [{ExportOptions}]
The Export GIS command allows you to export perimeter and location information contained in an STK object to a GIS-compatible shapefile. The "<ShapefilePath>" is the full directory and filename of the shapefile you wish to create. {ShapeType} can be Point, Arc, Polyline or Polygon. {ShapeType} is used to determine the type of data extracted from STK object files and placed in shapefiles. You also need to specify the object(s) from which you wish to export data using the <ObjectPath> parameter.
{ShapeType} | Can Create... |
---|---|
Point | A shapefile containing the selected STK facility, place and target points. |
Arc | A shapefile containing the selected STK vehicle's tracks. Only one object can be specified when exporting an Arc. |
Polyline | A shapefile suitable for Comm contours and other shapes that are not necessarily closed. Also supports area targets, line targets, facilities and selected vehicles. |
Polygon | A shapefile containing the selected STK area target polygons, and also can create a shapefile from the AzEl Mask of a facility, place or target. |
The following table describes the valid {ExportOptions}.
{ExportOptions} | Description |
---|---|
IncludeAltitude | Include this option to have the Z (altitude) values exported in the shapefile. |
TimeStep <Step> | Enter the time step in Connect time
units. The step must be between 0.001 and 86400.0 seconds.
The TimeStep option is valid for Arc shapes only. |
To export the Santiago facility as a point shapefile:
GIS * Export "C:\stk\User\stkData\GIS\Santiago.shp" Point */Facility/Santiago
To export two area targets as a polygon shapefile:
GIS * Export "C:\stk\User\stkData\GIS\MyATs.shp" Polygon */AreaTarget/Type1 */AreaTarget/TestB
To include Z (altitude) values in the specified polyline shapefile:
GIS * Export "C:\stk\User\stkData\GIS\2SatsWithAlt.shp" Polyline */Satellite/Satellite1 */Satellite/Satellite2 IncludeAltitude
To export an Arc shapefile with the specified options:
GIS * Export "C:\stk\User\stkData\GIS\SatArcWithAltStep.shp" Arc */Satellite/Satellite1 IncludeAltitude TimeStep 360.0
If activated, Connect returns an acknowledgement message.
This command belongs to the following group(s):
10.1.1
STK Programming Interface 11.0.1