Hot answers tagged

10

Looks like you found something to work with in the end and I hope by now you have a solution. I recently had a similar issue to yourself so I set about creating my own QML styles for OSM Shapefiles. You can find them on my github here: https://github.com/charleyglynn/OSM-Shapefile-QGIS-stylesheets I hope they can be of use.


4

The expression functions are all stored under .qgis2\python\expressions You can copy and install them onto any machine that needs them. The other option is to add them as a Python macro for the project under Project -> Properties -> Marcos. Paste the text of your expression function in the there.


4

This is how an SVG symbol is defined in QML: <symbol outputUnit="MapUnit" alpha="0.329412" type="marker" name="0"> <layer pass="0" class="SvgMarker" locked="0"> <prop k="angle" v="0"/> <prop k="fill" v="#000000"/> <prop k="name" v="/leaf2.svg"/> <prop k="offset" v="0,0"/> <prop k="...


2

Another option might be to save the style as a .lyr file. Then use http://wald.intevation.org/projects/arcmap2sld/ to convert the .lyr file to an SLD and then use that SLD within QGIS In QGIS, right click on the layer > properties > load style then use the drop down box to select SLD I have not tried this but it may work, if it does let us know as I would ...


2

The style file might be for ARCGIS users. It is not in a human readable format. QGIS uses XML-files to store styling properties, so you have no luck with just renaming the extension. I am not aware of any ESRI-to-QGIS style converter. According to this question: How to Edit Reference Styles in ArcMap 10 You can rename the style file to a .mdb MS Access ...


2

This is because the VectorFieldRenderer has not been implemented for SLD yet. If you are using this: it can't be exported to SLD.


2

I've written a small python script to convert ArcView 3.x Legends (.AVL) to QGIS styles (.QML): https://github.com/snorfalorpagus/avl2qml You can download the current version here: https://github.com/snorfalorpagus/avl2qml/archive/master.zip To use: python avl2qml.py pathtothe.avl pathtothenew.qml It's only had limited testing, but I've had some good ...


2

There's nothing complicated about qml files, there just simple plain text XML files. If you load one into notepad you'll see the layout is fairly straight forward. You have a <qgis>...</qgis> tag that lists the version that created it among other things Within this tag you have a <transparencyLevelInt> tag that holds transparency ...


2

My apologies for the off-the-record answer. For me it seems you have found a bug :-) I can reproduce your problem and did not find a solution/explanation for it... Before ADDED INFORMATION Strange, but I don't think it's a bug. In QGIS 2.4 I loaded a vector layer, applied a style by loading a .qml saved in QGIS 2.2, and there were no issues. I made a ...


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/


1

I have my qml styles in a fix path (c:/pyqgis_data/Styles/). So, to load arrows_red_orange.qml (exclusively for point layers), next lines at the Python Console of QGIS work: >>>layer = iface.activeLayer() >>>if layer.geometryType() == QGis.Point: >>>...layer.loadNamedStyle('c:/pyqgis_data/Styles/arrows_red_orange.qml') >>&...


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:


1

The transparency is given by the so called Alpha Channel (Alpha compositing) In a .qml file: <symbols> <symbol alpha="0.10" clip_to_extent="1" type="fill" name="0"> This is the alpha value of the symbol (Layer transparency) and the value is 0.10 which corresponds to a transparency value of 0.9 If you try with multiple values of ...


1

Not sure if you seen this link before but perhaps it might be of some use as it contains several style files for various types of features: QGIS stylesheets for OpenStreetMap Or click here to directly download the style files.


1

In QGIS, the preferred/canonical way to store a color ramp is QGIS layer styles (.qml) files. If you look inside the qml file using a simple text editor, you'll find there is nothing hard to understand. ColorRamp example: <colorramp type="gradient" name="[source]"> <prop k="color1" v="247,251,255,255"/> <prop k="color2" v="8,48,107,255"/...


1

While it is not possible to set up different label classes like you can do for symbols, it is possible to set up very powerful labeling styles using data-defined labels. Data-defined labels also support expressions so there is no need to replace fields since you can create rules which deal with what you have.



Only top voted, non community-wiki answers of a minimum length are eligible