Reputation: 4579
Is there a sql way to count the number of linestrings in a multilinestring field in MySQL? ST_Numpoints(multilinestring_field) returns null.
Upvotes: 0
Views: 168
Reputation: 4579
I think the answer is using ST_NumGeometries - https://dev.mysql.com/doc/refman/8.0/en/gis-geometrycollection-property-functions.html#function_st-numgeometries
Upvotes: 1