Opened 7 years ago

Closed 4 years ago

#3933 closed defect (fixed)

[raster] Errors in examples of doc for ST_Neighborhood

Reported by: lrohr Owned by: robe
Priority: low Milestone: PostGIS 2.5.5
Component: documentation Version: 2.4.x
Keywords: postgis, documentation, ST_Neighborhood, raster Cc:

Description

I spotted 3 errors in the examples cited in the documentation for ST_Neighborhood:

  • First example: The result should be {{NULL,1,1},{1,1,1},{1,NULL,1}}. Reproduce: Execute query (copy-paste) on a server.
  • Third example: There is a "SELECT" missing between lines 5 and 6. Copy-pasting the query as is raises a syntax error. Correct:
    FROM (
    	SELECT
    		ST_SetValues(
    
  • Third example: The result should be {{1,1,0},{0,1,1},{1,1,1}}. Reproduce: Execute query (copy-paste) with the correction above on a server.

Change History (6)

comment:1 by Algunenano, 5 years ago

Milestone: PostGIS 3.0.0

comment:2 by robe, 5 years ago

Milestone: PostGIS 3.0.0PostGIS 2.5.4

comment:3 by pramsey, 5 years ago

Milestone: PostGIS 2.5.4PostGIS 2.5.5

comment:4 by Regina Obe <lr@…>, 4 years ago

In 25825b6/git:

Fix ST_Neighborhood docs references #3933 for PostGIS 3.1

comment:5 by Regina Obe <lr@…>, 4 years ago

In 867636c/git:

Fix ST_Neighborhood docs references #3933 for PostGIS 3.0

comment:6 by Regina Obe <lr@…>, 4 years ago

Resolution: fixed
Status: newclosed

In 88f81843/git:

Fix ST_Neighborhood docs closes #3933 for PostGIS 2.5.5

Note: See TracTickets for help on using tickets.