New answers tagged

0

This is done in the Leaflet code by using the cursor CSS property, see https://github.com/Leaflet/Leaflet/blob/master/dist/leaflet.css#L193


0

I export the SLD from QGIS 2.2 and I am running Geoserver 2.6. For the export from QGIS to work, I change the se:SvgParameter into sld:CssParameter. Generally using SDL 1.0 instead of 1.1.0 prove to simplify some of the issues of transferring the symbology form QGIS to Geoserver in my case. But this will depend on the versions of the software you have. ...


1

look closely, and you'll see the problem, hiding in plain sight... <!--Parser Error: syntax error, unexpected COLUMN_REF, expecting $end - Expression was: Land use 2 = 'Residential buldings'--> I suspect you'll need to edit the SLD to rename the field name, e.g. "land_use_2". How you do this depends on the format you're importing from (shapefile, ...


6

Simplest way is to style the line. Add a new symbol layer to your line and change the 'Symbol Layer Type' to marker line. Select 'Marker' in the style tree and select a triangle as your default marker symbol. I believe 'triangle 2' is your best bet. Accept these changes and all your lines will now have arrow showing the direction of the line. You can mess ...


1

Go into Studio > click on a layer > Select Data. You can see on the screenshot below that you can set zoom min/max per layer.


0

Might not be fully automatic but you could run a function in your Python Console which loads a style file from a specified folder with the same name as your raster. Insert the following code into the console: def run(name): # Change path accordingly style_path = 'C:/Users/You/Desktop/Style_Folder/' + name + '.qml' for layer in ...


2

Your styles are going to be stored in a .style file in a directory similar to this: C:\Users\<username>\AppData\Roaming\ESRI\Desktop10.X\ArcMap So what you will want to do is go there and find your <username>.style file and copy it somewhere like your desktop. Then, after you upgrade you can replace the style file in the newly created ...


1

TLDR; in general use the org.geotools imports if you are working solely with GeoTools code. As is documented in the OpenGIS FAQ GeoTools once upon a time had idealistic developers who thought the world would be a better place if the "Java GIS Tribe" could share code more easily. So they built a set of interfaces that people implementing various OGC and ISO ...


3

According to the OSGeo.org forum, the styles are saved in your .qgis2 directory as an sqlite db file: .qgis2/symbology-ng-style.db Initially it was saved as an .xml file but this is no longer the case.


3

Set your border color to the same color as your fill. With QGIS 2.14 if you are creating a categorized/graduated symbology you can even set up a data defined override of: @symbol_color Which will automatically assign the same color to the border as the fill. You can set this up as a data defined override:


0

If you want to style two unrelated things then you need two styles - one for highways and one for admin lines. Otherwise you will end up with complex SLDs with many rules that can never be true (i.e. 'highway' = 'primary' && admin_level = 2).


1

Question can be closed, I detected the problem myself, registered that somewhere in my code i assigned new numerical values to the raster cells that are identical with the corine codes. The original data and the qml however are based on values fron 1 to 45 instead of the land cover class codes such as 111, 112... I just had to change the numbers in the qml ...


1

I cannot reproduce your issue here, loading the .qml from the page you linked styles the 250m raster as expected:


3

This is a bit of python that does the trick. That layer-renderer-symbol-symbollayer thing is a bit weird at first sight, but ok. from PyQt4.QtGui import QColor r = iface.activeLayer().rendererV2() for s in r.symbols(): s.symbolLayers()[0].setOutlineColor(QColor('#ffff00')) iface.mapCanvas().refresh() Just tested this on the console and it works for ...


5

Select your symbols by either clicking them individually whilst holding Ctrl or click the uppermost symbol, hold Shift and click the last symbol you want selected. Then go to Symbol > Change: Then select your fill and set the border style: When you click OK, the selected symbols should be updated with the new border properties: EDIT: To keep ...


0

I'm not familiar with that method, however you can use rule based styling for symbolizing various feature classifications: Styling rules define the portrayal of features. A rule combines a filter with any number of symbolizers. Features for which the filter condition evaluates as true are rendered using the the symbolizers in the rule.


0

MapBox now provides this feature. On the menu for mapbox studio with all your maps, you can download styles directly.


2

Searching for "QGIS Style" on github.com reveals a few repos with some style files in. The best of all these is probably Anita Graser's styles and related blog post: https://anitagraser.com/2014/05/31/a-guide-to-googlemaps-like-maps-with-osm-in-qgis/


0

I just read this in a mapbox blog, and to answer my own question I cannot do data driven labels. "data driven styles have been one of the biggest tasks in Mapbox GL’s history, but they stand to change everything. Right now we just support data-driven styles for Mapbox GL JS, and only for circle-radius and circle-color."


2

For some reason integer fields aren't always recognized as valid for graduated styling. Putting the integer values into real number fields solves the problem. Now I can copy the layer freely and the real number fields appear as options for graduated on all copies of the layer.



Top 50 recent answers are included