<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=unicode">
<META content="MSHTML 6.00.6000.17098" name=GENERATOR></HEAD>
<BODY text=#000000 bgcolor=#ffffff>
<DIV id=idOWAReplyText34008>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Hola, debe ser posible instanciar una capa WMS por código usando el constructor que no tiene parámetros, así tu extensión funcionaría en una instalación de gvSIG 1.11.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Mira el método:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>protected FLayer getLayerPlain() </FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>de la clase WMSParamsPanel (extWMS). Si pones un punto de interrupción y observas cómo se está instanciando puedes replicar eso en tu extensión. No lo he probado pero tiene pinta de que funcionará.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face="Times New Roman" color=#000000 size=3>Saludos,</FONT></DIV>
<DIV><FONT face="Courier New" size=2><FONT face="Times New Roman" size=3>Juan Lucas Domínguez Rubio<BR></FONT>---</FONT></DIV></DIV>
<DIV id=idSignature41392>
<DIV><FONT face="Courier New" size=2><FONT face="Courier New" size=2><FONT face="Courier New" size=2>Prodevelop SL, Valencia (España)</FONT></DIV>
<DIV>
<DIV><FONT face="Courier New" size=2>Tlf.: 96.351.06.12 -- Fax: 96.351.09.68<BR></FONT><A href="http://www.prodevelop.es/"><FONT face="Courier New" size=2>http://www.prodevelop.es</FONT></A><BR><FONT face="Courier New" size=2>---</FONT></DIV></FONT></DIV></FONT></DIV>
<DIV><BR>
<HR>
<FONT face=Tahoma size=2><B>De:</B> gvsig_desarrolladores-bounces@listserv.gva.es en nombre de Jorge Piera Llodrá<BR><B>Enviado el:</B> vie 22/07/2011 10:18<BR><B>Para:</B> gvsig_desarrolladores@listserv.gva.es; "http://www.gvsig.org/web/projects/gvsig-desktop/docs/devel/como-contribuir-en-gvsig/contribuciones-y-parches-al-codigo-de-gvsig/contribuciones-y-parches-al-codigo-de-gvsig/"@dunas.gva.es<BR><B>Asunto:</B> Re: [Gvsig_desarrolladores] ERROR AL MIGRAR WMS 1.1 a la 1.11<BR></FONT><BR></DIV>
<DIV>Hola Ana.<BR><BR>Le he pegado un vistazo rápido y tienes razón. El constructor FLyrWMS(Map) no se incializa correctamente e intenta usar un objeto antes de ser instanciado. <BR><BR>En la línea 302, donde se hace la llamada a initServerScale(), introduce lo siguiente antes de la invocación:<BR><BR>try {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; wms = getDriver();<BR>} catch (Exception e) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; throw new LoadLayerException("Error creating the driver" ,e);<BR>}<BR><BR>Con eso consigues que se instancie el driver antes de utilizarlo y la capa se carga correctamente.<BR><BR>Si no es mucha molestia, podrías crear un ticket en OSOR y adjuntar el parche propuesto (si es que te funciona, claro).<BR><BR>Un saludo,<BR>Jorge<BR><BR>[1] <A class=moz-txt-link-freetext href="http://www.gvsig.org/web/projects/gvsig-desktop/docs/devel/como-contribuir-en-gvsig/contribuciones-y-parches-al-codigo-de-gvsig/contribuciones-y-parches-al-codigo-de-gvsig">http://www.gvsig.org/web/projects/gvsig-desktop/docs/devel/como-contribuir-en-gvsig/contribuciones-y-parches-al-codigo-de-gvsig/contribuciones-y-parches-al-codigo-de-gvsig</A><BR><BR><BR><BR>On 07/22/2011 09:36 AM, Ana Belen Garcia wrote: 
<BLOCKQUOTE>Hola a todos de nuevo, <BR><BR>&nbsp;&nbsp; Estoy intentando cargar una capa WMS desde código, que me funcionaba perfectamente en la version 1.1 y en la version 1.11 no funciona, concretamente la de Catastro y me aparece un error. Mi código es el siguiente:<BR><BR>if (actionCommand.compareTo(" 
<DIV>CARGARCAPASWMS") == 0){<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;View v;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp; MapControl mapCtrl;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; try {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;Map&lt;String, Object&gt; args= new HashMap&lt;String,Object&gt;();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; args.put("host","<A href="http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx">http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx</A>");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; args.put("layer", "Catastro");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; args.put("SRS", "EPSG:23030");<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; args.put("wmsTransparency",true);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FLyrWMS capaWMS;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; v = (View) PluginServices.getMDIManager().getActiveWindow();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mapCtrl = v.getMapControl();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; FLayers&nbsp; lyrs = mapCtrl.getMapContext().getLayers();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; lyrs.setAllActives(false);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; capaWMS = new FLyrWMS(args);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; capaWMS.setTransparency(95);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; capaWMS.setActive(true);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mapCtrl.getMapContext().getLayers().addLayer(capaWMS);<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; } catch (LoadLayerException e) {<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; // TODO Auto-generated catch block<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; e.printStackTrace();<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;<BR>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; }<BR><BR><BR>El error que me aparece en consola es el siguiente:<BR><BR>DEBUG [AWT-EventQueue-1] (MDIFrame.java:673) - Execute command:CARGARCAPASWMS<BR>20-jul-2011 11:14:46 org.gvsig.remoteClient.utils.Downloader run<BR>INFO: downloading '<A href="http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx?REQUEST=GetCapabilities&amp;SERVICE=WMS&amp;VERSION=1.1.1">http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx?REQUEST=GetCapabilities&amp;SERVICE=WMS&amp;VERSION=1.1.1</A>' to: C:\DOCUME~1\usuario\CONFIG~1\Temp\tmp-andami\wms_capabilities1311153286937.xml<BR>DEBUG [AWT-EventQueue-1] (NotificationManager.java:104) - Error no capturado por el usuario<BR>java.lang.NullPointerException<BR>&nbsp;&nbsp;&nbsp; at com.iver.cit.gvsig.fmap.layers.FLyrWMS.getServerMinScale(FLyrWMS.java:1307)<BR>&nbsp;&nbsp;&nbsp; at com.iver.cit.gvsig.fmap.layers.FLyrWMS.getCorrectedServerMinScale(FLyrWMS.java:1280)<BR>&nbsp;&nbsp;&nbsp; at com.iver.cit.gvsig.fmap.layers.FLyrWMS.initServerScale(FLyrWMS.java:1258)<BR>&nbsp;&nbsp;&nbsp; at com.iver.cit.gvsig.fmap.layers.FLyrWMS.&lt;init&gt;(FLyrWMS.java:302)<BR>&nbsp;&nbsp;&nbsp; at com.iver.cit.gvsig.myplugin.LoadProvinciasExtension.execute(LoadProvinciasExtension.java:1689)<BR>&nbsp;&nbsp;&nbsp; at com.iver.andami.plugins.ExtensionDecorator.execute(ExtensionDecorator.java:89)<BR>&nbsp;&nbsp;&nbsp; at com.iver.andami.ui.mdiFrame.MDIFrame.actionPerformed(MDIFrame.java:674)<BR>&nbsp;&nbsp;&nbsp; at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)<BR>&nbsp;&nbsp;&nbsp; at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)<BR>&nbsp;&nbsp;&nbsp; at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)<BR>&nbsp;&nbsp;&nbsp; at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)<BR>&nbsp;&nbsp;&nbsp; at javax.swing.AbstractButton.doClick(AbstractButton.java:357)<BR>&nbsp;&nbsp;&nbsp; at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1170)<BR>&nbsp;&nbsp;&nbsp; at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1211)<BR>&nbsp;&nbsp;&nbsp; at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)<BR>&nbsp;&nbsp;&nbsp; at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)<BR>&nbsp;&nbsp;&nbsp; at java.awt.Component.processMouseEvent(Component.java:6038)<BR>&nbsp;&nbsp;&nbsp; at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)<BR>&nbsp;&nbsp;&nbsp; at java.awt.Component.processEvent(Component.java:5803)<BR>&nbsp;&nbsp;&nbsp; at java.awt.Container.processEvent(Container.java:2058)<BR>&nbsp;&nbsp;&nbsp; at java.awt.Component.dispatchEventImpl(Component.java:4410)<BR>&nbsp;&nbsp;&nbsp; at java.awt.Container.dispatchEventImpl(Container.java:2116)<BR>&nbsp;&nbsp;&nbsp; at java.awt.Component.dispatchEvent(Component.java:4240)<BR>&nbsp;&nbsp;&nbsp; at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)<BR>&nbsp;&nbsp;&nbsp; at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)<BR>&nbsp;&nbsp;&nbsp; at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)<BR>&nbsp;&nbsp;&nbsp; at java.awt.Container.dispatchEventImpl(Container.java:2102)<BR>&nbsp;&nbsp;&nbsp; at java.awt.Component.dispatchEvent(Component.java:4240)<BR>&nbsp;&nbsp;&nbsp; at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)<BR>&nbsp;&nbsp;&nbsp; at com.iver.andami.ui.AndamiEventQueue.dispatchEvent(AndamiEventQueue.java:58)<BR>&nbsp;&nbsp;&nbsp; at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)<BR>&nbsp;&nbsp;&nbsp; at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)<BR>&nbsp;&nbsp;&nbsp; at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)<BR>&nbsp;&nbsp;&nbsp; at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)<BR>&nbsp;&nbsp;&nbsp; at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)<BR>&nbsp;&nbsp;&nbsp; at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)<BR>&nbsp;WARN [AWT-EventQueue-1] (PluginServices.java:136) - Plugin com.iver.core -- No se encontró la traducción para Consola de información<BR>&nbsp;WARN [AWT-EventQueue-1] (PluginServices.java:136) - Plugin com.iver.core -- No se encontró la traducción para Activa la ventana<BR>DEBUG [AWT-EventQueue-1] (NewSkin.java:413) - Activando Consola de información<BR>DEBUG [AWT-EventQueue-1] (MDIFrame.java:1224) - Memoria usada 64951 KB<BR>DEBUG [AWT-EventQueue-1] (MDIFrame.java:1224) - Memoria usada 65109 KB<BR>DEBUG [AWT-EventQueue-1] (MDIFrame.java:1224) - Memoria usada 65167 KB<BR>Viewport despues: Datos del viewPort:<BR>Extent=java.awt.geom.Rectangle2D$Double[x=100479.007812,y=3988001.25,w=521220.492188,h=300898.75]<BR>adjustedExtent=java.awt.geom.Rectangle2D$Double[x=100479.007812,y=3950088.763961762,w=521220.492188,h=376723.7220764752]<BR>imageSize=java.awt.Dimension[width=1111,height=803]<BR>escale=0.0021315355337166433<BR>trans=AffineTransform[[0.002131535533717, 0.0, -214.17457554387016], [0.0, -0.002131535533717, 9222.754561719352]]<BR>Cambiando tamaño.<BR>Ancho del tree=194 1<BR>Ancho del TOC=150<BR>Tiempo de dibujado:94 mseg. Memoria libre:38197 KB<BR><BR><BR>Por lo que he podido observar en el código de la FLyrWMS me falla cuando ejecuta el initServerScale() y dentro de este método en:<BR>&nbsp; &nbsp;&nbsp; <B>&nbsp; double minScale = getCorrectedServerMinScale();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; double maxScale = getCorrectedServerMaxScale(); </B><BR><BR>Cuyos métodos son los siguientes:<BR>&nbsp;public double getCorrectedServerMinScale() {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (getServerMinScale()*MapContext.getScreenDPI())/WMS_DPI;<BR>&nbsp;&nbsp; }<BR>&nbsp; public double getCorrectedServerMaxScale() {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return (getServerMaxScale()*MapContext.getScreenDPI())/WMS_DPI;<BR>&nbsp;&nbsp; }<BR>&nbsp;&nbsp; <BR><BR>Porque ocurre esto, tengo que pasarle algún otro argumento para que no falle.<BR><BR>Por favor necesito ayuda. <BR><BR>Gracias.<BR></DIV><BR><BR>-- <BR><BR><BR><PRE><FIELDSET class=mimeAttachmentHeader></FIELDSET>
_______________________________________________
gvSIG_desarrolladores mailing list
<A class=moz-txt-link-abbreviated href="mailto:gvSIG_desarrolladores@listserv.gva.es">gvSIG_desarrolladores@listserv.gva.es</A>
<A class=moz-txt-link-freetext href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_desarrolladores</A>
  </PRE></BLOCKQUOTE><BR><BR><PRE class=moz-signature>-- 
Jorge Piera Llodrá
gvSIG software architect
PRODEVELOP
e-mail: <A class=moz-txt-link-abbreviated href="mailto:jpiera@gvsig.com">jpiera@gvsig.com</A>
<A class=moz-txt-link-freetext href="http://www.prodevelop.es/">http://www.prodevelop.es</A>
<A class=moz-txt-link-freetext href="http://www.gvsig.org/">http://www.gvsig.org</A>
</PRE></DIV></BODY></HTML>