sf icon indicating copy to clipboard operation
sf copied to clipboard

Avoid use of GDAL in st_dimension

Open dbaston opened this issue 4 years ago • 0 comments

st_dimension(x) copies its input into an OGR geometry type. In a test of 100,000 point-in-polygon intersections, this takes ~25% of the runtime:

image

It seems like the topological dimension could be more easily determined from class(x).

dbaston avatar Aug 06 '21 11:08 dbaston