openpilot v0.9.6 release
date: 2024-02-21T23:02:42 master commit: 0b4d08fab8e35a264bc7383e878538f8083c33e5
This commit is contained in:
30
third_party/maplibre-native-qt/include/geojson_p.hpp
vendored
Normal file
30
third_party/maplibre-native-qt/include/geojson_p.hpp
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// Copyright (C) 2023 MapLibre contributors
|
||||
// Copyright (C) 2019 Mapbox, Inc.
|
||||
|
||||
// SPDX-License-Identifier: BSD-2-Clause
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "types.hpp"
|
||||
|
||||
#include <mapbox/geojson.hpp>
|
||||
#include <mbgl/util/feature.hpp>
|
||||
#include <mbgl/util/geometry.hpp>
|
||||
|
||||
#include <QtCore/QVariant>
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace QMapLibre::GeoJSON {
|
||||
|
||||
mbgl::Point<double> asPoint(const Coordinate &coordinate);
|
||||
mbgl::MultiPoint<double> asMultiPoint(const Coordinates &multiPoint);
|
||||
mbgl::LineString<double> asLineString(const Coordinates &lineString);
|
||||
mbgl::MultiLineString<double> asMultiLineString(const CoordinatesCollection &multiLineString);
|
||||
mbgl::Polygon<double> asPolygon(const CoordinatesCollection &polygon);
|
||||
mbgl::MultiPolygon<double> asMultiPolygon(const CoordinatesCollections &multiPolygon);
|
||||
mbgl::Value asPropertyValue(const QVariant &value);
|
||||
mbgl::FeatureIdentifier asFeatureIdentifier(const QVariant &id);
|
||||
mbgl::GeoJSONFeature asFeature(const Feature &feature);
|
||||
|
||||
} // namespace QMapLibre::GeoJSON
|
||||
Reference in New Issue
Block a user