Feature Editing : Commands : Create Custom Export Selection Commands
 

Create Custom Export Selection Commands

Custom export commands can be used to automatically create standardized representations of selected features, including SeabedML, 1Spatial Internal Feature Format (IFF), and ASCII. Each of these commands initially creates a GML file, with the standard advanced options of the GML format, and then the GML features are automatically transformed to the desired output format.

Related commands:

Export Selection to ASCII

Export Selection to CARIS

Export Selection to CARIS Well-Known Text

Export Selection to DXF

Export Selection to GML/KML/Formatted ASCII

Export Selection to HOB

Export Selection to S-57

Export Selection to Shapefile

To create a custom export command, you must create an XSLT style sheet for each output format and update the outputtransform.xml support file to point to that custom style sheet. When the support file is updated, a new, custom entry will be added to the list of export commands in the File menu. The application will need to be restarted to view any new additions, and it may be necessary to apply the Reset Default Layout command.

This file is located at:

C:\Program Files\CARIS\<application>\<version>\modules\Feature Editing\support\transforms

In the same folder, you will also find a sample XSLT style sheet for exporting vector data to an ASCII file, gmltoascii.xslt. This produces the Export Selection to Formatted ASCII command. This file could be used as a template for creating your own style sheets, or simpler ones are available from Teledyne CARIS Customer Service.

To add additional output styles to the transform file, either replace the values in the lines of the existing sample, or add a new set of entries for each additional style and update the values accordingly. You can add up to 10 entries to the outputtransform.xml file.

The values to be defined include:

Value

Description

Name

The command name to be displayed for the output style in the File > Export > Selection sub-menu.

Stylesheet

The custom EXLT style sheet that defines the object/attribuet mapping for the output style. If the file is not located in the same directory as the transform file, you must include both the name and location of the file.

OutputFileType

The output type that will be displayed in the Save as type field of the Save As dialog box launched from the command.

OtuputFileExtension

The supported file extensions that will be displayed as options in the Save as type field of the Save As dialog box.