You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/raster/qgsrasterlayer.h
+49-49Lines changed: 49 additions & 49 deletions
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@
21
21
* onto the mapcanvas
22
22
*
23
23
* The qgsrasterlayer class makes use of gdal for data io, and thus supports
24
-
* any gdal supported format. The constructor attemtps to infer what type of
24
+
* any gdal supported format. The constructor attempts to infer what type of
25
25
* file (RASTER_LAYER_TYPE) is being opened - not in terms of the file format (tif, ascii grid etc.)
26
26
* but rather in terms of whether the image is a GRAYSCALE, PALETTED or MULTIBAND,
27
27
*
@@ -31,18 +31,18 @@
31
31
*
32
32
* SINGLE_BAND_GRAY -> a GRAYSCALE layer drawn as a range of gray colors (0-255)
33
33
* SINGLE_BAND_PSEUDO_COLOR -> a GRAYSCALE layer drawn using a pseudocolor algorithm
34
-
* PALETTED_SINGLE_BAND_GRAY -> a PALLETED layer drawn in gray scale (using only one of the color components)
35
-
* PALETTED_SINGLE_BAND_PSEUDO_COLOR -> a PALLETED layer having only one of its color components rendered as psuedo color
36
-
* PALETTED_MULTI_BAND_COLOR -> a PALLETED image where the bands contains 24bit color info and 8 bits is pulled out per color
34
+
* PALETTED_SINGLE_BAND_GRAY -> a PALETTED layer drawn in gray scale (using only one of the color components)
35
+
* PALETTED_SINGLE_BAND_PSEUDO_COLOR -> a PALETTED layer having only one of its color components rendered as psuedo color
36
+
* PALETTED_MULTI_BAND_COLOR -> a PALETTED image where the bands contains 24bit color info and 8 bits is pulled out per color
37
37
* MULTI_BAND_SINGLE_BAND_GRAY -> a layer containing 2 or more bands, but using only one band to produce a grayscale image
38
38
* MULTI_BAND_SINGLE_BAND_PSEUDO_COLOR -> a layer containing 2 or more bands, but using only one band to produce a pseudocolor image
39
39
* MULTI_BAND_COLOR -> a layer containing 2 or more bands, mapped to the three RGBcolors. In the case of a multiband with only two bands, one band will have to be mapped to more than one color
40
40
*
41
41
* Each of the above mentioned drawing styles is implemented in its own draw* function.
42
42
* Some of the drawing styles listed above require statistics about the layer such
43
-
* as the min / max / mean / stddev etc. Statics for a band can be gathered using the
43
+
* as the min / max / mean / stddev etc. statistics for a band can be gathered using the
44
44
* getRasterBandStats function. Note that statistics gathering is a slow process and
45
-
* evey effort should be made to call this function as few times as possible. For this
45
+
* every effort should be made to call this function as few times as possible. For this
46
46
* reason, qgsraster has a vector class member to store stats for each band. The
47
47
* constructor initialises this vector on startup, but only populates the band name and
48
48
* number fields.
@@ -52,10 +52,10 @@
52
52
* applied to undefined layers to normalise the data into the 0-255 range.
53
53
*
54
54
* A qgsrasterlayer band can be referred to either by name or by number (base=1). It
55
-
* should be noted that band names as stored in datafiles may not be uniqe, and
55
+
* should be noted that band names as stored in datafiles may not be unique, and
56
56
* so the rasterlayer class appends the band number in brackets behind each band name.
57
57
*
58
-
* Sample useage of the QgsRasterLayer class:
58
+
* Sample usage of the QgsRasterLayer class:
59
59
*
60
60
* QString myFileNameQString = "/path/to/file";
61
61
* QFileInfo myFileInfo(myFileNameQString);
@@ -86,7 +86,7 @@
86
86
* }
87
87
*
88
88
* You can combine layer type detection with the setDrawingStyle method to override the default drawing style assigned
89
-
* when a layer is loaded.:
89
+
* when a layer is loaded:
90
90
*
91
91
* if (rasterLayer->getRasterLayerType()==QgsRasterLayer::MULTIBAND)
0 commit comments