Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [style]

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

1
vote
0answers
17 views

Tooltips In PostGIS+GeoServer

I currently have a layer in GeoServer which consists of a number of PostGIS geometries. They are given color by a color column which is read in as part of the GeoServer style. I now need to add ...
1
vote
2answers
21 views

Problem SLD LineSymbolizer

How can I solve this problem with my SLD code for styles. When I do two scale ranges for a one lineSymbolizer to use another color or another thickness they appear twice in the legend of my viewer ...
2
votes
0answers
39 views

Automatically change symbol modified in style manager using QGIS3

I used Style Manager to add some symbols. Then I assigned them to a feature/layer. But if I change the Symbol / style (only via style editor), the layer will not change automatically. How can I ...
0
votes
0answers
11 views

Create an SLD style for contour curves [duplicate]

I have a database with controur curves generated by gdal_contour -f PostgreSQL -a elevation -nln contour_gdal -i 10 srtm/S23W043.hgt "PG:host=volcano-db user=johndoo password=guesswhat dbname=volcano"...
4
votes
0answers
39 views

Working with QGIS 3 with styles stored in spatialite database

I am working in QGIS 3.4 with a geopackage file (SQLite database) containing orography information (points, lines and polygons). In QGIS, I have defined by hand a style for every layer in geopackage (...
2
votes
0answers
26 views

Searching styles for indoor maps

I have data that represents Airport floor plans stored in GeoJSON format. Are there any standards, guidance, or good practices for Indoor Maps Styling? Any references or resources would be useful.
1
vote
1answer
41 views

How do I access stroke color and width of a simple marker with python in QGIS?

I'm trying to set up style properties of a vector layer using python. I was able to modify the marker properties but I cannot modify those of Simple Marker, like width or color. Here is my code : ...
0
votes
0answers
20 views

Node incorrect arrow styling [duplicate]

Is there any way to create arrow styling (but with one head only) so that it is consistent with vertex? I have tried all combinations of 'curved arrows' and 'repeat arrow on each segment' but they ...
0
votes
0answers
9 views

Keeping Styles when changing Legend entries

I have edited the styles for a categorised column that was originally set to random colour. Now I want to add another descriptor to the legend (from another column) using the Concatenate function, ...
3
votes
1answer
39 views

Using expressions to relate column to layer style in QGIS?

I have a QGIS project with N layers, each pointing to the same CSV file with columns "1_1, 2_1, ..., N_1". I would like each layer to refer to its respective column (Layer 1 -> column 1_1, and so on) ...
1
vote
1answer
33 views

Renderer and Rules in QGIS

This question is somewhat involved, so please bear with me. I am updating several plugins from QGIS 2 to 3. Most of them include accessing spatialite databases and creating layers from the various ...
2
votes
0answers
18 views

QGIS configuration: Import Style Libary

I would like to script QGIS to import a style library as part as a configuration for a new user. By Python commands, how do I instruct QGIS to do what a QGIS user can do with the "Import Items" ...
2
votes
0answers
20 views

Using icons sprite sheet in QGIS?

I am trying to convert a .yaml style file to QGIS style file. The yaml file has a sprite sheet for displaying icons. I did a little search on the Internet but couldn't find anything useful. Below ...
0
votes
0answers
23 views

GeoServer could not show the layer by SLD style

I am trying to show simple classification of semi real-time data by using PostgreSQL v.1.20, QGIS 3.4, and GeoServer 2.15.1 The idea is symbolized the field of 'Statusparkir' in table parkir_conn. ...
1
vote
2answers
53 views

Avoiding invisible points when using fixed style in QGIS?

We often need to load measured data using predefined color style to make it simple and easy to compare layers with each other. We have something like this: the problem is that sometimes there are ...
2
votes
1answer
46 views

GeoServer SLD applying two styles for one layer

How can I apply two styles (NamedStyle and UserStyle). When executing a query, only the top one is applied. How can I apply both styles? This sld_body: <?xml version="1.0" encoding="UTF-8"?>...
1
vote
2answers
110 views

OpenLayers: Keep text style label in visible polygon area

I have a feature with a polygon and a text attribute. The text attribute is displayed via a text-style above the polygons center. Nothing special and so far so good. The current behavior: I can move ...
0
votes
0answers
42 views

OpenLayers: feature.setStyle overwrites style of Select interaction

let's say I have a vector layer created from 2 features. The vector layer has style set to green color. There is a select interaction with a style set to red color (in other words, I want to click on ...
0
votes
0answers
18 views

Nested transformation in GeoServer styles

Is it possible to apply nested transformation in css-style (SLD never mind)? For example - I want to extract isolines from raster and then simplify it. Default option is not enough. What is the writh ...
1
vote
1answer
48 views

Load ASCII rasters in QGIS as singleband pseudocolor by default

I'm loading over 400 ASCII rasters into QGIS. They all get displayed as 'singleband grey' by default. Is there a way to change the style to 'singleband pseudocolor' by default? I also want to set the ...
1
vote
2answers
70 views

QGIS 3 how to customize line dash symbology

I want to keep the same line width but specify a much longer dash. The symbology controls in QGIS 3 have changed significantly from 2.X, so the many answers re: line symbology control for QGIS 2.X ...
2
votes
1answer
50 views

Copy the layer_styles table from one database to another?

I am trying to copy the layer_styles table to another database. A quick and painless process is preferred, to make the movement of the layer_styles tables easy to repeat in the future. I have tried ...
1
vote
0answers
39 views

Visualizing part of the attribute table in QGIS

I have a shapefile with a long attribute table made of different columns. Some columns have several levels (es. "Year": 2009, 2010, 2011,... or "Season": autumn, spring, summer, winter) and other ...
3
votes
1answer
67 views

Nested rules in QGIS 2.18

I work with QGIS 2.18. I have a polygon shapefile with two atrributes: id (unique for each polygon) and type. I visualize the shapefile using the "type" attribute, but I would like to add a nested ...
0
votes
0answers
30 views

QGIS Styles: How do I save rendering preferences in a style for future automation?

The following is in regard to a point layer in QGIS 3. Under Layer properties > Rendering > 'Refresh layer at interval (seconds)' I have set the interval to refresh every one second. The point ...
1
vote
2answers
74 views

QGIS 3.4, how to add .qml style to sink in processing

How can I import a .qml style from a file and apply it to a sink? In QGIS 2.18, I used something like that script: output=QgsVectorLayer ('Point?crs=EPSG:2154','output', 'memory') path_style='./...
0
votes
1answer
167 views

How to change the color of GeoJSON layer?

I want to show my road network in red color. How can I change this default color of the road network. Where should I attach style property? var roadNetwork = new L.LayerGroup(); $.getJSON("{% url '...
0
votes
1answer
28 views

GeoServer - Render style of points based on URLs saved in a field of the table using YSLD

I am new to styling in GeoServer and was wondering if there is a way to style points in a table based on the external URLs defined in one of the fields in that table. Let's say I have a table in ...
0
votes
0answers
11 views

Style data getting lost while importing KML using ogr2ogr

I am trying to import the KML data generated from Google Earth into PostGIS using gdal(ogr2ogr). <?xml version="1.0" encoding="UTF-8"?> <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="...
0
votes
2answers
27 views

Adding GeoJSON tile set to an existing map

I'm confused on how to add my GeoJSON tileset to an existing map built with a default style. Do I add the GeoJSON by ID or by style? Here is what I'm working with now.l Added .geojson to Tilesets as ...
1
vote
1answer
59 views

Maintaining Borders when Merging shapefiles?

I am trying to merge two layers of a map which includes the state and county levels. I was able to edit the borders to look how I want, but when I merge them I am struggling to keep the style ...
1
vote
0answers
19 views

vectortiles: change style of basemap instead of data

I'm using Mapbox-GL-Leaflet bindings on Leaflet to style my vector tiles. I'd now allow the user to switch a style using Leaflet control. The easiest way would be to use LayerControl for this. Since ...
0
votes
0answers
34 views

QGIS road style appears blocky, I want it to appear continuous. Is there a style merge function or something similar? [duplicate]

If you look closely and see the main roads, they break down into blocks [][][][]. I was wondering in QGIS how can I have them appear continuous and not blocked up as shown below. This is one file ...
1
vote
1answer
42 views

Missing values for Choropleth Map in QGIS

I am creating a Poverty Choropleth from a vector file using polygons to represent each county in the United States. I joined the poverty Excel file with a text file to convert the poverty column from ...
0
votes
1answer
25 views

GeoServer Point Labels not rendering until Scale = 1 : 545K

I have a series of points that I have reading an attribute to display a label. I don't see the labels on my map until Scale = 1 : 1M when SOME of them start to show up. But it's not until I hit Scale =...
2
votes
0answers
35 views

Save QGIS style created with espression string builder

I created a rule-based renderer with espression string builder, where I also use the function editor in Python. When I share the style (qml) file with others, I realized that the Python function I ...
4
votes
1answer
114 views

Styling rendered mbtiles in offline web-map service

I am building a digital cartography tool that needs to run completely offline. As a basis, I downloaded a .mbtiles-file corresponding to the area I want to survey and I am running the excellent ...
0
votes
1answer
30 views

How to create “wave styled” lines in geoserver SLD style?

I nees to stylize lines with a style like the image below: as seen in nautical charts. Already read the "geoserver cookbook" but can't found anything useful.
1
vote
1answer
40 views

How do I apply a unique colour for each row of data within a layer? (QGIS 2.18)

I was wondering how I would go about giving each row of data within a layer a unique colour, each row does have a unique ID but I can't figure out how to use this to achieve what I'm after without ...
1
vote
1answer
66 views

Create categorized rendered from styles in QGIS 3.4.3

How does this tool work? I've been trying to use it but it needs xml file and I dont know how to create one and running the tool without inputting a style database returns a single colorised map Is ...
2
votes
1answer
61 views

Reproject Layer without losing Layer Style

I'm trying to reproject several layers via batch process from one CRS to another. In QGIS 3.6 it seems to work but when I reproject all my layers the layer style gets lost. Every layer has a different ...
2
votes
1answer
50 views

Polygon fill outside of stroke in print composer

For some reason the polygon fill is outside of the stroke in QGIS print composer. My stroke width is set to 0.18 which I would like to keep constant. Is there anyway to fix so that the stroke goes on ...
1
vote
2answers
57 views

Openlayers squeezes placemarks after changing map projection

I have a map with OSM as a base layers and several layers on top of that. Two layers (red polygons with gray fill and black placemarks) are instances of TileLayer (source TileWMS -> geoserver). Both ...
1
vote
1answer
47 views

How to fix layer styling in OpenLayers 5?

I'm trying to draw a new layer every time user clicks on the map. My styling function can be seen below; function CatchmentLayerStyleFunction(feature) { var colors = ['rgba(255,0,0,0.5)', 'rgba(...
0
votes
2answers
34 views

GeoServer SLD subquery in WHERE clause

I have this SQL request select name from osm_places where name in (select capital_city from osm_places where capital_city != '') Is it possible to write such a request in < ogc:Filter> section? ...
1
vote
0answers
37 views

What style has been applied to a QGIS layer?

QGIS 3.4 - I have several different saved styles which I can assign to a particular layer depending on what I wish to emphasise at the time. For example, for a Roads layer I might want to show roads ...
2
votes
0answers
73 views

QGIS Rule-Based Labeling - Toggle child rules visibilty

So it works to add labels by dragging it to another label, like it does in styles. But if I try to hide this upper filter, the contained labels won't hide. Is this a bug, or is it not wanted, to set ...
2
votes
0answers
270 views

OpenLayers: change cursor upon hovering over feature

I want to change the mouse cursor to a pointer when the mouse is hovering over a feature. I currently have the following: this.map.on('pointermove', evt => { if (!evt.dragging) { this.map....
1
vote
1answer
199 views

Modifying style (line width/color) of vector layer in PyQGIS?

I'm currently updating some python code from QGIS 2.18 to QGIS 3.4 in 2.18 i used the following code : #First off I created a virtual layer using an sql query here vlayer = QgsVectorLayer( "?query=....
1
vote
1answer
71 views

In OpenLayers how do I prevent linestrings and polygons disappearing as I zoom out?

I can see how to do this using a feature style function with 2 styles (similar to the Custom Polygon Styles example). One would be the normal linestring/polygon one and used at high enough zooms. The ...