Interface with the extension type from cython #24
Labels
refactor
Restructure code without changing function
to-shapely
This issue needs to be transferred to shapely
As an experiment, I was trying to implement something in cython using the extension type / object array holding them (a simple vectorized contains; not to replace the contains ufunc, but as simple example of how to use cython with an array of pygeos objects, for potentially a custom non-ufunc algorithm).
So I succeeded in interfacing with the GeometryObject struct (to get the pointer out of the struct), without Python interaction.
But what I didn't get to work yet is to access a single pygeos.Geometry object out of the object array (which needs to happen in the loop).
And the result of this is that I also can't put this for loop in a
nogil
block, which would be needed to run it in a parallel context.See experiment here: https://nbviewer.jupyter.org/gist/jorisvandenbossche/c90181a330972d5f4564d7c73b70a114
The text was updated successfully, but these errors were encountered: