Fix of wrong computation of attribute from VectorLocation method

* Added adapted methods for different geometries
* Corrected related tests