Using libraries other than PyQGIS to develop plugin for QGIS? Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Getting started with QGIS plugin development?Changing attribute data types using PyQGISQGIS Plugin WindowsInstall shapely for QGIS on MacPython3 libraries for GIS analysisInstalling Lecos plugin for QGis 2.0.1 on linux fedora 20Dissolving polygons based on attributes with Python (shapely, fiona)?Using external IDE eclipse to develop python plugin for QGIS?geopandas read_file breaks in fiona open()Python - Extract raster values at point locations

How to Make a Beautiful Stacked 3D Plot

2001: A Space Odyssey's use of the song "Daisy Bell" (Bicycle Built for Two); life imitates art or vice-versa?

Do square wave exist?

Extracting terms with certain heads in a function

What's the meaning of "fortified infraction restraint"?

Why do we bend a book to keep it straight?

How to tell that you are a giant?

Is it fair for a professor to grade us on the possession of past papers?

Would "destroying" Wurmcoil Engine prevent its tokens from being created?

Can melee weapons be used to deliver Contact Poisons?

How to compare two different files line by line in unix?

Did MS DOS itself ever use blinking text?

Do wooden building fires get hotter than 600°C?

What is the longest distance a player character can jump in one leap?

Do I really need recursive chmod to restrict access to a folder?

Is safe to use va_start macro with this as parameter?

Significance of Cersei's obsession with elephants?

representation of vector and matrix in latex

How to find all the available tools in mac terminal?

Delete nth line from bottom

Closed form of recurrent arithmetic series summation

Fundamental Solution of the Pell Equation

What would be the ideal power source for a cybernetic eye?

Crossing US/Canada Border for less than 24 hours



Using libraries other than PyQGIS to develop plugin for QGIS?



Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
Announcing the arrival of Valued Associate #679: Cesar Manara
Unicorn Meta Zoo #1: Why another podcast?Getting started with QGIS plugin development?Changing attribute data types using PyQGISQGIS Plugin WindowsInstall shapely for QGIS on MacPython3 libraries for GIS analysisInstalling Lecos plugin for QGis 2.0.1 on linux fedora 20Dissolving polygons based on attributes with Python (shapely, fiona)?Using external IDE eclipse to develop python plugin for QGIS?geopandas read_file breaks in fiona open()Python - Extract raster values at point locations



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








3















I develop a plugin for QGIS. Before to integreted it in the QGIS I developped it with GIS library (Fiona, shapely, geopandas, ...) and it work well. Now I try to build it with plugin_builder of QGIS. The problem is I try to use my functions that I created with the previous libraries, but it seems like PyQGIS (QGIS) didn't recongnize them.



Is it possible to work with the GIS libraries to open, write a vector and make some processes in QGIS environment?










