Revision 8181 trunk/extensions/extCAD/src/com/iver/cit/gvsig/ExportTo.java
ExportTo.java | ||
---|---|---|
1 | 1 |
package com.iver.cit.gvsig; |
2 | 2 |
|
3 | 3 |
import java.awt.Component; |
4 |
import java.awt.Cursor; |
|
4 | 5 |
import java.awt.geom.Point2D; |
5 | 6 |
import java.io.File; |
6 | 7 |
import java.io.IOException; |
8 |
import java.nio.charset.Charset; |
|
7 | 9 |
import java.sql.Connection; |
8 | 10 |
import java.sql.DriverManager; |
9 | 11 |
import java.sql.SQLException; |
... | ... | |
620 | 622 |
lyrDef.setShapeType(layer.getShapeType()); |
621 | 623 |
writer.setFile(newFile); |
622 | 624 |
writer.initialize(lyrDef); |
625 |
// CODIGO PARA EXPORTAR UN SHP A UN CHARSET DETERMINADO |
|
626 |
// ES UTIL PARA QUE UN DBF SE VEA CORRECTAMENTE EN EXCEL, POR EJEMPLO |
|
627 |
// Charset resul = (Charset) JOptionPane.showInputDialog((Component)PluginServices.getMDIManager().getActiveWindow(), |
|
628 |
// PluginServices.getText(ExportTo.class, "select_charset_for_writing"), |
|
629 |
// "Charset", JOptionPane.QUESTION_MESSAGE, null, |
|
630 |
// Charset.availableCharsets().values().toArray(), |
|
631 |
// writer.getCharsetForWriting().displayName()); |
|
632 |
// if (resul == null) |
|
633 |
// return; |
|
634 |
// Charset charset = resul; |
|
635 |
// writer.setCharsetForWriting(charset); |
|
623 | 636 |
writeFeatures(mapContext, layer, writer, drv); |
624 | 637 |
|
625 | 638 |
} |
Also available in: Unified diff