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

Problems with visualization of .gpkg file #3702

Open
luchengqi7 opened this issue Jan 31, 2025 · 3 comments
Open

Problems with visualization of .gpkg file #3702

luchengqi7 opened this issue Jan 31, 2025 · 3 comments
Assignees

Comments

@luchengqi7
Copy link
Collaborator

luchengqi7 commented Jan 31, 2025

I have recently tried to visualize the output .gpkg file from a DRT simulation. The .gpkg file can be loaded properly in VIA, but the attribute type of some attributes are not correctly recognized (e.g., mean waiting time, p50, p95...). Instead of being recognized as Double, they are recognized as String (see first screenshot). This makes it difficult to do the visualization. I am not sure if this is a problem of VIA or the problem of .gpkg writer. As I can see in the DrtZonalWaitTimesAnalyzer, all the attributes should have been written in the correct format.

Furthermore, I also tried to add the .gpkg file as a layer in QGIS. The geometry cannot be displayed on QGIS. But I can still export the layer as normal shp file without problem. For the exported shp file, the attributes are correctly recognized in VIA (see second screenshot).

Image Image
@nkuehnel
Copy link
Member

nkuehnel commented Jan 31, 2025

Image
strange.. it works for me using the gpkg and directly opening it in QGIS. I see the geometries and the correctly read fields and I can color it accordingly

@nkuehnel
Copy link
Member

but yea I also have the same problem in via, that attributes are read as strings

@luchengqi7
Copy link
Collaborator Author

Image strange.. it works for me using the gpkg and directly opening it in QGIS. I see the geometries and the correctly read fields and I can color it accordingly

Yes, I have tried it again in a newer QGIS version, and it displays the layer properly now.

So, I guess the issue is probably with VIA?

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

3 participants