Annotating data on a map using text and/or graphics.

learn more… | top users | synonyms (2)

3
votes
1answer
2k views

Using if/elif for passing null values to Python of label expression in ArcGIS for Desktop?

I am trying to pass the Null values in label expression in advance python section. I have this code and it's not working. Note that all my values in [TX_SECT] and [ABSTRACT] are numbers. def ...
3
votes
1answer
1k views

Single tiled Mapserver WMS to avoid Labels and features cut along tile borders and repeated labels

I am using Mapserver-wms-openlayers for publishing maps. But there are some issues came across related to duplicate labeling for same feature in adjacent tiles, unwanted breaks in line features along ...
3
votes
1answer
483 views

Labels with white (or other color) background

I tried to give my labels somekind of box and a backgroundcolor (or boxcolor) in QGIS, but i couldnt find the right option. My labels are not readable because my layers are too dark. I found offset ...
3
votes
3answers
3k views

Labeling coordinate value at 4 corners of graticule in ArcGIS Desktop?

Is it possible to label automatically lat/long values at 4 corners: upper left, upper right, lower left, lower right of the graticule in Arcgis (10)? I have not found the way to do that so far.
3
votes
1answer
2k views

ArcObjects add halo to label

I would like to add a white halo to labels using arcobjects. I think I need to reference the IFormattedTextSymbol interface, but I'm not sure how to implement this into my current code (see below). ...
3
votes
1answer
108 views

Placing axis labels inside graticule on data frame of ArcMap?

I'd like to add a graticule in DMS to my map in ArcMap 9.3, having tick marks and label axes inside the main figure/frame (similar to the below map). Although setting it for tick marks is very easy, I ...
3
votes
1answer
89 views

Labeling each polygon based on the number of points inside it using Python

I have a parcel layer and a trees layer, I want to label each parcel with the number of trees it contains and the sum of DBH. I wrote a script that calculates this and it works stand-alone, but I ...
3
votes
2answers
91 views

Placing the label style alongside the layer style within the legend - Arcmap 10

I've been searching for a way to include the label symbology within the legend, something similar to the image below: (Apologies for the quality) There was a post some 4 years back that touched on ...
3
votes
2answers
188 views

How can I connect label and point with a line/arrow?

Is it somehow possible in QGIS to connect labels and points with a line/arrow or something? In my map it is not clear which label goes with its point. I can't bring it closer because there are many ...
3
votes
1answer
120 views

SQL Query in arcmap

I have a BUILDING.SHP and in the attribute table, it has several names and some of the attributes are "STOR" and "MULTIPLE-STOREY CAR PARK" like image below. In my map, I don't want label the ...
3
votes
2answers
173 views

Why are there no line breaks in my labels even though I added \n?

I'm having an issue with creating multi-line labels in QGIS. I believe I have the syntax right in the label expression because the output preview looks correct. However, on the map, everything ...
3
votes
2answers
158 views

Show categories in QGIS

I have a .csv file pointing at coordinates. It is a large file that is edited often. In it, I have three groups of data (say A, B, and C). Within each group there are a number of Names, and each ...
3
votes
1answer
835 views

adding line breaks to labels in ArcGIS Online

I'm using the new labeling functionality in ArcGIS Online. My question is how do I add a line break to the label if I want to use more than one field?
3
votes
1answer
74 views

Arcobjects- IAnnotateLayerPropertiesCollection2.QueryItem in Python

Anyone tried access label properties trough ArcObjects with Python? I try to obtain reference to label object with IAnnotateLayerPropertiesCollection2.QueryItem, but when I do: pA = ...
3
votes
1answer
800 views

Is there a way to turn on labels with ModelBuilder?

I have a model that creates a feature class and adds it to the map. The properties of the feature class reference a layer file for the symbology. However, I can't seem to find a good way to pass the ...
3
votes
1answer
270 views

How do I set labels to not be one over the other?

