
    [h	                     6    d Z ddlmZ ddlmZ  G d de      Zy)u  
***************************************************************************
    QGIS Server Plugin Filters: Add a new request to print a specific atlas
    feature
    ---------------------
    Date                 : October 2017
    Copyright            : (C) 2017 by Michaël Douchin - 3Liz
    Email                : mdouchin at 3liz dot com
***************************************************************************
*                                                                         *
*   This program is free software; you can redistribute it and/or modify  *
*   it under the terms of the GNU General Public License as published by  *
*   the Free Software Foundation; either version 2 of the License, or     *
*   (at your option) any later version.                                   *
*                                                                         *
***************************************************************************
    )QgsServerFilter)Loggerc                   $     e Zd Z fdZd Z xZS )AtlasPrintFilterc                     t         |   |       t               | _        | j                  j	                  d       || _        y )NzInit print filter)super__init__r   loggerinfoserver_iface)selfr   	__class__s     1/var/www/qgis-server/plugins/atlasprint/filter.pyr	   zAtlasPrintFilter.__init__   s4    &h,-(    c                    | j                   j                         }|j                         }|j                  d      }|sy |j	                         dk7  ry d|vry |d   j	                         dvry |d   j	                         }|j                  dd       |j                  dd       |dk(  r|j                  dd	       y |d
k(  r|j                  dd       y y )NSERVICEwmsREQUEST)getprintatlasgetcapabilitiesatlasATLASVERSIONz1.0.0r   GetCapabilitiesr   GetPrint)r   requestHandlerparameterMapgetlowersetParameter)r   handlerparamsservicerequests        r   requestReadyzAtlasPrintFilter.requestReady!   s    ##224%%'**Y'==?e#F")""$,UU#))+Y0Y0,,  ,=>'  J7 (r   )__name__
__module____qualname__r	   r$   __classcell__)r   s   @r   r   r      s    )8r   r   N)__doc__qgis.serverr   atlasprint.loggerr   r    r   r   <module>r-      s   $ ( $"8 "8r   