<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hola Cesar gracias por responder:<BR>
&nbsp;<BR>
me estoy inciando en este fantastico mundo, haber si me ayudas en darme&nbsp;la lengueta completa<BR>
&nbsp;<BR>
dime este codigo lo pego en la public void excute(String actionCommad){<BR>
&nbsp;<BR>
} de la extension<BR>
&nbsp;<BR>
&nbsp;<BR>
gracias de antemano<BR>
Atte.<BR>
Robert Zavaleta<BR>
&nbsp;<BR>&nbsp;<BR>
<HR id=stopSpelling>
Date: Tue, 23 Jun 2009 10:51:07 +0200<BR>From: cescriba@gmail.com<BR>To: gvsig_desarrolladores@listserv.gva.es<BR>Subject: Re: [Gvsig_desarrolladores] informacion de Capa<BR><BR>
<DIV>Hola Elder.</DIV>
<DIV>Si estas programando puedes acceder al objeto ReadableVectorial de la capa (Capa de Tipo FLyrVect)</DIV>
<DIV>&nbsp;</DIV>
<DIV>Por ejemplo:</DIV>
<DIV><FONT size=2>
<BR></FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2>ReadableVectorial rvBD</FONT></FONT><FONT size=2> = </FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2>layerBDV</FONT></FONT><FONT size=2>.getSource();</FONT><FONT size=2> 
<P align=left>IFeature feature=</P></FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>null</FONT></FONT></B><FONT size=2>; 
<P align=left></P></FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>try</FONT></FONT></B><FONT size=2> { 
<P align=left>//Puede acceder a cada feature de la capa. En este caso estoy tomando la primera.</P>
<P align=left>feature = rvSHP.getFeature(1);</P>
<P align=left>} </P></FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>catch</FONT></FONT></B><FONT size=2> (ExpansionFileReadException e) { 
<P align=left></P></FONT><FONT color=#3f7f5f size=2><FONT color=#3f7f5f size=2>// </FONT></FONT><B><FONT color=#7f9fbf size=2><FONT color=#7f9fbf size=2>TODO</FONT></FONT></B><FONT color=#3f7f5f size=2><FONT color=#3f7f5f size=2> Auto-generated catch block</FONT></FONT><FONT size=2> 
<P align=left>e.printStackTrace();</P>
<P align=left>} </P></FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>catch</FONT></FONT></B><FONT size=2> (ReadDriverException e) { 
<P align=left></P></FONT><FONT color=#3f7f5f size=2><FONT color=#3f7f5f size=2>// </FONT></FONT><B><FONT color=#7f9fbf size=2><FONT color=#7f9fbf size=2>TODO</FONT></FONT></B><FONT color=#3f7f5f size=2><FONT color=#3f7f5f size=2> Auto-generated catch block</FONT></FONT><FONT size=2> 
<P align=left>e.printStackTrace();</P>
}<BR>
//La feature tiene una serie de valores almacenado en un array, una geometría y un GID.<BR></FONT><FONT size=2><FONT size=2>
<P align=left></P></FONT><FONT color=#3f7f5f size=2><FONT color=#3f7f5f size=2>//Creo variables donde almacenar valores de atributos y geometrías.</FONT></FONT><FONT size=2> 
<P align=left></P></FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2>Value[] valor</FONT></FONT><FONT size=2>=</FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>null</FONT></FONT></B></FONT><FONT size=2>; 
<P align=left></P></FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2>IGeometry geometry</FONT></FONT><FONT size=2>=</FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>null</FONT></FONT></B><FONT size=2>; 
<P align=left></P></FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2>String id</FONT></FONT><FONT size=2>=</FONT><B><FONT color=#7f0055 size=2><FONT color=#7f0055 size=2>null</FONT></FONT></B><FONT size=2>;</FONT> 
<P align=left><FONT size=2>&nbsp;</FONT></P><FONT size=2>
<P align=left></P></FONT><FONT color=#3f7f5f size=2><FONT color=#3f7f5f size=2>//Toma el valor de los atributos y la geometría.</FONT></FONT><FONT size=2> 
<P align=left></P></FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2>valor</FONT></FONT><FONT size=2>=feature.getAttributes(); 
<P align=left></P></FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2>geometry</FONT></FONT><FONT size=2>=feature.getGeometry(); 
<BR></FONT><FONT color=#0000c0 size=2><FONT color=#0000c0 size=2>id</FONT></FONT><FONT size=2>=feature.getID();</FONT> 
<FONT size=2></FONT>&nbsp;<BR>
<FONT size=2>//De este modo ya tienes los valores de los atributos de la feature almacenados en el array 'valor'.</FONT><BR>
<FONT size=2>Sólo tienes que recorrer el array para acceder a ellos.</FONT><BR>
<FONT size=2></FONT>&nbsp;<BR>
<FONT size=2>Si tienes algún problema&nbsp;o no sábes cómo arrancar a partir de la capa FLyrVect dímelo y te incluyo más código.</FONT><BR><BR><BR></DIV>
<DIV class=EC_gmail_quote>El 23 de junio de 2009 02:00, Elder Robert Zavaleta Veneros <SPAN dir=ltr>&lt;<A href="mailto:erobert_zv@hotmail.com">erobert_zv@hotmail.com</A>&gt;</SPAN> escribió:<BR>
<BLOCKQUOTE class=EC_gmail_quote style="PADDING-LEFT: 1ex; BORDER-LEFT: #ccc 1px solid">
<DIV>Hola a todos:<BR>estoy generando una extension y nesecito saber en donde se almacena el valor de campos<BR>de&nbsp;la capa cargada, como muestro en la imagen<BR>&nbsp;<BR>Gracias de antemano<BR>&nbsp;<BR>Atte.<BR>Robert Zavaleta<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;<BR><BR>
<HR>
What can you do with the new Windows Live? <A href="http://www.microsoft.com/windows/windowslive/default.aspx">Find out</A></DIV><BR>_______________________________________________<BR>gvSIG_desarrolladores mailing list<BR><A href="mailto:gvSIG_desarrolladores@listserv.gva.es">gvSIG_desarrolladores@listserv.gva.es</A><BR><A href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores</A><BR><BR></BLOCKQUOTE></DIV><BR><br /><hr />check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox.
 <a href='http://www.microsoft.com/windows/windowslive/' target='_new'>More than messages</a></body>
</html>