How do I get object centroids? This returns zeros. I tried a bunch of things but still get zeros. I totally know it’s completely wrong, but I don’t know how to figure it out:
If you’re dealing with a number of different geometry types - like you seem to be -, and you don’t want to specify individual code to get the centroid for each of them, and you don’t need an exact center point, you can simply get the bounding box of the geometry object in question, and assume the bounding box center as a pseudo-centroid of the object.