跳到主要内容

flywave-terrain-datasource.groundmodificationmanager.updatemodification

Home > @flywave/flywave-terrain-datasource > GroundModificationManager > updateModification

GroundModificationManager.updateModification() method​

Updates an existing modification

This method updates the properties of an existing ground modification. It performs validation on the new values and updates the spatial index if necessary. A change event is dispatched with information about what was updated.

Signature:

updateModification(id: string, changes: Partial<Omit<GroundModificationPolygon, "id" | "boundingBox">>): boolean;

Parameters​

Parameter

Type

Description

id

string

ID of the modification to update

changes

Partial<Omit<GroundModificationPolygon, "id" | "boundingBox">>

Partial object with properties to update

Returns:



boolean

true if found and updated, false otherwise

## Exceptions

Error if input is invalid