On mardi 9 mai 2017 14:19:24 CEST Kurt Schwehr wrote:
> Hi Even,
> A question on https://trac.osgeo.org/gdal/changeset/37621
> Why did you switch the order of the 1st two args with the CSVCompare?
> Looking at the code, it appears to not matter which arg is first.
It does in that case :
else if( eCriteria == CC_Integer )
return( CPLGetValueType(pszFieldValue) == CPL_VALUE_INTEGER &&
atoi(pszFieldValue) == atoi(pszTarget) );
Perhaps we could also test CPLGetValueType(pszTarget) == CPL_VALUE_INTEGER as well for symetry (this is assumed that pszTarget is actually a integer when eCriteria == CC_Integer )
Spatialys - Geospatial professional services