public FeatureTypeStyleImpl(org.opengis.style.FeatureTypeStyle fts) { this.description = new DescriptionImpl(fts.getDescription()); this.featureInstances = fts.getFeatureInstanceIDs(); this.featureTypeNames = new LinkedHashSet<Name>(fts.featureTypeNames()); this.name = fts.getName(); this.rules = new ArrayList<Rule>(); if (fts.rules() != null) { for (org.opengis.style.Rule rule : fts.rules()) { rules.add(RuleImpl.cast(rule)); // need to deep copy? } } this.semantics = new LinkedHashSet<SemanticType>(fts.semanticTypeIdentifiers()); this.online = fts.getOnlineResource(); this.transformation = fts.getTransformation(); }
public FeatureTypeStyleImpl(org.opengis.style.FeatureTypeStyle fts){ this.description = new DescriptionImpl( fts.getDescription() ); this.featureInstances = fts.getFeatureInstanceIDs(); this.featureTypeNames = new LinkedHashSet<Name>(fts.featureTypeNames()); this.name = fts.getName(); this.rules = new ArrayList<Rule>(); if( fts.rules() != null ){ for (org.opengis.style.Rule rule : fts.rules()) { rules.add( RuleImpl.cast(rule) ); // need to deep copy? } } this.semantics = new LinkedHashSet<SemanticType>(fts.semanticTypeIdentifiers()); }