Here is a solution for whose want to create specific svg file depending on the feature dataLanguage c++ / QT4.8.5, qgis api c++ 2.8.2
A svg file contains xml codeIn this exemple we put a specific color and change the use based on the 'vitesse' parameter of the featureThis sample code draw 3 differents arrows : small medium and large ina 30x30 pixels matrix
here the function :
void createTrackIco(QgsFeature pFeature, int pTrackId,bool pUpdateIco){ QString lColorIco; QString lUseIco; double lVitesse; if (pUpdateIco) { // get the feature data lColorIco = pFeature.attribute("COLOR").toString(); lVitesse = pFeature.attribute("VITESSE").toDouble(); if (lVitesse
A svg file contains xml codeIn this exemple we put a specific color and change the use based on the 'vitesse' parameter of the featureThis sample code draw 3 differents arrows : small medium and large ina 30x30 pixels matrix
here the function :
void createTrackIco(QgsFeature pFeature, int pTrackId,bool pUpdateIco){ QString lColorIco; QString lUseIco; double lVitesse; if (pUpdateIco) { // get the feature data lColorIco = pFeature.attribute("COLOR").toString(); lVitesse = pFeature.attribute("VITESSE").toDouble(); if (lVitesse