use of org.opensextant.giscore.events.DocumentStart in project Xponents by OpenSextant.
the class GISDataFormatter method start.
/**
* Start output.
*/
@Override
public void start(String containerName) throws ProcessingException {
/**
* apply default GIS data model
*/
if (this.gisDataModel == null) {
setGisDataModel();
}
try {
createOutputStreams();
} catch (Exception create_err) {
throw new ProcessingException(create_err);
}
DocumentStart ds = new DocumentStart(doc_type);
this.os.write(ds);
this.os.write(gisDataModel.getSchema());
ContainerStart containerStart = new ContainerStart();
containerStart.setType("Folder");
containerStart.setName(containerName);
this.os.write(containerStart);
}
Aggregations