Ticket #1819 (closed defect: fixed)
[raster] floating point issues with ST_World2RasterCoordX and ST_World2RasterCoordY
| Reported by: | dustymugs | Owned by: | dustymugs |
|---|---|---|---|
| Priority: | medium | Milestone: | PostGIS 2.0.1 |
| Component: | raster | Version: | 2.0.x |
| Keywords: | history | Cc: |
Description
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
Note: See
TracTickets for help on using
tickets.
