Skip to content

Fix grid2demand import - #1166

Open
pdobacz wants to merge 3 commits into
a-b-street:mainfrom
pdobacz:fix-grid2demand-import
Open

Fix grid2demand import#1166
pdobacz wants to merge 3 commits into
a-b-street:mainfrom
pdobacz:fix-grid2demand-import

Conversation

@pdobacz

@pdobacz pdobacz commented Sep 11, 2025

Copy link
Copy Markdown
Contributor

Fixes #1132

The issue was related to FilePicker not returning a path but rather just the filename. That fix is split into 2 commits: one ensures that filename is used for cases where only the filename was relevant (dialogs). The other modifies FilePicker to return a path. IIUC it may not work with non-UTF8 characters in paths on Windows (� will be used), but neither would the original code. Fixing non-UTF8 paths requires changes to abstio.

After that, another issue prevented the file from #1132 being imported - lack of whitespace handling in LINESTRING entries in the input csv, which the 3rd commit fixes.

I clicked through import dialogs I could find, and things seem to work with the exception of KML - before my change it suffered from the same FilePicker issue, after the change it breaks on KML format itself.

DISCLAIMER: I'm relatively new to Rust, so pls do extra scrutiny on this one

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

Successfully merging this pull request may close these issues.

Grid2Demand agent file fails to load.

1 participant