3

I want to create a Desktop project on Java which shows radiation dispersion. How can i Link java with QGIS?

Is there any tutorial site i can get reference from?

2 Answers 2

3

For my opinion, it is still possible to link QGIS and Java by using C++ wrapper around your Java. Here is one link that explains how to do it: https://stackoverflow.com/questions/4536596/tool-to-generate-c-wrapper-over-java-class

However, it would be more reasonable to use PostGIS or UDig with Java.

PostGIS is similar in its functionality to ArcSever. Yet, PostGIS is open source. It comes with bundle with PostgreSQL (which is also open source). PostGreSQL is a database management system and PostGIS provides API for operation with GIS data on PostgreSQL. If you use PostGIS, you also have to connect it to some UI. PostGIS can export data in many formats. Here is the link for PostGIS: http://postgis.refractions.net/

PostGIS API can be used with many languages including Java. Here is the documentation: http://postgis.refractions.net/documentation/javadoc/overview-summary.html

For UI, you can use uDig. It is a product similar to ArcGIS and is written in Java and it is open source. Here is the link for Udig: http://udig.refractions.net/ Actually, you can use uDig for all the tasks that you need. Usage of PostGIS is an overshoot for your needs.

3
  • According to github.com/postgis/postgis, PostGIS is 90 % C.
    – underdark
    Mar 2, 2013 at 23:47
  • also worth noting is gvSig - completely in java
    – vinayan
    Mar 3, 2013 at 0:51
  • Yep, sorry about my previous text that PostGIS is written in Java. I meant to say that Java can be used to run any functionality of PostGIS. It has an API for many programming languages. Mar 3, 2013 at 3:35
2

QGIS is written in C++ and there are Python bindings. So you can develop your own applications using those languages. You cannot use Java.

The documentation is linked very prominently on http://qgis.org.

2
  • it could be used with Qt ?
    – geogeek
    Mar 2, 2013 at 16:32
  • 2
    Yes C++ Qt and PyQt.
    – underdark
    Mar 2, 2013 at 20:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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