J’ai une classe d’entités ponctuelles correspondant au centroïde d’un polygone, avec un attribut indiquant son statut. J’aimerais pouvoir symboliser le polygone en fonction des attributs du point. Les deux ont un GUID commun, et il n’y a qu’un seul point dans chaque polygone.
Je peux le faire dans la table attributaire avec ceci :
<SPAN class="keyword token">var</SPAN> GUID <SPAN class="operator token">=</SPAN> $feature<SPAN class="punctuation token">.</SPAN>GUID
<SPAN class="keyword token">var</SPAN> Lot <SPAN class="operator token">=</SPAN><SPAN class="token function">Filter</SPAN><SPAN class="punctuation token">(</SPAN><SPAN class="token function">FeatureSetByName</SPAN><SPAN class="punctuation token">(</SPAN>$map<SPAN class="punctuation token">,</SPAN><SPAN class="string token">"Points"</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"GUID = @GUID "</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">return</SPAN> <SPAN class="token function">first</SPAN><SPAN class="punctuation token">(</SPAN>Lot<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">[</SPAN><SPAN class="string token">"Status"</SPAN><SPAN class="punctuation token">]</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Ces fonctions ne sont pas disponibles pour la symbologie.
Une idée ?