Ticket #490 (closed defect: fixed)
[raster] raster casts to geometry and box3d should be assignment not implicit?
| Reported by: | robe | Owned by: | dustymugs |
|---|---|---|---|
| Priority: | low | Milestone: | PostGIS 2.0.0 |
| Component: | raster | Version: | trunk |
| Keywords: | Cc: |
Description
It appears I can do this:
SELECT ST_SRID(rast) As srid, ST_AsText(ST_Union(rast)) AS wktrast FROM dummy_rast GROUP BY ST_SRID(rast); SELECT ST_SRID(rast) As srid, ST_Extent(rast) AS extrast FROM dummy_rast GROUP BY ST_SRID(rast);
Which at first glance I thought was cool, but then realized its probably not cool. I'm still thinking about why this is bad. For geography we decided this was bad because geography aren't cartesian coords so the answer is technically wrong. In case of raster its not quite so clear. I guess I think all non-trivial implicit casts are bad, but that's the database purist in me talking.
So consider this just a flagging of questionable behavior. Not necessarily that I am disagreeing with it.
Change History
Note: See
TracTickets for help on using
tickets.
