[GIS] Inserting null value into geometry column using PostGIS

postgis

I'm trying to insert a null value into a geometry column, which I cannot do:

ERROR: parse error – invalid geometry

So what I'm trying to accomplish is to erase a point from a map and save that information – the deletion of the point – to the database.

I am new to spatial data and all I can find from the internet is how to insert points, polygons and whatnot, but not how to remove that information.

The table where the geometry column resides has other information as well, so removing a row is not something I can do.

Best Answer

UPDATE "table" SET the_geom = NULL

This will work unless you have a NOT NULL-constraint on the geom-column.