You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sedona.apache.org by "Jia Yu (Jira)" <ji...@apache.org> on 2024/01/08 08:11:00 UTC

[jira] [Commented] (SEDONA-466) RS_AsRaster does not use the weight and height of the raster in its parameters.

    [ https://issues.apache.org/jira/browse/SEDONA-466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17804163#comment-17804163 ] 

Jia Yu commented on SEDONA-466:
-------------------------------

[~ade_hddu] We can provide a variant that exposes `useGeometryExtent` to the end user. So the user can opt to use it or not. https://github.com/apache/sedona/blob/master/common/src/main/java/org/apache/sedona/common/raster/RasterConstructors.java#L139

> RS_AsRaster does not use the weight and height of the raster in its parameters.
> -------------------------------------------------------------------------------
>
>                 Key: SEDONA-466
>                 URL: https://issues.apache.org/jira/browse/SEDONA-466
>             Project: Apache Sedona
>          Issue Type: Bug
>            Reporter: Haode Du
>            Priority: Major
>
> RS_AsRaster does not use the width and height of the raster passed in its parameters. Instead, it will use the bounding rectangle of the passed geometry as the width and height of the generated raster. ([RasterConstructors.java 172|https://github.com/apache/sedona/blob/master/common/src/main/java/org/apache/sedona/common/raster/RasterConstructors.java#L172])
> The function only utilizes the Scale and Skew information of the parameter raster.
> This behavior can be confusing, and I think we should fix it to use the width and height of the parameter raster.



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