[postgis-users] Acces to grid creation functions ?
Mark Cave-Ayland
mark.cave-ayland at siriusit.co.uk
Fri Aug 14 02:33:52 PDT 2009
Maxime van Noppen wrote:
> Hi,
>
> I need to build a grid with acces to both all intersections points and
> the grid geometry itself (either as multiline or multipolygon). Before
> developing the function that constructs a grid I wondered how SnapToGrid
> was implemented and looked at the code. It seems to me that all the
> function I need already exist in the PostGIS source code (lwpoint_grid,
> lwpoly_grid, ...) but unfortunately they're not exported in SQL :(
>
> Would it be possible to export them without too much trouble?
>
> Thanks !
The grid functions you mention are called by ST_SnapToGrid() depending
the input geometry type (i.e. they are equivalent), so I'm not sure I
understand what you're trying to do?
ATB,
Mark.
--
Mark Cave-Ayland - Senior Technical Architect
PostgreSQL - PostGIS
Sirius Corporation plc - control through freedom
http://www.siriusit.co.uk
t: +44 870 608 0063
Sirius Labs: http://www.siriusit.co.uk/labs
More information about the postgis-users
mailing list