Open asinghvi17 opened 1 month ago
What about without enumerate
~That's a vector so type stability is fine I think~
Ah, there's the problem. I guess getpoint
for polygons returns a Iterators.Flatten
which has eltype of Any.
getpoint(GI.getexterior(p56))
is a vector so no worries about eltype there.
Yeah it's double nested for Polygons. We could make a better iterator in GeoInterface.
Not sure how bad this is for performance - maybe we need a point enumerator wrapper type thing which is known to be type stable (and maybe also known to emit tuple/svector type points)?