Questions tagged [style]

An organized collection of predefined colors, symbols, properties of symbols, and map elements.

Filter by
Sorted by
Tagged with
0
votes
0answers
9 views

Labeling only a part of the attribute value of a string column in GeoServer

I am looking for a solution for labeling points based on an string attribute value in my table in a way that it shows only a portion of the attribute value in GeoServer. I am using ysld (sld) styling. ...
3
votes
1answer
45 views

Defining a cell style of an attribute table in a layout using PyQGIS 3

I have an attribute table in my layout, defined as follow : layout = QgsPrintLayout(project) layout.initializeDefaults() QgsProject.instance().layoutManager().addLayout(layout) pdf = QgsProject....
2
votes
3answers
50 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
1answer
46 views

Stopping OpenLayers Text Icon overlapping on icons

I created a style with pin SVG and text (ID of my feature) on top, but when I zoom out, the text overlaps other pins as well. Below is the code of style style: function (feature) { return [new ol....
1
vote
0answers
17 views

MapBox Studio: Styling Water in template dataset

I am using MapBox Studio with their own template dataset called Outdoors. I discovered that categories of waterways can be addressed by classes such as river, stream, stream_intermittent etc. This ...
9
votes
1answer
92 views

Categorising point layer twice by size and form in QGIS

I have data points from a CSV-file that I opened in QGIS. The points illustrate different power plants of solar, wind, geothermal, coal, oil, etc with different capacities within each class. I already ...
0
votes
0answers
25 views

layer_styles table not available in QGIS 3.16, works in QGIS 3.10

Layer styles stored in a postgres database (postgres server version 9.5.22) are not available in QGIS 3.16 (Message from Database Styles Manager: No styles found in the database). Everything works ...
0
votes
1answer
29 views

Changing polygon color with external link GeoJSON file

I've done various ways to change the polygon color with external links, but only one color can be displayed, so I need help with changing and displaying more than one polygon color in the source code ...
1
vote
0answers
43 views

Moving/copying Representation Marker to Marker Symbol using ArcMap

I have a custom.style file with the marker1 Representation Marker. Is there any way to move/copy marker1 to Marker Symbols? (I'm using ArcGIS 10.5.1)
0
votes
1answer
58 views

Converting ArcMap Cartographic Representations to ArcGIS Pro and exporting stylx

Here I have a Feature Class named ContactsAndFaults, which I have imported into ArcGIS Pro from a File Geodatabase (you can find this same geodatabase here if you want to reproduce this analysis). The ...
0
votes
1answer
41 views

Using layer variable to address attribute column for styling?

I would like to use a (new) userdefined layer variable, here "style_variable" (picture 1), to address a column in the attribute table (picture 2). The layer style a little complex (picture 3)...
1
vote
1answer
16 views

Giving points in the same delimited text layer multiple colours-while using point displacement

I want to give multiple colours to points within the same delimited text layer, while using point displacement, looking for advice on how best to do this. The data are showing occurrences of a variety ...
1
vote
1answer
35 views

Different styles of area in same shape layer

I'm using QGIS 3.16. I have the following problems: One of my shape-layer has several areas. Now I want to give every area a different style/colour. I already found the function to give all areas the ...
0
votes
1answer
26 views

Way to export and import TIFF file symbols

I've read several reference to import saved 'style reference' for shapefile but couldn't find same works for TIFF files (or any image files). I'm user of ArcGIS 10.3.1 and now I have TIFF files that ...
1
vote
0answers
49 views

Change size, color for nested styles consisting of different symbol layers created with geometry generator in QGIS

In QGIS 3.16, I have a nested linestyle that consists of different symbol layers. I am able to change the width, color and other settings manually for each symbol layer. However, I want to be able to ...
0
votes
0answers
29 views

Editing areas in shapefile + scalebar

I´m using Qgis Version 3.16 I have the following problems: One of my layer has several areas. Now I want to give every area a different style. I already found the function to give all areas the same ...
0
votes
0answers
45 views

Converting ArcGIS Pro stylx to QGIS

I have an ArcGIS Pro (.stylx) style I wish to convert to use in QGIS 3.10. Is there a way to do this? SLYR only allows ArcGIS (.style) and not (.stylx) from what I can see.
0
votes
0answers
14 views

Showing legend with categories using a hexadecimal color scheme

I have a polyline vector layer with in one column the route number (of the bus) and in another the hexadecimal color (eg 'FF88AA'). Preview: I know how to style the file but only by using the single ...
0
votes
1answer
40 views

Color points based on values in OpenLayers 6

I'm trying to color points based on a value called 'ML_ABSOLUTE_VALUE', in a GeoJSON dataset but I can't get it to work. Here is what I have set up so far: Create the GeoJSON data source: const ...
3
votes
0answers
27 views

Adjusting buffer between arrows and both begin and end points separately [duplicate]

I'm currently making a map of the Netherlands in which the flow of student migrations upon or shortly after their graduation is depicted. Here's what I've made so far: I'm getting a bit more pleased ...
2
votes
1answer
17 views

Paste style to virtual layer from another layer

My virtual layer disappears when I paste a style from another layer. I've done this process before and it worked fine, so I'm not sure what the problem is now. Here are my steps: create virtual layer ...
0
votes
0answers
29 views

Updating layer style with ArcPy for ArcMap

I have written a small script. I want to add a layer to the existing .mxd, change the style and export as pdf My code import arcpy mxd = arcpy.mapping.MapDocument(r"C:\Untitled.mxd") df = ...
1
vote
0answers
40 views

Importing colour map from .text file which will then correspond to geologic shapefile on QGIS 3.10.6

I have been searching for this solution for over a week now and have tried many of the suggested solutions online but so far northing has worked. I have a Geology vector layer and a corresponding RGB ...
0
votes
0answers
25 views

Styling lines depending on several attributes [duplicate]

I have a line shape file which I made from DWG file. I have several fields which I want to use for styling. I have colour, width and type. I need to specify colour, width and type independantly. For ...
2
votes
3answers
88 views

Categorized symbology for polygons using QGIS

In QGIS (using ver. 3.16) , you can use the categorized symbology renderer for polygons to assign a certain color to polygons with the same attribute value. There is also the Topological coloring ...
6
votes
2answers
179 views

Multicolor inside borders for polygons in QGIS 3

I was reading a report and I came across a figure that I quite liked the look of. I found that the author uses a black border for all of their polygons coupled with inside colored lines which just hug ...
0
votes
0answers
8 views

In Tilemill, is there a way to prevent overlapping labels or “hide” labels very near eachother aside from “text-allow-overlap:false”?

I want to style in Tilemill some labels. In the original shapefill there are some points which are near to eachother, which causes in Tilemill to make labels also very near eachother. I was wondering ...
0
votes
0answers
28 views

Import ArcGIS Pro Map styles to QGIS

I will have to switch from ArcGIS Pro to QGIS because my uni license runs out soon. Do you know how I can import my map styles from ArcGIS Pro to a QGIS project? I only know how to do it in ArcMap ...
1
vote
0answers
24 views

Attribute based styling in openlayers 6 cluster layer

I was looking around for information, but i don't really understant the method. I wouldn't like to add more layers with the same name, because of the layerswitcher. I would like to switch to attribute ...
0
votes
1answer
63 views

How to stylize polygons sharing the same attributes to represent a common outline

In QGIS 3.14.16, I want to outline multiple polygons which share same attribute value. Styling the layer with the same attribute value bring the following result: The style I wish to have is: I ...
1
vote
2answers
38 views

Layer Join and Styling Trouble because of Field Types

I am trying to join a .csv-file with als rates and zip3 values to a shapefile with zip3 values and then color the map based on the als rates. This seems very simple and I have done similar maps before ...
3
votes
1answer
70 views

Custom QGIS linestyle expression function won't work with MultiLineStrings

After my experiences with a custom Python linestyle expression function (Wavy Edge on polygon in QGIS using geometry generators) I modified the code to support Polygons with holes, MultiPolygons and ...
3
votes
1answer
123 views

QGIS: Map theme with layer visibility AND style, does it exist?

I'm using QGIS to do urban visualisation on large scale territory, I'm used to working with Archicad which has an amazing option called "Graphic Overrides", it's a way to create different ...
1
vote
1answer
59 views

Changing the color of every entity of GeoJSON layer in OpenLayers 6.4.3

I would like to change the color of every entity of my GeoJSON, like in the picture. For now I can just change all the features with the same color. Here is my code: const provinceGeoJSON = new ol....
1
vote
1answer
32 views

Setting proper rendering order because offset causes odd corners for lines

I used offset on these lines that are on top of each other. How can I make it so the red line is not interrupted by the orange? I can put the orange under the red, but there is another corner where ...
3
votes
4answers
132 views

Applying style change to other layers using .qml-file in QGIS

I have a similar question as @drnextgis in this post: I made a change to the symbol colour of one value out of four categorised values and aim to automatically apply it to other layers in the same ...
2
votes
0answers
44 views

Prevent labeling outside of a an inverted styled polygon

I have this situation: All layers are filtered to the region except the layer "bahnstrecken" who is missing that attribute. Instead I use the polygon "bundeslaender" (inverted ...
0
votes
0answers
38 views

Importing layer style to new layer

Running the code through Console Phyton in QGIS Desktop: copy_renderer_layer = QgsProject.instance().mapLayersByName("map_layer_linestring")[0] paste_renderer_layer = QgsVectorLayer("...
0
votes
1answer
45 views

OS VectorMap Local not styling RailCLine and RoadCLine

I am running QGIS 3.14.1 (64 bit version) on a Windows 10 PC. I have downloaded two 5km tiles of the VectorMap Local (3 July version) in Geopackage format. My Parish Council holds the relevant OS ...
1
vote
0answers
20 views

Restrict Layer Style getting saved in QGIS project table in PostgreSQL

As postgres admin , I have created a layer and styled the same in QGIS AND saved the style in postgres. When another user uses the same project(user have been given the grant to access the project) ...
2
votes
1answer
122 views

Applying JSON style from URL to Vector in OpenLayers

Can the style be a URL in OpenLayers? var layer_offline = new ol.layer.VectorTile({ declutter: true, source: new ol.source.VectorTile({ format: new ol.format.MVT(), url: 'http://...
2
votes
0answers
18 views

Automatically setting standard Raster style when loading raster sets in QGIS?

For my project I work with a lot of raster data sets and when loading the data into QGIS they render with a white background which I would like to see transparent (no-data). I also worked before with ...
1
vote
0answers
54 views

Applying specific styling to GeoJSON layer in Leaflet.js

I am new to Leaflet.js and I would like to apply specific styling to the Geojson layer> This is my code so far: # geojson data var geojson = { "type": "FeatureCollection", &...
4
votes
1answer
159 views

QGIS town label density

I'm composing a map of Big Island, Hawaii in QGIS 3.14.0 and would like to display major roads and cities + towns. Therefore I downloaded necessary information via QuickOSM. However, as many towns lie ...
0
votes
0answers
14 views

Is there a quick way to display a proposed route (that's a vector, line type) in QGIS but only display the first 100km of a route

I have a vector line that is a proposed route between two cities. I want to make a quick map (i.e. real time in a meeting) that shows the proposed route covered on a given day, ideally I was looking ...
0
votes
1answer
73 views

OGR_STYLE BRUSH not applied

I have a shapefile that contains multiple polygons. I want to convert it to a kml but also keep the face color. From other answers here, I have found that I can add a field called OGR_STYLE to the ...
0
votes
0answers
55 views

Can style be saved with Qpackage and how can the new .qgs use the new .shp locations automatically?

I've used the Qpackage plugin to move all the layers of a project to a new location. At first my try was to move the source files, but it seems to have made new files, which is no problem. But now it ...
3
votes
2answers
97 views

How to have an infinite colour ramp for a choropleth, in QGIS

I have a dataset of land values which, for the full range, is say 125 to 250,000,000, i.e for a whole state. For the user, they will only be seeing on the map canvas, a small subset of this at any one ...
0
votes
0answers
40 views

Styling 1 polygon with multiple colors in set ratios - Leaflet

I want to color my polygon with multiple colors basis user defined ratio in Leaflet. So lets consider an example: There is a rectangle (polygon) and the defined ratio is 60:40. Then in this case the ...
1
vote
0answers
37 views

Dynamic Rendering of tiles as per custom selected options

Cartida is one of the best Customize map providers. https://www.cartida.com/global/map/ On Cartida, you can choose, whatever color of roads you want, whatever building color you want and so many ...

1
2 3 4 5
22