10

I struggled a bit with the Geometry generator as @GSienko. For intersection part you can also use built-in function aggregate. Also I used segment_to_lines function which convert polygons to lines. difference( segments_to_lines($geometry), aggregate( layer:= 'line', aggregate:='collect', expression:= $geometry, ...


8

The rules seem not to be correct. The first rule of your example is: "prcptot" = "prcptot" > 0 AND "p.prcptot" <=0.09 while I guess it should read: "prcptot" > 0 AND "p.prcptot" <=0.09 Stating "prcptot" = "prcptot"is a tautology, i.e. it gets always evaluated as true. The fact that it is chained with a > 0 before the AND operator might ...


6

I would try layered Geometry generator lines for this. Open the layer properties of your line layer (radial_spokes in this example) and create two stacked Geometry generators (by hitting green 'plus' button at the upper right corner). (1) Make the first geometry generator layer for lines Within the circle by: intersection($geometry, geometry(...


4

Try using refFunction plugin within geometry generator. Assumption. 2 layers - one lines as line, and polygons as polygon. Style polygon like that: difference(exterior_ring( $geometry ),geom_from_wkt(geomintersects('line','$geometry'))) geomintersect will make spatial query between polygon layer and line layer, and return geometry of intersection of two ...


2

How about adding a white line under the blue line in the other layer, that has the same width as the red line? If you place the blue line above the polygon layer the white line will obscure the red line. This of course assumes that you have a white background like in your example, and that you are ok with some of the crosshashes also being obscured. This ...


2

Disclaimer: This answer won't work if you have multiple polygons What you could do is find out which nodes form the four corners of the polygon that you wish to draw lines between, and then use those in MAKE_LINE() functions to draw the lines: To find which nodes you need: First add a geometry generator symbology Set the geometry type to Point/MultiPoint ...


2

After changing the layer symbology you need to save the project. aprx.save ()


2

Looks like it is having trouble finding the files. I use double backslash to get to my files. "C:\\ArcMap\\Res_Boulder.gdb\\Subject" See this reference which shows the valid and invalid path options https://pro.arcgis.com/en/pro-app/arcpy/get-started/setting-paths-to-data.htm


1

In ArcGIS Pro, try checking the "Only show features visible in the map extent" box, which can be found under Feature Display Options menu. This will make it so that only things that appear in the current map extent are displayed in your legend. https://pro.arcgis.com/en/pro-app/help/layouts/work-with-legend-items.htm


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

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

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


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