Tag Info

New answers tagged

0

You could use a page definition query to turn features on and off: Add another copy of the layer, and apply desired labeling to it. Then apply a page definition query to that layer so that only features that match the map number are shown. This knowledge base article should help with the concept


0

If you use Maplex labeling, you can check the remove duplicates box, under the label density tab, in placement properties. This will label each classification in your feature once and only once.


3

You can do this using the Mean Center tool in the Spatial Statistics toolbox, it will compute the average X and Y coordinates for a set of points that you specify and generate an output point. You can specify groups of points in your source data for which individual centers will be computed using the Case Field in the tool, so you would use "Name" as your ...


2

I am not sure if this is the best way to do it. But you could create polygons around the points, either draw them or use something like bounding container. Then calculate the centroid of the polygon. Then create the labels for the polygon feature and turn the labels on. Symbolize the poly feature with no color and no outline so only the label appears. You ...


3

Below is a partial solution, I'm sure some whizzy person can step in and finish this? This goes into the Advance label expression. Its not very efficient hence me asking about the number of points in your dataset. So for each row that gets labeled it builds 2 dictionaries d where the key is the XY and the value is the text and d2 which is the objectID and ...


7

One way of doing this is cloning the layer, using definition queries and labelling them separately, using upper-left only label position for the first layer and lower-left for second. Add THEFIELD type integer to layer and populate it using expression below: aList=[] def FirstOrOthers(shp): global aList key='%s%s' ...


-1

Have you looked into the Maplex Label Engine? It's a pretty powerful labeling option that might be suited for your needs. It comes with all ArcMap versions over 10.0 IIRC.


2

The code that works for this problem is: def FindLabel ([Name]): if [Name] not in ['NONE','N/A']: return [Name]


1

I feel your question is poorly titled. Your features are labeled but you are concerned that at certain scales the labels are suppressed. The common way that this is acheived (to prevent clutter like @Hornbydd says) is by setting minimum and maximum scales at which those labels are displayed:


3

You can force all labels to display by changing the placement properties. Go to layer properties > Labels Tab > Placement Properties > Conflict Detection and tick on Place overlapping labels It will look a mess when you zoom out but then you get all labels.


1

No, In fact arc map uses map units or page units for label offsets so this distance is not related to projection anyway. As ESRI says "These units are measured in map units or in page units (millimeters, inches, or points)." So there is no matter if the layer is in GCS or PCS. Details are at here and here.


1

Could you use the Easy Custom Label plugin and and draw an empty label with an SVG background for this? So; Give the difficult features their own layer. Install the plugin and create an easy label layer with it Make the label blank i.e. ' ' On background choose draw background , choose SVG and the appropriate SVG symbol (Note: I had to change the ...


3

You need to set a definition query (see link in @PolyGeo's answer) to show only the selected features that you wanted labeled. This can be done through the definition query tab in properties or through the labelling options called label classes (note - see @ChrisW comments below). I use these solution quite regularly and find them easy to do.


1

You need to write an expression in the label tool, to make only your desired values visible. Double-click the layer properties and select the label tab. Locate the "Expression" button and select it. Now you have to write the expression that will visualize only the desired values. You can choose between VBScript, Python, Jscript. You will need to check ...


3

The Symbology tab of the Layer Properties does not perform any selections. If you want the same features to not be labelled, I recommend that you apply a Definition Query instead: When you specify a dataset that you want to draw as a map layer, you often only want to draw some of the features in the dataset. In these situations, you can define a ...


0

You can edit the Attribute table of the EasyCustomLabel layer to change the size of the fonts. Update the lblSize field:


0

I temporarily fixed this problem by adding a slight 100ms delay between when the labels were created and when they were switched in for the old labels (using setTimeout). Still looking for a better solution.


1

Double click your layer in QGIS, find the Label menu, label your layer.


8

You can use QGIS' quadrant placement specifier determined from the line's azimuth to place a better label. The quadrant specifies 8 positions around a point: [ 0=Above Left | 1=Above | 2=Above Right | 3=Left | 4=Over | 5=Right | 6=Below Left | 7=Below | 8=Below Right ] Here's an example around Null Island, creating a table and two views. ...


1

okay.. as it's in map units this should be fairly straight-forward, within limitations. You already know the height of the label. If it was in points it would be scale-dependant. This assumes a fixed label size, so how well this works depends on how uniform your labels are, and whether or not you use a proportional or fixed-width font (fixed width is easier ...


1

I would comment, but it's not letting me. You should check into the Maplex Label Engine, it's very customizable and might have the solution you are looking for.


1

I will try to be as clear as possible, but I am not sure I understood everything that your are asking. You might want to edit your post with additional information or a concrete example and the version of Geoserver you are using. Problem 1: you have duplicate labels due to the tiling of your WMS request by OL -> solution: in Open Layer, request a single ...


1

All I had to do was set the precision to match the width of my decimal number fields.


1

If this is a set of styles that you apply as part of a routine workflow, it might be worth setting up a QML style file that can be applied to any workspace of the same type. If the styling of elements is thematic (and you know what columns drive the theme) you can build a QML file programmatically straight out of PostgreSQL (assuming you have your data in ...


0

I had a similar problem and I believe it has to do because you never bindPopup to the marker. You should try to iterate through your data and add the features you want the marker to display into a marker variable. Then you add that newly made marker layer var into your markercluster variable and now the points that do not get clustered should also have a ...


0

Just create a polygon feature that represents the frame of your zoomed in section and use data defined override for the extents in the print composer. xmin(geometry(getFeature('frame', 'gid', 1))) ymin(geometry(getFeature('frame', 'gid', 1))) xmax(geometry(getFeature('frame', 'gid', 1))) ymax(geometry(getFeature('frame', 'gid', 1))) How to define map ...


2

I have solved the problem! When you go to your print composer, you add a new map as you normally would. Leave enough space for your zoomed in portion to be displayed. Add a new, smaller map in the area where you want your zoomed in portion to be displayed. Within this window, zoom to whatever area you want. In the "Item Properties" tab, scroll down to ...


2

Python has a similar replace method you can use: def FindLabel ([NUMBERNAME], [NUMBER], [BLOCK], [SURNUM]): lineone = "A:" + [NUMBER] numName = [NUMBERNAME].replace("&", "&amp;") absName = "<CLR red='255'><FNT size = '14'>" + numName + "</FNT></CLR>" if [NUMBERNAME] is not None: return ...


1

Try: newString = string.replace("&", "&amp;") Where string is your field with ampersand.


1

Update: I found the solution in the following link under "Extract a number." Be sure to select "advanced" in the label expression dialog. http://support.esri.com/en/knowledgebase/techarticles/detail/20154


4

As far as I know there is no such tool. The work-around is to either split the polygon into multiple polygons or create a point layer for label placement. The spatial join approach you've posted has to be slow since it does not take advantage of any spatial index thus looping through all features every time.



Top 50 recent answers are included