Call MMQGIS plugin from command line












0















I want to automatize some qgis process probably with python. I found an interesting article (http://www.qgistutorials.com/en/docs/running_qgis_jobs.html) which describes how can I see the processing command in the logs. I checked it, and it worked for the built-in commands, but I also need to use a plugin, called MMQGIS. The log doesn't contain the process command of this plugin. Can I call it somehow from the command line?



The other solution for me if I can create a flat-end edged buffer only with the built-in functions because then I don't need to use this plugin, and hopefully the log will contains the processing command.










share|improve this question



























    0















    I want to automatize some qgis process probably with python. I found an interesting article (http://www.qgistutorials.com/en/docs/running_qgis_jobs.html) which describes how can I see the processing command in the logs. I checked it, and it worked for the built-in commands, but I also need to use a plugin, called MMQGIS. The log doesn't contain the process command of this plugin. Can I call it somehow from the command line?



    The other solution for me if I can create a flat-end edged buffer only with the built-in functions because then I don't need to use this plugin, and hopefully the log will contains the processing command.










    share|improve this question

























      0












      0








      0








      I want to automatize some qgis process probably with python. I found an interesting article (http://www.qgistutorials.com/en/docs/running_qgis_jobs.html) which describes how can I see the processing command in the logs. I checked it, and it worked for the built-in commands, but I also need to use a plugin, called MMQGIS. The log doesn't contain the process command of this plugin. Can I call it somehow from the command line?



      The other solution for me if I can create a flat-end edged buffer only with the built-in functions because then I don't need to use this plugin, and hopefully the log will contains the processing command.










      share|improve this question














      I want to automatize some qgis process probably with python. I found an interesting article (http://www.qgistutorials.com/en/docs/running_qgis_jobs.html) which describes how can I see the processing command in the logs. I checked it, and it worked for the built-in commands, but I also need to use a plugin, called MMQGIS. The log doesn't contain the process command of this plugin. Can I call it somehow from the command line?



      The other solution for me if I can create a flat-end edged buffer only with the built-in functions because then I don't need to use this plugin, and hopefully the log will contains the processing command.







      python qgis






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 18 '17 at 12:58









      PaxiPaxi

      418




      418
























          1 Answer
          1






          active

          oldest

          votes


















          0














          You can reference to another plugin from your plugin importing plugins dict from qgis.core:



          from qgis.core import plugins  #QGIS2
          from qgis.utils import plugins #QGIS3


          then you can list all exposed methods and attributes of the desired plugin. In your case:



          dir (plugins['mmqgis'])


          you'll get



          ['__doc__', '__init__', '__module__', 'animate_columns', 'animate_columns_action', 'animate_lines', 'animate_lines_action', 'animate_menu', 'animate_rows', 'animate_rows_action', 'attribute_export', 'attribute_export_action', 'attribute_join', 'attribute_join_action', 'buffers', 'buffers_action', 'color_ramp', 'combine_menu', 'create_menu', 'delete_duplicate_action', 'delete_duplicate_geometries', 'float_to_text', 'float_to_text_action', 'geocode_menu', 'geocode_street_layer', 'geocode_street_layer_action', 'geocode_web_service', 'geocode_web_service_action', 'geometry_convert', 'geometry_convert_action', 'geometry_export', 'geometry_export_action', 'geometry_import', 'geometry_import_action', 'grid', 'grid_action', 'gridify', 'gridify_action', 'hub_distance', 'hub_distance_action', 'hub_lines', 'hub_lines_action', 'iface', 'import_export_menu', 'initGui', 'kml_export', 'kml_export_action', 'merge', 'merge_action', 'mmqgis_add_submenu', 'mmqgis_menu', 'modify_menu', 'search', 'search_action', 'search_select_menu', 'select', 'select_action', 'sort', 'sort_action', 'spatial_join', 'spatial_join_action', 'street_address_join', 'street_address_join_action', 'text_to_float', 'text_to_float_action', 'unload', 'voronoi', 'voronoi_action']


          now if you want to execute a plugin method:



          plugins['mmqgis'].attribute_join()


          then you have to study the mmqgis plugin architecture in the deep to call the methods you need with the appropriate methods and with the appropriate parameters






          share|improve this answer


























            Your Answer






            StackExchange.ifUsing("editor", function () {
            StackExchange.using("externalEditor", function () {
            StackExchange.using("snippets", function () {
            StackExchange.snippets.init();
            });
            });
            }, "code-snippets");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "1"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f41720068%2fcall-mmqgis-plugin-from-command-line%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            You can reference to another plugin from your plugin importing plugins dict from qgis.core:



            from qgis.core import plugins  #QGIS2
            from qgis.utils import plugins #QGIS3


            then you can list all exposed methods and attributes of the desired plugin. In your case:



            dir (plugins['mmqgis'])


            you'll get



            ['__doc__', '__init__', '__module__', 'animate_columns', 'animate_columns_action', 'animate_lines', 'animate_lines_action', 'animate_menu', 'animate_rows', 'animate_rows_action', 'attribute_export', 'attribute_export_action', 'attribute_join', 'attribute_join_action', 'buffers', 'buffers_action', 'color_ramp', 'combine_menu', 'create_menu', 'delete_duplicate_action', 'delete_duplicate_geometries', 'float_to_text', 'float_to_text_action', 'geocode_menu', 'geocode_street_layer', 'geocode_street_layer_action', 'geocode_web_service', 'geocode_web_service_action', 'geometry_convert', 'geometry_convert_action', 'geometry_export', 'geometry_export_action', 'geometry_import', 'geometry_import_action', 'grid', 'grid_action', 'gridify', 'gridify_action', 'hub_distance', 'hub_distance_action', 'hub_lines', 'hub_lines_action', 'iface', 'import_export_menu', 'initGui', 'kml_export', 'kml_export_action', 'merge', 'merge_action', 'mmqgis_add_submenu', 'mmqgis_menu', 'modify_menu', 'search', 'search_action', 'search_select_menu', 'select', 'select_action', 'sort', 'sort_action', 'spatial_join', 'spatial_join_action', 'street_address_join', 'street_address_join_action', 'text_to_float', 'text_to_float_action', 'unload', 'voronoi', 'voronoi_action']


            now if you want to execute a plugin method:



            plugins['mmqgis'].attribute_join()


            then you have to study the mmqgis plugin architecture in the deep to call the methods you need with the appropriate methods and with the appropriate parameters






            share|improve this answer






























              0














              You can reference to another plugin from your plugin importing plugins dict from qgis.core:



              from qgis.core import plugins  #QGIS2
              from qgis.utils import plugins #QGIS3


              then you can list all exposed methods and attributes of the desired plugin. In your case:



              dir (plugins['mmqgis'])


              you'll get



              ['__doc__', '__init__', '__module__', 'animate_columns', 'animate_columns_action', 'animate_lines', 'animate_lines_action', 'animate_menu', 'animate_rows', 'animate_rows_action', 'attribute_export', 'attribute_export_action', 'attribute_join', 'attribute_join_action', 'buffers', 'buffers_action', 'color_ramp', 'combine_menu', 'create_menu', 'delete_duplicate_action', 'delete_duplicate_geometries', 'float_to_text', 'float_to_text_action', 'geocode_menu', 'geocode_street_layer', 'geocode_street_layer_action', 'geocode_web_service', 'geocode_web_service_action', 'geometry_convert', 'geometry_convert_action', 'geometry_export', 'geometry_export_action', 'geometry_import', 'geometry_import_action', 'grid', 'grid_action', 'gridify', 'gridify_action', 'hub_distance', 'hub_distance_action', 'hub_lines', 'hub_lines_action', 'iface', 'import_export_menu', 'initGui', 'kml_export', 'kml_export_action', 'merge', 'merge_action', 'mmqgis_add_submenu', 'mmqgis_menu', 'modify_menu', 'search', 'search_action', 'search_select_menu', 'select', 'select_action', 'sort', 'sort_action', 'spatial_join', 'spatial_join_action', 'street_address_join', 'street_address_join_action', 'text_to_float', 'text_to_float_action', 'unload', 'voronoi', 'voronoi_action']


              now if you want to execute a plugin method:



              plugins['mmqgis'].attribute_join()


              then you have to study the mmqgis plugin architecture in the deep to call the methods you need with the appropriate methods and with the appropriate parameters






              share|improve this answer




























                0












                0








                0







                You can reference to another plugin from your plugin importing plugins dict from qgis.core:



                from qgis.core import plugins  #QGIS2
                from qgis.utils import plugins #QGIS3


                then you can list all exposed methods and attributes of the desired plugin. In your case:



                dir (plugins['mmqgis'])


                you'll get



                ['__doc__', '__init__', '__module__', 'animate_columns', 'animate_columns_action', 'animate_lines', 'animate_lines_action', 'animate_menu', 'animate_rows', 'animate_rows_action', 'attribute_export', 'attribute_export_action', 'attribute_join', 'attribute_join_action', 'buffers', 'buffers_action', 'color_ramp', 'combine_menu', 'create_menu', 'delete_duplicate_action', 'delete_duplicate_geometries', 'float_to_text', 'float_to_text_action', 'geocode_menu', 'geocode_street_layer', 'geocode_street_layer_action', 'geocode_web_service', 'geocode_web_service_action', 'geometry_convert', 'geometry_convert_action', 'geometry_export', 'geometry_export_action', 'geometry_import', 'geometry_import_action', 'grid', 'grid_action', 'gridify', 'gridify_action', 'hub_distance', 'hub_distance_action', 'hub_lines', 'hub_lines_action', 'iface', 'import_export_menu', 'initGui', 'kml_export', 'kml_export_action', 'merge', 'merge_action', 'mmqgis_add_submenu', 'mmqgis_menu', 'modify_menu', 'search', 'search_action', 'search_select_menu', 'select', 'select_action', 'sort', 'sort_action', 'spatial_join', 'spatial_join_action', 'street_address_join', 'street_address_join_action', 'text_to_float', 'text_to_float_action', 'unload', 'voronoi', 'voronoi_action']


                now if you want to execute a plugin method:



                plugins['mmqgis'].attribute_join()


                then you have to study the mmqgis plugin architecture in the deep to call the methods you need with the appropriate methods and with the appropriate parameters






                share|improve this answer















                You can reference to another plugin from your plugin importing plugins dict from qgis.core:



                from qgis.core import plugins  #QGIS2
                from qgis.utils import plugins #QGIS3


                then you can list all exposed methods and attributes of the desired plugin. In your case:



                dir (plugins['mmqgis'])


                you'll get



                ['__doc__', '__init__', '__module__', 'animate_columns', 'animate_columns_action', 'animate_lines', 'animate_lines_action', 'animate_menu', 'animate_rows', 'animate_rows_action', 'attribute_export', 'attribute_export_action', 'attribute_join', 'attribute_join_action', 'buffers', 'buffers_action', 'color_ramp', 'combine_menu', 'create_menu', 'delete_duplicate_action', 'delete_duplicate_geometries', 'float_to_text', 'float_to_text_action', 'geocode_menu', 'geocode_street_layer', 'geocode_street_layer_action', 'geocode_web_service', 'geocode_web_service_action', 'geometry_convert', 'geometry_convert_action', 'geometry_export', 'geometry_export_action', 'geometry_import', 'geometry_import_action', 'grid', 'grid_action', 'gridify', 'gridify_action', 'hub_distance', 'hub_distance_action', 'hub_lines', 'hub_lines_action', 'iface', 'import_export_menu', 'initGui', 'kml_export', 'kml_export_action', 'merge', 'merge_action', 'mmqgis_add_submenu', 'mmqgis_menu', 'modify_menu', 'search', 'search_action', 'search_select_menu', 'select', 'select_action', 'sort', 'sort_action', 'spatial_join', 'spatial_join_action', 'street_address_join', 'street_address_join_action', 'text_to_float', 'text_to_float_action', 'unload', 'voronoi', 'voronoi_action']


                now if you want to execute a plugin method:



                plugins['mmqgis'].attribute_join()


                then you have to study the mmqgis plugin architecture in the deep to call the methods you need with the appropriate methods and with the appropriate parameters







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 16 '18 at 11:25

























                answered Jan 21 '17 at 10:54









                Enrico FerregutiEnrico Ferreguti

                14512




                14512
































                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f41720068%2fcall-mmqgis-plugin-from-command-line%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Xamarin.iOS Cant Deploy on Iphone

                    Glorious Revolution

                    Dulmage-Mendelsohn matrix decomposition in Python