Skip to content

Commit d411775

Browse files
committed
fix constants and uom with formatted strings
1 parent 32b1d12 commit d411775

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

plugins/xtraserver-hale-io/src/main/java/de/ii/xtraserver/webapi/hale/io/writer/handler/FormattedStringHandler.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,18 @@ public Optional<ImmutableFeatureSchema.Builder> doHandle(
246246
propertyBuilder.addAllTransformationsBuilders(trfBuilder);
247247
}
248248

249+
} else if (Objects.isNull(sourceProperty)) {
250+
// no source property, so we have to create a constant value
251+
252+
propertyBuilder = buildPropertyPath(propertyCell, targetProperty);
253+
254+
propertyBuilder.constantValue(formattedStr.toString());
255+
} else if (isGmlUomProperty(pd)) {
256+
// uom
257+
258+
propertyBuilder = buildPropertyPath(propertyCell, targetProperty);
259+
260+
propertyBuilder.unit(formattedStr.toString());
249261
} else {
250262
// Simple string without formatting
251263

0 commit comments

Comments
 (0)