Ticket #1618 (closed defect: fixed)
[raster] ST_Transform to SRID 3978 produce wrong results
| Reported by: | pracine | Owned by: | dustymugs |
|---|---|---|---|
| Priority: | blocker | Milestone: | PostGIS 2.0.0 |
| Component: | raster | Version: | trunk |
| Keywords: | Cc: |
Description
I have a raster in srid=4269:
-- Raster unprojected SELECT ST_AsBinary(ST_AddBand(ST_MakeEmptyRaster(10, 10, -168.0, 85.0, 0.083, -0.083, 0, 0, 4269), 1, '8BUI', 1, 0)::geometry);
I project the geometric extent of this raster to srid=3978:
-- Raster extent projected SELECT ST_AsBinary(ST_Transform(ST_AddBand(ST_MakeEmptyRaster(10, 10, -168.0, 85.0, 0.083, -0.083, 0, 0, 4269), 1, '8BUI', 1, 0)::geometry, 3978));
When I project the raster (not the vectorization of its extent) to the same srid=3978, it is wrongly projected:
--Raster projected SELECT ST_AsBinary(ST_Transform(ST_AddBand(ST_MakeEmptyRaster(10, 10, -168.0, 85.0, 0.083, -0.083, 0, 0, 4269), 1, '8BUI', 1, 0), 3978)::geometry);
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

