[raster] floating point issues with ST_World2RasterCoordX and ST_World2RasterCoordY
|Reported by:||Bborie Park||Owned by:||Bborie Park|
For some rasters, I'm finding that the if I pass the upper left corner of a raster to ST_World2RasterCoord(X|Y), the function returns zero (0) instead of one (1). After doing some digging, the problem arises from the computation taking place in plpgsql.
Testing a plpgsql function calling the underlying C function rt_raster_geopoint_to_cell() that does the same process, the correct answer is consistently provided.
I'll try to post a concise example once I find one.
This should be backported to 2.0.x…
Change History (10)
comment:2 by , 10 years ago
|Milestone:||PostGIS 2.1.0 → PostGIS 2.0.1|
|Status:||new → assigned|
|Version:||trunk → 2.0.x|