Hot answers tagged

20 votes
Accepted

Automatic text wrapping in ArcMap layout text element?

Yes - I use the Rectangle Text tool from the Draw toolbar instead. It is not well known (see the number of times it is requested on ArcGIS Ideas) but is documented as Adding text that flows within a ...
user avatar
  • 63.7k
13 votes
Accepted

Changing layout element order in ArcGIS Pro?

I found the answer right after I asked the question. The Table of Contents lists Draw Order for layouts. You can select any map element in this draw order and change the order they draw in the ...
user avatar
  • 29.2k
13 votes

From shapefile to Python NetworkX?

I might have found a nice Python solution referring to the very shapefile in the question, so I am posting it for future reference. import networkx as nx import matplotlib.pyplot as plt G=nx....
user avatar
  • 793
12 votes
Accepted

Adding arrow to Layout View in map of ArcGIS for Desktop?

You can add an Arrow in Arcmap. This is what you need to do: Using the Draw toolbar insert a straight line. Double click on the line and change its properties as illustrated in the below
user avatar
12 votes
Accepted

Font size in HTML in QGIS' print composer only starts to change at 6

Problem The <font> tag's size property is only defined for values of 1 through 7. MDN says about the <font> tag: Obsolete This feature is obsolete. Although it may still work in ...
user avatar
12 votes
Accepted

QGIS same print layout for multiple features of a layer?

The QGIS Atlas does not require that each page in the series be spatially distinct. In the map frame's Item Properties, ensure that the option Controlled by Atlas is not checked. It does seem, however,...
user avatar
  • 3,669
11 votes
Accepted

Changing blending of contour label to multiply

You can change the blend mode of the text buffer in label settings (see below). Multiply works best if the buffer colour is a dark colour. However, that won't achieve what you have in your ...
user avatar
  • 7,304
10 votes
Accepted

Group legend in ArcMap basing on field value

Here is one solution on top my head: Create a new string field and use field calculator to compute as the concatenation of other fields. Here is the python snippet: !abbrev! + ' ' + !fullname1! +'...
user avatar
10 votes
Accepted

Including print size of my layout in label in QGIS?

When in print layout you can add a new Label to the layout and in the item properties click on insert an expression. You could then try something like this to display the page height and then width ...
user avatar
  • 2,728
10 votes

Display coordinates of centroid of map in box using QGIS

Get them with: map_get(item_variables('Map 1'),'map_extent_center') which returns a <geometry: Point>. Then extract x and y values as you like, for example: 'X-Centroid: ' || x(centroid(map_get(...
user avatar
  • 24.6k
9 votes

Zooming Layout Page went wanting to Zoom in Map?

There are two separate toolbars that contain zooming tools, one of which zooms acts on the data: the other which works on the layout: You are likely using the layout view tools (or using the mouse ...
user avatar
  • 428
9 votes

Showing feature count for layout extent on legend using QGIS?

I would expect the option "filter legend by map content" to cause the "filter count" to be limited to the features within the map extent. But you're right, the "feature count" is not filtered by the ...
user avatar
  • 23k
9 votes
Accepted

Input content inside the object drawn in QGIS Print Layout

You mean to insert text inside a shape, as in Office Word. It is not possible to include a text content for layout shapes because they don't have any property for text. Eventually you will need to use ...
user avatar
8 votes
Accepted

Making a map that can be easily resized or scaled

I think there are a couple of ways of looking at this question. You can see it from a pure mathematical and procedural standpoint of what factor do I multiply things by to change the size of this ...
user avatar
8 votes

How to place two data driven pages on one map layout?

To my understanding it is not possible to have two different data frames each using data driven pages. However, there are methods/tricks you can employ to emulate this behavior by manipulating ...
user avatar
  • 3,206
8 votes
Accepted

Creating map layouts using R?

R is pretty good at spatial processing, but its not a replacement carto tool (yet). Its graphics have always been implicitly geared to small, simple images and diagrams suitable for journal articles ...
user avatar
  • 3,420
8 votes
Accepted

Selecting different colors for touching polygons in random color ramp in QGIS?

In qgis 2.99 there is the topological coloring processing tool that give you exactly that (it add a column so after using it you could use your data in earlier version of qgis)
user avatar
  • 11.8k
8 votes

Different maps/views/lay-out in 1 project

With QGIS 3 you can do this by creating a new map view (View--> New Map View). Then you can create 2+ map themes from your layer panel(eye icon -->add theme) and choose which one you want to use in ...
user avatar
  • 815
8 votes

Automating citation of data source in QGIS print composer?

You should use the layers Metadata for it. In the Layers properties, fill in Attribution - Title string like shown below (you may use the Url too, as well): Then insert the following expression into ...
user avatar
7 votes
Accepted

Remove legend nodes of a categorized layer in a layout legend using PyQGIS

I had to dig in QGIS source code to find how QGIS does it when one reorders or removes a legend node, but here it is. It boils down to setting a custom property, then calling refresh on the parent ...
user avatar
7 votes

Setting the coordinates in a QGIS layout right

You have asked for the format of your grid to be Degrees, Minutes and Seconds which is not appropriate for a grid in metres (EPSG:3035) - if you set it to decimal you will get the expected output in ...
user avatar
  • 74.6k
6 votes
Accepted

How to create a transparent box in the map layout?

The approach you you mention does sounds unorthodox, it is, however, the only way you can do it in ArcGIS. It is actually more efficient doing this inside ArcMap as you suggest as oppose to a 3rd ...
user avatar
6 votes

Making a map that can be easily resized or scaled

One option that might help with resizing labels more easily to a new scale is to change the reference scale. Once you've fit your map to the new page, using the data frame properties, general tab, ...
user avatar
  • 1,694
6 votes

Pictures with no background or transparent in ArcGIS layout

Another nice work around I regularly use to insert my company's logo with a transparent background is to add an additional dataframe in layout view. Then bring the transparent background tif or png in ...
user avatar
6 votes

Changing part of text element using ArcPy?

Try this: import arcpy from arcpy import env env.workspace = r"D:\desktop\Project" for mxdname in arcpy.ListFiles("*.mxd"): print mxdname mxd = arcpy.mapping.MapDocument(r"D:\desktop\...
user avatar
  • 3,870
6 votes
Accepted

Improving fuzzy PNG image used as company logo in ArcMap?

For best logo results, make sure you start with a PNG that has high pixel values, like 3500x3500 (if it's a square). Next, make sure you shrink that down to at most a couple inches. For export ...
user avatar
  • 1,246
6 votes

How to export a jpg from ArcScene?

There is no Layout View in ArcScene. You can export your scene to JPG by using File > Export Scene > 2D... and selecting JPEG in the Save As Type drop-down of the Export Map dialog.
user avatar
  • 29.2k
6 votes

Batch Exporting Layouts to PDF in ArcGIS Pro using ArcPy?

This is what I use to do this. the print statement is completely unnecessary though, especially since this is run as a script tool in ArcGIS Pro. import arcpy aprx = arcpy.mp.ArcGISProject("CURRENT")...
user avatar
  • 61
6 votes

QGIS 3.2 Layout Map render/cache/rectangle no longer available

It's been removed, as a result of the map items now rendering in a background thread. (Because the map renders in the background, it no longer causes the "hangs" while rendering, so even for complex ...
user avatar
  • 26.2k
6 votes
Accepted

Dynamic oriented grid using QGIS 3 layout view (grid borders parallel to paper borders)

To perform dynamic North Pole grid orintation paste the code (see below) in Map rotation box parameter of your map item. Here is a comparison with a static oriented grid: Code block (in a line): -...
user avatar
  • 5,622

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