share|improve this question






























    3















    I develop a plugin for QGIS. Before to integreted it in the QGIS I developped it with GIS library (Fiona, shapely, geopandas, ...) and it work well. Now I try to build it with plugin_builder of QGIS. The problem is I try to use my functions that I created with the previous libraries, but it seems like PyQGIS (QGIS) didn't recongnize them.



    Is it possible to work with the GIS libraries to open, write a vector and make some processes in QGIS environment?










    share|improve this question


























      3












      3








      3








      I develop a plugin for QGIS. Before to integreted it in the QGIS I developped it with GIS library (Fiona, shapely, geopandas, ...) and it work well. Now I try to build it with plugin_builder of QGIS. The problem is I try to use my functions that I created with the previous libraries, but it seems like PyQGIS (QGIS) didn't recongnize them.



      Is it possible to work with the GIS libraries to open, write a vector and make some processes in QGIS environment?










      share|improve this question
















      I develop a plugin for QGIS. Before to integreted it in the QGIS I developped it with GIS library (Fiona, shapely, geopandas, ...) and it work well. Now I try to build it with plugin_builder of QGIS. The problem is I try to use my functions that I created with the previous libraries, but it seems like PyQGIS (QGIS) didn't recongnize them.



      Is it possible to work with the GIS libraries to open, write a vector and make some processes in QGIS environment?







      python qgis-plugins shapely pyqgis-3 fiona






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 10 hours ago









      PolyGeo

      54k1782246




      54k1782246










      asked 11 hours ago









      EliteElite

      353




      353




















          1 Answer
          1






          active

          oldest

          votes


















          3














          Yes, you can use those librairies in a qgis plugin as long as you install them on the folder sites-packages of the python called by qgis.



          use OsGeo4W Shell to install them ( I use pip for that )
          then you can call them from your plugin, also make sure that PYTHONHOME and PYTHONPATH environment variables are well set.






          share|improve this answer























          • Doesn't that (using other library) make it harder to share the plugin ?

            – J.R
            11 hours ago











          • @J.R I don't see the problem if the dependencies of the plugin are present in a requirements.txt file

            – Hicham Zouarhi
            11 hours ago











          • If it's possible to use only PyQGIS then other don't have to install other library to use the plugin, not a big deal but easier for novice

            – J.R
            11 hours ago











          • yes, indeed it would be easier, it depends if OP wants to share his plugin online or not

            – Hicham Zouarhi
            11 hours ago











          • Thanks @HichamZouarhi for your answers. Yeah, J.R you are right, using only PyQGIS will make easier to install use the plugin, but for the moment i already finished it and i have use other libraries, and also i think Fiona and shapely are more easialy to use than PyQGIS. This is my opinion ;)

            – Elite
            10 hours ago











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "79"
          ;
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2fgis.stackexchange.com%2fquestions%2f319111%2fusing-libraries-other-than-pyqgis-to-develop-plugin-for-qgis%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









          3














          Yes, you can use those librairies in a qgis plugin as long as you install them on the folder sites-packages of the python called by qgis.



          use OsGeo4W Shell to install them ( I use pip for that )
          then you can call them from your plugin, also make sure that PYTHONHOME and PYTHONPATH environment variables are well set.






          share|improve this answer























          • Doesn't that (using other library) make it harder to share the plugin ?

            – J.R
            11 hours ago











          • @J.R I don't see the problem if the dependencies of the plugin are present in a requirements.txt file

            – Hicham Zouarhi
            11 hours ago











          • If it's possible to use only PyQGIS then other don't have to install other library to use the plugin, not a big deal but easier for novice

            – J.R
            11 hours ago











          • yes, indeed it would be easier, it depends if OP wants to share his plugin online or not

            – Hicham Zouarhi
            11 hours ago











          • Thanks @HichamZouarhi for your answers. Yeah, J.R you are right, using only PyQGIS will make easier to install use the plugin, but for the moment i already finished it and i have use other libraries, and also i think Fiona and shapely are more easialy to use than PyQGIS. This is my opinion ;)

            – Elite
            10 hours ago















          3














          Yes, you can use those librairies in a qgis plugin as long as you install them on the folder sites-packages of the python called by qgis.



          use OsGeo4W Shell to install them ( I use pip for that )
          then you can call them from your plugin, also make sure that PYTHONHOME and PYTHONPATH environment variables are well set.






          share|improve this answer























          • Doesn't that (using other library) make it harder to share the plugin ?

            – J.R
            11 hours ago











          • @J.R I don't see the problem if the dependencies of the plugin are present in a requirements.txt file

            – Hicham Zouarhi
            11 hours ago











          • If it's possible to use only PyQGIS then other don't have to install other library to use the plugin, not a big deal but easier for novice

            – J.R
            11 hours ago











          • yes, indeed it would be easier, it depends if OP wants to share his plugin online or not

            – Hicham Zouarhi
            11 hours ago











          • Thanks @HichamZouarhi for your answers. Yeah, J.R you are right, using only PyQGIS will make easier to install use the plugin, but for the moment i already finished it and i have use other libraries, and also i think Fiona and shapely are more easialy to use than PyQGIS. This is my opinion ;)

            – Elite
            10 hours ago













          3












          3








          3







          Yes, you can use those librairies in a qgis plugin as long as you install them on the folder sites-packages of the python called by qgis.



          use OsGeo4W Shell to install them ( I use pip for that )
          then you can call them from your plugin, also make sure that PYTHONHOME and PYTHONPATH environment variables are well set.






          share|improve this answer













          Yes, you can use those librairies in a qgis plugin as long as you install them on the folder sites-packages of the python called by qgis.



          use OsGeo4W Shell to install them ( I use pip for that )
          then you can call them from your plugin, also make sure that PYTHONHOME and PYTHONPATH environment variables are well set.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 11 hours ago









          Hicham ZouarhiHicham Zouarhi

          2,0091922




          2,0091922












          • Doesn't that (using other library) make it harder to share the plugin ?

            – J.R
            11 hours ago











          • @J.R I don't see the problem if the dependencies of the plugin are present in a requirements.txt file

            – Hicham Zouarhi
            11 hours ago











          • If it's possible to use only PyQGIS then other don't have to install other library to use the plugin, not a big deal but easier for novice

            – J.R
            11 hours ago











          • yes, indeed it would be easier, it depends if OP wants to share his plugin online or not

            – Hicham Zouarhi
            11 hours ago











          • Thanks @HichamZouarhi for your answers. Yeah, J.R you are right, using only PyQGIS will make easier to install use the plugin, but for the moment i already finished it and i have use other libraries, and also i think Fiona and shapely are more easialy to use than PyQGIS. This is my opinion ;)

            – Elite
            10 hours ago

















          • Doesn't that (using other library) make it harder to share the plugin ?

            – J.R
            11 hours ago











          • @J.R I don't see the problem if the dependencies of the plugin are present in a requirements.txt file

            – Hicham Zouarhi
            11 hours ago











          • If it's possible to use only PyQGIS then other don't have to install other library to use the plugin, not a big deal but easier for novice

            – J.R
            11 hours ago











          • yes, indeed it would be easier, it depends if OP wants to share his plugin online or not

            – Hicham Zouarhi
            11 hours ago











          • Thanks @HichamZouarhi for your answers. Yeah, J.R you are right, using only PyQGIS will make easier to install use the plugin, but for the moment i already finished it and i have use other libraries, and also i think Fiona and shapely are more easialy to use than PyQGIS. This is my opinion ;)

            – Elite
            10 hours ago
















          Doesn't that (using other library) make it harder to share the plugin ?

          – J.R
          11 hours ago





          Doesn't that (using other library) make it harder to share the plugin ?

          – J.R
          11 hours ago













          @J.R I don't see the problem if the dependencies of the plugin are present in a requirements.txt file

          – Hicham Zouarhi
          11 hours ago





          @J.R I don't see the problem if the dependencies of the plugin are present in a requirements.txt file

          – Hicham Zouarhi
          11 hours ago













          If it's possible to use only PyQGIS then other don't have to install other library to use the plugin, not a big deal but easier for novice

          – J.R
          11 hours ago





          If it's possible to use only PyQGIS then other don't have to install other library to use the plugin, not a big deal but easier for novice

          – J.R
          11 hours ago













          yes, indeed it would be easier, it depends if OP wants to share his plugin online or not

          – Hicham Zouarhi
          11 hours ago





          yes, indeed it would be easier, it depends if OP wants to share his plugin online or not

          – Hicham Zouarhi
          11 hours ago













          Thanks @HichamZouarhi for your answers. Yeah, J.R you are right, using only PyQGIS will make easier to install use the plugin, but for the moment i already finished it and i have use other libraries, and also i think Fiona and shapely are more easialy to use than PyQGIS. This is my opinion ;)

          – Elite
          10 hours ago





          Thanks @HichamZouarhi for your answers. Yeah, J.R you are right, using only PyQGIS will make easier to install use the plugin, but for the moment i already finished it and i have use other libraries, and also i think Fiona and shapely are more easialy to use than PyQGIS. This is my opinion ;)

          – Elite
          10 hours ago

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Geographic Information Systems Stack Exchange!


          • 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%2fgis.stackexchange.com%2fquestions%2f319111%2fusing-libraries-other-than-pyqgis-to-develop-plugin-for-qgis%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







          -fiona, pyqgis-3, python, qgis-plugins, shapely

          Popular posts from this blog

          Frič See also Navigation menuinternal link

          Identify plant with long narrow paired leaves and reddish stems Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?What is this plant with long sharp leaves? Is it a weed?What is this 3ft high, stalky plant, with mid sized narrow leaves?What is this young shrub with opposite ovate, crenate leaves and reddish stems?What is this plant with large broad serrated leaves?Identify this upright branching weed with long leaves and reddish stemsPlease help me identify this bulbous plant with long, broad leaves and white flowersWhat is this small annual with narrow gray/green leaves and rust colored daisy-type flowers?What is this chilli plant?Does anyone know what type of chilli plant this is?Help identify this plant

          fontconfig warning: “/etc/fonts/fonts.conf”, line 100: unknown “element blank” The 2019 Stack Overflow Developer Survey Results Are In“tar: unrecognized option --warning” during 'apt-get install'How to fix Fontconfig errorHow do I figure out which font file is chosen for a system generic font alias?Why are some apt-get-installed fonts being ignored by fc-list, xfontsel, etc?Reload settings in /etc/fonts/conf.dTaking 30 seconds longer to boot after upgrade from jessie to stretchHow to match multiple font names with a single <match> element?Adding a custom font to fontconfigRemoving fonts from fontconfig <match> resultsBroken fonts after upgrading Firefox ESR to latest Firefox