Skip to main content

Questions tagged [color]

The property possessed by an object of producing different sensations on the eye as a result of the way it reflects or emits light

Filter by
Sorted by
Tagged with
1 vote
1 answer
49 views

Coloring a QGIS Map with an RGB Column, and Creating a Legend that follows the same color

I'm working on a project in QGIS where I need to color a map using RGB values from a specific column in my dataset (RGB). However, I also need to create a legend that shows the units with their actual ...
Cicada73's user avatar
1 vote
0 answers
27 views

Exporting polygon layer to KML retain same color

There are two situations, first, I export layers which has yellow polygon contour to KML, but it saved as red (ff0000ff). Second, I combine two layers which is made by red polygon and yellow polygon ...
Leon's user avatar
  • 31
0 votes
1 answer
37 views

Make a grayscale tif into a 4-band RGBA tif using gdal

I have a grayscale raster which returns the following information when I run gdalinfo on it Metadata: AREA_OR_POINT=Area Image Structure Metadata: INTERLEAVE=BAND Corner Coordinates: Upper Left ( ...
guest_231213's user avatar
0 votes
1 answer
49 views

Assign a specific color to the results in the QGIS graphical modeler

During the photovoltaic analysis using QGIS and the graphical modeler, the results are saved as shapefiles in a specific folder. It is possible to assign a specific color to each shapefile within the ...
BAE_23's user avatar
  • 677
0 votes
1 answer
86 views

Applying scale factor to raster with gdalwarp

I've been trying to use gdalwarp with the -tr and -te parameters to apply a scale factor to 'stretch' a raster. The result is a raster with correct extents and pixel size, but no RGB data. I've also ...
Summitbri's user avatar
1 vote
1 answer
32 views

Apply symbol from one category to other categories and retain color already set

Is there a way to apply or change a symbol of one category to other categories without changing the already set color in the QGIS symbology window? After setting up a symbol, I can change the color by ...
basto's user avatar
  • 162
0 votes
1 answer
27 views

Change color when I finish to take notes in every point every week

During the collection data on field (ecology and phenology data) on different days I would like to change the color of symbol when I finish to take notes in every point in a concret day. How it would ...
Mery13484's user avatar
0 votes
0 answers
17 views

Is there a way to change the color of the black pixels generated by georeferencing? [duplicate]

When I georeference, QGIS creates black pixels to fill the empty space caused by rotation. As a background, so to speak. How can I set it to be white pixels instead of black? This is the *.tif i get ...
user240107's user avatar
0 votes
0 answers
147 views

When exporting a layout in ArcGIS Pro, the colours show as grey when they should not be. How do I fix this?

I have a layout in ArcGIS Pro which shows a Hot Spot Analysis Comparison output. When exporting the layout, the colours on the map do not show - they appear as grey instead. How do I rectify this ...
user avatar
3 votes
0 answers
58 views

Colorizing polygon layer with average within raster colour pixel

Further to the question Assigning raster layer colors to polygons in QGIS, I have used the expression proposed by @Babel solution with a positive result. Is it possible to use a similar expression for ...
Nil Aspinall's user avatar
2 votes
1 answer
254 views

Transparent but outlined layer in Google Earth Engine

My original code creates red boxes over my study area: Map.addLayer(geometry, {color: 'FF0000'}); I would like for these boxes to have a transparent fill and clear borders. I have tried this based on ...
Macall Hock's user avatar
0 votes
0 answers
46 views

ArcGIS styles and colours to QGIS

I am making geologic maps in QGIS and I have downloaded the government geology maps, they provide the styles they use as well in ArcGIS .lyr formatting. When I try to bring them in it doesn't work. I'...
Talia's user avatar
  • 1
2 votes
1 answer
102 views

Recolour all pixels of a specific colour in an image overlay in Leaflet

I have an image approximately 8000x4000 pixels which I want to plot using leaflet. This image is broken up into blobs of unique colour, each representing a region. Here is an example of part of the ...
Joshua Kidd's user avatar
2 votes
1 answer
93 views

Create a rule for symbology of a raster in QGIS

I want to create a rule for applying a particular symbology to a raster in QGIS. I do not know if this is possible. In detail, I would like to classify (as discrete) values of a raster1 based on its ...
AUS85's user avatar
  • 446
2 votes
1 answer
99 views

Override fill colour not changing top-level symbol

I have a shapefile with the maps of the world in different historical periods (CShapes 2.0) and I need to map each country colour to a list to ensure consistency. On QGIS, I created a table with the ...
Xain's user avatar
  • 29
3 votes
1 answer
144 views

Change attribute font color in QGIS form

In QGIS 3.22 use the drag and drop designer to set up form. The form are used for data entry but also with the Identify Features tool or with the attribute table form view to review data as form let ...
J.R's user avatar
  • 16.6k
1 vote
1 answer
729 views

Setting the background color when plotting in GeoPandas

I am wondering if there is an easy way in GeoPandas to change the background color of a plotted map. Here is my code; I can't figure out how to change the white background color to any other color. ...
sMartines's user avatar
  • 121
1 vote
2 answers
176 views

Converting HSV raster to RGB in R

Problem: I want to convert a Hue, Saturation, Value (HSV) raster to the RGB color space. I have already successfully converted from RGB to HSV, but I'm having trouble with the reverse. I'm using the ...
NateDogg123's user avatar
1 vote
1 answer
92 views

Uploading transit data to QGIS

I'm in QGIS and I've got a map of all the bus routes. The only problem is that they are all one layer, and I can't color each route individually. There isn't a property (as far as I can tell) that can ...
Gavy's user avatar
  • 11
1 vote
1 answer
95 views

Making world map with terrain colours in QGIS

In QGIS I would like to create a world map that has terrain colours (e.g., deserts or vegetation), as in the attached map (Gehring et al. 2022), particularly for the African continent. How should I ...
Andrea Fontana's user avatar
4 votes
1 answer
332 views

Is there a way, in QGIS, with an expression, to convert a color to hexadecimal value?

Is there a way, in QGIS, with an expression, to convert a color to hexadecimal value? Or eventually to convert an integer to hexadecimal like to_hex(255) → FF
Charles's user avatar
  • 370
4 votes
2 answers
193 views

Loading multiband raster layer with pseudocolor style (not RGB) using PyQGIS

I am loading a raster file with many bands to my QGIS project. layer = self.iface.addRasterLayer(raster_file_path, baseName="foo") By default, QGIS chooses to set its symbology to "...
bugmenot123's user avatar
  • 10.9k
0 votes
1 answer
142 views

Changing Arcpy Message-Warning-Error Text Colors

I recently came across a post about changing "the default error color in python" and was interested in doing something similar with Arcpy's AddMessage, AddWarning, and/or AddError functions. ...
Binx's user avatar
  • 1,380
1 vote
1 answer
143 views

Changing color and font for cell in QgsLayoutItemTextTable object using PyQGIS

I am in the process of creating, with PyQGIS, a PDF file. First I set up the following objects: A value project = QgsProject.instance() A layoutManager object "manager" A QgsPrintLayout ...
theonewhodidnotknow's user avatar
2 votes
0 answers
84 views

QGIS coloring of label background based on variable does not work

I want to change the background color of particular labels from my layer to mark them. Therefore I use a CASE structure inside the expression editor, that corresponds to this filling color. See first ...
Peter's user avatar
  • 21
0 votes
0 answers
33 views

Colouring of a pie chart

How can I automatically insert different colors for different attributes in creating pie chart in QGIS. I have multiple attributes and coloring them differently takes alot of time. Is there way that I ...
Viliami's user avatar
1 vote
0 answers
124 views

QGIS changing layer colors [closed]

I'm having a problem with several QGIS projects. I style and format the vector layers, save, and when I reopen the project another day the formats are changed. All the vector layers appearing in blue ...
Ana's user avatar
  • 19
1 vote
0 answers
59 views

QGIS 3.32 and printing colored text

I spent time looking for a solution but found none. Most were dated from years ago. If I am in QGIS using the Python console and Python editor how then do I get text to print in various colors or with ...
Carl Huxohl's user avatar
1 vote
1 answer
127 views

How to convert HSL to RGB in Earth Engine (Python)?

I have 3 Images representing HSL (Hue, Saturation, Lightness) attributes of a single image. I would like to display them as a single RGB image, meaning I would like to create 3 separate bands with R, ...
SteveAKopias's user avatar
1 vote
0 answers
103 views

QGIS legend different colors

I want to edit my legend in QGIS 3.28.6 manually (see picture). Is it possible to output the individual legend elements in different colors? For example OK Sand should be green and Grundwasser should ...
Felix's user avatar
  • 31
2 votes
1 answer
285 views

QGIS: Changing labeling color within label

I have a point layer in QGIS that looks like the following picture: Content of the Dicke Auf field : BS 4/ DPM 4 Ansatzhöhe: 275.96 UK Auffüllung: 274.71 Dicke Auffüllung: 1.3 OK Sand: 274.62 ...
Felix's user avatar
  • 31
2 votes
1 answer
147 views

Error in RGB to HSV conversion in R: "cannot use this formula, probably because it is not vectorized"

I'm trying to convert a bunch of small rgb rasters (3 channels) into hsv rasters using the raster package in R, similar to the suggestion here: QGIS - RGB multiband to HSB(HSV?) multiband It has ...
Geos's user avatar
  • 21
4 votes
1 answer
357 views

How to apply the Four Colour theorem on GeoJSON feature collection with Leaflet

Imagine you have a GeoJSON feature collection of adjacent colored polygons presented in a Leaflet map; in the present case the parishes of the city of Lisbon fetch('https://geoapi.pt/municipio/lisboa/...
João Pimentel Ferreira's user avatar
1 vote
0 answers
68 views

Select a feature and show all its neighbor with different color

I want to select a feature and show itself in specific color, at the same time I want to show all its neighbor in another color, by this way I can check the neighbor relation clearly. My code is as ...
Wenhua Kong's user avatar
5 votes
3 answers
785 views

Changing polygon color depending on visibility of background map in QGIS

I have a map with borders and different "background maps", e.g. OpenStreetMap and Google Satellite. When the Google Satellite Map is in the background, the borders are the best visible in ...
Marek's user avatar
  • 537
7 votes
1 answer
198 views

pyQGIS Applying pseudo color ramp to an image destroyes the symbology in layers panel

I use the following code to apply pseudo color into a NDVI raster. rlayer =layer = iface.activeLayer() #stats = rlayer.dataProvider().bandStatistics(1, QgsRasterBandStats.Range) #min = stats....
Lazikas's user avatar
  • 73
1 vote
0 answers
153 views

Unify the colors of a raster - from satellite imagery

I'm performing analyses based on pixel values on a Raster, which is a satellite image from 2014 (.tif format). This satellite image is exported from Google Earth and georeferenced in QGIS. The ...
Giene's user avatar
  • 763
7 votes
3 answers
2k views

Styling contours by colour and by line thickness in QGIS

I commonly deal with new areas where I would like to quickly visualize contours. My aim is to be able to apply a style that contains a color ramp from the lowest to highest values but also to show all ...
Leigh Bettenay's user avatar
0 votes
0 answers
27 views

Inherit feature color from another feature automatically with ArcMap

I'm working on a "Ftth" project and there are many repetitive tasks. So, I have to connect the house to the closure through a wire. Whenever I give a color to each closure, the link and the ...
Fahd Jerbi's user avatar
0 votes
0 answers
46 views

Bug with QGIS colors and Ubuntu

I'm having a problem with QGIS colors. The first thing I do is select a layer by double clicking and then another click on "single fill". The problem is about the 7 bars on the right, whose ...
Javier's user avatar
  • 1
0 votes
0 answers
134 views

QGIS raster fill color change

How I can change the color of a Raster fill in QGIS? I need to change it from black original to a RGB green code.
michele's user avatar
  • 19
2 votes
2 answers
113 views

Open QgsColorDialog and modify feature in @qgsfunction from expressions

Is it possible to open a QDialog (here a QgsColorDialog) and modify layer's feature when executing a QgsExpression with a qgsfunction such as : @qgsfunction(args="auto") def label_annotation(...
dmjf08's user avatar
  • 1,293
0 votes
0 answers
88 views

Why is my code changing the labeling for my legend?

By default, the legend that is created from a layout includes a label with the field name. However, when I run my Python script to change the symbology of a layer, the label is changed to include the ...
Bojan Milinic's user avatar
1 vote
0 answers
165 views

Color a tile while creating in PostGIS

I am trying to create a tile using PostGIS. Although I am able to create a tile but facing difficulty when coloring it. I want to color the tile means I want to color the geometry with different ...
data en's user avatar
  • 145
1 vote
1 answer
700 views

Converting Landsat 8 RGB bands to 8-bit colors

I generated composite images of Landsat 8 SR images using this Google Earth Engine collection, and for a machine learning project now I need to transform the RGB bands of these images to 8-bit colors. ...
Nicolas Suarez's user avatar
3 votes
0 answers
487 views

Expression to get symbol color from categorized layer in QGIS

I want to get the color of a categorized symbol to be used as background color of a textframe in the printcomposer. The color has to change automaticly when the feature-name changes. Is there an ...
PieterB's user avatar
  • 5,287
2 votes
1 answer
392 views

Loading color map from TXT file into raster layer using PyQGIS

I need to configure a pseudocolour symbology of a raster image using a colour map file in txt format using PyQGIS, how can I do it, and what class allows me to access this configuration? This can be ...
Luis Perez's user avatar
  • 1,294
5 votes
1 answer
659 views

Getting color of feature using PyQGIS

QGIS offers the @symbol_color-variable in some places. But it is missing at various places of data-defined-override/field-calculator dialogues. I tried to create a own function, but it returns wrong, ...
user191847's user avatar
0 votes
1 answer
822 views

Color-code a Leaflet GeoJSON polyline based on additional values [closed]

I almost repeated Color-code a Leaflet polyline based on additional values, e.g. altitude, speed, because after more than eight years, I have not found a satisfactory answer. I need a gradien color of ...
Vladimir Kalachikhin's user avatar
1 vote
0 answers
50 views

Fill in Basic Colours in Qgis

I'm trying to fill in a TIN interpolation to be a full 1:2 rectangle. When the interpolation is finished, the areas with no land cut off in the corner leaving it transparent, which causes issues for ...
Matthew's user avatar
  • 11

1
2 3 4 5
10