问题分析
Search on Esri Community
Submit to ArcGIS Ideas
Error: The number of points is less than required for feature
数据量不小,按照官网解决方案:https://support.esri.com/en/technical-article/000009633
未能解决。
这个报错,导致地图服务发布不成功,最后终于搜索到一篇文章,疑似精度问题。
解决方案
这里我的数据类型是线数据,所以通过计算线段长度来排查精度问题,最后,终于找到了这条数据:
select resid,st_length(st_transform(geom,4326)) from m_pip_le_1 where st_length(st_transform(geom,4326))<0.0001
竟然是因为这条数据,导致的下图这个问题
最后,感谢这篇文章
链接地址:http://www.timmons.com/news/blog/identify-shapes-which-are-considered-valid-by-sql-server-but-invalid-by-arc#:~:text=Some%20of%20the%20shapes%20are%20considered%20valid%20in,required%20for%20feature%E2%80%9D%20when%20it%20renders%20such%20shapes.
顺便记录一些常用gis函数
select resid,resname,(st_xmax(st_transform(geom,4326))-st_xmin(st_transform(geom,4326))) as dx,(st_ymax(st_transform(geom,4326))-st_ymin(st_transform(geom,4326))) as dy from m_pip_le_1