Ticket #1318 (new enhancement)

Opened 6 months ago

Last modified 3 months ago

[raster] Provide some predefined common usage userfunc for ST_MapAlgebraFctNgb

Reported by: pracine Owned by: pracine
Priority: medium Milestone: PostGIS 2.1.0
Component: raster Version: trunk
Keywords: Cc:

Description

Now that we have ST_MapAlgebraFctNgb we might want to provide some predefined user functions like ST_Max, ST_Min, ST_Sum, ST_Distinct, ST_Mean, ST_StdDev, ST_Range, ST_Quantile, ST_Median, ST_Majority, ST_Minority, ST_Slope, ST_Aspect...

We might want to systematically change the prefix or add a suffix (I would suggest '4MA' i.e. 'for MapAlgebra?') to the function names so we know were written to be used with ST_MapAlgebraFctNgb. e.g. ST_Slope4MA()

Change History

in reply to: ↑ description   Changed 6 months ago by dzwarg

  • owner changed from pracine to dzwarg
  • status changed from new to assigned

Replying to pracine:

Now that we have ST_MapAlgebraFctNgb we might want to provide some predefined user functions like ST_Max, ST_Min, ST_Sum, ST_Distinct, ST_Mean, ST_StdDev, ST_Range, ST_Quantile, ST_Median, ST_Majority, ST_Minority, ST_Slope, ST_Aspect... We might want to systematically change the prefix or add a suffix (I would suggest '4MA' i.e. 'for MapAlgebra?') to the function names so we know were written to be used with ST_MapAlgebraFctNgb. e.g. ST_Slope4MA()

It may make sense for ST_Slope and ST_Aspect to be their own functions that wrap ST_MapAlgebraFctNgb, since the neighborhood is fixed at 3x3.

  Changed 4 months ago by dzwarg

Added in r8262:

  • ST_Max4ma
  • ST_Min4ma
  • ST_Sum4ma
  • ST_Mean4ma
  • ST_Range4ma

Added in r8264:

  • ST_Slope

Added in r8265:

  • ST_Aspect

Added in r8274:

  • ST_Hillshade

in reply to: ↑ description   Changed 4 months ago by dzwarg

pracine:

Can you elaborate on ST_Quantile? I'm not familiar with what kind of neighborhood operation that would be.

  Changed 4 months ago by pracine

Bborie is the true reference for quantiles. You can look at the examples in wikipedia:  http://en.wikipedia.org/wiki/Quantile

I would make it low priority as the other ones are more common: ST_Distinct, ST_StdDev, ST_Median, ST_Majority, ST_Minority...

  Changed 4 months ago by dustymugs

Agree with making it a low priority to 2.1.

  Changed 3 months ago by pracine

  • owner changed from dzwarg to pracine
  • status changed from assigned to new
  • milestone changed from PostGIS 2.0.0 to PostGIS 2.1.0

I postpone it to 2.1 since only ST_Quantile, ST_Median, ST_Majority and ST_Minority are missing and are of lower priority.

Note: See TracTickets for help on using tickets.