I got minimal qgis gui files<div>qgsmapcanvas.h/.cpp</div><div>qgsmapcanvasmap.h/.cpp</div><div><br></div><div>Now I need minimal qgis core files. but I cant get the minimal files as I got for gui. </div><div>Can anyone help me out.</div>

<div><br><div class="gmail_quote">On Fri, Feb 4, 2011 at 6:50 PM, Mohammed Rashad <span dir="ltr">&lt;<a href="mailto:mohammedrashadkm@gmail.com">mohammedrashadkm@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br><br><div class="gmail_quote"><div class="im">On Fri, Feb 4, 2011 at 6:35 PM, Marco Hugentobler <span dir="ltr">&lt;<a href="mailto:marco.hugentobler@sourcepole.ch" target="_blank">marco.hugentobler@sourcepole.ch</a>&gt;</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><div>how to it works.? How to check the rendering by the source in src/mapserver</div><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div><br>
&gt; 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><div>I have no problem with license. the problem is getting qgis out of Qt4Gui.</div><div><div></div><div class="h5"><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>&gt; Hi all,<br>
&gt;<br>
&gt; How to use QGIS as a framework to develop desktop based gis application<br>
&gt; changing the gui part(qt4_gui) and reusing qtcore, network xml and other<br>
&gt; libs.<br>
&gt;<br>
&gt; here is an online shapefile viewer which I had done reading shapefile using<br>
&gt; OGR and rendered using Wt.<br>
&gt; <a href="http://lsi.iiit.ac.in/lsi/shpviewer/" target="_blank">http://lsi.iiit.ac.in/lsi/shpviewer/</a><br>
&gt; Here the shapefile is directly rendered without mapserver or anything. only<br>
&gt; library we used is GDAL and rendering is done by Wt<br>
&gt;<br>
&gt; Please check it. for testing we have demo data attached with this mail. you<br>
&gt; can also try your own data.<br>
&gt;<br>
&gt; Now I am coming to the point.<br>
&gt; Till now we have not used any code from QGIS.<br>
&gt;<br>
&gt; but we tried creating and layer and checking it if it is valid. upto that<br>
&gt; extent we can reuse QGIS Code.<br>
&gt;<br>
&gt; this code works on web and prints a &quot;Layer is valid&quot;<br>
&gt;<br>
&gt;   QgsVectorLayer * mypLayer = new QgsVectorLayer(&quot;/home/rashadkm/data&quot;,<br>
&gt; &quot;point_data&quot;, myProviderName);<br>
&gt;<br>
&gt;<br>
&gt;   if (mypLayer-&gt;isValid())<br>
&gt;     cout &lt;&lt; &quot;Layer is valid&quot; &lt;&lt; endl;<br>
&gt;   else<br>
&gt;     cout &lt;&lt;&quot;Layer is NOT valid&quot; &lt;&lt; endl;<br>
&gt;<br>
&gt;<br>
&gt; So My question is<br>
&gt; does QGIS can be used as a framework in our application?<br>
&gt; In QGIS code is seperated as gui core etc..<br>
&gt; so for starting the work keeping QGIS as a backend we need minimal gui code<br>
&gt; which display a vector (or just shapefiles).<br>
&gt;<br>
&gt; If someone can help me with this I can do the rest of coding needed for Wt<br>
&gt; Only I need is a very minimal source code and files which can do rendering<br>
&gt; in Qt.<br>
&gt;<br>
&gt;<br>
&gt; Looking forward your comments and suggestions.<br>
&gt;<br>
&gt; rashadkm * gmail [dot] com<br>
<br>
<br>
--<br>
</div></div>Dr. Marco Hugentobler<br>
Sourcepole -  Linux &amp; Open Source Solutions<br>
Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland<br>
<font color="#888888"><a href="mailto:marco.hugentobler@sourcepole.ch" target="_blank">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></div></div><br><br clear="all"><br>-- <br><font color="#888888">Rashad<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Rashad<br>
</div>