CARIS HPD Source Editor
CARIS HPD Product Editor
Custom export commands can be used to automatically create standardized representations of selected features, including SeabedML, 1Spatial Internal Feature Format (IFF) and ASCII.
Each custom command initially creates a GML file, with the standard advanced options of the GML format, and then transforms the GML features to the desired output format.
A custom export command requires the following:
• Entry in a control file named outputtransform.xml. This contains the information needed to add the command to the File > Export > Selection menu.
• Style sheet in an XSLT format file. This contains the information needed to convert the selection to the required format.
You must create a style sheet for each output format, and update the control file to point to the new style sheet. When you close and reopen the application, your custom entry will be added to the list of commands in the File > Export > Selection menu.
If the command does not appear in the menu after you restart the application, use the Reset Default Layout command. |
The control file outputtransform.xml and a sample XSLT style sheet called gmltoascii.xslt are located in
C:\Program Files\CARIS\ |
The location of the GML output transform file is listed in the Tools > Options dialog box. In the dialog, select Files and Folders and scroll down to GML Output Transform.
The control file looks like this:
<?xml version="1.0" encoding="UTF-8"?> | |
<cgt:Transforms xmlns:cgt="http://www.caris.com/cgt/1.1"> | |
<cgt:Transform> | Container for the custom export menu item. |
<cgt:Name>&Formatted ASCII</cgt:Name> | Name that appears in the export menu. |
<cgt:Stylesheet>gmltoascii.xslt</cgt:Stylesheet> | Name of the style sheet, in XLST format. |
<cgt:OutputFileType>ASCII File</cgt:OutputFileType> | File type of the output file. This will appear in the Save as type list in the Save As dialog box. |
<cgt:OutputFileExtension>txt</cgt:OutputFileExtension> | Extension of the output file. These will also appear in the Save As dialog box. You can have more than one of these. |
<cgt:OutputFileExtension>ascii</cgt:OutputFileExtension> | |
</cgt:Transform> | Close the container. |
</ |
The style sheet defines a command called Export Selection to Formatted ASCII.
To add additional export commands to the control file, add a new set of entries for each command and set the values accordingly. You can have up to 10 entries in outputtransform.xml.
You can use the existing style sheet as an example to create your own export commands. Simpler style sheet samples are available from Customer Service.
Related commands:
• • • • | • • • • |
Procedure
1. Create a style sheet for the new output format, and save it in the same folder as the control file.
2. Update the control file to point to the new style sheet.
3. Close and reopen the application.
4. Confirm that your new custom entry is added to the list of commands in the File > Export > Selection menu.
5. Repeat the above steps for each output format.
If the command does not appear in the menu after you restart the application, use the Reset Default Layout command. |