# Path: src/compat2qgis.py
# def getCanvasDestinationCrs(iface):
#     def __init__(self, src_crs, dst_crs):
#     def setDestinationCrs(self, dst_crs):
# def getOpenFileName(parent, caption, filedir, search_filter):
#     def __init__(self, id, type):
#     def fromEpsgId(id):
# class QgsCoordinateTransform(core.QgsCoordinateTransform):
# class QgsCoordinateReferenceSystem(core.QgsCoordinateReferenceSystem):


from qgis.PyQt.QtGui import QColor
from qgis.gui import QgsRubberBand
from qgis.core import QgsRectangle
from qgis.utils import iface
from .compat2qgis import QGisGeometryType, getCanvasDestinationCrs, QgsCoordinateTransform, QgsCoordinateReferenceSystem
 RuGeocoder
                                 A QGIS plugin
 Geocode your csv files to shp
                              -------------------
        begin                : 2012-02-20
        copyright            : (C) 2012 by Nikulin Evgeniy
        email                : nikulin.e at gmail
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/
"""
from __future__ import print_function



class RubberBandResultRenderer():

    def __init__(self):
        self.iface = iface

        self.srs_wgs84 = QgsCoordinateReferenceSystem.fromEpsgId(4326)
        self.transform_decorator = QgsCoordinateTransform(self.srs_wgs84, self.srs_wgs84)


# Path: src/compat2qgis.py
# def getCanvasDestinationCrs(iface):
#     def __init__(self, src_crs, dst_crs):
#     def setDestinationCrs(self, dst_crs):
# def getOpenFileName(parent, caption, filedir, search_filter):
#     def __init__(self, id, type):
#     def fromEpsgId(id):
# class QgsCoordinateTransform(core.QgsCoordinateTransform):
# class QgsCoordinateReferenceSystem(core.QgsCoordinateReferenceSystem):


# Path: src/rb_result_renderer.py
from qgis.PyQt.QtGui import QColor
from qgis.gui import QgsRubberBand
from qgis.core import QgsRectangle
from qgis.utils import iface
from .compat2qgis import QGisGeometryType, getCanvasDestinationCrs, QgsCoordinateTransform, QgsCoordinateReferenceSystem

 RuGeocoder
                                 A QGIS plugin
 Geocode your csv files to shp
                              -------------------
        begin                : 2012-02-20
        copyright            : (C) 2012 by Nikulin Evgeniy
        email                : nikulin.e at gmail
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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.                                   *
 *                                                                         *
 ***************************************************************************/
"""
from __future__ import print_function



class RubberBandResultRenderer():

    def __init__(self):
        self.iface = iface

        self.srs_wgs84 = QgsCoordinateReferenceSystem.fromEpsgId(4326)
        self.transform_decorator = QgsCoordinateTransform(self.srs_wgs84, self.srs_wgs84)


        self.rb = QgsRubberBand(self.iface.mapCanvas(), QGisGeometryType.Point)