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

filter error with GTFS #343

Closed
ericemc3 opened this issue Jun 14, 2024 · 2 comments · Fixed by OSGeo/gdal#10454
Closed

filter error with GTFS #343

ericemc3 opened this issue Jun 14, 2024 · 2 comments · Fixed by OSGeo/gdal#10454

Comments

@ericemc3
Copy link

This yields an error:

FROM st_read('https://static.data.gouv.fr/resources/gtfs-tisseo-toulouse/20240614-125818/tisseo-gtfs-v2.zip', layer='routes') 
WHERE route_type = 1 ;

SQL Error: IO Error: GDAL Error (1): Type mismatch or improper type of arguments to = operator.
Although route_type is INTEGER.

This (ugly) workaround works:

FROM st_read('https://static.data.gouv.fr/resources/gtfs-tisseo-toulouse/20240614-125818/tisseo-gtfs-v2.zip', layer='routes') 
WHERE route_type::varchar = '1' ;
@rouault
Copy link

rouault commented Jul 20, 2024

GDAL upstream bug that will be fixed per OSGeo/gdal#10454

@ericemc3
Copy link
Author

Thanks !

rouault added a commit to OSGeo/gdal that referenced this issue Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants