<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hola a todos,<br>
<br>
os pongo un poco en contexto. Estoy intentando obtener los datos de
un raster a partir de una coordenadas. En algunas ocasiones estas
coordenadas abarcan zonas fuera de la extensión del raster, por lo
que quiero que al obtener los datos del raster las zonas fuera de la
extensión tengan valores NoData mientras que las zonas dentro de la
extensión tengan los valores del raster. El problema que tengo es
que no consigo obtener el buffer como lo he descrito anteriormente.
<br>
<br>
Esta es la query que estoy construyendo para la obtención de los
datos:<br>
<br>
<small><font face="Courier 10 Pitch">RasterManager rasterManager =
RasterLocator.getManager();<br>
DataStructFactory dataStructFactory =
rasterManager.getDataStructFactory();<br>
Extent extent = dataStructFactory.createExtent(degreesRect); //
Coordenadas de las que quiero obtener los datos<br>
<br>
RasterQuery query = RasterLocator.getManager().createQuery();<br>
query.setSupersamplingOption(false);<br>
query.setDrawableBands(new int[] { 0 });<br>
query.setAdjustToExtent(false);<br>
query.setReadOnly(true);<br>
query.setNoDataToFill(dataStructFactory.createDefaultNoData(1,
Buffer.TYPE_FLOAT));<br>
query.setAreaOfInterest(extent);<br>
<br>
Buffer buffer = rasterLayer.getDataStore().query(query);</font></small><br>
<br>
A ver si alguien es capaz de ayudarme.<br>
<br>
Un saludo,<br>
Lluís.<br>
<br>
<br>
<div class="moz-signature">-- <br>
<title>Firma DISID</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
/* CLIENT-SPECIFIC STYLES */
        <!--
         @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi), (min-resolution: 1.5dppx) {
         .logo {
         background-size: 120px 35px !important;
         }
         /* .logo-img {
         display: none !important;
         */}
         a{
                 color: #002436;
                 text-decoration: none;
                 }
         }
                -->
