[Gvsig_br] Fwd: Re: sobre a construção dos gradientes de cor para legendas no gvSIG
Eliazer Kosciuk
eliazerk em gmail.com
Segunda Setembro 17 21:09:32 PDT 2012
Confirmado: dentro do arquivo palettes.xml, um arquivo de gradiente é
composto por 256 níveis de cores, sendo que temos que designar a cor
para cada um desses níveis, no formato RGB. Para quem se interessar,
no exemplo a seguir criei uma rampa de cores com 3 cores:
<palette name="BuGn-3" interpolate="false">
<table>
<entry class="" argb="255,229,245,249" value="0" />
<entry class="" argb="255,229,245,249" value="1" />
<entry class="" argb="255,229,245,249" value="2" />
<entry class="" argb="255,229,245,249" value="3" />
<entry class="" argb="255,229,245,249" value="4" />
<entry class="" argb="255,229,245,249" value="5" />
<entry class="" argb="255,229,245,249" value="6" />
<entry class="" argb="255,229,245,249" value="7" />
<entry class="" argb="255,229,245,249" value="8" />
<entry class="" argb="255,229,245,249" value="9" />
<entry class="" argb="255,229,245,249" value="10" />
<entry class="" argb="255,229,245,249" value="11" />
<entry class="" argb="255,229,245,249" value="12" />
<entry class="" argb="255,229,245,249" value="13" />
<entry class="" argb="255,229,245,249" value="14" />
<entry class="" argb="255,229,245,249" value="15" />
<entry class="" argb="255,229,245,249" value="16" />
<entry class="" argb="255,229,245,249" value="17" />
<entry class="" argb="255,229,245,249" value="18" />
<entry class="" argb="255,229,245,249" value="19" />
<entry class="" argb="255,229,245,249" value="20" />
<entry class="" argb="255,229,245,249" value="21" />
<entry class="" argb="255,229,245,249" value="22" />
<entry class="" argb="255,229,245,249" value="23" />
<entry class="" argb="255,229,245,249" value="24" />
<entry class="" argb="255,229,245,249" value="25" />
<entry class="" argb="255,229,245,249" value="26" />
<entry class="" argb="255,229,245,249" value="27" />
<entry class="" argb="255,229,245,249" value="28" />
<entry class="" argb="255,229,245,249" value="29" />
<entry class="" argb="255,229,245,249" value="30" />
<entry class="" argb="255,229,245,249" value="31" />
<entry class="" argb="255,229,245,249" value="32" />
<entry class="" argb="255,229,245,249" value="33" />
<entry class="" argb="255,229,245,249" value="34" />
<entry class="" argb="255,229,245,249" value="35" />
<entry class="" argb="255,229,245,249" value="36" />
<entry class="" argb="255,229,245,249" value="37" />
<entry class="" argb="255,229,245,249" value="38" />
<entry class="" argb="255,229,245,249" value="39" />
<entry class="" argb="255,229,245,249" value="40" />
<entry class="" argb="255,229,245,249" value="41" />
<entry class="" argb="255,229,245,249" value="42" />
<entry class="" argb="255,229,245,249" value="43" />
<entry class="" argb="255,229,245,249" value="44" />
<entry class="" argb="255,229,245,249" value="45" />
<entry class="" argb="255,229,245,249" value="46" />
<entry class="" argb="255,229,245,249" value="47" />
<entry class="" argb="255,229,245,249" value="48" />
<entry class="" argb="255,229,245,249" value="49" />
<entry class="" argb="255,229,245,249" value="50" />
<entry class="" argb="255,229,245,249" value="51" />
<entry class="" argb="255,229,245,249" value="52" />
<entry class="" argb="255,229,245,249" value="53" />
<entry class="" argb="255,229,245,249" value="54" />
<entry class="" argb="255,229,245,249" value="55" />
<entry class="" argb="255,229,245,249" value="56" />
<entry class="" argb="255,229,245,249" value="57" />
<entry class="" argb="255,229,245,249" value="58" />
<entry class="" argb="255,229,245,249" value="59" />
<entry class="" argb="255,229,245,249" value="60" />
<entry class="" argb="255,229,245,249" value="61" />
<entry class="" argb="255,229,245,249" value="62" />
<entry class="" argb="255,229,245,249" value="63" />
<entry class="" argb="255,229,245,249" value="64" />
<entry class="" argb="255,229,245,249" value="65" />
<entry class="" argb="255,229,245,249" value="66" />
<entry class="" argb="255,229,245,249" value="67" />
<entry class="" argb="255,229,245,249" value="68" />
<entry class="" argb="255,229,245,249" value="69" />
<entry class="" argb="255,229,245,249" value="70" />
<entry class="" argb="255,229,245,249" value="71" />
<entry class="" argb="255,229,245,249" value="72" />
<entry class="" argb="255,229,245,249" value="73" />
<entry class="" argb="255,229,245,249" value="74" />
<entry class="" argb="255,229,245,249" value="75" />
<entry class="" argb="255,229,245,249" value="76" />
<entry class="" argb="255,229,245,249" value="77" />
<entry class="" argb="255,229,245,249" value="78" />
<entry class="" argb="255,229,245,249" value="79" />
<entry class="" argb="255,229,245,249" value="80" />
<entry class="" argb="255,229,245,249" value="81" />
<entry class="" argb="255,229,245,249" value="82" />
<entry class="" argb="255,229,245,249" value="83" />
<entry class="" argb="255,229,245,249" value="84" />
<entry class="" argb="255,229,245,249" value="85" />
<entry class="" argb="255,229,245,249" value="86" />
<entry class="" argb="255,153,216,201" value="87" />
<entry class="" argb="255,153,216,201" value="88" />
<entry class="" argb="255,153,216,201" value="89" />
<entry class="" argb="255,153,216,201" value="90" />
<entry class="" argb="255,153,216,201" value="91" />
<entry class="" argb="255,153,216,201" value="92" />
<entry class="" argb="255,153,216,201" value="93" />
<entry class="" argb="255,153,216,201" value="94" />
<entry class="" argb="255,153,216,201" value="95" />
<entry class="" argb="255,153,216,201" value="96" />
<entry class="" argb="255,153,216,201" value="97" />
<entry class="" argb="255,153,216,201" value="98" />
<entry class="" argb="255,153,216,201" value="99" />
<entry class="" argb="255,153,216,201" value="100" />
<entry class="" argb="255,153,216,201" value="101" />
<entry class="" argb="255,153,216,201" value="102" />
<entry class="" argb="255,153,216,201" value="103" />
<entry class="" argb="255,153,216,201" value="104" />
<entry class="" argb="255,153,216,201" value="105" />
<entry class="" argb="255,153,216,201" value="106" />
<entry class="" argb="255,153,216,201" value="107" />
<entry class="" argb="255,153,216,201" value="108" />
<entry class="" argb="255,153,216,201" value="109" />
<entry class="" argb="255,153,216,201" value="110" />
<entry class="" argb="255,153,216,201" value="111" />
<entry class="" argb="255,153,216,201" value="112" />
<entry class="" argb="255,153,216,201" value="113" />
<entry class="" argb="255,153,216,201" value="114" />
<entry class="" argb="255,153,216,201" value="115" />
<entry class="" argb="255,153,216,201" value="116" />
<entry class="" argb="255,153,216,201" value="117" />
<entry class="" argb="255,153,216,201" value="118" />
<entry class="" argb="255,153,216,201" value="119" />
<entry class="" argb="255,153,216,201" value="120" />
<entry class="" argb="255,153,216,201" value="121" />
<entry class="" argb="255,153,216,201" value="122" />
<entry class="" argb="255,153,216,201" value="123" />
<entry class="" argb="255,153,216,201" value="124" />
<entry class="" argb="255,153,216,201" value="125" />
<entry class="" argb="255,153,216,201" value="126" />
<entry class="" argb="255,153,216,201" value="127" />
<entry class="" argb="255,153,216,201" value="128" />
<entry class="" argb="255,153,216,201" value="129" />
<entry class="" argb="255,153,216,201" value="130" />
<entry class="" argb="255,153,216,201" value="131" />
<entry class="" argb="255,153,216,201" value="132" />
<entry class="" argb="255,153,216,201" value="133" />
<entry class="" argb="255,153,216,201" value="134" />
<entry class="" argb="255,153,216,201" value="135" />
<entry class="" argb="255,153,216,201" value="136" />
<entry class="" argb="255,153,216,201" value="137" />
<entry class="" argb="255,153,216,201" value="138" />
<entry class="" argb="255,153,216,201" value="139" />
<entry class="" argb="255,153,216,201" value="140" />
<entry class="" argb="255,153,216,201" value="141" />
<entry class="" argb="255,153,216,201" value="142" />
<entry class="" argb="255,153,216,201" value="143" />
<entry class="" argb="255,153,216,201" value="144" />
<entry class="" argb="255,153,216,201" value="145" />
<entry class="" argb="255,153,216,201" value="146" />
<entry class="" argb="255,153,216,201" value="147" />
<entry class="" argb="255,153,216,201" value="148" />
<entry class="" argb="255,153,216,201" value="149" />
<entry class="" argb="255,153,216,201" value="150" />
<entry class="" argb="255,153,216,201" value="151" />
<entry class="" argb="255,153,216,201" value="152" />
<entry class="" argb="255,153,216,201" value="153" />
<entry class="" argb="255,153,216,201" value="154" />
<entry class="" argb="255,153,216,201" value="155" />
<entry class="" argb="255,153,216,201" value="156" />
<entry class="" argb="255,153,216,201" value="157" />
<entry class="" argb="255,153,216,201" value="158" />
<entry class="" argb="255,153,216,201" value="159" />
<entry class="" argb="255,153,216,201" value="160" />
<entry class="" argb="255,153,216,201" value="161" />
<entry class="" argb="255,153,216,201" value="162" />
<entry class="" argb="255,153,216,201" value="163" />
<entry class="" argb="255,153,216,201" value="164" />
<entry class="" argb="255,153,216,201" value="165" />
<entry class="" argb="255,153,216,201" value="166" />
<entry class="" argb="255,153,216,201" value="167" />
<entry class="" argb="255,153,216,201" value="168" />
<entry class="" argb="255,153,216,201" value="169" />
<entry class="" argb="255,153,216,201" value="170" />
<entry class="" argb="255,44,162,95" value="171" />
<entry class="" argb="255,44,162,95" value="172" />
<entry class="" argb="255,44,162,95" value="173" />
<entry class="" argb="255,44,162,95" value="174" />
<entry class="" argb="255,44,162,95" value="175" />
<entry class="" argb="255,44,162,95" value="176" />
<entry class="" argb="255,44,162,95" value="177" />
<entry class="" argb="255,44,162,95" value="178" />
<entry class="" argb="255,44,162,95" value="179" />
<entry class="" argb="255,44,162,95" value="180" />
<entry class="" argb="255,44,162,95" value="181" />
<entry class="" argb="255,44,162,95" value="182" />
<entry class="" argb="255,44,162,95" value="183" />
<entry class="" argb="255,44,162,95" value="184" />
<entry class="" argb="255,44,162,95" value="185" />
<entry class="" argb="255,44,162,95" value="186" />
<entry class="" argb="255,44,162,95" value="187" />
<entry class="" argb="255,44,162,95" value="188" />
<entry class="" argb="255,44,162,95" value="189" />
<entry class="" argb="255,44,162,95" value="190" />
<entry class="" argb="255,44,162,95" value="191" />
<entry class="" argb="255,44,162,95" value="192" />
<entry class="" argb="255,44,162,95" value="193" />
<entry class="" argb="255,44,162,95" value="194" />
<entry class="" argb="255,44,162,95" value="195" />
<entry class="" argb="255,44,162,95" value="196" />
<entry class="" argb="255,44,162,95" value="197" />
<entry class="" argb="255,44,162,95" value="198" />
<entry class="" argb="255,44,162,95" value="199" />
<entry class="" argb="255,44,162,95" value="200" />
<entry class="" argb="255,44,162,95" value="201" />
<entry class="" argb="255,44,162,95" value="202" />
<entry class="" argb="255,44,162,95" value="203" />
<entry class="" argb="255,44,162,95" value="204" />
<entry class="" argb="255,44,162,95" value="205" />
<entry class="" argb="255,44,162,95" value="206" />
<entry class="" argb="255,44,162,95" value="207" />
<entry class="" argb="255,44,162,95" value="208" />
<entry class="" argb="255,44,162,95" value="209" />
<entry class="" argb="255,44,162,95" value="210" />
<entry class="" argb="255,44,162,95" value="211" />
<entry class="" argb="255,44,162,95" value="212" />
<entry class="" argb="255,44,162,95" value="213" />
<entry class="" argb="255,44,162,95" value="214" />
<entry class="" argb="255,44,162,95" value="215" />
<entry class="" argb="255,44,162,95" value="216" />
<entry class="" argb="255,44,162,95" value="217" />
<entry class="" argb="255,44,162,95" value="218" />
<entry class="" argb="255,44,162,95" value="219" />
<entry class="" argb="255,44,162,95" value="220" />
<entry class="" argb="255,44,162,95" value="221" />
<entry class="" argb="255,44,162,95" value="222" />
<entry class="" argb="255,44,162,95" value="223" />
<entry class="" argb="255,44,162,95" value="224" />
<entry class="" argb="255,44,162,95" value="225" />
<entry class="" argb="255,44,162,95" value="226" />
<entry class="" argb="255,44,162,95" value="227" />
<entry class="" argb="255,44,162,95" value="228" />
<entry class="" argb="255,44,162,95" value="229" />
<entry class="" argb="255,44,162,95" value="230" />
<entry class="" argb="255,44,162,95" value="231" />
<entry class="" argb="255,44,162,95" value="232" />
<entry class="" argb="255,44,162,95" value="233" />
<entry class="" argb="255,44,162,95" value="234" />
<entry class="" argb="255,44,162,95" value="235" />
<entry class="" argb="255,44,162,95" value="236" />
<entry class="" argb="255,44,162,95" value="237" />
<entry class="" argb="255,44,162,95" value="238" />
<entry class="" argb="255,44,162,95" value="239" />
<entry class="" argb="255,44,162,95" value="240" />
<entry class="" argb="255,44,162,95" value="241" />
<entry class="" argb="255,44,162,95" value="242" />
<entry class="" argb="255,44,162,95" value="243" />
<entry class="" argb="255,44,162,95" value="244" />
<entry class="" argb="255,44,162,95" value="245" />
<entry class="" argb="255,44,162,95" value="246" />
<entry class="" argb="255,44,162,95" value="247" />
<entry class="" argb="255,44,162,95" value="248" />
<entry class="" argb="255,44,162,95" value="249" />
<entry class="" argb="255,44,162,95" value="250" />
<entry class="" argb="255,44,162,95" value="251" />
<entry class="" argb="255,44,162,95" value="252" />
<entry class="" argb="255,44,162,95" value="253" />
<entry class="" argb="255,44,162,95" value="254" />
<entry class="" argb="255,44,162,95" value="255" />
</table>
</palette>
Para que vocês não tenham o trabalho de ter que copiar-colar, estou
enviando em anexo o arquivo palettes.xml com essa nova rampa de
cores... agora, preciso descobrir um jeito mais rápido e racional do
que copiar/colar o código RGB correspondente 256 vezes... alguma
sugestão?
[ ]s,
Eliazer Kosciuk
http://geo.ideaplus.com.br
-------------- Próxima Parte ----------
Um anexo não-texto foi limpo...
Nome: palettes.xml
Tipo: text/xml
Tamanho: 361892 bytes
Descrição: não disponível
URL: <http://lists.osgeo.org/pipermail/gvsig-brazil/attachments/20120918/912cf9e2/attachment.xml>
More information about the Gvsig_br
mailing list