Revision 15477 import/ext3D/branches/ext3D_v1.1/lib3DMap/src/com/iver/ai2/gvsig3d/cacheservices/VectorCacheService.java

View differences:

VectorCacheService.java
38 38
import com.iver.cit.gvsig.fmap.layers.FLyrVect;
39 39
import com.iver.cit.gvsig.fmap.operations.strategies.DefaultStrategy;
40 40
import com.iver.cit.gvsig.fmap.operations.strategies.Strategy;
41
import com.iver.cit.gvsig.fmap.rendering.IVectorialLegend;
41
import com.iver.cit.gvsig.fmap.rendering.IVectorLegend;
42 42
import com.iver.cit.gvsig.fmap.rendering.ZSort;
43 43
import com.iver.utiles.swing.threads.Cancellable;
44 44

  
......
674 674
												 * getProjection()
675 675
												 */);
676 676

  
677
					ZSort zSort = ((IVectorialLegend) fLyrVect.getLegend())
677
					ZSort zSort = ((IVectorLegend) fLyrVect.getLegend())
678 678
							.getZSort();
679 679
					if (zSort != null && zSort.isUsingZSort()) {
680 680
						BufferedImage[] imageLevels = new BufferedImage[zSort
......
692 692
							IFeature feat = it.next();
693 693
							IGeometry geom = feat.getGeometry();
694 694

  
695
							ISymbol sym = ((IVectorialLegend) fLyrVect
695
							ISymbol sym = ((IVectorLegend) fLyrVect
696 696
									.getLegend()).getSymbolByFeature(feat);
697 697
							if (sym instanceof IMultiLayerSymbol) {
698 698
								IMultiLayerSymbol mlSym = (IMultiLayerSymbol) sym;
......
717 717

  
718 718
						while (!cancel.isCanceled() && it.hasNext()) {
719 719
							IFeature feat = it.next();
720
							ISymbol sym = ((IVectorialLegend) fLyrVect
720
							ISymbol sym = ((IVectorLegend) fLyrVect
721 721
									.getLegend()).getSymbolByFeature(feat);
722 722
							IGeometry geom = feat.getGeometry();
723 723

  
......
727 727
				} catch (ReadDriverException e) {
728 728

  
729 729
					throw e;
730
				} catch (ExpansionFileReadException e) {
731

  
732
					// throw new DriverException(e);
733
					// TODO throw a correct exception (??? ReadDriverException
734
					// ???)
735
					e.printStackTrace();
736 730
				}
737 731
			}
738 732

  
......
758 752
			try {
759 753
				while (it.hasNext()) {
760 754
					IFeature feat = it.next();
761
					ISymbol sym = ((IVectorialLegend) fLyrVect.getLegend())
755
					ISymbol sym = ((IVectorLegend) fLyrVect.getLegend())
762 756
							.getSymbolByFeature(feat);
763 757
					IGeometry geom = feat.getGeometry();
764 758
					

Also available in: Unified diff