274.6. kosmindoormap-26.08.2
OpenStreetMap indoor map renderer for stations and airports, with QML components
26.08.2-1 · LGPL-2.0-or-later AND LGPL-3.0-or-later AND BSD-2-Clause AND BSD-3-Clause AND MIT AND CC0-1.0 AND ODbL-1.0 · 5.4 SBU · 4.0 MiB, 132 files · 43_toolkits, 155 of 344 · ports/core/gis/kosmindoormap
Homepage: https://invent.kde.org/libraries/kosmindoormap
KOSMIndoorMap draws the inside of a building from OpenStreetMap data: the floors of a railway station or an airport, platforms, shops, toilets, lifts and the paths between them. It fetches and caches OSM tiles, styles them with MapCSS, renders them with QPainter, and offers the result to QML as org.kde.kosmindoormap, with an element-information view and opening hours from kopeninghours. Itinerary and Kongress show station and venue maps through it.
Depends on: cmake, ninja, extra-cmake-modules, qt6-qtbase, qt6-qtdeclarative, zlib, flex, bison, ki18n, kcoreaddons, kservice, kcontacts, kirigami, kirigami-addons, kopeninghours, kpublictransport.
Required by (2): itinerary, kongress.
Sources: kosmindoormap-26.08.2.tar.xz (765.0 KiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/43_toolkits/phase.env && kpkg install kosmindoormap'
build.sh:
cmake -S . -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D KDE_INSTALL_LIBDIR=lib \
-D CMAKE_BUILD_TYPE=Release \
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON \
-D BUILD_TESTING=OFF \
-D KF_SKIP_PO_PROCESSING=ON \
-D USE_KPUBLICTRANSPORT=ON \
-D BUILD_STANDALONE_APP=OFF \
-D CMAKE_DISABLE_FIND_PACKAGE_recastnavigation=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_Protobuf=ON \
-D CMAKE_DISABLE_FIND_PACKAGE_OsmTools=ON \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
-D USE_KPUBLICTRANSPORT=ON— Makes kpublictransport a requirement instead of a recommendation. With it the QML moduleorg.kde.kosmindoormap.kpublictransportis built, which overlays real-time departures, platforms and rental vehicles on the map, and which Itinerary imports; without it a missing kpublictransport would drop the module with only a warning.-D BUILD_STANDALONE_APP=OFF— Nokosmindoormap-app, the demonstration and test viewer. Upstream’s default is the same; the switch is pinned so the package never ships it.-D CMAKE_DISABLE_FIND_PACKAGE_recastnavigation=ON— No indoor routing. Recast Navigation is not a port, and turning the search off means a copy of it that turns up in the build root cannot change what this port builds. Without itKOSMIndoorRoutingis built withHAVE_RECAST=0, has no navigation mesh, and the map offers no route between two points.-D CMAKE_DISABLE_FIND_PACKAGE_Protobuf=ON— No OSM PBF reader. Upstream builds it as a static plugin that only the uninstalled command-line tools and the demonstration app link.-D CMAKE_DISABLE_FIND_PACKAGE_OsmTools=ON— Noosmconvertorosmfiltersearch. They only regenerate data tables the tarball ships already generated.-D KF_SKIP_PO_PROCESSING=ON— Builds none of the translation catalogues underpo/, which the package-wide English-only rule would remove anyway (see Size and language policy).
Libraries: libKOSM.so, libKOSMIndoorMap.so, libKOSMIndoorRouting.so.
Directories: /usr/include/KOSM, /usr/include/KOSMIndoorMap, /usr/include/KOSMIndoorRouting, /usr/include/kosm, /usr/include/kosmindoormap, /usr/include/kosmindoorrouting, /usr/lib/cmake/KOSMIndoorMap, /usr/lib/qt6/qml/org/kde/kosmindoormap, /usr/lib/qt6/qml/org/kde/kosmindoorrouting, /usr/lib/qt6/qml/org/kde/osm, /usr/share/licenses/kosmindoormap.
flex and bison generate the MapCSS parser at build time; the configure requires both. It also requires kopeninghours, kirigami-addons 1.6.0 or newer and Qt’s private GUI headers, which qt6-qtbase installs.
The “edit in OSM editor” action looks up JOSM’s desktop entry through KService. Upstream finds KService and KCoreAddons with OPTIONAL_COMPONENTS, which no switch can turn into a requirement, so kservice and kcoreaddons are in depends, which puts both in the build root before this port configures. Nothing in build.sh checks that they were found.
Map data comes from maps.kde.org tile servers at run time, fetched only when an application shows a map. The QML views import Kirigami, Kirigami Addons, org.kde.kpublictransport and org.kde.contacts (an address in the element information), which is why kirigami and kcontacts are in depends.