LCOV - code coverage report
Current view: top level - analysis/processing - qgsalgorithmbatchnominatimgeocode.cpp (source / functions) Hit Total Coverage
Test: coverage.info.cleaned Lines: 0 20 0.0 %
Date: 2021-04-10 08:29:14 Functions: 0 0 -
Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /***************************************************************************
       2                 :            :                          qgsalgorithmbatchnominatimgeocode.cpp
       3                 :            :                          ------------------
       4                 :            :     begin                : December 2020
       5                 :            :     copyright            : (C) 2020 by Mathieu Pellerin
       6                 :            :     email                : nirvn dot asia at gmail dot com
       7                 :            :  ***************************************************************************/
       8                 :            : 
       9                 :            : /***************************************************************************
      10                 :            :  *                                                                         *
      11                 :            :  *   This program is free software; you can redistribute it and/or modify  *
      12                 :            :  *   it under the terms of the GNU General Public License as published by  *
      13                 :            :  *   the Free Software Foundation; either version 2 of the License, or     *
      14                 :            :  *   (at your option) any later version.                                   *
      15                 :            :  *                                                                         *
      16                 :            :  ***************************************************************************/
      17                 :            : 
      18                 :            : #include "qgsalgorithmbatchgeocode.h"
      19                 :            : #include "qgsalgorithmbatchnominatimgeocode.h"
      20                 :            : #include "qgsgeocoder.h"
      21                 :            : #include "qgsgeocoderresult.h"
      22                 :            : #include "qgsgeocodercontext.h"
      23                 :            : #include "qgsvectorlayer.h"
      24                 :            : 
      25                 :            : ///@cond PRIVATE
      26                 :            : 
      27                 :          0 : QgsBatchNominatimGeocodeAlgorithm::QgsBatchNominatimGeocodeAlgorithm()
      28                 :          0 :   : QgsBatchGeocodeAlgorithm( &mNominatimGeocoder )
      29                 :          0 : {
      30                 :          0 : }
      31                 :            : 
      32                 :          0 : QString QgsBatchNominatimGeocodeAlgorithm::name() const
      33                 :            : {
      34                 :          0 :   return QStringLiteral( "batchnominatimgeocoder" );
      35                 :            : }
      36                 :            : 
      37                 :          0 : QString QgsBatchNominatimGeocodeAlgorithm::displayName() const
      38                 :            : {
      39                 :          0 :   return QObject::tr( "Batch Nominatim geocoder" );
      40                 :            : }
      41                 :            : 
      42                 :          0 : QStringList QgsBatchNominatimGeocodeAlgorithm::tags() const
      43                 :            : {
      44                 :          0 :   return QObject::tr( "geocode,nominatim,batch,bulk,address,match" ).split( ',' );
      45                 :          0 : }
      46                 :            : 
      47                 :          0 : QgsBatchNominatimGeocodeAlgorithm *QgsBatchNominatimGeocodeAlgorithm::createInstance() const
      48                 :            : {
      49                 :          0 :   return new QgsBatchNominatimGeocodeAlgorithm();
      50                 :          0 : }
      51                 :            : 
      52                 :          0 : QString QgsBatchNominatimGeocodeAlgorithm::shortHelpString() const
      53                 :            : {
      54                 :          0 :   return QObject::tr( "This algorithm performs batch geocoding using the <a href=\"#\">Nominatim</a> service against an input layer string field.\n\n"
      55                 :            :                       "The output layer will have a point geometry reflecting the geocoded location as well as a number of attributes associated to the geocoded location." );
      56                 :            : }
      57                 :            : 
      58                 :          0 : bool QgsBatchNominatimGeocodeAlgorithm::prepareAlgorithm( const QVariantMap &parameters, QgsProcessingContext &context, QgsProcessingFeedback *feedback )
      59                 :            : {
      60                 :          0 :   feedback->pushInfo( QObject::tr( "The Nominatim geocoder data is made available by OpenStreetMap Foundation and contributors. "
      61                 :            :                                    "It is provided under the ODbL license which requires to share alike. Visit https://nominatim.org/ to learn more." ) );
      62                 :          0 :   return QgsBatchGeocodeAlgorithm::prepareAlgorithm( parameters, context, feedback );
      63                 :          0 : }
      64                 :            : 
      65                 :            : ///@endcond

Generated by: LCOV version 1.14