Tag Info

Hot answers tagged

4

You can use expressions to define a font size For example: CASE WHEN "size" > 10 THEN 10 WHEN "size" > 20 THEN 20 ELSE 30 END


3

Never mind I figured it out. Function FindLabel ( [ID] ) FindLabel = replace( [ID],"US-350",350) End Function


3

The callout lines are somewhat limited in MapInfo. Below is a screenshot of MapInfo 12.5 64-bit (but this is the same in most recent 32-bit versions as well). You can create label lines, but the caveat is that they don't appear until you physically move the label. You can see I have moved points 5 and 6 in the below image. Once you've created the ...


3

Try this Make sure your attribute table has a unique identifier per line Save the layer with the label coordinates to a csv file Load the csv with Add delimited text using the label coordinates as X and Y fields Save the new layer as shapefile into the target projection With the field calculator, add new columns of type real with the projected coordinates ...


3

Yes, it's possible, using the new Python function editor in 2.8 or later. For a good tutorial check out this youtube video Your existing expression will always show the value of field "LAENGE" for all features, this is working as expected. What you really want is an $is_selected() function which evaluates to True if the feature is selected, or False if it ...


2

If you open the layer properties dialog and navigate to Labels -> Rendering there should be an option that reads "Merge connected lines to avoid duplicate labels". This has usually helped me in the past. However, I've still had times where the labels were still not cleaned up enough. I tend to store my data in PostGIS so in these cases I write a view which ...


2

try to add this text-dy: -10; you can look at file admin.mss in openstreetmap-carto project dir and find code #nature-reserve-text[zoom >= 13][way_pixels > 192000] { text-name: "[name]"; text-face-name: @book-fonts; text-fill: green; text-halo-radius: 1.0; text-halo-fill: rgba(255,255,255,0.6); text-placement: line; text-dy: -10; } ...


2

In the Data Frame Properties it seems you have specified a clip option. Go to Data Frame Properties and then to the Data Frame tab. In the "Clip options" change from "Clip to shape" to "No clipping". If you want to show only data that are within the polygon you might use the "Definition query" option in your shapefile properties.


2

It is possible with a long workaround. But certainly worth it if you need to reuse. Create a dummy layer with the same data you want to show in legend. If you have a layer 'Roads' copy it and we will tweak the copy to make the legend. I often call layers like 'Roads - dummy for legend'. This layer will be turned off when done, be sure to uncheck 'Only ...


2

There are several ways to do this by playing with the label properties or using other label engines but the easiest in this case would probably be go to layout mode and just create a text box and label the feature. Make sure to match your fonts from the other labels. If you are dead set on having the label spline along the border check out this ...


1

If you are talking about ESRI Basemaps, the basemaps usually comes with 2 layers, a reference layer, and the basemap itself. Turning off the reference layer turns off most labels.


1

This is not possible to to achieve "dynamically" out-of-the-box. You will have to convert your legend to graphics, un-group and arrange the items as you want them then create a text element for each of the labels you wish to also include in the legend, physically type in the values and apply the same symbology as the label has and move it place.


1

There seems to be an existing MapInfo Idea for More options in MapInfo to allow for annotations (“callouts”), which suggests to me that it may not currently be possible.


1

If you turn on "Maplex Labeling Engine" from the Labeling toolbar. Then go into the label placement properties you will see the following option: "Label Position" tab -> "Orientation..." button -> "Align label to direction of line" check box.


1

You can download a Canada shapefile from DIVA-GIS and selecting the Administrative areas as the subject. You will receive 4 shapefiles of differing levels: Can_adm0 Can_adm1 Can_adm2 Can_adm3 (this is probably the one you want) When loaded into QGIS, you will see Canada broken up into different districts (or wards, zones, etc.). You can run a query to ...


1

This seems to be a bug introduced at version 3.14. It seems to work fine with 3.11-3.13.


1

I don't know if this is the cause of your specific problem but I discovered a bug regarding printing legends in the general case for which I found a work-around. When printing a single map with legend, if the box "lock layer styles for map item" is checked, then the legend does not print when exported in PDF or any other form of printing the map. In order ...


1

Hey moderator that deleted my last post on the same topic, please leave this one up. This is completely relevant because I don't believe the answers above still work and I'm not the only one that's struggling here. Either I'm crazy, or the two bits of code no longer work. I've copied these and tweaked them for my use and for the life of me I can't get a tif ...


1

You asked that ages ago but, maybe useful for some, as not answered yet... You said that you are keep your adnotation in the map but if you save them in a database You will have full control over the adnotation, including transparency is it something you have been looking for??


1

You will find the annotation layer in the properties of your dataframe. I do not know (yet) how to make them transparent.



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