[Qgis-developer] QGIS Framework for web and online shapefile viewer

Mohammed Rashad mohammedrashadkm at gmail.com
Fri Feb 4 08:20:30 EST 2011


On Fri, Feb 4, 2011 at 6:35 PM, Marco Hugentobler <
marco.hugentobler at sourcepole.ch> wrote:

> Hi Mohammed
>
> Yes, it is possible to do rendering with QGIS independent of GUI. You could
> take a look at the code for the server in qgis trunk (in the src/mapserver
> directory). Basically you use QgsMapRenderer, add the layers to it and
> render
> into a Qt paint device (usually QImage for GUI independant tasks).
>

how to it works.? How to check the rendering by the source in src/mapserver

>
> > does QGIS can be used as a framework in our application?
>
> I hope so. Please also consider that the QGIS libraries are GPL license (
> not
> LGPL ).
>
> I have no problem with license. the problem is getting qgis out of Qt4Gui.



> Regards,
> Marco
>
> Am Freitag, 4. Februar 2011, um 13.55:33 schrieb Mohammed Rashad:
> > Hi all,
> >
> > 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.
> >
> > here is an online shapefile viewer which I had done reading shapefile
> using
> > OGR and rendered using Wt.
> > http://lsi.iiit.ac.in/lsi/shpviewer/
> > Here the shapefile is directly rendered without mapserver or anything.
> only
> > library we used is GDAL and rendering is done by Wt
> >
> > Please check it. for testing we have demo data attached with this mail.
> you
> > can also try your own data.
> >
> > Now I am coming to the point.
> > Till now we have not used any code from QGIS.
> >
> > but we tried creating and layer and checking it if it is valid. upto that
> > extent we can reuse QGIS Code.
> >
> > this code works on web and prints a "Layer is valid"
> >
> >   QgsVectorLayer * mypLayer = new QgsVectorLayer("/home/rashadkm/data",
> > "point_data", myProviderName);
> >
> >
> >   if (mypLayer->isValid())
> >     cout << "Layer is valid" << endl;
> >   else
> >     cout <<"Layer is NOT valid" << endl;
> >
> >
> > So My question is
> > does QGIS can be used as a framework in our application?
> > In QGIS code is seperated as gui core etc..
> > so for starting the work keeping QGIS as a backend we need minimal gui
> code
> > which display a vector (or just shapefiles).
> >
> > If someone can help me with this I can do the rest of coding needed for
> Wt
> > Only I need is a very minimal source code and files which can do
> rendering
> > in Qt.
> >
> >
> > Looking forward your comments and suggestions.
> >
> > rashadkm * gmail [dot] com
>
>
> --
> Dr. Marco Hugentobler
> Sourcepole -  Linux & Open Source Solutions
> Churerstrasse 22, CH-8808 Pfäffikon SZ, Switzerland
> marco.hugentobler at sourcepole.ch http://www.sourcepole.ch
> Technical Advisor QGIS Project Steering Committee
>



-- 
Rashad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20110204/dd2fa98b/attachment.html


More information about the Qgis-developer mailing list