New answers tagged

1

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.


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 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

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 ...


0

You can use the properties of the file in your sld file to set all the values that you require. <sld:stroke > <CSSParameter name = 'stroke'> <ogc:propertyName>stroke </ogc:propertyName> </CSSParameter > </sld:stroke >


0

From your screenshot I see that f_table_catalog field is blank. Mine has the database name in that field & if I delete it I get the same behaviour you are describing.


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 ...


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.


0

The additional information in the kml file that you wish to use and you refer to as "metadata", could be in the KML jargon: Styles and Stylemaps ExtendedData Custom information in the Description field of a Placemark, usually in the form of html tables Since each kml file is an ASCII file, it can be processed via a text-processing script. According to ...


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 ...


0

Is the same case. How to export color of polygon from Autocad into QGIS? You only need save your style and after load it with Qgis interface or programmatically.


0

Try setting the Symbol Level which sets the priority of specific symbols to render above or below others:


0

You need to check if the value of rotation is null using a function: First you need an if_then_else function to select the outputs based on the isNull function's result. If the property is null it returns true and the if_then_else returns the first argument (the literal), if it is not null then it returns false and the second argument of the if is used (the ...


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.


0

First, Geoserver style (SLD) and data (KML) are totaly different. Import the KML file in Geoserver and later, create SLD file in the style editor or create style within the viewer (like Mapfishapp) and next, save the .sld file to get the sld easily without write within XML (more difficult to realize classification or other specific style when some system ...



Top 50 recent answers are included