Skip to content

File gpkg.hpp

FileList > io > gpkg.hpp

Go to the source code of this file

  • #include <cpl_error.h>
  • #include <ogrsf_frmts.h>
  • #include <algorithm>
  • #include <functional>
  • #include <iostream>
  • #include <map>
  • #include <string>
  • #include <variant>
  • #include <vector>
  • #include "assert/assert.hpp"
  • #include "assert/gdal_assert.hpp"
  • #include "contour/contour.hpp"
  • #include "gdal_priv.h"
  • #include "io/gdal_init.hpp"
  • #include "polyline/polyline.hpp"
  • #include "utilities/filesystem.hpp"
  • #include "utilities/progress_tracker.hpp"

Classes

Type Name
class GDALDataset_w
class GPKGWriter

Public Functions

Type Name
void combine_gpkgs (const std::vector< fs::path > & sources, const fs::path & output, const std::string & projection, ProgressTracker && progress_tracker)
void copy_gpkg_feature (GDALDataset * dst, OGRLayer * src_layer, OGRFeature * feature)
void copy_gpkg_layer (GDALDataset * dst, OGRLayer * src_layer, const std::function< void()> & on_feature_copied={})
void ensure_dst_layer_fields (OGRLayer * dst_layer, OGRFeatureDefn * src_defn)
OGRLayer * get_or_create_dst_layer (GDALDataset * dst, OGRLayer * src_layer, const std::string & layer_name, OGRwkbGeometryType geom_type)
size_t gpkg_feature_count (const fs::path & path)
std::vector< Contour > read_gpkg (const fs::path & filename, ProgressTracker && progress_tracker)

Public Functions Documentation

function combine_gpkgs

inline void combine_gpkgs (
    const std::vector< fs::path > & sources,
    const fs::path & output,
    const std::string & projection,
    ProgressTracker && progress_tracker
) 

function copy_gpkg_feature

inline void copy_gpkg_feature (
    GDALDataset * dst,
    OGRLayer * src_layer,
    OGRFeature * feature
) 

function copy_gpkg_layer

inline void copy_gpkg_layer (
    GDALDataset * dst,
    OGRLayer * src_layer,
    const std::function< void()> & on_feature_copied={}
) 

function ensure_dst_layer_fields

inline void ensure_dst_layer_fields (
    OGRLayer * dst_layer,
    OGRFeatureDefn * src_defn
) 

function get_or_create_dst_layer

inline OGRLayer * get_or_create_dst_layer (
    GDALDataset * dst,
    OGRLayer * src_layer,
    const std::string & layer_name,
    OGRwkbGeometryType geom_type
) 

function gpkg_feature_count

inline size_t gpkg_feature_count (
    const fs::path & path
) 

function read_gpkg

inline std::vector< Contour > read_gpkg (
    const fs::path & filename,
    ProgressTracker && progress_tracker
) 


The documentation for this class was generated from the following file /home/runner/work/Blaze/Blaze/src/lib/io/gpkg.hpp