06-18-2007, 17:09
Hello,
somehow the behavior of the inclusion of DS9 polygon data changed. While in early versions (my old one was 1.3) expected the word "POLYGON" to be written in uppercase in the region files, the new version expects it to be written in lowercase.
That is, of course, no major problem, but I think, it needs to be documented, since the docs are still speaking from uppercase "POLYGON".
If that induces no other problems, it could be wise to change src/vector.c, line 127 from:
if (str2 && !(strstr(str2, "polygon")))
to:
if (str2 && !(strstr(strtolower(str2), "polygon")))
so that all possible uppercase/lowercase typos would be recognized.
Best regards Jan
somehow the behavior of the inclusion of DS9 polygon data changed. While in early versions (my old one was 1.3) expected the word "POLYGON" to be written in uppercase in the region files, the new version expects it to be written in lowercase.
That is, of course, no major problem, but I think, it needs to be documented, since the docs are still speaking from uppercase "POLYGON".
If that induces no other problems, it could be wise to change src/vector.c, line 127 from:
if (str2 && !(strstr(str2, "polygon")))
to:
if (str2 && !(strstr(strtolower(str2), "polygon")))
so that all possible uppercase/lowercase typos would be recognized.
Best regards Jan
