Hot answers tagged legend
12
To start with I will drop this website as a resource you should tie into.
your sequences are actually backward. your fourth has to be the first thing you attempt. (something I learned long ago is to plan what you want to end up with and then work back to where you are so you are sure you will end up with what you want [not something else]).
1. you need ...
11
It's a great question. One standard set of iconic markers with which everyone in the world is familiar is their country's set of street signs: stop, yield, crossing ahead, etc. I hope the point of such standardization is immediately obvious.
Note that the actual meanings of many of the highway symbols are not intrinsic: they must be learned (especially ...
8
Here is a really simple example
library(raster)
data(volcano)
volcanoR <- raster(volcano)
#making colors below 100 red and above 180 blue in this example
breakpoints <- c(94,100,120,140,160,180,195)
colors <- c("red","white","white","white","white","blue")
plot(volcanoR,breaks=breakpoints,col=colors)
You just need to pass the plot a vector of ...
8
I had the same problem last year : a few dozen of maps to produce within three days, same legend, but different locations.
I used this setup :
vector data in PostGIS
raster data in GeoTiff (shaded relief)
cartographic engine : MapServer, with PDF vector output
batch processing : PHP to automate MapServer, with MapScript PHP
finalization with Adobe ...
5
... such as a body outline for a homicide scene...
Summarizing: Standard Symbology is used for fast map reading.
I think that's the point of standard symbology, when you look at it you know what it means. The legend is indispensable indeed. But when you look at a standard symbol like a "body outline" the very deep of your subconscious tell you what ...
5
Assuming that you wish to do this in a QGIS Print Composer layout, and not the main interface's layer legend (which is currently not possible), here is a layout representation of what you may be looking for:
Note that this legend is comprised of multiple items (not just a basic legend item): background rectangle, title label and two legend items (in ...
4
Thanks to vector data digital mapping methods, it is easy to produce maps with various symbologies. However, the variety of maps symbologies remains quite low, because a map based on already well established symbologies is always preferred to an 'exotic' one (except for some very specific cases). The example of national topographic maps is a good example of ...
4
A lot of the standards work comes from the military (NATO etc) so that when you have half a dozen military forces bombing some where they can all agree what their friends and the enemy symbols are. It cuts down on so called friendly fire incidents.
A similar functionality is required when you have many local, state and federal law enforcement agencies ...
4
A Map Legend is a static representation of features on the map and their meaning
A Table of Contents [TOC] is an interactive list displaying features on the map - some even showing what is visible in real-time.
3
The only solution we've found to date is one you've already rejected: convert to graphics. (Though I've not experienced the "move label, marker disapeared" problem you mention.) We just sigh, curse a little, suck it up and keep going. On the bright side this allows us to do things not otherwise possible. In this example below any given polygon on the map can ...
3
I don't have any classical training on map making and this is just my 2 cents, but from a usability standpoint, I would think that you would want the most important/informative class listed first so that viewers will be drawn to that. It's tricky though since single classes won't mean much without the context of the others. Mersey, thanks for the tip. I'm ...
3
I believe you have to refresh via IMapSurround. See code below.
Dim pMxDoc As IMxDocument
Dim pPageLayout As IPageLayout
Dim pGC As IGraphicsContainer
Dim pElem As IElement
Dim pMSF As IMapSurroundFrame
Dim pMS As IMapSurround
Set pMxDoc = ThisDocument
Set ...
3
I think the general difference between a TOC and a Legend is that a TOC allows for control of the map. Depending on the application the TOC allows you to change the visibility and / or drawing order of map layers. A legend on the other hand does not allow for map control and is a representation of symbology used in the map.
In terms of a web mapping app ...
3
I've had a really good experience using the MapBook extension, which is available in an open-source and a commercial (http://www.maplogic.com/) version. I personally use the commercial version and, for a single user with the basic functionality it's very affordable.
3
With the AddLayer method you cannot be more precise than "TOP" or "BOTTOM" as shown above.
However, if you use the InsertLayer method (ESRI Help Pages), you can specify a reference layer (or multiple reference layers) and add your new layer in reference to that.
import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd")
df = ...
3
The scale bar can only be horizontal. However, you can rotate the rest of your layout 90° so the printed map looks like the scale bar is vertical. To simplify the process and save your neck from getting a crick in it, you can draft your layout in the orientation opposite of what you expect to finish on.
3
qgis.utils.iface.mainWindow() has findChild and findChildren methods.
Unfortunately the QDockWidgets that display a title of "Layers" and "Layer Order" both have an objectName of "Legend".
This code will gain access to the right widget:
from PyQt4.QtGui import *
layersDockWidget = None
legendDockWidgets = ...
3
Ordinarily I would go with Underdark's suggestion.
However, this issue is common for other situations where it is not relevant or possible to have all the data in one layer, so the question is worth a quick 'how to'. Navigate to the Legend Items tab and...
select a layer
click the pencil edit button and delete everything in the layer's item text popup ...
3
To omit Legend, you have to set Legend::LayerInfos parameter which LayerInfo you want to show. As bellow,
//add the legend
dojo.connect(map,'onLayersAddResult',function(results){
var layerInfo = dojo.map(results, function(layer,index){
return {layer:layer.layer,title:layer.layer.name};
});
if(layerInfo.length > 0){
var legendDijit = new ...
2
As near as I can tell (from working with the mapping class a couple of days ago), legend items themselves are created only using auto-add. I have found no methods for manipulating layer names and positions in the legend directly. The mapping class is not all-powerful in my experience, and is generally only as useful as the .mxd it is combined with. Most ...
2
QGIS is evolving quite rapidly, but it certainly has the core components for automated map production: its map and print composition formats are stored in XML, map composition can be done programmatically via python (e.g. this question) with PyQGIS map compositon.
2
That is called creating attribute domain values. That is supported in geodatabases (any level).
A Quick Tour of Attribute Domains
After you create a domain and assign it to a layer then you would want to create a feature template for editing.
2
The nearest you can get is:
http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?topicname=adding_mixed_format_text_to_legend_descriptions
ArcGIS 10 has more capabilities (not what you want to hear)
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s80000000q000000.htm
2
I'm a little confused whether your wish for grayscale output is for display purposes, or for output format type (8-bit output). In any case, if the desire is solely for display, then obviously you could create a simple 2-Color B&W image by using the RGB values for Black and White in your 2-color example above:
CLASS
NAME "black"
EXPRESSION ([pixel] ...
2
Crazy, but nevertheless... I was using AGS 10 sp1 and could not get a legend to show up from an internal test server (it could not connect to internet). For AGS below 10 sp2, AGS must be able to connect to ESRI servers to generate a legend. Upgrading to sp2 solved the problem because the legends are created on your own server. So crazy and unexpected...
...
2
Maybe try this:
Create a layout with the mapframe located outside of the page extent (since you're not interested in drawing it). Make the size of the layout only a tiny bit larger than the legend frame.
For each raster layer, load the legend item into the legend. Should be just one legend item for the types of layers you are doing, right?
It's been a ...
2
did you check GetLegendGraphic parameters in here. i didnt try something about your needs but i have used SCALE parameter eliminating internal rules that are out-of-scope.
&SCALE= 10000
maybe defining some rules give you what you want...
Rule of style to produce legend graphic for, if applicable. In the
case that a style has multiple rules but ...
2
It is a 3rd party plugin, so it cames with "no warranty", but I agree that it would be nice to have it fixed. You can contact the author and see if it is interested in doing it, otherwise if you known python you can try to fix yourself (and so do a favour to many people). If don't know python and the QGIS apis and the author has abandoned it, you can always ...
2
No-one answered for QGIS since that functionality isn't available (yet...)
The only work-around I can think of it to add two legends, then remove from the second legend all items except for the "Possible study area". Now position the second legend next to the first to get the effect you want.
Somewhat fiddly, but it might work for you.
2
you can try this :
right click in your legend
click convert to graphics.then click Ungroup . continue this
process(ungroup) for your color ramp . the ungroup option will be
disable.
right click your color ramp .click properties
.
click change symbol . click edit symbol. in symbol property editor window , choose gradient fill symbol for type . . you ...
Only top voted, non community-wiki answers of a minimum length are eligible

