This repository has been archived by the owner on Aug 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
2,191 additions
and
1,049 deletions.
There are no files selected for viewing
Submodule libdbglog
updated
15 files
+29 −6 | dbglog/CMakeLists.txt | |
+23 −1 | dbglog/README.md | |
+0 −2 | dbglog/detail/log_helpers.hpp | |
+33 −19 | dbglog/detail/logfile.dummy.cpp | |
+197 −0 | dbglog/detail/logfile.posix.cpp | |
+0 −278 | dbglog/detail/logfile.posix.hpp | |
+230 −0 | dbglog/detail/logfile.windows.cpp | |
+0 −271 | dbglog/detail/logfile.windows.hpp | |
+1 −30 | dbglog/detail/system.hpp | |
+5 −4 | dbglog/detail/system.posix.cpp | |
+4 −10 | dbglog/detail/system.windows.cpp | |
+2 −7 | dbglog/detail/time.hpp | |
+4 −7 | dbglog/detail/time.posix.cpp | |
+2 −6 | dbglog/detail/time.windows.cpp | |
+83 −3 | dbglog/logfile.hpp |
Submodule libgeo
updated
7 files
+91 −74 | geo/CMakeLists.txt | |
+5 −1 | geo/csconvertor.hpp | |
+185 −0 | geo/csconvertorWithoutGdal.cpp | |
+111 −108 | geo/geodataset.cpp | |
+18 −2 | geo/srsdef.hpp | |
+100 −0 | geo/srsdefWithoutGdal.cpp | |
+2 −2 | geo/srsfactors.cpp |
Submodule vts-libs
updated
18 files
+1 −1 | vts-libs/CMakeLists.txt | |
+5 −3 | vts-libs/storage/tilar.cpp | |
+2 −8 | vts-libs/tools-support/repackatlas.cpp | |
+1 −1 | vts-libs/tools/vts.cpp | |
+13 −2 | vts-libs/vts/basetypes.cpp | |
+4 −0 | vts-libs/vts/basetypes.hpp | |
+4 −1 | vts-libs/vts/csconvertor.cpp | |
+7 −0 | vts-libs/vts/csconvertor.hpp | |
+17 −1 | vts-libs/vts/debug.hpp | |
+8 −3 | vts-libs/vts/meshop.hpp | |
+42 −0 | vts-libs/vts/meshop/optimize.cpp | |
+2 −0 | vts-libs/vts/nodeinfo.cpp | |
+2 −0 | vts-libs/vts/nodeinfo.hpp | |
+1 −1 | vts-libs/vts/support.cpp | |
+16 −0 | vts-libs/vts/tileindex.cpp | |
+7 −0 | vts-libs/vts/tileindex.hpp | |
+8 −0 | vts-libs/vts/tileop.hpp | |
+3 −2 | vts-libs/vts/urltemplate.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
/** | ||
* Copyright (c) 2018 Melown Technologies SE | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* | ||
* * Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* | ||
* * Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#include "utility/premain.hpp" | ||
|
||
#include "jsoncpp/json.hpp" | ||
#include "jsoncpp/as.hpp" | ||
|
||
#include "surface-meta.hpp" | ||
#include "factory.hpp" | ||
|
||
namespace resource { | ||
|
||
constexpr char SurfaceMeta::driverName[]; | ||
|
||
namespace { | ||
|
||
utility::PreMain register_([]() { registerDefinition<SurfaceMeta>(); }); | ||
|
||
void parseDefinition(SurfaceMeta &def, const Json::Value &value) | ||
{ | ||
const auto &rid([](const Json::Value &item) -> Resource::Id | ||
{ | ||
Resource::Id id; | ||
Json::get(id.group, item, "group"); | ||
Json::get(id.id, item, "id"); | ||
return id; | ||
}); | ||
|
||
def.surface = rid(Json::check(value["surface"], Json::objectValue)); | ||
def.tms = rid(Json::check(value["tms"], Json::objectValue)); | ||
} | ||
|
||
void buildDefinition(Json::Value &value, const SurfaceMeta &def) | ||
{ | ||
const auto &rid([](const Resource::Id &id) -> Json::Value | ||
{ | ||
Json::Value value; | ||
value["group"] = id.group; | ||
value["id"] = id.id; | ||
return value; | ||
}); | ||
|
||
value["surface"] = rid(def.surface); | ||
value["tms"] = rid(def.tms); | ||
} | ||
|
||
} // namespace | ||
|
||
void SurfaceMeta::from_impl(const Json::Value &value) | ||
{ | ||
parseDefinition(*this, value); | ||
} | ||
|
||
void SurfaceMeta::to_impl(Json::Value &value) const | ||
{ | ||
buildDefinition(value, *this); | ||
} | ||
|
||
Changed SurfaceMeta::changed_impl(const DefinitionBase &o) const | ||
{ | ||
const auto &other(o.as<SurfaceMeta>()); | ||
|
||
if (surface != other.surface) { return Changed::yes; } | ||
if (tms != other.tms) { return Changed::yes; } | ||
|
||
return Changed::no; | ||
} | ||
|
||
Resource::Id::list SurfaceMeta::needsResources_impl() const { | ||
return { surface, tms }; | ||
} | ||
|
||
} // namespace resource |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/** | ||
* Copyright (c) 2019 Melown Technologies SE | ||
* | ||
* Redistribution and use in source and binary forms, with or without | ||
* modification, are permitted provided that the following conditions are met: | ||
* | ||
* * Redistributions of source code must retain the above copyright notice, | ||
* this list of conditions and the following disclaimer. | ||
* | ||
* * Redistributions in binary form must reproduce the above copyright | ||
* notice, this list of conditions and the following disclaimer in the | ||
* documentation and/or other materials provided with the distribution. | ||
* | ||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE | ||
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS | ||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE | ||
* POSSIBILITY OF SUCH DAMAGE. | ||
*/ | ||
|
||
#ifndef mapproxy_definition_surface_meta_hpp_included_ | ||
#define mapproxy_definition_surface_meta_hpp_included_ | ||
|
||
#include "../resource.hpp" | ||
|
||
// fwd | ||
namespace Json { class Value; } | ||
|
||
namespace resource { | ||
|
||
// meta surface: combines existing surface with existing TMS | ||
|
||
class SurfaceMeta : public DefinitionBase { | ||
public: | ||
Resource::Id surface; | ||
Resource::Id tms; | ||
|
||
static constexpr Resource::Generator::Type type | ||
= Resource::Generator::Type::surface; | ||
|
||
static constexpr char driverName[] = "surface-meta"; | ||
|
||
protected: | ||
virtual void from_impl(const Json::Value &value); | ||
virtual void to_impl(Json::Value &value) const; | ||
virtual Changed changed_impl(const DefinitionBase &other) const; | ||
virtual Resource::Id::list needsResources_impl() const; | ||
virtual bool needsRanges_impl() const { return false; } | ||
}; | ||
|
||
} // namespace resource | ||
|
||
#endif // mapproxy_definition_surface_meta_hpp_included_ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.