Revision 24861 trunk/libraries/libTopology/src/org/gvsig/referencing/ReferencingUtil.java

View differences:

ReferencingUtil.java
54 54
import java.awt.geom.PathIterator;
55 55
import java.awt.geom.Point2D;
56 56
import java.rmi.server.UID;
57
import java.sql.Types;
58 57
import java.util.ArrayList;
59
import java.util.Collection;
60 58
import java.util.Iterator;
61 59
import java.util.List;
62 60
import java.util.Set;
......
101 99
import com.iver.cit.gvsig.fmap.drivers.LayerDefinition;
102 100
import com.iver.cit.gvsig.fmap.layers.FLayerGenericVectorial;
103 101
import com.iver.cit.gvsig.fmap.layers.FLyrVect;
102
import com.iver.cit.gvsig.fmap.rendering.IVectorLegend;
104 103
import com.iver.cit.gvsig.fmap.rendering.LegendFactory;
105
import com.iver.cit.gvsig.fmap.rendering.VectorialUniqueValueLegend;
106 104

  
107
//import org.geotools.referencefork.geometry.DirectPosition2D;
108
//import org.geotools.referencefork.geometry.Envelope2D;
109
//import org.geotools.referencefork.geometry.GeneralDirectPosition;
110
//import org.geotools.referencefork.geometry.GeneralEnvelope;
111
//import org.geotools.referencefork.resources.Utilities;
112
//import org.geotools.referencefork.resources.i18n.ErrorKeys;
113
//import org.geotools.referencefork.resources.i18n.Errors;
114
//import org.geotools.referencefork.util.UnsupportedImplementationException;
115
//import org.opengis.geometry.DirectPosition;
116
//import org.opengis.geometry.Envelope;
117
//import org.opengis.referencing.crs.CoordinateReferenceSystem;
118
//import org.opengis.referencing.operation.MathTransform;
119
//import org.opengis.referencing.operation.TransformException;
120
//import org.opengis.geometry.MismatchedDimensionException;
121 105

  
122 106
/**
123 107
 * This class has convenience methods to work simultaneusly with different
......
474 458
	public FLyrVect getTinAsFMapLyr(RubberSheetBuilder rbBuilder, IProjection projection){
475 459
		FLyrVect solution = null;
476 460
		List<IFeature> features = new ArrayList<IFeature>();
477
//		Collection tinCollection = rbBuilder.getMapTriangulation().values();
478 461
		Set tinCollection = rbBuilder.getMapTriangulation().keySet();
479 462
		if(tinCollection.size() > 0){
480 463
			Iterator triangles = tinCollection.iterator();	
......
511 494
			((FLayerGenericVectorial)solution).setDriver(driver);
512 495
			try {
513 496
				solution.load();
514
				VectorialUniqueValueLegend defaultLegend = 
515
					LegendFactory.createVectorialUniqueValueLegend(FShape.POLYGON);
516
				defaultLegend.setClassifyingFieldNames(new String[] {"fid"});
517
				defaultLegend.setClassifyingFieldTypes(new int[]{Types.NUMERIC});
497
				IVectorLegend defaultLegend = 
498
					LegendFactory.createSingleSymbolLegend(FShape.POLYGON);
518 499
				defaultLegend.setDefaultSymbol(SymbologyFactory.
519 500
						createDefaultSymbolByShapeType(FShape.POLYGON, Color.GREEN));
520 501
				solution.setLegend(defaultLegend);

Also available in: Unified diff