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

MultiLineString support? #490

Open
marklit opened this issue Jan 30, 2025 · 2 comments
Open

MultiLineString support? #490

marklit opened this issue Jan 30, 2025 · 2 comments

Comments

@marklit
Copy link

marklit commented Jan 30, 2025

SELECT TRY_CAST(wkb_geometry AS GEOMETRY) FROM ST_READ('a0000000f.gdbtable', keep_wkb=TRUE);

# Not implemented Error: WKB Reader: Geometry type 10 not supported
@Maxxen
Copy link
Member

Maxxen commented Jan 30, 2025

I think thats a curvepolygon in iso wkb, not a multilinestring

@marklit
Copy link
Author

marklit commented Jan 30, 2025

I'm not sure why it reported type 10. When I opened the file in QGIS it showed multilinestrings everywhere.

I don't have the shape number lookup to hand but this came up:

SELECT ('0x' || substr(shape::BLOB::TEXT, 7, 2))::INT AS geom_type_id,
       COUNT(*)
FROM ST_READ('a0000000f.gdbtable', keep_wkb=TRUE)
GROUP BY 1
ORDER BY 1;
┌──────────────┬──────────────┐
│ geom_type_id │ count_star() │
│    int32     │    int64     │
├──────────────┼──────────────┤
│          237 │        17740 │
│          243 │         6921 │
└──────────────┴──────────────┘

I'm not sure why those 237 and 243 values come up but (presumably GEOS) complains about type 10.

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

2 participants