In certain zoom I see many city labels "written" on each other. I know there is a feature that set to auto hide labels that override each other ( and I'm not talking about rendering from specific ...
3
votes
1answer
4k views

Getting text to center in a label expression

Is there an expression that can be entered in the label expression that will force text to center? Such as the ones used to change case/replace/etc.
3
votes
2answers
2k views

How to label a dynamic KML file in OpenLayers?

How can I display labels for features in a KML file on an OpenLayers map. I was thinking of using popup messages, but labels are more attractive and eye-catching. I want to replicate the labeling ...
3
votes
3answers
674 views

Adding labeling expression to Custom Overlay Grid in ArcGIS Desktop?

I have a custom overlay grid whose labels are driven by an ugly attribute field which contains unnecessary leading zeroes and other labeling no-nos. How can I introduce a labeling expression to this ...
3
votes
1answer
803 views

Setting mask (halo) for labels in Python script?

I currently am writing a python script and using a lot of the arcpy mapping module functionality. I have been using the LabelClass of the arcpy mapping module to automate the display of labels with my ...
3
votes
2answers
57 views

QGIS: Updating labels based on delimited text layer

I have a csv file that I am joining to a layer, then creating labels based on the joined layer. When creating the delimited text layer, I include the option to watch the layer. At the time of ...
3
votes
1answer
35 views

Positioning labels in center of clipped polygons?

I am using ArcMap 10.1 and would like to label a polygon layer that i have clipped. It appears that the label is set for the geometric center of the polygon that falls outside of the clipping.
3
votes
1answer
70 views

ArcGis Map Labelling

I have created a new field within one layer in Arcmap. and i have run some values and assigned each feature to a specific value inside the new field in the attribute table for the layer. Now I am ...
3
votes
1answer
57 views

Why is QGIS only one label rendering at a time?

I'm new to QGIS, but I'm experiencing what I think is a bug. When I load the qgis_sample_data landcover raster and lakes vector layers, then enable labels for NAMES on that layer, I can only ever ...
3
votes
1answer
47 views

Using Function with replace with the US-350 to 350 How to?

I am trying to replace the US- 350 with 350 in the Label Expression but I am stuck how to do that... I am looking at the help here for the function: Function FindLabel ( [LABELFIELD] ) FindLabel = ...
3
votes
1answer
55 views

How to save .shp with layers 'baked' in with QGIS

I'm having no problem applying labels to the shapefile I'm working on in QGIS, but I can't seem to save the new shapefile with the layers 'baked in' for uploading to Mapbox, and then styling. I've ...
3
votes
1answer
275 views

Python FindLabel Function for Label Expression with Formatting Font?

I originally had this FindLabel function (which works)... def FindLabel ( [NAME], [Count_] ): if [Count_] != None: return [NAME] +'\n' + "Well Log Count: " + [Count_] I wanted to format the ...
3
votes
1answer
133 views

How do I make curved labels for polygons in QGIS 2.6.1?

I have been able to find answers on how to do this in older versions of QGIS, but can't seem to come across anything that deals with the latest installment. I need a way to make labels curve to ...
3
votes
1answer
64 views

Label points at regular interval using qgis

I have a point shapefile with a point index. Like the first picture. I'm trying to label the point index every 30 points to obtain the second screen capture. I also have an attribute R3 or R4 to ...
3
votes
2answers
106 views

Labeling runs out of map extent and onto borders when exporting to PDF from ArcGIS for Desktop?

When I have tried to export several of the maps I have made but I have a problem with labeling that runs out of the map extent and onto the borders. I am exporting to a PDF and opening the file in ...
3
votes
1answer
455 views

Conditional formatting for Advanced Label Expression in ArcMap

I am trying to do some conditional formatting in order to highlight specific criteria. The main error I keep getting is that there are no features found. I've done a simple label with the exact same ...
3
votes
1answer
546 views

How to create halo for a text in the composer

I would like to add texts with halo, in the composer (not in the map). Do you know a way to do it? I'm using QGIS 2.0.1 Thank you
3
votes
2answers
1k views

Transparency in Labels/annotations

I am trying to get my labels transparent. I have converted them into annotation and unable to make the annotations transparent. I have kept annotation in the map. My annotation layer does not appear ...
3
votes
1answer
915 views

How do I export labels as editable text objects to be used in Illustrator?

How do I export labels as editable text objects to be used in Illustrator? QGIS 1.8 Thanks.
3
votes
1answer
176 views

How can I label both coordinates in mmQGIS?

How can I label both coordinates in mmQGIS? Everything I try leads to only one of the 2 coordinates (lat or lon) to be labeled. I cannot get both labeled at the same time.
3
votes
1answer
413 views

Moving cartographic representation of labels in ArcMap?

Cartographic representation in ArcMap is a nice way to temporary change geometry of features, so you can make adjustments just for map making. In my mapping project I need to move some point features ...
3
votes
4answers
2k views

How can I display “related” data in a polygon label?

I have the classic situation with ownership parcels where a single polygon has numerous owners. I have related the parcel shapefile with an owner table in my database but for the life of me I can't ...
3
votes
1answer
344 views

Is it possible to label the start and end of a line in MapServer?

I would like to be able to have the upstream invert at the top of the main and the downstream at the bottom. <---Down Label---------------------------------------------Up Label--->
3
votes
3answers
2k views

How could I label features and convert them to annotations with arcpy?

how could I do the following steps with arcpy: right-click on the layer with the features Label Features Convert Labels to Annotations ... The annotions should be saved in a new shapefile. How ...
3
votes
1answer
2k views

Mapserver: labels and tiles

I'm developing map with Mapserver to be rendered in tiles and testing output with Ka-map. Most of the time labels split on two tiles are matching, but sometimes they're not. I configured Ka-Map like ...
3
votes
2answers
46 views

VBscript to not include empty fields

I am trying to create a label in arcgis with about 30 columns with this basic VBscript: [field1] & vbnewline & [field2] & vbnewline &[field3] & vbnewline...ETC How can I make it ...
3
votes
1answer
42 views

Can I create areas where all label are forced away

I have some points overlaying a raster. These points have some quite complicated labels which block out the raster so I would like them to sit outside the edge of the raster and point at the point to ...
3
votes
1answer
79 views

Is it possible to mix italic and normal font in a label?

I have concatenate the values of two field like "BYKV_BTYP" || '/' || "FFH" Is it possible to draw the value of the column "FFH" in italic if it is not empty and the value of "BYKV_BTYP" ...
3
votes
4answers
2k views

Label using VBscript in ArcMap - multiple IF statements?

I have 4 fields that hold number values. I only want a label returned if the field <>0. For instance, if col1<>0, then label = col1 AND if col2 <>0 then label = col2, etc. So, I want all ...
3
votes
5answers
584 views

How to place labels under a vector layer?

I want to place the labeling under a layer. In QGIS 2.2 apparently the label appears automatically at the top. Can someone help me. (see attachment) example:
3
votes
1answer
216 views

OSM line labels in Tilemill

I'm learning to use Tilemill to map Toronto OSM street data. I've added osm2psql data from http://metro.teczno.com/#toronto. When turning on road labels for the line file, I find that I'm getting ...
3
votes
1answer
492 views

How to make a different font and color of text in labels?

Is it possible to make a bold or italic, and change the color of individual words Label? Example: the first line is bold in red text, font 12, second row 10 green italic font
3
votes
2answers
877 views

Add labels to points in OpenLayers

I have a Layer: pointLayer = new OpenLayers.Layer.Vector("Point Layer", { strategies: [strategy], styleMap: new OpenLayers.StyleMap({ "default": { ...
3
votes
1answer
525 views

Is there a way to force leader lines to polyline centroids in ArcGIS Desktop 10?

I'm making a pretty standardized set of maps that include alphabetical labels for specific stream segments. As it stands, all my label leader lines snap to the downstream end of my polylines. My ...
3
votes
1answer
2k views

ArcPy: Using lblclass expression to change font style and color

I´m trying to label features of a dataset using ArcPy and the lblclass function. While commands like "VBNewline" and "Round" work pretty well, I´m not able to change colors or font style. An ...