[postgis-users] fabs() testing for y-coordinates in lwgeom_svg.c
Klaus Förster
klaus.foerster at uibk.ac.at
Wed Nov 19 23:43:09 PST 2008
I've just checked the source of lwgeom_svg.c in postgis-1.3.4rc3 and
wonder what the fabs() testing in lines 243, 262, 303, 324 and 348 is
for. Why is it needed?
e.g. line 243:
sprintf(y, "%.*f", precision, fabs(pt->y) > 0 ? (pt->y * -1) : pt->y);
thanks for any hints,
Klaus
--
Klaus Förster
Institut für Geographie
Universität Innsbruck
A-6020 Innsbruck, Innrain 52
Tel.: +43 (0)512 507 5434
More information about the postgis-users
mailing list