回复: 共享一个用QT4和mitab编写的显示mapinfo,mif格式电子地图的源码
#46 [z501gf 04-21 15:20]
受益匪浅呀!
楼主能不能添加如下功能:根据GPS获取到的经纬度,在地图上添加移动点或移动轨迹,并把移动轨迹保存下载来,可以在Googleeath上复原,那就更完善啦!
急切等待!!!
#47 [白告 04-22 16:03]
Good!
#48 [forwz2010 04-24 21:26]
我转换出来的mif的地图 很多都是point,或者说point有实际的名字。。。。但是在参考文档里没有读取point类文字的函数。。。。
#49 [并非绝对 05-16 12:43]
问下出现如下错误,该怎么处理?
# make
g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB
-DQT_SHARED -I../Trolltech/Qt-4.5.2/mkspecs/linux-g++ -I. -I../Trolltech/Qt-4.5.2/include/QtCore -I../Trolltech/Qt-4.5.2/include/QtGui -I../Trolltech/Qt-4.5.2/include -I. -Imitab -I. -I. -o map_layer.o map_layer.cpp
map_layer.cpp: In member function `void Map_Layer::GetPolyLine(void*,
QStringList&)':
map_layer.cpp:157: warning: unused parameter `QStringList&fields'
map_layer.cpp: In member function `void Map_Layer::GetRegion(void*,
QStringList&)':
map_layer.cpp:240: cannot use `::' in parameter declaration
map_layer.cpp:265: request for member `setColor' in `brush(QColor)', which is
of non-aggregate type `QBrush ()(QColor)'
map_layer.cpp:317: no matching function for call to `QGraphicsTextItem::setX(
qreal)'
map_layer.cpp:318: no matching function for call to `QGraphicsTextItem::setY(
qreal)'
map_layer.cpp:321: no matching function for call to `QGraphicsPolygonItem::
setBrush(QBrush (&)(QColor))'
../Trolltech/Qt-4.5.2/include/QtGui/qgraphicsitem.h:469: candidates are: void
QAbstractGraphicsShapeItem::setBrush(const QBrush&)
map_layer.cpp: In member function `void Map_Layer::GetPoint(void*,
QStringList&)':
map_layer.cpp:342: cannot use `::' in parameter declaration
map_layer.cpp:366: request for member `setColor' in `brush(QColor)', which is
of non-aggregate type `QBrush ()(QColor)'
map_layer.cpp:327: warning: unused parameter `QStringList&fields'
make: *** Error 1
#50 [edword163 08-14 10:14]
你好,楼主,这个代码怎么下载不了啊?请共享一下你的代码,谢谢