- Timestamp:
- Jun 9, 2017, 12:46:19 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ms-style/zoo-project/zoo-kernel/service_internal_ms.c
r832 r833 136 136 return (val-x0)*(y1-y0)/(x1-x0) + y0; 137 137 } 138 139 138 double base( double val ) { 140 139 if ( val <= 0.25 ) return 0; … … 843 842 */ 844 843 845 /* msRasterResample (NEAREST/AVERAGE/BILINEAR) */ 846 const char * msRasterResamplingPropertyName = "msRasterResample"; 847 /* msRasterStyle (linearStretching/classify) */ 848 const char * msRasterStylePropertyName = "msRasterStyle"; 849 const char * msRasterStyleLinearStretchingPropertyValue = "linearStretching"; 844 // Properties names 845 const char * msRasterResamplingPropertyName = "msRasterResample"; /* can be NEAREST/AVERAGE/BILINEAR */ 846 const char * msRasterStylePropertyName = "msRasterStyle"; /* can be linearStretching/classify */ 847 const char * msRasterStyleOptionsPropertyName = "msRasterStyleOptions"; /* can be the path to a mapfile */ 848 849 // Allowed properties values 850 const char * msRasterStyleLinearStretchingPropertyValue = "linearStretching"; /* RasterStyle */ 850 851 const char * msRasterStyleColorPalettePropertyValue = "classify"; 851 const char * msRasterStyleOptionsPropertyName = "msRasterStyleOptions"; 852 /* options for linear stretching */ 853 const char * msRasterStyleLinearStretchingMinMaxPropertyName = "minMax"; 852 const char * msRasterStyleLinearStretchingMinMaxPropertyName = "minMax"; /* Linear stretching */ 854 853 const char * msRasterStyleLinearStretchingMeanStdPropertyName = "meanStd"; 855 854 855 // Maximum number of classes (classify mode) 856 856 const unsigned int msRasterStyleClassifyAutoMaximumNumberOfClasses = 256; 857 857 … … 953 953 /* 954 954 * This is just for the backward compatibility and will be deprecated 955 * TODO: mark this as deprecated 955 956 */ 956 957 { … … 1166 1167 1167 1168 } // styleType is LINEAR_STRETCHING 1169 1168 1170 else if( styleType == CLASSIFY ) 1169 1171 { 1170 if(iBand==0) 1172 if(iBand==0) // classify only the first band 1171 1173 { 1172 1174 if (classifyType == USER) … … 1291 1293 1292 1294 } // styleType is CLASSIFY 1295 1293 1296 } //iBand is 0 1294 1297
Note: See TracChangeset
for help on using the changeset viewer.