<div dir="ltr">I would like to place an image on the map with anonrectangular quadrilateral.<br><div>Does Marble support the KML tag gx:LatLonQuad?</div><div></div><br>I see there are source files and API documentation defining the LatLonQuad class:<br><div><span style="font-family:monospace">src\lib\marble\geodata\handlers\kml\*</span></div><div><span style="font-family:monospace">src\lib\marble\geodata\data</span></div><div><span style="font-family:monospace"><a href="https://api.kde.org/stable/kdeedu-apidocs/marble/html/classMarble_1_1GeoDataGroundOverlay.html">https://api.kde.org/stable/kdeedu-apidocs/marble/html/classMarble_1_1GeoDataGroundOverlay.html</a></span></div><div><span style="font-family:monospace"><a href="https://api.kde.org/stable/kdeedu-apidocs/marble/html/classMarble_1_1GeoDataLatLonQuad.html">https://api.kde.org/stable/kdeedu-apidocs/marble/html/classMarble_1_1GeoDataLatLonQuad.html</a></span></div><div><br></div>However, I cannot seem to use it successfully<br><div>I built Marble (Qt version) on Windows 10 MSCV1900.</div><div><span style="font-family:monospace">git clone -b Applications/19.08 <a href="https://github.com/KDE/marble.git">https://github.com/KDE/marble.git</a> ./marble/Marble-Src</span></div><span style="font-family:monospace">cd ./marble/Marble-Build/Release</span><br><span style="font-family:monospace">cmake -G "Visual Studio 14 Win64" -Wno-dev -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=..\..\Marble-Bin\Release ..\..\Marble-Src </span><br><br><div>Loading a KML and PNG into the marble-qt.exe does not display any image.</div><div>KML used:</div><div><span style="font-family:monospace"><?xml version="1.0" encoding="UTF-8"?></span></div><span style="font-family:monospace"><kml xmlns="<a href="http://www.opengis.net/kml/2.2">http://www.opengis.net/kml/2.2</a>" xmlns:gx="<a href="http://www.google.com/kml/ext/2.2">http://www.google.com/kml/ext/2.2</a>"><br><Folder><br><name>Slope Layer</name><br><open>1</open><GroundOverlay><br><name>Slope Layer</name><br><color>44ffffff</color><br><Icon><br><href>slope.png</href><br><viewBoundScale>0.75</viewBoundScale><br></Icon><br><gx:LatLonQuad><coordinates>18.858652,-34.043223 19.011842,-34.043246 19.011921,-33.916329 18.858793,-33.916149</coordinates></gx:LatLonQuad><br></span><div><span style="font-family:monospace"></GroundOverlay></Folder></kml></span></div><div><br></div><div>KML reference:
<a href="https://developers.google.com/kml/documentation/kmlreference#gxlatlonquad">https://developers.google.com/kml/documentation/kmlreference#gxlatlonquad</a> <br></div><div>(Note, this KML works in Google Earth, so at least I know it is valid.)</div><div><br></div><div> Likewise, using the C++ API produces no imagery:</div><div><span style="font-family:monospace">...</span></div><span style="font-family:monospace">   Marble::GeoDataCoordinates tl(18.858652, -34.043223, 0.0, Marble::GeoDataCoordinates::Degree);<br>   Marble::GeoDataCoordinates tr(19.011842, -34.043246, 0.0, Marble::GeoDataCoordinates::Degree);<br>   Marble::GeoDataCoordinates br(19.011921, -33.916329, 0.0, Marble::GeoDataCoordinates::Degree);<br>   Marble::GeoDataCoordinates bl(18.858793, -33.916149, 0.0, Marble::GeoDataCoordinates::Degree);<br><br>   Marble::GeoDataLatLonQuad quad;<br>   quad.setTopLeft(tl);<br>   quad.setTopRight(tr);<br>   quad.setBottomRight(br);<br>   quad.setBottomLeft(bl);<br><br>   Marble::GeoDataGroundOverlay *overlay = new Marble::GeoDataGroundOverlay;<br>   overlay->setLatLonQuad(quad);<br>   overlay->setIcon(QImage("slope.png"));<br><br>   Marble::GeoDataDocument *document = new Marble::GeoDataDocument;<br>   document->append(overlay);<br></span><div><span style="font-family:monospace">   mapWidget->model()->treeModel()->addDocument(document);</span></div><div><span style="font-family:monospace">...</span></div><div><br></div><div>
Has it been deprecated or left out of master? <br></div><div>Does it matter if I build the KDE or Qt version? <br></div><div>Am I missing an optional package?<br></div><div>From my cmake command:<br></div><div><span style="font-family:monospace">-- The following OPTIONAL packages have not been found:<br> * ZLIB, general-purpose lossless data-compression library, <<a href="http://www.zlib.net/">http://www.zlib.net/</a>><br>   When found, system zlib is used. When not found, a Marble internal zlib is used.<br> * Phonon4Qt5, Qt-based audio library, <<a href="https://phonon.kde.org/">https://phonon.kde.org/</a>><br>   Support for playback of soundcue elements<br>   Voice navigation (sound or human speakers)<br> * libgps, communicating with the GPS daemon, <<a href="http://catb.org/gpsd/">http://catb.org/gpsd/</a>><br>   position information via gpsd<br> * libwlocate, WLAN-based geolocation, <<a href="http://www.openwlanmap.org/">http://www.openwlanmap.org/</a>><br>   Position information based on neighboring WLAN networks<br> * libshp, reading and writing of ESRI Shapefiles (.shp), <<a href="http://shapelib.maptools.org/">http://shapelib.maptools.org/</a>><br>   reading and displaying .shp files<br> * ECM (required version >= 1.7.0)</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:arial,sans-serif">P.S. Also, I receive the following warning when using -DKF5=TRUE:</span></div><div><span style="font-family:monospace">CMake Warning:<br>  Manually-specified variables were not used by the project:<br><br>    WITH_KF5</span></div></div>