Debian Codegraph @

ogr/ogrsf_frmts/arrow/ogrfeatherdataset.cpp

raw
1 /******************************************************************************
2 *
3 * Project: Feather Translator
4 * Purpose: Implements OGRFeatherDriver.
5 * Author: Even Rouault, <even.rouault at spatialys.com>
6 *
7 ******************************************************************************
8 * Copyright (c) 2022, Planet Labs
9 *
10 * SPDX-License-Identifier: MIT
11 ****************************************************************************/
12
13 #include "ogr_feather.h"
14
15 #include "../arrow_common/ograrrowdataset.hpp"
16
17 /************************************************************************/
18 /* OGRFeatherDataset() */
19 /************************************************************************/
20
21 OGRFeatherDataset::OGRFeatherDataset(
22 const std::shared_ptr<arrow::MemoryPool> &poMemoryPool)
23 : OGRArrowDataset(poMemoryPool)
24 {
25 }
26
27 /************************************************************************/
28 /* TestCapability() */
29 /************************************************************************/
30
31 int OGRFeatherDataset::TestCapability(const char *pszCap) const
32
33 {
34 if (EQUAL(pszCap, ODsCZGeometries))
35 return true;
36 else if (EQUAL(pszCap, ODsCMeasuredGeometries))
37 return true;
38
39 return false;
40 }