Questions tagged [color-ramp]
A range of colors used to show ranking or order among classes on a map.
171
questions
0
votes
0
answers
7
views
Graduated Color Ramp by Rate per Zip Code?
I am very new to qgis (I started teaching myself about a week ago) so I will try and be as concise as possible. I am using version 3.22 and I am mapping violation of probation rates (vop rates). I ...
3
votes
0
answers
38
views
Assigning new pseudo color renderer to raster using pyQGIS [duplicate]
I would like to assign a new pseudo color style to my raster layer using PyQGIS. I created the following script:
#accessing the raster layer
rl = iface.activeLayer()
## get default style
myStyle = ...
1
vote
2
answers
71
views
Rounding numbers in a raster legend in Google Earth Engine
I have a legend in Google Earth Engine which pulls minimum and maximum values for my raster (imported as a cloud asset).
I would like to round those numbers in order to remove the decimals. It seems ...
1
vote
1
answer
50
views
How to "preclassify" a color ramp for an unknown range in QGIS?
I have to create a template project in QGIS to be taken into the field by others. The aim is, that the user only enters data but does not have to change styles or anything themselves.
I have a layer ...
2
votes
1
answer
69
views
Automate max and mix values of a raster in my color palette on Google Earth Engine
Is there a way to automate my code so that Google Earth Engine can pull minimum and maximum values from a raster and update my color palette accordingly? I'm using the following code currently.
// ...
0
votes
1
answer
472
views
Customizing a continuous legend in Google Earth Engine
I've created legends in ggplot, which look like this
With the code I've used in Google Earth Engine, this is what my legend looks like
Is there an easy way for me to edit my Google Earth Engine code ...
2
votes
1
answer
38
views
What do gradient stops' relative positions on colour ramp (%) signify when using QGIS heat map tool?
I'm using QGIS 3.18 heatmap tool to visualise the space use patterns of chimpanzees for my master's dissertation. I import each chimpanzees coordinates as a csv file and then change the layer's ...
0
votes
0
answers
25
views
QGIS Categorical Symbology: Expression IF to narrow categories, how to keep the overall color value?
Is there a way to maintain an overall color scheme within the symbology, even if categories are not selected?
Expression used for category symbology:
IF(("Descriptio"='LAYER1'),"...
3
votes
2
answers
280
views
Improving readability of black and white map
I need to produce a map using grayscale (QGIS), as this figure will be printed in black and white.
The map is made up of two layers:
one cointains the polygon geometry (land cover) - there are five ...
4
votes
1
answer
99
views
Absolute positions for Color Ramp gradient stops in heat map?
I'm using QGIS 3 and trying to create a heat map using GPS data acquired during various trips. I want the resulting heatmap to clearly show each location acquired at least once with some radius (...
1
vote
2
answers
63
views
Exporting color ramp as gradient to Illustrator/Indesign?
How do I export a gradient from QGIS to Illustrator and/ or indesign?
I know I can export a gradient on a layout, but is there also a way to export the gradient in a file format that illustrator can ...
1
vote
0
answers
63
views
Bad result when extract slope from HGT using GDAL
I'm trying to generate a slope tif from a HGT DEM file from SRTM.
I'm following this posts:
https://blog.mastermaps.com/2012/06/creating-hillshades-with-gdaldem.html
https://blog.mastermaps.com/2012/...
2
votes
1
answer
61
views
Making legend with singleband pseudocolor in QGIS
I have a continuous raster with values from around 0 to around 1. I used these parameters on the symbology tab:
When I head to the print layout and add a legend to my map, it displays like this (the ...
3
votes
1
answer
62
views
Homogeneously assigning values to raster color ramp using PyQGIS
I am working on QGIS 3.20 on a raster layer symbology using PyQGIS singlebandpseudocolor and min/max values from the target raster layer.
My own color ramp (from blue to red) does not spread ...
1
vote
0
answers
97
views
Convert a one-band GTIFF to PNG with adjusted color ramp using GDAL
I have a one-band fCover GTiff with values ranging between 0 to 0.4 and I would like to convert it to a png using a color ramp adapted to this tiff.
I already have a png from this tif but the color ...
0
votes
0
answers
26
views
Repeating DEM Color Ramp at Set Intervals using ArcMap
I have a Copernicus DEM file. I want to represent the elevation data with a color ramp, but instead of using a single color ramp to represent the entire range of values, I would like to repeat the ...
2
votes
0
answers
55
views
Creating contours based on values of ramp using QGIS
When creating contour on a raster using QGIS, is it possible to create them based on values specified in a colour ramp ?
I only see the option "Interval between contour lines".
3
votes
2
answers
96
views
Creating singleband pseudocolor ramp displaying colors based on values using QGIS
With QGIS desktop, I'm trying to create a ramp to a DEM using a singleband pseudocolor style. I have created a ramp with 15 different colours and values as well.
I can't find the option to apply those ...
2
votes
1
answer
201
views
Dynamically changing fillColor variables in leaflet
When I want to style a polygon using a property the traditional way is to assign a function that returns a style object. Within that object you assign the fillColor property to a getColor function
...
1
vote
1
answer
130
views
Assigning QgsCategorizedSymbolRenderer Spectral Ramp to MultiPolygon
I currently have a Python script that adds a MultiPolygon shapefile to my map within QGIS. Within QGIS, I can apply a categorized symbology render, with the color ramp 'Spectral' going from blue to ...
0
votes
1
answer
169
views
Specify start/stop within color ramp in QGIS
I'm trying to color values along buffered two-point lines with a color ramp in QGIS. The color ramp should represent the height of the lines, that varies linearly from start to end point. Now I cannot ...
2
votes
1
answer
119
views
Specify absolute center for bi-directional color ramp in QGIS?
How do I center the color ramp on '0' for a series of raster with positive and negative values?
The values are non-normally distributed.
There doesn't seem to be a an 'absolute' option, only relative (...
5
votes
1
answer
349
views
Colours for positive and negative values in a raster layer in QGIS
I've got a raster layer in QGIS 3.10. It's statistics are the following (hopefully understandable although in Spanish):
Valor mínimo: -0.36928805708885193
Valor máximo: 0.6040433645248413
Intervalo: 0....
1
vote
2
answers
289
views
Symbolizing raster layer with Python QGIS
I have a simple Python code that makes some calculations on rasters and give me some output rasters; I have also a style saved to color rasters based on pixel values.
Is there an option to load the ...
5
votes
3
answers
1k
views
Importing color ramp into QGIS 3.10
I would like to use a set of color ramps that are available at CPT-CITY but cannot find any way to import the downloaded files.
Note that I have found the Catalog: cpt-city option under the Create New ...
3
votes
0
answers
98
views
QGIS Singleband pseudocolor Continuous symbology
If you want to configure the symbology of a raster in QGIS using render type 'Singleband pseudocolor', you can choose out of 3 modes to generate values in the table (continuous, equal interval and ...
2
votes
3
answers
223
views
Filling polygon with 2 different colours representing 2 different sets of data using QGIS
I have a map of England where counties are polygons. I would like to fill them with 2 colours; each half corresponding to a specific set of data. Is there a way to do that?
I have included an example ...
2
votes
0
answers
45
views
How to deal with extreme values messing up Graduated colours? (ArcMap)
Is there an easy way to deal with extreme values messing up the Graduated colours of a map and skew the intervals in such a way that the colour ramp still makes visible sense?
I have a map displaying ...
1
vote
0
answers
42
views
Generate color ramp scale for imported base map in QGIS
I have imported a bathymetric layer, showing depth variation around an archipelago, which I'm using as a basemap. I would like to create a scale bar for it, showing max and min recorded depths.
Is it ...
3
votes
2
answers
289
views
Color map or SLD for Global Wind Atlas?
I am trying to use the Global Wind Atlas for a map about alternative energy:
https://globalwindatlas.info
I have downloaded the 14.5GB geotiff of global wind power density. QGIS reads it perfectly and ...
2
votes
1
answer
289
views
PyQGIS: How to apply a color ramp on the symbol's outline when using QgsCategorizedSymbolRenderer?
I have polygon layer containing overlapping features (service areas for several years) and I want their symbology to
use a color ramp in QgsCategorizedSymbolRenderer applied for each year
use a ...
1
vote
1
answer
2k
views
Adding continuous color ramp as legend using ArcMap [duplicate]
I am interested in adding a continuous color ramp legend with numerical labels like the following example to place on the layout view of arcmap:
I am quite new to arcMap so I'm not sure how I can do ...
2
votes
1
answer
158
views
Creating color ramp based on quantitative range
I have a set of polygons with correlation values. I would like to color each polygon based how strong their correlation value is where 0=lightest and 1=darkest.
This means if I have a set of three ...
1
vote
1
answer
242
views
How to combine color ramps for two different layers?
I have two layers that contains 5 polygons each with their own values. I would like to make a global color ramp that encompasses both layers. But I am not sure how I can do this. I have tried setting ...
0
votes
1
answer
86
views
Convert SHD files to CLR or more modern color ramp format
I have a legacy SHD file (from Arc/Info) that contain color ramp information that I would like to use to symbolize a raster layer in ArcGIS Pro. I have access to an Arc/Info installation and am able ...
3
votes
1
answer
305
views
GDAL ColorRamp for Float Based Values
I have a performed band calculation to calculate the NDVI grayscale. It has float based values on a single band, between 0.0 and 1.0 respectively. I am attempting to colorize the single band via ...
0
votes
1
answer
163
views
ArcGIS Javascript 4 API - Class breaks visualization in GeoJSONLayer
I'm trying to create a data-driven visualization using a GeoJSONLayer with ArcGIS Javascript 4.14 using "esri/renderers/smartMapping/creators/color" on a field named "Number" (specifically a Class ...
1
vote
1
answer
573
views
How can I make a heatmap of polygons using a graduated color scheme in QGIS?
I want to make a heat map of species biodiversity like the people did in the picture below. I can sort of get it to work by setting my layer with multiple polygon subclasses in the Layer styling panel ...
3
votes
0
answers
232
views
What is tilde (~) for in R? [closed]
I know this is an almost too simple question. But maybe there is a fast answer. Looking through some code to build a leaflet map in R I found that part of code:
mypal = colorNumeric(
palette = "...
9
votes
5
answers
2k
views
Apply a color ramp to vector layer using PyQGIS3
I'm trying to apply a color ramp to a QgsGraduatedSymbolRenderer in PyQGIS 3 (QGIS 3.8) using the following code:
Getting the QgsGradientColorRamp:
myStyle = QgsStyle().defaultStyle()
...
1
vote
2
answers
143
views
Apply external choropleths in QGIS 3
I have a large number of cloropeths stored in SLD and QML formats. QGis is unable to apply any of those, there is no option in the GUI for SLD, whereas it fails to apply QML files correctly.
Is there ...
3
votes
2
answers
521
views
QGIS Time manager Changing Color Polygon
I'm using QGIS 3.6.3. Noosa.
I have 10 polygons, each has a starting time and an end time. Getting Time Manager to run was no problem at all. However, there are two things I would like to add in my ...
2
votes
0
answers
322
views
Discrete color ramp in QGIS
This seems basic but I am new to QGIS and I can't find how to do it. I have three shape files each with the same attribute. Each shape file is imported into its own layer. Each shape file has ...
1
vote
1
answer
204
views
Proper way to share raster layer
In ArcGIS I have used to share a shapefile (for example beach areas) by sending a package that contains different files (.shp, .shx, .prj, .cpg, .dbf, .sbn, .xml) which contains all necessary ...
3
votes
6
answers
2k
views
Rule based coloured background for labeling in QGIS
I am a newbie working on QGIS 3.6 / Windows 10. I need to label a polygon layer which is categorised by colour.
(pls refer to attached pic as a graphical reference)
The labels need to have a ...
4
votes
1
answer
809
views
Making colored hillshade in QGIS?
Today I found that ArcGis can make colored hillshade like on piture below.
Here is link to their blog. I want to do that in QGIS. I know about layer coloring feature, and it's close for perfect, but ...
1
vote
0
answers
70
views
Setting color assignment order with ArcPy?
I have a shapefile feature class with the following attribute table:
I set the shapefile symbology using these lines:
lyr.symbology.valueField = "GRIDCODE"
lyr.symbology.addAllValues()
What i get ...
1
vote
1
answer
336
views
Apply color ramp to (QgsSingleSymbolRenderer) Simple marker
I'm using a QgsSingleSymbolRenderer to display various points and lines etc for a Line geometry.
I have a Single symbol symbology to display the last vertex as a: Line > Marker line > Marker &...
2
votes
1
answer
358
views
Making color text file using GDAL
I have an 8-bit greyscale image that I want to convert to a "heat map" based on data values (0-255), using a color ramp. I'm aware that gdaldem works with color-relief, so I used the ...
1
vote
0
answers
142
views
GeoServer: colormap for point data
How could I create a continuous colormap for point data in GeoServer?
I am planning to serve satellite measurements (METOP IASI) as point data in GeoServer 2.15 and want the point colors to represent ...