private ReferenceType getFeatureOfInterestReference(Dataset entity, Map<String, ReferenceType> featuresOfInterest) { String identifier = entity.getFeature().getIdentifier(); if (!featuresOfInterest.containsKey(identifier)) { ReferenceType referenceType = new ReferenceType(identifier); if (entity.getFeature().isSetName() ) { referenceType.setTitle(entity.getFeature().getName()); } featuresOfInterest.put(identifier, referenceType); } return featuresOfInterest.get(identifier); }
samplingFeature.getIdentifierCodeWithAuthority().setCodeSpace(foi.getIdentifierCodespace().getName()); if (foi.isSetName()) { CodeType codeType = new CodeType(foi.getName()); if (foi.isSetNameCodespace()) {
samplingFeature.getIdentifierCodeWithAuthority().setCodeSpace(foi.getIdentifierCodespace().getName()); if (foi.isSetName()) { CodeType codeType = new CodeType(foi.getName()); if (foi.isSetNameCodespace()) {
private AbstractFeature createFeature(AbstractFeatureEntity feature) throws InvalidSridException, OwsExceptionReport { final SamplingFeature sampFeat = new SamplingFeature(new CodeWithAuthority(feature.getIdentifier())); if (feature.isSetName()) { sampFeat.addName(feature.getName()); } if (!Strings.isNullOrEmpty(feature.getDescription())) { sampFeat.setDescription(feature.getDescription()); } if (feature.isSetGeometry() && !feature.getGeometryEntity().isEmpty()) { sampFeat.setGeometry(getGeometryHandler().switchCoordinateAxisFromToDatasourceIfNeeded( JTSConverter.convert(feature.getGeometryEntity().getGeometry()))); } final Set<FeatureEntity> parentFeatures = feature.getParents(); if (parentFeatures != null && !parentFeatures.isEmpty()) { final List<AbstractFeature> sampledFeatures = new ArrayList<>(parentFeatures.size()); for (final FeatureEntity parentFeature : parentFeatures) { sampledFeatures.add(createFeature(parentFeature)); } sampFeat.setSampledFeatures(sampledFeatures); } return sampFeat; } /**