public static Feature createFeature(String name, FeatureType featureType, Collection<Range> ranges) { Feature feature = new Feature(); assignNextId(feature); feature.setNames(createNames(name, name)); feature.getRanges().addAll(ranges); feature.setFeatureType(featureType); return feature; }
psiFeature.setFeatureType(featureType);
mFeature.setFeatureType( cvTypeConverter.fromJaxb( jFeature.getFeatureType(), FeatureType.class ) );
mFeature.setFeatureType( cvTypeConverter.fromJaxb( jFeature.getFeatureType(), FeatureType.class ) );
xmlfeature.setFeatureType(featureType); Attribute attribute = new Attribute("MI:0018", "caution", "Due to a limitation in the conversion form MITAB to XML," + " the real xref for the feature type can not be provided. However, you could use the name of the feature type.");