Opened 19 years ago
Closed 15 years ago
#1314 closed defect (fixed)
SLD XML colormap entries parse quantity attr as int.
Reported by: | Owned by: | sdlime | |
---|---|---|---|
Priority: | high | Milestone: | 5.4 release |
Component: | MapServer C Library | Version: | 4.4 |
Severity: | normal | Keywords: | |
Cc: | assefa, tomkralidis |
Description (last modified by )
Pixel values can be real values. In order to specify a ColorMap in SLD xml the quantity attribute needs to support floating point numbers. In mapogcsld.c at line 2381 they are parsed as integers. Also, a potential memory corruption problem can occurr by using sprintf instead of snprintf.
Change History (4)
comment:1 by , 16 years ago
Cc: | added |
---|
comment:2 by , 16 years ago
Milestone: | → 5.4 release |
---|
Assefa: can you confirm that we are indeed supporting floats in mapogcsld.c? Around line 2364 it appears to support both. We can close if this is the case.
comment:3 by , 15 years ago
Description: | modified (diff) |
---|
Any more on this? I'm trying to clean house...
Steve
comment:4 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
support was added some time ago to read float or integer values.
Note:
See TracTickets
for help on using tickets.
True. From http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd
Assefa: looking at mapogcsld.c, it looks like @quantity is already tested for a float or int?