Kristin Cowalcijk created SEDONA-321:
----------------------------------------

             Summary: Implement RS_Intersects(raster, geom)
                 Key: SEDONA-321
                 URL: https://issues.apache.org/jira/browse/SEDONA-321
             Project: Apache Sedona
          Issue Type: New Feature
            Reporter: Kristin Cowalcijk


RS_Intersects(raster, geom) Returns true if the envelope of the raster 
intersects the given geometry. If the geometry does not have a defined SRID, it 
is considered to be in the same CRS with the raster. If the geometry has a 
defined SRID, the geometry will be transformed to the CRS of the raster before 
the intersection test.

{{RS_Intersects}} is for easier fetching rasters in the region of interest from 
a dataframe containing rasters in various coordinate reference systems. 
{{RS_Intersects}} is deliberately defined differently from [ST_Intersects in 
PostGIS|https://postgis.net/docs/RT_ST_Intersects.html] for the following 
reasons:

 # {{RS_Intersects}} performs implicit CRS transformations, which has a 
different semantics from {{ST_Intersects}} in PostGIS
 # {{RS_Intersects}} uses the envelope of rasters rather than the convex hull. 
We may switch to use convex hull once we find an easy way to compute the 
footprint of grid coverage using GeoTools.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to