[postgis-users] Rounding off coordinates

Markus Schaber schabios at logi-track.com
Mon Jun 28 07:24:59 PDT 2004


Hi, Strk,

On Mon, 28 Jun 2004 15:47:46 +0200
strk <strk at keybit.net> wrote:

> I've implemented a grid-based reduction function for postgis
> which in fact rounds off coordinates.
> 
> It currently take a reference point and
> a grid size (height, width of grid cell). Makes each geometry
> point stick on the grid and removes duplicated point (thus
> reduction).
> 
> If you are interested in supporting integration in postgis
> I'll work on that.

We'd appreciate this, but you should take care that your function does
not create invalid geometries when applied to polygonal types.

We did such reductions in java code, and later had some unexpected
problems when trying to calculate intersection()s of such polygons in
postgres.

Greets,
Markus


-- 
markus schaber | dipl. informatiker
logi-track ag | rennweg 14-16 | ch 8001 zürich
phone +41-43-888 62 52 | fax +41-43-888 62 53
mailto:schabios at logi-track.com | www.logi-track.com



More information about the postgis-users mailing list