Ticket #742 (closed defect: fixed)
raster should not rely on function names for operators
| Reported by: | robe | Owned by: | jorgearevalo |
|---|---|---|---|
| Priority: | blocker | Milestone: | PostGIS 2.0.0 |
| Component: | raster | Version: | trunk |
| Keywords: | Cc: |
Description
Okay I see why raster is failing on my gserialized install. Nothing wrong with my install. It is because raster is relying on the actual underlying function names rather than the operator name and since the non-gserialized and gserialized have different function names, this poses a problem.
Here are the errors I get when gserialized is enabled.
ERROR: function geometry_overleft(geometry, geometry) does not exist
LINE 3: AS 'select geometry_overleft($1::geometry, $2::geometry)...
^
Get the same error for geometry_overright, geometry_overright, geometry_right, geometry_overabove etc.
Note that in gserialized case, the underlying operators are called geometry_2d_overleft etc.
Seems the solution might be to change raster code to use the operators instead like
$1::geometry &< $2::geometry
