paleolimbot commented on code in PR #615:
URL: https://github.com/apache/sedona-db/pull/615#discussion_r2890661751


##########
docs/reference/sql/rs_contains.qmd:
##########
@@ -0,0 +1,57 @@
+---
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+title: RS_Contains
+description: Returns true if the first argument's extent contains the second.
+kernels:
+  - returns: boolean
+    args: [raster, geometry]
+  - returns: boolean
+    args: [geometry, raster]
+  - returns: boolean
+    args:
+    - name: rastA
+      type: raster
+      description: Input raster
+    - name: rastB
+      type: raster
+      description: Input raster
+---
+
+## Description
+
+Returns `true` if the convex hull of the first argument completely contains
+the second argument. Both rasters and geometries are accepted in either
+argument position. When two rasters are provided, their convex hulls are
+compared.
+
+If the arguments have different CRSes, the geometry is transformed into the
+raster's CRS before evaluating the predicate. For two rasters, the second
+raster is transformed into the first raster's CRS. If the preferred

Review Comment:
   ```suggestion
   raster's extent is transformed into the first raster's CRS. If the preferred
   ```



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