Skip to content

DuckDB Spatial extension in 1.5.1 not able to read GPX files anymore: "Too much data inside one element. File probably corrupted" #789

@michael-simons

Description

@michael-simons

See title, reproducer is easy:

-- Loading resources from /Users/msimons/.duckdbrc
Catalog Error:
unrecognized configuration parameter "geometry_always_xy"

Did you mean: "threads"
DuckDB v1.4.4 (Andium) 6ddac802ff
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
●◗ load spatial;
●◗ SELECT count(*) FROM st_read('New file 1.gpx', layer = 'track_points');
┌──────────────┐
│ count_star() │
│    int64     │
├──────────────┤
│      76      │
└──────────────┘
●◗ 

And on 1.5.0 and 1.5.1

-- Loading resources from /Users/msimons/.duckdbrc
DuckDB v1.5.1 (Variegata)
Enter ".help" for usage hints.
●◗ SELECT count(*) FROM st_read('New file 1.gpx', layer = 'track_points');
IO Error:
Too much data inside one element. File probably corrupted

My resources:

 more ~/.duckdbrc 
.prompt "●◗ "
INSTALL spatial;
LOAD spatial;
SET geometry_always_xy = true;

demo file attached as zip: New file 1.gpx.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions