I have two PostGIS tables, one where I store points, named "nodes" and another with where I store multilinestrings, named "lines". I'm trying to append a new vertex to a line using one of the nodes executing a query similar to the following SQL sentence:
UPDATE lines SET
the_geom = ST_AddPoint(the_geom, (select the_geom from nodes where id_node='XXXXX') )
WHERE id_line='YYYY'
But I get:
ERROR: lwline_deserialize: attempt to deserialize a line which is really a Invalid type
Any suggestions?