petern48 commented on code in PR #2332:
URL: https://github.com/apache/sedona/pull/2332#discussion_r2325841394


##########
python/sedona/spark/geopandas/sindex.py:
##########
@@ -82,12 +93,17 @@ def query(self, geometry: BaseGeometry, predicate: str = 
None, sort: bool = Fals
         sort : bool, optional, default False
             Whether to sort the results.
 
+        Note: query() has different behaviors depending on how the index is 
constructed.
+        When constructed from a np.array, this method returns indices like 
original geopandas.
+        When constructed from a GeoSeries or PySparkDataFrame, this method 
returns geometries.
+
         Note: Unlike Geopandas, Sedona does not support geometry input of type 
np.array or GeoSeries.
+        It is recommended to instead use GeoSeries.intersects directly.
 
         Returns
         -------
         list
-            List of indices of matching geometries.
+            List of matching geometries.

Review Comment:
   Good catches, I pushed a commit formatting it in a way I like better



-- 
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]

Reply via email to