zhangfengcdt opened a new pull request, #2128:
URL: https://github.com/apache/sedona/pull/2128

   ## Did you read the Contributor Guide?
   
   - Yes, I have read the [Contributor 
Rules](https://sedona.apache.org/latest/community/rule/) and [Contributor 
Development Guide](https://sedona.apache.org/latest/community/develop/)
   
   ## Is this PR related to a ticket?
   
   - Yes, and the PR name follows the format `[GH-XXX] my subject`. Closes 
#<issue_number>
   
   ## What changes were proposed in this PR?
     Enhanced the STAC reader to support Shapely geometry objects and WKT 
strings as spatial filters, providing more flexibility than the existing 
bbox-only approach. This improvement goes beyond pystac-client's capabilities 
while maintaining full backward compatibility.
   
   ```
     # Using WKT string
     items = client.search(geometry="POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))")
   
     # Using Shapely polygon
     polygon = Polygon([(0, 0), (1, 0), (1, 1), (0, 1), (0, 0)])
     items = client.search(geometry=polygon)
   
     # Using list of geometries
     geometries = [polygon, "POLYGON((2 2, 3 2, 3 3, 2 3, 2 2))"]
     items = client.search(geometry=geometries)
   
     # Combined with other filters
     items = client.search(
         geometry=polygon,
         datetime=["2020-01-01T00:00:00Z", "2021-01-01T00:00:00Z"]
     )
   ```
   
   ## How was this patch tested?
    Test Coverage:
     - WKT string geometry filtering
     - Shapely object geometry filtering
     - Mixed geometry lists
     - Geometry precedence over bbox
     - Combined geometry + datetime filtering
     - GeoParquet export with geometry parameter
   
   ## Did this PR include necessary documentation updates?
   
   - No, this PR does not affect any public API so no need to change the 
documentation.
   


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