[Qgis-user] How to use QGIS plus-ins (QNEAT3, QChainage) in the Python custom applications?

Germán Carrillo carrillo.german at gmail.com
Fri Mar 17 06:44:51 PDT 2023


Hi Stephen,


if I understand your intention well, yes, I think it's possible, since I've
used QGIS plugins in a custom PyQGIS application back in the days (namely,
2009!).

I created a post to show off the results and to indicate the procedure
(it's in Spanish). You can find it at [1].

Perhaps you intend to use those plugins in a non-GUI application, which
should also be possible.

Accessing the underlying plugin's API, if provided, would require an
analysis per plugin, which is feasible.

For instance, QNEAT3 is a "Processing provider" plugin, which is handy for
multiple reasons. For instance, you can use it via custom PyQGIS standalone
scripts (see "Using QGIS Processing algorithms from PyQGIS standalone
scripts (outside of GUI)" at [2]) or the "qgis_process" utility [3].

On the contrary, QChainage doesn't seem to be a "Processing provider"
plugin, so further exploration would be required.

I hope that helps you get started.


Regards,

Germán
---------------------
[1]
https://geotux.tuxfamily.org/2009/08/31/cargando-plugins-de-qgis-en-el-visor-de-pyqgis/
[2]
https://gis.stackexchange.com/questions/279874/using-qgis-processing-algorithms-from-pyqgis-standalone-scripts-outside-of-gui
[3]
https://docs.qgis.org/3.28/en/docs/user_manual/processing/standalone.html?highlight=qgis_process#using-processing-from-the-command-line


El vie, 17 mar 2023 a las 4:28, LI, Xin Stephen [MIT] via QGIS-User (<
qgis-user at lists.osgeo.org>) escribió:

> Hello all QGIS users,
>
>
>
> Is there some approaches to import the QGIS plus-ins (QNEAT3, QChainage)
> as a library or package in the Python custom applications where PyQGIS
> imported?
>
>
>
> The functions of QNEAT3 to find shortest paths are expended to be used.
> Then, the shortest paths are expected to be marked/divided by points with
> the same distances.
>
>
>
> Do you have some experience about this or any other approaches/packages
> could achieve similar functions?
>
>
>
> Stephen
>
>
> _______________________________________________
> QGIS-User mailing list
> QGIS-User at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>

-- 
-----------
   |\__
(:>__)(
   |/
Soluciones Geoinformáticas Libres
http://geotux.tuxfamily.org/
https://twitter.com/GeoTux2 <http://twitter.com/GeoTux2>

<http://gis.stackexchange.com/users/4972/germ%c3%a1n-carrillo>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20230317/e6db9cb5/attachment.htm>


More information about the QGIS-User mailing list