Revision 41610 trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.editing.app/org.gvsig.editing.app.mainplugin/src/main/java/org/gvsig/editing/clipboard/util/FeatureTextUtils.java
FeatureTextUtils.java | ||
---|---|---|
40 | 40 |
import org.gvsig.fmap.geom.Geometry; |
41 | 41 |
import org.gvsig.fmap.geom.GeometryLocator; |
42 | 42 |
import org.gvsig.fmap.geom.GeometryManager; |
43 |
import org.gvsig.fmap.geom.exception.CreateGeometryException; |
|
44 | 43 |
import org.gvsig.fmap.geom.operation.GeometryOperationContext; |
45 | 44 |
import org.gvsig.tools.dispose.DisposableIterator; |
46 | 45 |
import org.slf4j.Logger; |
... | ... | |
66 | 65 |
public static final String CLIPBOARD_SEPARATOR_3 = "_GVSIGCOPYPASTESEPARATOR3_"; |
67 | 66 |
|
68 | 67 |
private static GeometryManager gm = null; |
69 |
private static Geometry nullgeo = null; |
|
70 | 68 |
private static GeometryOperationContext wktctxt = new GeometryOperationContext(); |
71 | 69 |
|
72 | 70 |
|
... | ... | |
77 | 75 |
return gm; |
78 | 76 |
} |
79 | 77 |
|
80 |
private static Geometry nullgeo() { |
|
81 |
if (nullgeo == null) { |
|
82 |
try { |
|
83 |
nullgeo = geoman().createNullGeometry(Geometry.SUBTYPES.GEOM2D); |
|
84 |
} catch (CreateGeometryException e) { |
|
85 |
logger.error("While creating null geometry", e); |
|
86 |
} |
|
87 |
} |
|
88 |
return nullgeo; |
|
89 |
|
|
90 |
} |
|
91 |
|
|
92 |
// private static GeometryOperationContext wktctxt(String val) { |
|
93 |
// wktctxt.setAttribute(FromWKTGeometryOperationContext.TEXT, val); |
|
94 |
// return wktctxt; |
|
95 |
// } |
|
96 |
|
|
97 |
|
|
98 | 78 |
public static boolean clipboardSeemsToHaveValidFeatures() { |
99 | 79 |
|
100 | 80 |
if (!textInClipboard()) { |
Also available in: Unified diff