Description | Example | Return message | Group

GIS Export

Export STK object data into a shapefile

Syntax

GIS <ScenarioPath> Export "<ShapefilePath>" {ShapeType} [Object <ObjectPath> | ObjectWithOption <ObjectPath> objectOption] ... [{ExportOptions}]

Description

The Export GIS command exports perimeter and location information 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. Use {ShapeType} 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.

"<FilePath>" is the path to a file on your local drive.

{ShapeType}Can Create...
PointA shapefile containing the selected STK facility, place, and target points.
ArcA shapefile containing the selected STK vehicle's tracks. Only one object can be specified when exporting an Arc.
PolylineA shapefile suitable for Comm contours and other shapes that are not necessarily closed. Also supports area targets, line targets, facilities, and selected vehicles.
PolygonA shapefile containing the selected STK area target polygons. It also can create a shapefile from the Az-El Mask of a facility, place, or target.

The following table describes the valid {ExportOptions}.

{ExportOptions}Description
IncludeAltitudeInclude 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.

The ObjectPathWithOption parameter is only valid if the ObjectPath is a Figure of Merit object path. The objectOption must be either Static or Animation.

Examples

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

Return message

Group membership

This command belongs to the following group(s):

GIS

Scenarios

Version

12.10