Program Listing for File parser.h
↰ Return to documentation for file (fields2cover/utils/parser.h
)
//=============================================================================
// Copyright (C) 2021-2024 Wageningen University - All Rights Reserved
// Author: Gonzalo Mier
// BSD-3 License
//=============================================================================
#pragma once
#ifndef FIELDS2COVER_UTILS_PARSER_H_
#define FIELDS2COVER_UTILS_PARSER_H_
#include <string>
#include <algorithm>
#include <vector>
#include "fields2cover/types.h"
#include "fields2cover/utils/transformation.h"
namespace f2c {
class Parser {
public:
static void importGml(const std::string& file, F2CFields& fields);
static F2CField importFieldGml(
const std::string& file, bool fail_silently = false);
static int importJson(const std::string& file, F2CFields& fields);
static F2CCell importCellJson(const std::string& file);
static F2CSwaths importSwathsJson(const std::string& file);
static F2CStrips importStripsJson(const std::string& file);
};
} // namespace f2c
#endif // FIELDS2COVER_UTILS_PARSER_H_