Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Styles' OFFSET values are saved as ints though they are doubles. #5310
In mapserver.h (row 1006) we can see the styleObj struct has offsetx and offsety. They are double.
According to this we can see in mapfile.c (row 2726 and 2736) they are treated as doubles when they are loaded in.
int loadStyle(styleObj *style)
But in mapfile.c (row 2986) the style is saved by a writeDimension (mapfile.c row 525) function which wait ints on its 4th and 5th operands
static void writeDimension(FILE *stream, int indent, const char *name, int x, int y, char *bind_x, char *bind_y)
void writeStyle(FILE *stream, int indent, styleObj *style)
The solution for this issue could be anther writeDimension function with 2 double operands.