<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">El 21/05/13 23:47, Jose Pedro Luna
      Mayorquin escribi&oacute;:<br>
    </div>
    <blockquote
      cite="mid:1369172841.1343.YahooMailNeo@web120506.mail.ne1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:times
        new roman, new york, times, serif;font-size:12pt">
        <div style="font-family: 'times new roman', 'new york', times,
          serif; font-size: 12pt;"><span><br>
          </span></div>
        <div style="font-family: 'times new roman', 'new york', times,
          serif; font-size: 12pt;">Hola estoy realizando un script
          jython en gvsig 2.0 en el cual quiero seleccionar los
          elementos de un DXF &nbsp;y exportarlos a a SHP ya logre realizar
          la selecci&oacute;n pero no he podido exportar la capa lo que llevo
          es lo siguiente:</div>
        <div style="font-family: 'times new roman', 'new york', times,
          serif; font-size: 12pt;"><br>
        </div>
        <div style="font-family: 'times new roman', 'new york', times,
          serif; font-size: 16px; color: rgb(0, 0, 0); background-color:
          transparent; font-style: normal;"><br>
        </div>
        <div style="background-color: transparent;">
          <div style="background-color: transparent;">def main():</div>
          <div style="background-color: transparent;">&nbsp; &nbsp; #Remove this
            lines and add here your code</div>
          <div style="background-color: transparent;">&nbsp; &nbsp; layer =
            currentLayer()</div>
          <div style="background-color: transparent;">&nbsp; &nbsp; features =
            layer.features("(Layer = 'LOTE' and (Entity = 'Polyline' or
            Entity = 'LwPolyline')) or (Entity = 'Text' and &nbsp;Layer =
            'NUMERO')")</div>
          <div style="background-color: transparent;">&nbsp; &nbsp; crs =
            currentProject().getProjectionCode()</div>
          <div style="background-color: transparent;">&nbsp; &nbsp; print crs</div>
          <div style="background-color: transparent;">&nbsp; &nbsp; nosel =
            features.getCount()&nbsp;</div>
          <div style="background-color: transparent;">&nbsp; &nbsp; print nosel</div>
          <div style="background-color: transparent;">&nbsp; &nbsp;&nbsp;</div>
          <div style="background-color: transparent;">&nbsp; &nbsp;&nbsp;</div>
          <div style="background-color: transparent;">espero que me
            puedan apoyar</div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    Hola Jos&eacute; Pedro,<br>
    <br>
    En esta entrada del blog[1] tienes un ejemplo de c&oacute;mo crear un shp
    desde cero y a&ntilde;adirle geometr&iacute;as. F&iacute;jate en las llamadas
    "gvsig.createSchema" y "gvsig.createShape".<br>
    <br>
    Saludos y suerte<br>
    <br>
    [1]
    <meta http-equiv="content-type" content="text/html;
      charset=ISO-8859-1">
    <a
href="http://blog.gvsig.org/2012/12/06/scripting-generar-una-poligonal-a-partir-de-un-rumbo/">http://blog.gvsig.org/2012/12/06/scripting-generar-una-poligonal-a-partir-de-un-rumbo/</a><br>
    <br>
    <pre class="moz-signature" cols="72">-- 
Jorge Gaspar Sanz Salinas
gvSIG Team at Prodevelop
<a class="moz-txt-link-freetext" href="http://www.gvsig.org">http://www.gvsig.org</a>
<a class="moz-txt-link-freetext" href="http://www.gvsig.com">http://www.gvsig.com</a>
</pre>
  </body>
</html>