[Qt-interest] Qt with MapWinGis ActiveX control

Didier BUTY dbuty at aria.fr
Wed Feb 10 15:58:39 CET 2010


Hello to everybody,

 

I am currently trying to include GIS display capabilities inside a Qt
interface. One of the non commercial is the ActiveX control available
with the MapWindow Gis open source product
(http://www.mapwindow.org/index.php), so I have decided to give it a
try.

 

First of all, is there someone on this list that have already some
experience on this product ?

 

I have downloaded and install the ActiveX control. I have created from
it sources files (mapwingis.h and mapwingis.cpp) using the dumpcpp tool.


 

I have created a frame in the window to store the Map control. Something
like :

 

    MapWinGIS::Map *mapBrowser;

    QHBoxLayout* mapLayout = new QHBoxLayout( ui.mapFrame );

    mapBrowser = new MapWinGIS::Map(this);

    mapLayout->addWidget(mapBrowser);

 

This part seems to work fine (I get a window with a empty Map, but the
mouse cursor changes to the default zoom cursor shape when it passes
over the frame ...)

 

And the next step was to load a Shapefile and display it in the Map
object. Something like :

 

        MapWinGIS::Shapefile *mapShapefile = new MapWinGIS::Shapefile();

        bool resOpen = mapShapefile->Open(fileName);

 

and I get a crash with the message 

 

ASSERT: "id < 0" in file .\qaxbase.cpp, line 3711

 

Ideas and advices are welcome

 

Thanks

 

Didier Buty

Aria Technologies SA

mailto : dbuty at aria.fr <mailto:dbuty at aria.fr> 

 

8 - 10 rue de la Ferme

92100 BOULOGNE-BILLANCOURT

Tel : 01.46.08.68.60

Fax : 01.41.41.93.17

http:\\www.aria.fr

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20100210/2476a2de/attachment.html 


More information about the Qt-interest-old mailing list