Hi all,<div><br></div><div>How to use QGIS as a framework to develop desktop based gis application changing the gui part(qt4_gui) and reusing qtcore, network xml and other libs.</div><div><br></div><div>here is an online shapefile viewer which I had done reading shapefile using OGR and rendered using Wt.</div>
<div><a href="http://lsi.iiit.ac.in/lsi/shpviewer/">http://lsi.iiit.ac.in/lsi/shpviewer/</a></div><div>Here the shapefile is directly rendered without mapserver or anything. only library we used is GDAL and rendering is done by Wt</div>
<div> </div><div>Please check it. for testing we have demo data attached with this mail. you can also try your own data.</div><div><br></div><div>Now I am coming to the point. </div><div>Till now we have not used any code from QGIS.</div>
<div><br></div><div>but we tried creating and layer and checking it if it is valid. upto that extent we can reuse QGIS Code.</div><div><br></div><div>this code works on web and prints a "Layer is valid"</div><div>
<br></div><div><div> QgsVectorLayer * mypLayer = new QgsVectorLayer("/home/rashadkm/data", "point_data", myProviderName);</div><div> </div><div><br></div><div> if (mypLayer->isValid())</div><div>
cout << "Layer is valid" << endl;</div><div> else</div><div> cout <<"Layer is NOT valid" << endl;</div><div> </div></div><div><br></div><div>So My question is</div><div>
does QGIS can be used as a framework in our application?</div><div>In QGIS code is seperated as gui core etc..</div><div>so for starting the work keeping QGIS as a backend we need minimal gui code which display a vector (or just shapefiles).</div>
<div><br></div><div>If someone can help me with this I can do the rest of coding needed for Wt</div><div>Only I need is a very minimal source code and files which can do rendering in Qt.</div><div><br></div><div><br></div>
<div>Looking forward your comments and suggestions.</div><div><br></div><div>rashadkm * gmail [dot] com</div><div><br>-- <br>Rashad<br>
</div>