Hi, Above construct does not work because asSVG seems to tag a newline at the end of it's output. Following works: select substring(asSVG(the_geom), 0, length(asSVG(the_geom))-1) ||'mytext' from mytable Thoughts? Jorg Heymans