Ticket #1870 (closed defect: fixed)

Opened 11 months ago

Last modified 11 months ago

[raster] ST_Intersects doc and behaviour are out of synch

Reported by: pracine Owned by: pracine
Priority: medium Milestone: PostGIS 2.0.1
Component: raster Version: 2.0.x
Keywords: history Cc:

Description

The doc state that "If no band is specified band 1 is assumed" for ST_Intersects(geometry geommin, raster rast, integer nband=NULL) but nband default to null which make the operator to ignore nodata values.

I guess the desired behaviour is to default to 1.

Change History

Changed 11 months ago by dustymugs

When thinking about the correct behavior of not specifying nband, I have to ask myself...

If a user doesn't provide a value for nband when nband is a possible parameter, what area should be considered? The area covered by the raster? Or the area covered by band 1 of the raster?

Personally, I'd lead towards the area covered by the raster. Since the user didn't provide an explicit value for nband, the response should not be explicit.

I'm for changing the docs to correctly reflect the behavior.

Changed 11 months ago by pracine

+1

Changed 11 months ago by dustymugs

  • keywords history added
  • status changed from new to closed
  • resolution set to fixed

Fixed in r9936 for 2.0. Fixed in r9946 for trunk.

Changed 11 months ago by robe

  • milestone changed from PostGIS 2.0.2 to PostGIS 2.0.1
Note: See TracTickets for help on using tickets.