http://geoparalinux.wordpress.com/2010/02/11/cortar-raster-com-poligono-shape-no-gvsig-1-9/<br><br>
<div style="margin: 0px 2px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="margin: 0px 1px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="padding: 4px; background-color: #c3d9ff;"><h3 style="margin:0px 3px;font-family:sans-serif">Enviado para você por termal12 através do Google Reader:</h3></div>
<div style="margin: 0px 1px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="margin: 0px 2px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="font-family:sans-serif;overflow:auto;width:100%;margin: 0px 10px"><h2 style="margin: 0.25em 0 0 0"><div class=""><a href="http://geoparalinux.wordpress.com/2010/02/11/cortar-raster-com-poligono-shape-no-gvsig-1-9/">Cortar raster com pol&iacute;gono shape no gvSIG 1.9</a></div></h2>
<div style="margin-bottom: 0.5em">via <a href="http://geoparalinux.wordpress.com" class="f">Geoprocessamento para Linux</a> de ezrandrade em 11/02/10</div><br style="display:none">
<br><p>A dica de hoje vai para um método facílimo para cortar uma imagem (seja de satélite, ortofotos ou até cartas topográficas) usando o módulo Sextante no gvSIG 1.9.</p>
<p>Para proceder, basta carregar seu arquivo raster e o shape.</p>
<p><a href="http://geoparalinux.files.wordpress.com/2010/02/012.png"><img title="01" src="http://geoparalinux.files.wordpress.com/2010/02/012.png?w=500&amp;h=312" alt="" width="500" height="312"></a></p>
<p>Para que sua imagem possa ser recortada na forma do shapefile (desculpem a redundância) basta acessar o módulo Sextante</p>
<p><a href="http://geoparalinux.files.wordpress.com/2010/02/021.png"><img title="02" src="http://geoparalinux.files.wordpress.com/2010/02/021.png?w=307&amp;h=183" alt="" width="307" height="183"></a></p>
<p>Com o Sextante aberto clique em <strong>Basic tools for raster layers</strong> e em seguida <strong>Crop grid with polygon layer</strong>. Uma nova janela se abrirá…</p>
<p><a href="http://geoparalinux.files.wordpress.com/2010/02/031.png"><img title="03" src="http://geoparalinux.files.wordpress.com/2010/02/031.png?w=399&amp;h=498" alt="" width="399" height="498"></a></p>
<p>Na nova janela que se abriu, no campo <strong>Raster layers [1]</strong>, você deverá escolher a imagem que você quer cortar, caso haja mais de uma.</p>
<p>No campo <strong>Vector layer [2]</strong>, você deverá selecionar o polígono que servirá como molde para a imagem, caso haja mais de uma.</p>
<p>No campo <strong>Cropped layer[raster] [3]</strong>, pode deixar como está marcado: [Save to temporary file], pois o resultado será um arquivo temporário que será aberto no gvSIG.</p>
<p>Dê <strong>OK</strong> e lhe será perguntado se você deseja abrir o arquivo resultante. Dê <strong>OK</strong> novamente.</p>
<p><a href="http://geoparalinux.files.wordpress.com/2010/02/041.png"><img title="04" src="http://geoparalinux.files.wordpress.com/2010/02/041.png?w=500&amp;h=291" alt="" width="500" height="291"></a></p>
<p>Com o resultado carregado, <strong>clique com o botão direito</strong> sobre o arquivo e clique em <strong>Save as</strong>. Dê o nome do arquivo e marque a caixa de seleção <strong>tfw</strong>: no lado direito da janela. esta opção é para que seja salvo junto de sua nova imagem o arquivo contendo as informações de georreferenciamento da mesma.</p>
<p><span style="color:#ff0000"><strong>OBS1: Leve sempre junto com a imagem e seu respectivo arquivo .tfw.</strong></span></p>
<p>O resultado final será o seguinte:</p>
<p><a href="http://geoparalinux.files.wordpress.com/2010/02/05.png"><img title="05" src="http://geoparalinux.files.wordpress.com/2010/02/05.png?w=500&amp;h=312" alt="" width="500" height="312"></a></p>
<p>Para que seu recorte assuma a composição colorida (no caso de imagens de satélite) siga a dica do ótimo blog Processamento Digital que se encontra <a title="Composição colorina no gvSIG 1.9" href="http://processamentodigital.blogspot.com/2009/12/como-gerar-uma-composicao-colorida-rgb.html">aqui</a>.</p>
<p>Para ocultar a moldura cinza que aparece no raster cortado (figura acima), é necessário primeiro, <strong>clicar com o botão direito do mouse</strong> sobre o layer da imagem e depois clicar em <strong>Propriedades da cobertura</strong>.</p>
<p><a href="http://geoparalinux.files.wordpress.com/2010/02/07.png"><img title="07" src="http://geoparalinux.files.wordpress.com/2010/02/07.png?w=196&amp;h=349" alt="" width="196" height="349"></a></p>
<p>Com a nova janela aberta, clique na <strong>aba Transparência</strong> e no campo Transparency by pixel clique em <strong>Activate</strong>. Perceba que que os campos <span style="text-decoration:underline">R</span> <span style="text-decoration:underline">G</span> <span style="text-decoration:underline">B</span> se acenderão; então, digite 97 (<em>que corresponde ao RGB da tonalidade de cinza da moldura</em>) nos respectivos campos e depois clique em <strong>Adicionar</strong> e depois e <strong>Aceitar</strong>.</p>
<p><a href="http://geoparalinux.files.wordpress.com/2010/02/08.png"><img title="08" src="http://geoparalinux.files.wordpress.com/2010/02/08.png?w=500&amp;h=446" alt="" width="500" height="446"></a></p>
<p>Pronto. Seu raster deverá ficar como abaixo.</p>
<p><a href="http://geoparalinux.files.wordpress.com/2010/02/06.png"><img title="06" src="http://geoparalinux.files.wordpress.com/2010/02/06.png?w=500&amp;h=312" alt="" width="500" height="312"></a></p>
<p>Até a próxima dica.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/geoparalinux.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/geoparalinux.wordpress.com/268/"></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/geoparalinux.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/geoparalinux.wordpress.com/268/"></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/geoparalinux.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/geoparalinux.wordpress.com/268/"></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/geoparalinux.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/geoparalinux.wordpress.com/268/"></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/geoparalinux.wordpress.com/268/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/geoparalinux.wordpress.com/268/"></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=geoparalinux.wordpress.com&amp;blog=4577844&amp;post=268&amp;subd=geoparalinux&amp;ref=&amp;feed=1"></div>
<br>
<div style="margin: 0px 2px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="margin: 0px 1px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="padding: 4px; background-color: #c3d9ff;"><h3 style="margin:0px 3px;font-family:sans-serif">Coisas que você pode fazer a partir daqui:</h3>
<ul style="font-family:sans-serif"><li><a href="http://www.google.com/reader/view/feed%2Fhttp%3A%2F%2Fgeoparalinux.wordpress.com%2Ffeed%2F?source=email">Inscrever-se no Geoprocessamento para Linux</a> usando o <b>Google Reader</b></li>
<li><a href="http://www.google.com/reader/?source=email">Começar a usar o Google Reader</a> para se manter facilmente atualizado sobre <b>todos os seus sites favoritos</b></li></ul></div>
<div style="margin: 0px 1px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>
<div style="margin: 0px 2px; padding-top: 1px;    background-color: #c3d9ff; font-size: 1px !important;    line-height: 0px !important;">&nbsp;</div>