New answers tagged

0

You don't specify the verion of ArcPy, but this option to set class breaks for the raster layer and seems available to most versions. http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/rasterclassifiedsymbology-class.htm You can manually set the class breaks to standard deviations. Just subtract or add the standard deviations to the mean of ...


1

You can create one categorie by crop (for example) in your categorized styles: carrots- rule: "crop" = 'carrots'; style> orange polygons beans - rule: "crop" = 'beans'; style> red polygons corn - rule: "crop" = 'corn'; style> yellow polygons by hiding 'beans' and 'carrots" in the layer panel, you will be able to select all 'corn' polygons. Once selected,...


1

Accourding to the help section for symbology class: It is important to first make sure that a layer supports a renderer or colorizer and to know its type before trying to make updates to it. The built in hasattr function can be used for this purpose. hasattr(l, 'renderer') False So renderer might not be supported for your raster layer. What are ...


1

Please preselect your layer with "X" = 'a' and export this selection as a new layer. Then go on with your rule-based renderer on this newly created layer which will be supported in qgis2web: The ruleset of this working prototype might be similar to yours: rule based rendering works fine in leaflet and openlayers


0

This might be related to this bug report related to sizes related to map scale or map units: Data-defined legend is broken if "map units" are used #27110 https://github.com/qgis/QGIS/issues/27110


0

It appears that even though the value shown after you type in 0.5 is 1, the angle is set to 0.5. This can be checked using arcpy: import arcpy p = arcpy.mp.ArcGISProject("CURRENT") m = p.listMaps('Map')[0] #Change to match your map name lyr = m.listLayers("bs_riks")[0] #Change to match your layer name sym = lyr.symbology print(sym.renderer.symbol.angle) (...


1

Yes, you can apply an offset. Indeed, the openstreetmap-carto style does this in CartoCSS: line-offset: -0.9; The final XML for Mapnik is: <LineSymbolizer offset="-0.9" stroke="#82643a" stroke-linecap="round" stroke-linejoin="round" stroke-width="3.6" /> A negative offset means the line is shifted to the left (with regard to the direction of the ...


4

For me, what you want works with the expression @geometry_part_num . In the layer-styling, I set the style to be rendered by geometry-generator with the expression nodes_to_points( $geometry). As a marker, I select Font-marker and at the selection of the symbol, I select data-driven override with the expression @geometry_part_num


1

You could extract the vertices of the line as point using the extract nodes tool. And the point to your project. Add a new attribute to the table with a sequence of numbers. Label those points using the sequence.


5

To visualize them as curved lines, change the Symbol layer type to Arrow, then select Curved arrows option. Head length/thickness should be zero as you would not need arrow-heads.


0

I would recommend a different route via the Point Distance tool. You can use the resulting table to create an exclusion list as you iterate through each OID.


1

If you want to create a new layer based on a subset of an existing layer you need to export after doing your selection (right click on your selected layer then Data>Export Data... and choose export selected data) this will create a new layer with a copy of the selected data. in this case you end up with two copy of your data and any edit made in one copy ...


Top 50 recent answers are included