### Layer Exchanger

##

The Layer Exchanger interface is used to export a TerraLib layer to a external data source. The list of output data sources types may vary depending on the plugins loaded (PostGIS, OGR, etc).
It is accessible through:
Layer Explorer > Right Clicking over a Layer-name > Exchange... (used to export a specific layer)
or
Tools > Data Exchanger > Layer Exchanger... (all layers are listed and one must be selected)
To export a layer is required the following steps:

1. Select the Input Layer .
2. Select the Output Data Source Type (DBMS or OGR).
3. Choose the Output Data Source (it is the database-name managed by the data source type).

1. Optionally, if there is no Output Data Source available ,click on to define a new one to store the exported layer.

4. Optionally, inform the Data Set Name and the location path where the input layer will be exported (if the data source type is not a DBMS).
5. Optionally check Create Spatial Index. It is only available if the data source type supports index creation.
6. Click on OK to export the layer.

At the end of the process a successful message or a error indication will be displayed.