Jia Yu
Jia Yu
@zdila in Apache Sedona (https://github.com/apache/sedona), we have been dealing with this issue for a while and I contributed a few functions to JTS to make the `clone` possible (in Sedona,...
@ruanqizhen can you show me the full stacktrace? The one that is after `Caused by: java.lang.NullPointerException `?
@ruanqizhen I think the GeometryType might have indeterministic behavior over invalid geometries. We need to further investigate this issue. Can you run `ST_IsValid` on your geometry column? Is there any...
@ruanqizhen `ST_MakeValid` might not work for all cases. Any way to fix geometries is `ST_Buffer(geom, 0)`. If both of the method still cannot fix the issue, I think you can...
@ruanqizhen The polygon is invalid for `Difference` operation because it has nested holes You can use ST_ExteriorRing (https://sedona.apache.org/1.5.1/api/sql/Function/#st_exteriorring) to only use the exterior ring. A similar issue has been reported...
@ruanqizhen I don't think it is possible to process the difference function with that. You have to use the exterior ring or take those nested holes out as the individual...
@ricg72 ST_Pixelize is not supposed to return 0 pixel. For any geometry (polygons, points, ...), it should return at 1 pixel. There might be something wrong with the logic itself....
Depending on what you want to do with the resulting pixel values, a few options: 1. [RS_Clip](https://sedona.apache.org/1.5.1/api/sql/Raster-operators/#rs_clip): Clip/Crop the image by the given geometry 2. [RS_AsRaster](https://sedona.apache.org/1.5.1/api/sql/Raster-writer/#write-geometry-to-raster-dataframe): Rasterize a geometry to...
@ricg72
Getting the interior pixels needs some sorts of sweep line algorithms to scan the entire geometry. This was not implemented.