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
0 votes
1 answer
39 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
  • 101
0 votes
0 answers
10 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
37 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
63 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
198 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
  • 348
4 votes
2 answers
120 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.7k
0 votes
1 answer
66 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,290
1 vote
1 answer
106 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
49 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
25 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
90 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
49 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
56 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
0 votes
0 answers
22 views

Is it possible to make a True Color RGB with 2 VIS band and one IR band?

I want to create a True colour RGB. I am working with MODIS L1 images. For some circumstances, the only bands that I have available are: Band 1 (620 - 670) (VIS) Band 2 (841 - 876) (VIS) Band 22 ...
prj's user avatar
  • 1
0 votes
0 answers
35 views

How to change the nodata value in mosaic

When I add a raster to a mosaic dataset, the NoData value becomes black. How to change the NoData value back to transparent? I want to create a cache file and upload it to ArcGIS Online. If there's ...
Yitongjj's user avatar
  • 125
1 vote
0 answers
64 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
107 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
88 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
3 votes
1 answer
182 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
52 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
4 votes
3 answers
566 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
  • 519
7 votes
1 answer
126 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
100 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
  • 489
7 votes
3 answers
671 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
26 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
41 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
19 views

Codes for facecolor that match map colors in OrRD

I've created a map in OrRD using .plot in GeoPandas. However, I need to label my legend. I've tried using the .legend command and this seems to create a new legend. The code that I'm using is as ...
user219504's user avatar
0 votes
0 answers
100 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
  • 11
2 votes
2 answers
97 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,097
0 votes
0 answers
12 views

Negative Rrs on SeaWiFS file

I'm working with the following file "SEASTAR_SEAWIFS_GAC.20030716T122701.L2.OC.nc" Which can be accessed through here: OceanColor-Nasa-URL After accessing the Rrs I noticed that there seems ...
error404's user avatar
0 votes
0 answers
68 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
121 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
0 votes
0 answers
19 views

Cluster recognition to adjust aerial imagery colour

I have infrared imagery (as 1km tiles at 20m resolution) of the whole of England. However, the imagery was captured at different times so there are clear discontinuities in the colour between some ...
RobShaw_UK's user avatar
1 vote
1 answer
481 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
340 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,237
2 votes
1 answer
266 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,284
5 votes
1 answer
364 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
572 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
45 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 vote
0 answers
143 views

Can't set label background nor callouts color to the the variable @symbol_color

Working with QGIS 3.22.8 you can set a data defined override for label color to match that of the associated feature using the variable @symbol_color, but it does not work for label background fill/...
user209491's user avatar
1 vote
1 answer
57 views

OpenLayers - how to create 2 different colors from one color?

So I am using asArray() to create rgba color from color provided as a string. I noticed a very strange behaviour when I create two colors from same orginal string. It seems like they both reference ...
ablaszkiewicz1's user avatar
3 votes
1 answer
488 views

QGIS - list with clear name colours

One may use data defined override in order to set symbol colours. The expression editor says, the expected format would be string [r,g,b,a] as int 0-255 or #AARRGGBB as hex or color as color's name ...
Erik's user avatar
  • 15.7k
1 vote
1 answer
431 views

Extract Raster Value around point on QGIS

I'm using QGIS and I'm triyng to extract raster values around some points that were created from a .csv file. I already could extract the raster values in each point but each point represents an ...
João Morais's user avatar
0 votes
0 answers
17 views

Automatically assigned marker colors for markers within a group too similar, anyway to get unique colors assigned?

Automatically assigned marker colors for markers within a group are too similar, is there anyway to get unique colors assigned? I could go through the symbology of each marker and manually change them ...
John Son's user avatar
1 vote
1 answer
381 views

Changing color of all layers in geopackage at once in QGIS

For a project I am working in QGIS all the layers within a geopackage need to be the same color. Is there a way I can change the color of all the layers to same color simultaneously or do I need to ...
Ian Moffit's user avatar
2 votes
1 answer
455 views

Set linestring color by property value in PyQGIS

I have a GeoJSON layer consisting of some LineStrings. Each feature has a color property: { "type": "featureCollection", "features": [ { "...
Dusan's user avatar
  • 145
1 vote
1 answer
76 views

Extract Corine Codes from QGIS to an .csv

I'm doing a project and I need to extract the Corine Codes to a csv accordingly to a set of points. I have already mapped these points on QGIS in a .csv format (with latitude and longitude) and I ...
João Morais's user avatar
1 vote
1 answer
304 views

Using QGIS default Random Color Ramp in Categorized symbology using PyQGIS

Based on this code below, is it possible to use Random Color option in Symbology? layer = iface.activeLayer() field_name = 'zona_manejo' field_index = layer.fields().indexFromName(field_name) ...
geofausto's user avatar
  • 703
4 votes
1 answer
352 views

Removing black lines in between shapes in QGIS

In QGIS 3.22.7 I have a large dataset consisting of small square geometries (for reproducibility, a sample of this data can be downloaded from here; the total file size is 9 KB for all of them). When ...
s_o_c_account's user avatar
3 votes
1 answer
732 views

Including legend data in attribute table in QGIS

What I want is a legend that also includes a table of data related to each legend item. The obvious way I see to do this is to build an attribute table that includes a column with legend info. But how ...
Jonathan's user avatar

1
2 3 4 5
10