1

I have investigate some liberaries which can help me to write stand alone applications.

Is there any way to use qgis liberaries in an standalone application which is written by C#?

3

Not really no. You only options for QGIS based applications are Python and C++, unless you want to build a web app which calls QGIS server to show the map then you can use what ever you want as it's just making WMS calls to the server.

Creating a standalone application with Python using QGIS is pretty easy.

Getting started with a standalone app in Python:

If you are using QGIS 2.4 there is some handy application bootstrap logic:

from qgis.core.contextmanagers import qgisapp

def main(app):
   pass

if __name__ == "__main__":
   with qgisapp() as app:
       main(app)

That will take care of the bootstrapping logic normally needed to load QGIS into the right state.

(Sorry about all the plugs to my stuff, others feel free to add others)

  • Thank you so much for your help.So I can create only using Python.Can you give me some hints where to start using Python and Qgis to create standalone applications? – Majid Oct 13 '14 at 18:23
  • See my updated post. – Nathan W Oct 13 '14 at 22:29
  • sir it is possible to make DLL in c# project that uses qgis for mapping? – user2174920 Nov 20 '15 at 17:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.