Revision 40391 branches/v2_0_0_prep/libraries/libFMap_controls/src/org/gvsig/fmap/mapcontrol/dal/feature/swing/table/GeometryCellRenderer.java

View differences:

GeometryCellRenderer.java
31 31
import org.gvsig.fmap.geom.Geometry;
32 32
import org.gvsig.fmap.geom.operation.GeometryOperationException;
33 33
import org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException;
34
import org.gvsig.fmap.geom.operation.towkt.ToWKT;
35 34

  
36 35
/**
37 36
 * Simple renderer for cells of type {@link Geometry} .
38 37
 * 
39
 * @author <a href="mailto:cordin@disid.com">C?sar Ordi?ana</a>
38
 * @author <a href="mailto:cordin@disid.com">C�sar Ordi�ana</a>
40 39
 */
41 40
public class GeometryCellRenderer extends DefaultTableCellRenderer {
42 41

  
......
48 47
        } else {
49 48
            Geometry geometry = (Geometry) value;
50 49
            try {
51
                String geomTxt = (String) geometry.invokeOperation(ToWKT.CODE,
52
                        null);
50
                String geomTxt = geometry.convertToWKT();
53 51
                setText(geomTxt);
54 52
            } catch (GeometryOperationNotSupportedException e) {
55 53
                throw new RuntimeException(

Also available in: Unified diff