I have a table like this:
CREATE TABLE spatial_data ( id NUMBER PRIMARY KEY, geometry SDO_GEOMETRY);
SDO_GEOMETRY has an sdo_ordinates field with the following type:
TYPE SDO_ORDINATE_ARRAY AS VARRAY (1048576) NUMBERS
I can get the number of points for the specified object:
select count(*) from table( select s.geometry.sdo_ordinates from spatial_data s where s.id = 12345 );
How do I count the number of objects? Unable to use
where s.id in (1, 2, 3, 4, 5)
And I really care about performance. Maybe PL / SQL would be the right choice?
source share