Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: dem props must be init with ubdefined #111

Merged
merged 1 commit into from
Dec 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/models/layerMetadata/layerDEMMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ export class LayerDEMMetadata implements ILayerMetadata, IMetadataCommonModel {
],
})
//#endregion
public verticalDatum: VerticalDatum | undefined;
public verticalDatum: VerticalDatum | undefined = undefined;

//#region DEM: units
@pycsw({
Expand All @@ -849,7 +849,7 @@ export class LayerDEMMetadata implements ILayerMetadata, IMetadataCommonModel {
category: FieldCategory.GEO_INFO,
})
//#endregion
public units: Units | undefined;
public units: Units | undefined = undefined;

//#region DEM: geographicArea
@pycsw({
Expand Down Expand Up @@ -898,7 +898,7 @@ export class LayerDEMMetadata implements ILayerMetadata, IMetadataCommonModel {
category: FieldCategory.GEO_INFO,
})
//#endregion
public undulationModel: UndulationModel | undefined;
public undulationModel: UndulationModel | undefined = undefined;

//#region DEM: dataType
@pycsw({
Expand All @@ -924,7 +924,7 @@ export class LayerDEMMetadata implements ILayerMetadata, IMetadataCommonModel {
category: FieldCategory.GENERAL,
})
//#endregion
public dataType: DataType | undefined;
public dataType: DataType | undefined = undefined;

//#region DEM: noDataValue
@pycsw({
Expand All @@ -950,7 +950,7 @@ export class LayerDEMMetadata implements ILayerMetadata, IMetadataCommonModel {
category: FieldCategory.GENERAL,
})
//#endregion
public noDataValue: NoDataValue | undefined;
public noDataValue: NoDataValue | undefined = undefined;
//#endregion

public static getPyCSWMapping(prop: string): IPYCSWMapping | undefined {
Expand Down