[Gvsig_desarrolladores] problema al cargar shape

jjreina jreinapascual en gmail.com
Mie Jun 24 12:54:43 CEST 2009


Hola a todos, estoy intentando cargar un archivo shp, pero cuando lo pruebo
en la ventana Vista,se ve que carga el archivo, pero no se ve la imagen y el
nombre del archivo aparece con una x en rojo, os dejo el codigo por si veis
algún error.

Un saludo y muchas gracas.

View v = (View) PluginServices.getMDIManager().getActiveWindow();

LayerFactory.setDriversPath("C:/gvSIG112src/_fwAndami/gvSIG/extensiones/com.iver.cit.gvsig/drivers");

FLayer l = LayerFactory.createLayer("Cities",
(VectorialFileDriver)LayerFactory.getDM().getDriver("gvSIG shp driver"),new
File("C:/cities.shp"),CRSFactory.getCRS("EPSG:23030"));

MapControl newMapControl = v.getMapControl();
newMapControl .getMapContext().getLayers().addLayer(l);
			
-- 
View this message in context: http://n2.nabble.com/problema-al-cargar-shape-tp3147970p3147970.html
Sent from the gvSIG desarrolladores mailing list archive at Nabble.com.



More information about the gvSIG_desarrolladores mailing list