Revision 22883 trunk/libraries/libTopology/src/org/gvsig/fmap/core/FLyrUtil.java

View differences:

FLyrUtil.java
110 110
		}//while
111 111
		return activeVectorialLyrs;
112 112
	}
113
	
114
	public static List<FLyrVect> getLayersOfType(MapContext mapContext, int shapeType){
115
		List<FLyrVect> activeVectorialLyrs = new ArrayList<FLyrVect>();
116
		LayersIterator it = new LayersIterator(mapContext.getLayers());
117
		while (it.hasNext())
118
		{
119
			FLayer aux = (FLayer) it.next();
120
			if(aux instanceof FLyrVect)
121
			{
122
				FLyrVect aux2 = (FLyrVect)aux;
123
				try {
124
					if(aux2.getShapeType() == shapeType)
125
						activeVectorialLyrs.add((FLyrVect)aux);
126
				} catch (ReadDriverException e) {
127
					continue;
128
				}
129
			}//if
130
		}//while
131
		return activeVectorialLyrs;
132
	}
113 133

  
114 134
}

Also available in: Unified diff