use of org.apache.sis.metadata.iso.content.DefaultFeatureCatalogueDescription in project sis by apache.
the class MetadataBuilder method featureDescription.
/**
* Creates the feature descriptions object if it does not already exists, then returns it.
* This method sets the {@code includedWithDataset} property to {@code true} because the
* metadata built by this helper class are typically encoded together with the data.
*
* @return the feature descriptions (never {@code null}).
* @see #newFeatureTypes()
*/
private DefaultFeatureCatalogueDescription featureDescription() {
if (featureDescription == null) {
featureDescription = new DefaultFeatureCatalogueDescription();
featureDescription.setIncludedWithDataset(true);
}
return featureDescription;
}
use of org.apache.sis.metadata.iso.content.DefaultFeatureCatalogueDescription in project sis by apache.
the class MergerTest method createSample2.
/**
* Creates a metadata sample with content information of different kind in a different order
* than the one created by {@link #createSample1()}.
*/
private static DefaultMetadata createSample2() {
final DefaultFeatureCatalogueDescription features = new DefaultFeatureCatalogueDescription();
final DefaultImageDescription image = new DefaultImageDescription();
final DefaultMetadata metadata = new DefaultMetadata();
image.setProcessingLevelCode(new DefaultIdentifier("Level 2"));
metadata.getContentInfo().add(image);
features.setFeatureCatalogueCitations(Collections.singleton(new DefaultCitation("GPX file")));
features.setIncludedWithDataset(Boolean.TRUE);
metadata.getContentInfo().add(features);
metadata.getLanguages().add(Locale.FRENCH);
return metadata;
}
use of org.apache.sis.metadata.iso.content.DefaultFeatureCatalogueDescription in project sis by apache.
the class MergerTest method createSample1.
/**
* Creates a metadata sample with 3 content information of different kind.
*/
private static DefaultMetadata createSample1() {
final DefaultFeatureCatalogueDescription features = new DefaultFeatureCatalogueDescription();
final DefaultCoverageDescription coverage = new DefaultCoverageDescription();
final DefaultImageDescription image = new DefaultImageDescription();
final DefaultMetadata metadata = new DefaultMetadata();
features.setFeatureCatalogueCitations(Collections.singleton(new DefaultCitation("Shapefile")));
features.setIncludedWithDataset(Boolean.TRUE);
metadata.getContentInfo().add(features);
coverage.setProcessingLevelCode(new DefaultIdentifier("Level 1"));
metadata.getContentInfo().add(coverage);
image.setImagingCondition(ImagingCondition.CLOUD);
image.setCloudCoverPercentage(0.8);
metadata.getContentInfo().add(image);
metadata.getLanguages().add(Locale.JAPANESE);
metadata.getCharacterSets().add(StandardCharsets.UTF_16);
return metadata;
}
Aggregations