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
unknown geom type: reading (mixed) Unknown fails #1160
Comments
possibly related to #1084 because terra::vect("/vsicurl/https://filesamples.com/samples/code/kml/sample3.kml")
Error: [vect] cannot read this geometry type: Unknown (any)
In addition: Warning message:
[vect] Z coordinates ignored
|
The bigger problem in the context of "unknown" or "collection" types is that a SpatVector is assumed to have a single data type. Allowing multiple types requires a major overhaul. I will start by adding a method that can read these into a SpatVectorCollection; and then we can take it from there. |
There now is a
|
good to know ty, I'll PR something for the documentation 🙏 |
You can now also read polygon TAB with
If there are multiple geometries in a file, the highest level is returned (polygons > lines > points), with a warning suggesting to use |
awesome, thanks so much, confirmed with all examples above |
vect() can't read polygon TAB, because (see link below)
https://lists.osgeo.org/pipermail/gdal-dev/2008-June/017418.html
Will PR if I can, found this exploring use of SQLITE spatial functions in
query()
which seem to also return mixed type.The text was updated successfully, but these errors were encountered: