mysql - Count number of LineStrings in a MultiLineString MySQL
问题描述
Is there a sql way to count the number of linestrings in a multilinestring field in MySQL? ST_Numpoints(multilinestring_field) returns null.
解决方案
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
推荐阅读
- python - Should np.load() be in with with open
- c++ - How to implement echo server with boost::spawn?
- python - Forbidden Reddit API call - Search within subreddit
- java - 用于时间可计算值的实体瞬态字段或专用 DTO - 最佳代码实践
- weblogic - Weblogic 14 与 Adopt Open Jdk 11 的兼容性
- playwright - 循环遍历元素时剧作家脚本超时
- python - 从具有 SQLAlchemy 名称的复选框获取表单
- javascript - 尽管其他几乎相同的路径正常工作,但无法找到模块导入路径
- ldap - 使 Keycloak(使用 LDAP)强制密码过期
- r - 如何在 R 中绘制一个“真实”的圆圈(意味着所有方向的比例都相同)?