[postgis-tickets] [PostGIS] #4788: ST_SquareGrid (and others) don't support points on input
PostGIS
trac at osgeo.org
Sun Nov 8 09:43:09 PST 2020
#4788: ST_SquareGrid (and others) don't support points on input
-------------------------+---------------------------
Reporter: tobwen | Owner: pramsey
Type: enhancement | Status: new
Priority: medium | Milestone: PostGIS 3.1.0
Component: postgis | Version: 3.0.x
Keywords: |
-------------------------+---------------------------
== current situation
Currently, ''ST_SquareGrid'' (and similar functions) only supports
polygons as input. When using points, there's neither any output nor a
warning.
== suggestion
In many cases, it's useful to generate a grid, which is based on a point.
== current workaround
Buffer the point a little bit.
{{{
SELECT * FROM ST_SquareGrid(1E1, ST_Buffer(ST_SetSRID(ST_MakePoint(12345,
54321), 3857), 1E-11));
}}}
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4788>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list