[Qgis-user] data defined labelling field details?
Marco Hugentobler
marco.hugentobler at sourcepole.ch
Tue Jan 11 09:07:18 PST 2011
Am Sonntag, 9. Januar 2011, um 16.22:05 schrieb William Kyngesburye:
> No, I did not set the X,Y data fields - I want the X,Y to be the point
> coordinates (maybe a distance from), so the X,Y data fields is redundant
> and I'd have to figure out and fill in all the coordinates.
Hm, right. This is one of the few cases where I'd still recommend the old
symbology engine ;-)
> so the X,Y data fields is redundant
> and I'd have to figure out and fill in all the coordinates.
Maybe a tool that creates columns with x-/y-values for point position /
polygon centroid / line center could solve the problem (e.g. in the field
calculator). There will be redundancy, but it is a special case that the
labels for a point layer are directly on the point location (covering the
point symbol). In general, it will be good to have feature position and label
position separated.
Regards,
Marco
> On Jan 9, 2011, at 4:23 AM, Marco Hugentobler wrote:
> > Hi William
> >
> > Could it be that data defined x-/y-fields were not enable in your case?
> >
> > Data defined alignment or rotation is only useful if the label position
> > is data defined too (otherwise, the PAL library calculates position and
> > rotation).
> >
> > Regards,
> > Marco
> >
> > Am Sonntag, 9. Januar 2011, um 00.06:04 schrieb William Kyngesburye:
> >> Well, one problem - I can't set a data column for horiz/vert alignment
> >> or rotation on any layers, the popup menu is disabled.
> >>
> >> If I use the "old" labelling, I can set placement data column. What are
> >> the values to use here?
> >>
> >> On Jan 8, 2011, at 4:29 PM, William Kyngesburye wrote:
> >>> Thanks.
> >>>
> >>> On Jan 8, 2011, at 4:06 PM, Marco Hugentobler wrote:
> >>>> Hi William
> >>>>
> >>>> Do you use the new labeling?
> >>>> If yes:
> >>>>
> >>>> bold/italic/underline/strikeout expect int (0 means false )
> >>>>
> >>>>> Spell out placement strings? ("Above Left", ...) Or some sort of
> >>>>> abbreviations? Or maybe it's an integer lookup of the placements?
> >>>>
> >>>> Strings
> >>>> For horizontal alignment: 'Left', 'Center', 'Right'
> >>>> For vertical alignment: 'Bottom', 'Base', 'Half', 'Top'
> >>>>
> >>>>> Color - RGB values (in a char field)?
> >>>>
> >>>> Hex representation, e.g. #ff0000 for red
> >>>>
> >>>> Regards,
> >>>> Marco
> >>>>
> >>>> Am Samstag, 8. Januar 2011, um 19.20:21 schrieb William Kyngesburye:
> >>>>> I want to try some data defined labelling, but I could not find any
> >>>>> info about how to configure data fields.
> >>>>>
> >>>>> Some of them look obvious, like integers or floats/reals for sizes
> >>>>> and offsets, and character/varchar for font.
> >>>>>
> >>>>> Maybe boolean for bold/italic/underline/strike? Or does Qgis want a
> >>>>> char representation of a boolean for these?
> >>>>>
> >>>>> Placement I think should be a char field, but what are the values to
> >>>>> use? Spell out placement strings? ("Above Left", ...) Or some sort
> >>>>> of abbreviations? Or maybe it's an integer lookup of the
> >>>>> placements?
> >>>>>
> >>>>> Color - RGB values (in a char field)? what separator to use?
> >>>>>
> >>>>> Any other details other details I didn't think of to ask about?
> >>>>>
> >>>>> -----
> >>>>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> >>>>> http://www.kyngchaos.com/
> >>>>>
> >>>>> "Those people who most want to rule people are, ipso-facto, those
> >>>>> least suited to do it."
> >>>>>
> >>>>> - A rule of the universe, from the HitchHiker's Guide to the Galaxy
> >>>>>
> >>>>>
> >>>>> _______________________________________________
> >>>>> Qgis-user mailing list
> >>>>> Qgis-user at lists.osgeo.org
> >>>>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> >>>
> >>> -----
> >>> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> >>> http://www.kyngchaos.com/
> >>>
> >>> "Mon Dieu! but they are all alike. Cheating, murdering, lying,
> >>> fighting, and all for things that the beasts of the jungle would not
> >>> deign to possess - money to purchase the effeminate pleasures of
> >>> weaklings. And yet withal bound down by silly customs that make them
> >>> slaves to their unhappy lot while firm in the belief that they be the
> >>> lords of creation enjoying the only real pleasures of existence....
> >>>
> >>> - the wisdom of Tarzan
> >>>
> >>>
> >>> _______________________________________________
> >>> Qgis-user mailing list
> >>> Qgis-user at lists.osgeo.org
> >>> http://lists.osgeo.org/mailman/listinfo/qgis-user
> >>
> >> -----
> >> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> >> http://www.kyngchaos.com/
> >>
> >> "This is a question about the past, is it? ... How can I tell that the
> >> past isn't a fiction designed to account for the discrepancy between my
> >> immediate physical sensations and my state of mind?"
> >>
> >> - The Ruler of the Universe
>
> -----
> William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
> http://www.kyngchaos.com/
>
> All generalizations are dangerous, even this one.
--
Dr. Marco Hugentobler
Sourcepole - Linux & Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee
More information about the Qgis-user
mailing list