linrrzqqq commented on code in PR #63049:
URL: https://github.com/apache/doris/pull/63049#discussion_r3296744034


##########
be/src/exprs/function/geo/geo_types.cpp:
##########
@@ -1929,6 +1929,27 @@ double GeoMultiPolygon::Distance(const GeoShape* rhs) 
const {
     return (min_distance == std::numeric_limits<double>::max()) ? -1.0 : 
min_distance;
 }
 
+int GeoPolygon::num_points() const {
+    int total = 0;
+    for (int i = 0; i < numLoops(); ++i) {

Review Comment:
   can this replace by
   ```cpp
       return _polygon->num_vertices() + _polygon->num_loops();
   ```
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to