org.gvsig.remoteclient.exceptions
Class WMSWrongSizeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.gvsig.remoteclient.exceptions.WMSException
              extended by org.gvsig.remoteclient.exceptions.WMSWrongSizeException
All Implemented Interfaces:
java.io.Serializable

public class WMSWrongSizeException
extends WMSException

La petición al servidor era de un tamaño equivocado. Reconoce execepciones de algunos tipos:

  • El server http://wms.jpl.nasa.gov/wms.cgi da estos:
        
            
            
              
                Requested image is too wide, max allowed width is 4096
              
            
    
            
            
            
              
                Requested image is too tall, max allowed height is 4096
              
            
     
  • El server http://www.idee.es/wms/IDEE-Base/IDEE-Base da
            
                    
                    
            
     
  • El server http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx da
            
    -
            
    
    Parámetros erroneos:
    prefijo = 
    mapa =  0
    formato = IMAGE/JPEG
    XMin =  1.1578804698593
    YMin =  53.5852110737936
    XMax =  10.3
    YMax =  53.8000038968219
    AnchoPixels =  64
    AltoPixels =  5023
    Transparente = TRUE
    Descripción error:
    AltoPixels > 2000
    
    
     
            
    
    
    
    msWMSLoadGetMapParams(): WMS server error. Image size out of range, WIDTH and HEIGHT must be between 1 and 2048 pixels.
    
    
    
     

    See Also:
    Serialized Form

    Constructor Summary
    WMSWrongSizeException()
               
    WMSWrongSizeException(java.lang.String message)
              Crea WMSException.
    WMSWrongSizeException(java.lang.String message, java.lang.Throwable cause)
              Crea WMSException.
    WMSWrongSizeException(java.lang.Throwable cause)
              Crea WMSException.
     
    Method Summary
    static void check(java.lang.String errorMsg)
              Checks if the argument is a WrongSizeError message, in this case throws a WMSWrongSizeException
     int getHeight()
               
     int getWidth()
               
     void setHeight(int h)
               
     void setWidth(int w)
               
     
    Methods inherited from class org.gvsig.remoteclient.exceptions.WMSException
    getWMSMessage, setWMSMessage
     
    Methods inherited from class java.lang.Throwable
    fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
     

    Constructor Detail

    WMSWrongSizeException

    public WMSWrongSizeException()

    WMSWrongSizeException

    public WMSWrongSizeException(java.lang.String message)
    Crea WMSException.

    Parameters:
    message -

    WMSWrongSizeException

    public WMSWrongSizeException(java.lang.String message,
                                 java.lang.Throwable cause)
    Crea WMSException.

    Parameters:
    message -
    cause -

    WMSWrongSizeException

    public WMSWrongSizeException(java.lang.Throwable cause)
    Crea WMSException.

    Parameters:
    cause -
    Method Detail

    check

    public static void check(java.lang.String errorMsg)
                      throws WMSException
    Checks if the argument is a WrongSizeError message, in this case throws a WMSWrongSizeException

    Parameters:
    errorMsg - El mensaje de error que pasa el server.
    Throws:
    WMSException

    getHeight

    public int getHeight()

    getWidth

    public int getWidth()

    setHeight

    public void setHeight(int h)

    setWidth

    public void setWidth(int w)


    Copyright © 2014 gvSIG Association. All Rights Reserved.