[postgis-devel] Testing on Windows PostGIS 1RC1
strk
strk at keybit.net
Wed Sep 22 16:24:43 PDT 2010
On Thu, Sep 23, 2010 at 12:18:37AM +0200, Nicklas Avén wrote:
> select st_snaptogrid('LINESTRING(1 2, 1 2)'::geometry, 0.1)
>
> So we don't get a parse error or an empty geometry, but... nothing
>
> Maybe empty geometry would be better?
FWIW, that's an invalid geometry.
ST_MakeValid would make it a POINT.
But yes, SnapToGrid turns collapsed geomeries into NULLs,
intentionally, as it was designed as a vector reduction tool.
Dunno what would an empty give you more than the current NULL.
Possibly a POINT would help you more.
--strk;
() Free GIS & Flash consultant/developer
/\ http://strk.keybit.net/services.html
More information about the postgis-devel
mailing list