<br><br><div class="gmail_quote">On Fri, Feb 4, 2011 at 6:35 PM, Marco Hugentobler <span dir="ltr"><<a href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi Mohammed<br>
<br>
Yes, it is possible to do rendering with QGIS independent of GUI. You could<br>
take a look at the code for the server in qgis trunk (in the src/mapserver<br>
directory). Basically you use QgsMapRenderer, add the layers to it and render<br>
into a Qt paint device (usually QImage for GUI independant tasks).<br></blockquote><div><br></div><div>how to it works.? How to check the rendering by the source in src/mapserver</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
> does QGIS can be used as a framework in our application?<br>
<br>
</div>I hope so. Please also consider that the QGIS libraries are GPL license ( not<br>
LGPL ).<br>
<br></blockquote><div>I have no problem with license. the problem is getting qgis out of Qt4Gui.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Regards,<br>
Marco<br>
<br>
Am Freitag, 4. Februar 2011, um 13.55:33 schrieb Mohammed Rashad:<br>
<div><div></div><div class="h5">> Hi all,<br>
><br>
> How to use QGIS as a framework to develop desktop based gis application<br>
> changing the gui part(qt4_gui) and reusing qtcore, network xml and other<br>
> libs.<br>
><br>
> here is an online shapefile viewer which I had done reading shapefile using<br>
> OGR and rendered using Wt.<br>
> <a href="http://lsi.iiit.ac.in/lsi/shpviewer/" target="_blank">http://lsi.iiit.ac.in/lsi/shpviewer/</a><br>
> Here the shapefile is directly rendered without mapserver or anything. only<br>
> library we used is GDAL and rendering is done by Wt<br>
><br>
> Please check it. for testing we have demo data attached with this mail. you<br>
> can also try your own data.<br>
><br>
> Now I am coming to the point.<br>
> Till now we have not used any code from QGIS.<br>
><br>
> but we tried creating and layer and checking it if it is valid. upto that<br>
> extent we can reuse QGIS Code.<br>
><br>
> this code works on web and prints a "Layer is valid"<br>
><br>
> QgsVectorLayer * mypLayer = new QgsVectorLayer("/home/rashadkm/data",<br>
> "point_data", myProviderName);<br>
><br>
><br>
> if (mypLayer->isValid())<br>
> cout << "Layer is valid" << endl;<br>
> else<br>
> cout <<"Layer is NOT valid" << endl;<br>
><br>
><br>
> So My question is<br>
> does QGIS can be used as a framework in our application?<br>
> In QGIS code is seperated as gui core etc..<br>
> so for starting the work keeping QGIS as a backend we need minimal gui code<br>
> which display a vector (or just shapefiles).<br>
><br>
> If someone can help me with this I can do the rest of coding needed for Wt<br>
> Only I need is a very minimal source code and files which can do rendering<br>
> in Qt.<br>
><br>
><br>
> Looking forward your comments and suggestions.<br>
><br>
> rashadkm * gmail [dot] com<br>
<br>
<br>
--<br>
</div></div>Dr. Marco Hugentobler<br>
Sourcepole - Linux & Open Source Solutions<br>
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland<br>
<font color="#888888"><a href="mailto:marco.hugentobler@sourcepole.ch">marco.hugentobler@sourcepole.ch</a> <a href="http://www.sourcepole.ch" target="_blank">http://www.sourcepole.ch</a><br>
Technical Advisor QGIS Project Steering Committee<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Rashad<br>