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

Adding segmentation features to entity #12

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
4 changes: 4 additions & 0 deletions build/entity/validationEntityDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ function createEntityCollectionWithValidation(uri, databaseName, collectionName)
bsonType: 'array',
description: 'Holds locations of other objects belonging to the entity. Not required.',
},
segmentationFeatures: {
bsonType: 'array',
description: 'Holds a list of classificaton features used during the segmentation process. Not required.',
},
},
},
},
Expand Down
1 change: 1 addition & 0 deletions build/entity/validationEntityModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ const entitySchema = new mongoose_1.Schema({
shareGroup: { type: String, required: true },
parentName: { type: String, required: false },
childLocations: { type: [String], required: false },
segmentationFeatures: { type: [String], required: false },
});
exports.entityModel = (0, mongoose_1.model)('entity', entitySchema);
1 change: 1 addition & 0 deletions build/interfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export interface IEntityDb {
shareGroup: ShareGroupType;
parentName?: string;
childLocations?: Array<string>;
segmentationFeatures?: Array<string>;
}
/**
* Project level quota. Contains summed up entity sized.
Expand Down
2 changes: 1 addition & 1 deletion build/projects/validationProjectsDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function createProjectCollectionWithValidation(uri, databaseName, collection_pro
'clouds',
'images',
'bim',
"cad",
'cad',
'photogrammetry',
'projectQuota',
'createdAt',
Expand Down
5 changes: 5 additions & 0 deletions src/entity/validationEntityDb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ export async function createEntityCollectionWithValidation(
description:
'Holds locations of other objects belonging to the entity. Not required.',
},
segmentationFeatures: {
bsonType: 'array',
description:
'Holds a list of classificaton features used during the segmentation process. Not required.',
},
},
},
},
Expand Down
1 change: 1 addition & 0 deletions src/entity/validationEntityModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const entitySchema = new Schema<IEntityDb>({
shareGroup: { type: String, required: true },
parentName: { type: String, required: false },
childLocations: { type: [String], required: false },
segmentationFeatures: { type: [String], required: false },
})

export const entityModel = model<IEntityDb>('entity', entitySchema)
1 change: 1 addition & 0 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export interface IEntityDb {
shareGroup: ShareGroupType
parentName?: string
childLocations?: Array<string>
segmentationFeatures?: Array<string>
}

/**
Expand Down
Loading