</style>
<table class="email-container" style="margin-top: 0;margin-bottom:
0;margin-left: 0;max-width: 684px;" width="684">
<tbody>
<tr>
<td>
<table id="header" style="background-color: #366180;
border-top: 5px solid #002436; width: 684px; min-width:
584px;" width="684">
<tbody>
<tr>
<td class="profile" style="height: 32px;
padding-top: 6px; padding-bottom: 6px;
padding-left: 8px; padding-right: 8px;">
<!-- Datos personales -->
<p style="font-family: Helvetica, Arial,
sans-serif; font-size: 13px; line-height: 15px;
color: #FFFFFF;"> <span id="name-input"
style="font-weight: bold;">Lluís Marqués
Castelló</span> <span id="title">/</span> <span
id="title-input" style="color: #fff;">Ingeniero
de Software</span> </p>
<p style="font-family: Helvetica, Arial,
sans-serif; font-size: 12px; line-height: 14px;
color: #FFFFFF;"> <span id="email"
style="color: #fff;">email: </span><a
id="email-input"
href="mailto:[tucorreo]@disid.com"
style="color: #FFFFFF; text-decoration: none;">lmarques@disid.com</a><br>
</p>
</td>
</tr>
</tbody>
</table>
<table id="main" style="background: #FFF; border-collapse:
collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt;
max-width: 100%; width: 100%;" width="100%"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td>
<table style="border-collapse: collapse;
mso-table-lspace: 0pt; mso-table-rspace: 0pt;
max-width: 100%; width: 100%;" width="100%"
cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="logo" style="padding-top: 18px;
padding-bottom: 6px; padding-left: 8px;
padding-right: 8px; overflow-wrap:
break-word; word-wrap: break-word;
max-width: 620px;"> <a
moz-do-not-send="true"
href="http://www.disid.com"
title="DISID" style="color: #5FB336;
text-decoration: none;"> <img
src="cid:part2.05080306.03010006@disid.com"
style="outline: none; text-decoration:
none;" alt="DISID" class="logo-img"
height="35" width="120"> </a> </td>
<td style="padding-top: 18px;
padding-bottom: 6px; padding-left: 8px;
padding-right: 8px; overflow-wrap:
break-word; word-wrap: break-word;
max-width: 620px;">
<!-- Empresa- Redes -->
<p style="font-family: Helvetica, Arial,
sans-serif; font-size: 12px;
line-height: 15px;"> <span id="company"
style="font-weight: bold; color:
#999;"> DISID Corporation S.L.</span>
<span id="office" style="color: #999;">Tfno:
</span> <span id="office-input"
style="color: #999;">34 963 516 309</span>
<span id="fax" style="color: #999;">/
Fax: </span> <span id="fax-input"
style="color: #999;">96 119 81 10</span>
<span id="address"><br>
</span> <span id="address-input"
style="color: #999;">C/ San Vicente
84, 5 A 46002 Valencia - España</span><br>
<a id="website"
href="http://www.disid.com"
style="color: rgb(54, 97, 128);
text-decoration: none;">http://www.disid.com</a>
</p>
<p style="font-family: Helvetica, Arial,
sans-serif; font-size: 12px;
line-height: 14px;"> <a
id="facebook-input"
href="http://www.facebook.com/DISIDCorp">
<img
src="cid:part5.07030208.03080604@disid.com"
alt="Facebook" width="22"></a> <a
id="twitter-input"
href="http://twitter.com/disid_corp">
<img
src="cid:part7.09080206.04060008@disid.com"
alt="Twitter" width="22"></a> <a
id="linkedin-input"
href="http://www.linkedin.com/company/disid">
<img
src="cid:part9.03080300.05020904@disid.com"
alt="Linkedin" width="22"></a> <a
id="github-input"
href="http://github.com/disid/"> <img
src="cid:part11.07000207.05030405@disid.com" alt="Github" width="22"></a>
</p>
</td>
</tr>
<tr>
<td style="padding-top: 0; overflow-wrap:
break-word; word-wrap: break-word;
max-width: 620px;" colspan="2"
align="right">
<h3 style="font-weight: normal;
font-family: helvetica, arial,
sans-serif; color: #366180; font-size:
18px; line-height: 22px; margin-top: 0;
margin-right: 0; margin-bottom: 0;
padding: 10px; margin-left: 0;
background: #f9f9f9;" align="right"><em>Proveedor
de soluciones software</em></h3>
</td>
</tr>
</tbody>
</table>
<!-- END -->
<table id="confidencial" style="border-top: 1px
solid #E7E4E3; border-collapse: collapse;
mso-table-lspace: 0pt; mso-table-rspace: 0pt;
max-width: 100%; width: 100%; background:
#FCFCFC;" width="100%" cellpadding="32"
cellspacing="0">
<tbody>
<tr>
<td>
<p style="color: #747474; font-family:
helvetica, arial, sans-serif;
text-align:justify; font-size:10px;
line-height: 16px; margin-top: 0px;
margin-right: 0px; margin-bottom: 14px;
margin-left: 0px;"><span
style="font-weight: bold;">Confidencialidad:</span>
Esta comunicación contiene información
que puede ser confidencial y
privilegiada. Es para uso exclusivo del
destinatario indicado. Si no es Vd. el
destinatario, por favor tome nota de que
cualquier distribución, copia o uso de
esta comunicaciòn o información está
estrictamente prohibido. Si ha recibido
este mensaje por error, por favor
avísenos por e-mail a <a style="color:
#366180;" href="mailto:info@disid.com">info@disid.com</a>
y después destruya el mensaje y
cualquier copia de él. Las opiniones
expresadas en el mensaje pueden ser
personales y no necesariamente opiniones
de DISID Corporation, S.L.</p>
<p style="color: #747474; font-family:
helvetica, arial, sans-serif;
text-align:justify; font-size:10px;
line-height: 16px; margin-top: 0px;
margin-right: 0px; margin-bottom: 14px;
margin-left: 0px;"><span
style="font-weight: bold;">Virus y
Seguridad:</span> Aunque hemos tomado
las medidas para asegurarnos que este
correo electrónico y sus ficheros
adjuntos están libres de virus, le
recomendamos que a efectos de mantener
buenas prácticas de seguridad, el
receptor debe asegurarse que este correo
y sus ficheros adjuntos están libres de
virus. </p>
</td>
</tr>
</tbody>
</table>
<!-- .l-pad --> </td>
</tr>
</tbody>
</table>
<!--end .footer--> </td>
</tr>
</tbody>
</table>
<!--end .email-container--> <br>
</div>
</body>
</html>