schemas.getSchema().add(schema);
schema.setAttributes(props.getProperty(Prop.SCHEMA));
schema.setName(IndexerUtils.getParameter(Prop.INDEX_NAME, indexer));
}
DomainsType domains = coverage.getDomains();
List<DomainType> domainList = null;
// time attr
if (props.containsKey(Prop.TIME_ATTRIBUTE)) {
if (domains == null) {
domains = Utils.OBJECT_FACTORY.createDomainsType();
coverage.setDomains(domains);
domainList = domains.getDomain();
}
DomainType domain = Utils.OBJECT_FACTORY.createDomainType();
domain.setName(Utils.TIME_DOMAIN.toLowerCase());
IndexerUtils.setAttributes(domain, props.getProperty(Prop.TIME_ATTRIBUTE));
domainList.add(domain);
}
// elevation attr
if (props.containsKey(Prop.ELEVATION_ATTRIBUTE)) {
if (domains == null) {
domains = Utils.OBJECT_FACTORY.createDomainsType();
coverage.setDomains(domains);
domainList = domains.getDomain();
}
DomainType domain = Utils.OBJECT_FACTORY.createDomainType();
domain.setName(Utils.ELEVATION_DOMAIN.toLowerCase());
IndexerUtils.setAttributes(domain, props.getProperty(Prop.ELEVATION_ATTRIBUTE));
domainList.add(domain);
}
// Additional domain attr
if (props.containsKey(Prop.ADDITIONAL_DOMAIN_ATTRIBUTES)) {
if (domains == null) {
domains = Utils.OBJECT_FACTORY.createDomainsType();
coverage.setDomains(domains);
domainList = domains.getDomain();
}
String attributes = props.getProperty(Prop.ADDITIONAL_DOMAIN_ATTRIBUTES);
IndexerUtils.parseAdditionalDomains(attributes, domainList);
}