Bug 370409 - GeoDataTrack: placemarks are not drawn
Summary: GeoDataTrack: placemarks are not drawn
Status: RESOLVED WORKSFORME
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: 2.0 (KDE Applications 16.08)
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: marble-bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-10 13:42 UTC by XMs
Modified: 2022-11-25 05:22 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description XMs 2016-10-10 13:42:55 UTC
I use GeoDataTrack as geometry for GeoDataPlacemark to draw a plane track. After upgrade to 16.08.1 i found that i can't see any track on the globe. I used this code in my experiments to figure out what's happen:
m_pTrackCoords->addPoint(QDateTime::currentDateTime().addSecs(-600),
                         GeoDataCoordinates(34.6, 43.1, 7000, GeoDataCoordinates::Degree));
m_pTrackCoords->addPoint(QDateTime::currentDateTime().addSecs(-300),
                         GeoDataCoordinates(23.4, 43.2, 7000, GeoDataCoordinates::Degree));
m_pTrackCoords->addPoint(QDateTime::currentDateTime(),
                         GeoDataCoordinates(11.9, 42.9, 7000, GeoDataCoordinates::Degree));

// Flight track setup
m_pTrackCoords->setInterpolate(true);
m_pPlaneTrack->setGeometry(m_pTrackCoords);

GeoDataLineString *test = new GeoDataLineString;
test->append(GeoDataCoordinates(35.6, 43.1, 7000, GeoDataCoordinates::Degree));
test->append(GeoDataCoordinates(44.4, 43.2, 7000, GeoDataCoordinates::Degree));
test->append(GeoDataCoordinates(52.9, 42.9, 7000, GeoDataCoordinates::Degree));

GeoDataPlacemark *mark = new GeoDataPlacemark;
mark->setGeometry(test);

GeoDataLineStyle linestyle;
linestyle.setWidth(2);
linestyle.setColor(QColor(Qt::red));
linestyle.setPenStyle(Qt::SolidLine);

QSharedPointer<GeoDataStyle> style(new GeoDataStyle);
style->setLineStyle(linestyle);

mark->setStyle(style);
m_pTrackCoords->setStyle(style);

// Setting tracks on map
GeoDataDocument *doc = new GeoDataDocument;
doc->append(m_pPlaneTrack);
doc->append(mark);

// Map setup
m_pWidget->setMapThemeId("earth/openstreetmap/openstreetmap.dgml");
m_pWidget->model()->treeModel()->addDocument(doc);

m_pTrackCoords is a pointer to GeoDataTrack object, m_pPlainTrack is a pointer to GeoDataPlacemark object and m_pWidget is a pointer to MarbleWidget. At version 16.04.3, both lines are visible, but at version 16.08.1 only GeoDataLineString line is shown, and GeoDataTrack line is not

Reproducible: Always

Steps to Reproduce:
1. Create instance of GeoDataTrack class (track);
2. Add a few points to track;
3. Create instance of GeoDataPlacemark class (placemark);
4. Set track as placemarks geometry using setGeometry();
5. (optional) Set placemark style;
6. Add placemark to document;
7. Add document to treeModel().

Actual Results:  
Nothing

Expected Results:  
A line going through the given points
Comment 1 Justin Zobel 2022-10-26 03:07:02 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 2 Bug Janitor Service 2022-11-10 05:12:21 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-11-25 05:22:36 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!