Re: [GRASS-user] Testing two vectors for equality
On 27/06/09 05:01, Michael Perdue wrote: Is there a way to test if two vectors are identical, including their attribute tables? i.e., I've changed some code and now I want to test that the results are the same. Is there an easy way to do this? Since 6.5 v.select offers the use of GEOS operators, which includes 'equals'. But this only tests the geometries, so you would have to test the attribute tables separately. Moritz ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] Testing two vectors for equality
Is there a way to test if two vectors are identical, including their attribute tables? i.e., I've changed some code and now I want to test that the results are the same. Is there an easy way to do this? Cheers, Mike ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] Testing two vectors for equality
Michael Perdue wrote: Is there a way to test if two vectors are identical, including their attribute tables? i.e., I've changed some code and now I want to test that the results are the same. Is there an easy way to do this? not really. In the past I've used 'diff' on the command line to compare that the binary files in vector/ are exactly the same, as well as the DBs in dbf/. Seemed to work ok. If you test that the two vector dirs are the same with 'diff' it came back as only the timestamps in the map history metadata changing. for raster maps I added a wish for a r.md5sum module or a new flag to r.univar for that. Maybe something similar could be done for v.univar? (only based on live features?) https://trac.osgeo.org/grass/ticket/618 Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user