Revision 23163 trunk/extensions/extTopology/src/com/iver/cit/gvsig/referencing/MappedPositionContainerImpl.java
MappedPositionContainerImpl.java | ||
---|---|---|
56 | 56 |
import org.cresques.cts.IProjection; |
57 | 57 |
import org.geotools.referencefork.referencing.operation.builder.MappedPosition; |
58 | 58 |
import org.gvsig.referencing.MappedPositionContainer; |
59 |
import org.gvsig.referencing.ReferencingUtil; |
|
59 | 60 |
|
60 | 61 |
import com.iver.andami.PluginServices; |
61 | 62 |
import com.iver.cit.gvsig.drivers.VectorErrorMemoryDriver; |
... | ... | |
74 | 75 |
*/ |
75 | 76 |
public class MappedPositionContainerImpl implements MappedPositionContainer { |
76 | 77 |
|
77 |
/** |
|
78 |
* Number of created dialogs counter. |
|
79 |
*/ |
|
80 |
private static int numberOfCreatedLyrs = 0; |
|
81 | 78 |
|
82 | 79 |
|
83 |
|
|
84 | 80 |
/** |
85 | 81 |
* Digitized vector errors |
86 | 82 |
*/ |
... | ... | |
120 | 116 |
//HAY QUE A?ADIR ALGUNA EXTENSION AL TOC?? |
121 | 117 |
public FLyrVect getLinkLyr(IProjection projection){ |
122 | 118 |
if(linksLyr == null){ |
119 |
ReferencingUtil ref = ReferencingUtil.getInstance(); |
|
120 |
int numberOfSessions = ref.getNumberOfSpatialAdjustSessions(); |
|
123 | 121 |
linksLyr = new FLayerGenericVectorial(); |
124 | 122 |
String name = PluginServices.getText(this, "LINKS_SPATIAL_ADJUST") + |
125 | 123 |
"_" + |
126 |
MappedPositionContainerImpl.numberOfCreatedLyrs++; |
|
124 |
numberOfSessions; |
|
125 |
ref.incrementAdjustSessions(); |
|
127 | 126 |
linksLyr.setName(name); |
128 | 127 |
linksLyr.setProjection(projection); |
129 | 128 |
((FLayerGenericVectorial)linksLyr).setDriver(new VectorErrorMemoryDriver(name, this)); |
Also available in: Unified diff