hi, <br> Im using qgis to render .shp(esri) files. I use different layers but the one I have a problem with is a street vector layer.<br><br>The display of the streets is fine but when I try to enable the labels which are street names every single one of them merely prints "Label"<br>
<br>so everywhere instead of the street name its "Label" that is printed.<br><br>Here's the code Im using:<br><br> QgsLabel *label = vLayer->label();<br> QgsFieldMap fields = vLayer->dataProvider()->fields();<br>
label->setFields(fields);<br>QgsLabelAttributes *attributes = <br> label->layerAttributes(); <br>attributes->setColor(Qt::white);<br>vLayer->enableLabels(true);<br>
<br clear="all">Im wondering what Im missing here.<br><br>thanks for any help<br>-M<br>-- <br>Mathieu Dube<br>Software Engineer<br>MobileFusion, Inc<br>2715 Sarah St<br>Pittsburgh PA, 15203<br>Main: 412.481.1111 Ext:140<br>
Fax: 412.481.0220<br>Email: <a href="mailto:mathieu@mobilefusioninc.com">mathieu@mobilefusioninc.com</a><br>URL: <a href="http://www.mobilefusioninc.com">www.mobilefusioninc.com</a><br>****************************************************************************<br>
This communication (including any attachments) is for the use of the intended recipient(s) only and may contain information that is confidential, privileged or otherwise legally protected. Any unauthorized use or dissemination of this communication is prohibited. If you have received this communication in error, please immediately notify the sender by return e-mail message and delete all copies of the original communication. Thank you for your cooperation.<br>
<br> <br>