Hot answers tagged

13

I'm not sure how to enforce it for existing polygons, but you could make it work for any future ones that you create. In Project Properties>Default styles>Style Manager, you could create your own default symbol style for "Fill": Edit the Border color's expression and set it to @symbol_color: Lastly, set your new fill style as the default: This will ...


7

Hopefully the following image will help a little: Essentially, you can move a rule 'inside' another by dragging it across. This creates a nested style. In the image, I dragged the last 2 rules (blue and yellow) inside the green rule. Now if you add a filter (expression) to the green rule and if it applies to any feature, the features will not only turn ...


5

I think it is achievable but will require a few steps. Here is an example layer: Count the number of trees per species using the GroupStats plugin which can be downloaded from: Plugins > Manage and Install Plugins... Once installed, run it with the parameters shown in the image: Then save the results by going to Data > Save all to CSV ...


5

You simply have to save your style file(.qml/.sld). and everytime you import a new shape file, just load that style file.


3

You can initialize your Borne geoJson layer without any data but with a styling function specified in the options: var Borne = new L.GeoJSON(false, { style: function (feature) { return {color: feature.properties.color}; } }); This style will be applied to any data you add later with addData.


3

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.


1

I don't believe it's doable out of the box given than your shapefile still contains all the styling bits as a JSON string inside an attribute. Either find a way to split them into separate columns with a further conversion, and then you'll be able to follow Ian's advice, or write a new filter function that can parse JSON and extract properties out of it, ...


1

A faster way would be to dissolve by tree species, then using the field calculator: num_points($geometry) This will then count all the points within each multipart feature


1

I don't believe what you are asking can be done but an alternative solution is this: Convert your raster data to points Create a unique ID field and populate it with unique numbers Convert your point dataset back to a raster using the unique ID as the value field Convert this raster into a polygon vector dataset, as each cell in the raster has a unique ...


1

There's a shortcut which may help here: From the symbol library (Settings -> Style Manager) create a bunch of symbols with names which exactly match your categories (eg Prehistoric, Roman, etc) Setup a categorized renderer for your layer, select the corresponding field and classify. Click the "Advanced" button and select "match to saved symbols". The ...


1

Thee other option is to use a size assistant that is available for each of the data layer style. Say you categorized your point data based on color using a certain attribute. Simply right click each category and select Change Size. It should display a size dialog box. Then click on the expression filter and then select Size Assistant. The size assistant ...



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