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

EcefLocation provided to StandaloneDb.createEmpty does not persist #7877

Open
ben-polinsky opened this issue Mar 23, 2025 · 0 comments
Open
Assignees

Comments

@ben-polinsky
Copy link
Contributor

ben-polinsky commented Mar 23, 2025

Describe the bug
When providing StandaloneDb.createEmpty with an ecefLocation, the ecefLocation is not persisted.

To Reproduce

const ecefLocation = new EcefLocation({...})
const db = StandaloneDb.createEmpty("./noEcef.bim", {
  rootSubject: { name: "ecef demo" },
  ecefLocation
});

db.ecefLocation  // undefined
db.ecefLocation = ecefLocation
db.ecefLocation  // now defined

Reproduction: https://replit.com/@benpolinsky/iTwin-standaloneDbcreateEmpty-ecefLocation-bug

Expected behavior
Any CreateEmptyStandaloneIModelProps fields should persist when provided to createEmpty. If fields aren't applicable in this situation, that should be documented and the fields considered for deprecation/removal.

  • OS: Mac OS 15.3.1
  • iTwin.js 4.10.11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant