/src/gdal/frmts/rcm/rcmdrivercore.h
Line | Count | Source |
1 | | /****************************************************************************** |
2 | | * |
3 | | * Project: DRDC Ottawa GEOINT |
4 | | * Purpose: Radarsat Constellation Mission - XML Products (product.xml) driver |
5 | | * Author: Roberto Caron, MDA |
6 | | * on behalf of DRDC Ottawa |
7 | | * |
8 | | ****************************************************************************** |
9 | | * Copyright (c) 2020, DRDC Ottawa |
10 | | * |
11 | | * Based on the RS2 Dataset Class |
12 | | * |
13 | | * SPDX-License-Identifier: MIT |
14 | | ****************************************************************************/ |
15 | | |
16 | | #ifndef RCMDRIVERCORE_H |
17 | | #define RCMDRIVERCORE_H |
18 | | |
19 | | #include "gdal_priv.h" |
20 | | |
21 | | // Should be size of larged possible filename. |
22 | | constexpr int CPL_PATH_BUF_SIZE = 2048; |
23 | | constexpr char szLayerCalibration[] = "RCM_CALIB"; |
24 | | constexpr char chLayerSeparator = ':'; |
25 | | constexpr char szSIGMA0[] = "SIGMA0"; |
26 | | constexpr char szGAMMA[] = "GAMMA"; |
27 | | constexpr char szBETA0[] = "BETA0"; |
28 | | constexpr char szUNCALIB[] = "UNCALIB"; |
29 | | |
30 | | constexpr const char *RCM_DRIVER_NAME = "RCM"; |
31 | | |
32 | | /*** Function to concat 'metadata' with a folder separator with the filename |
33 | | * 'product.xml' ***/ |
34 | | /* |
35 | | * Should return either 'metadata\product.xml' or 'metadata/product.xml' |
36 | | */ |
37 | | inline CPLString GetMetadataProduct() |
38 | 3.38k | { |
39 | | // Always begin by the layer calibration name |
40 | 3.38k | CPLString ptr; |
41 | 3.38k | ptr.append("metadata"); |
42 | 3.38k | ptr.append("/"); |
43 | 3.38k | ptr.append("product.xml"); |
44 | | |
45 | | /* return metadata product filename */ |
46 | 3.38k | return ptr; |
47 | 3.38k | } |
48 | | |
49 | | int CPL_DLL RCMDatasetIdentify(GDALOpenInfo *poOpenInfo); |
50 | | |
51 | | void CPL_DLL RCMDriverSetCommonMetadata(GDALDriver *poDriver); |
52 | | |
53 | | #endif |