Updating the query result to use point rather than linestring