GDAL
ogr_geomcoordinateprecision.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Project: OpenGIS Simple Features Reference Implementation
4 * Purpose: Definition of OGRGeomCoordinatePrecision.
5 * Author: Even Rouault <even dot rouault at spatialys.com>
6 *
7 ******************************************************************************
8 * Copyright (c) 2024, Even Rouault <even dot rouault at spatialys.com>
9 *
10 * SPDX-License-Identifier: MIT
11 ****************************************************************************/
12
13#ifndef OGR_GEOMCOORDINATEPRECISION_H
14#define OGR_GEOMCOORDINATEPRECISION_H
15
16#if !defined(DOXYGEN_SKIP)
17#include <map>
18#include "cpl_string.h"
19#endif
20
26
28
40{
42 static constexpr double UNKNOWN = 0;
43
53
59
64
72 std::map<std::string, CPLStringList> oFormatSpecificOptions{};
73
74 void SetFromMeter(const OGRSpatialReference *poSRS,
75 double dfXYMeterResolution, double dfZMeterResolution,
76 double dfMResolution);
77
79 ConvertToOtherSRS(const OGRSpatialReference *poSRSSrc,
80 const OGRSpatialReference *poSRSDst) const;
81
82 static int ResolutionToPrecision(double dfResolution);
83};
84
85#endif /* OGR_GEOMCOORDINATEPRECISION_H */
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition ogr_spatialref.h:152
Various convenience functions for working with strings and string lists.
Geometry coordinate precision.
Definition ogr_geomcoordinateprecision.h:40
std::map< std::string, CPLStringList > oFormatSpecificOptions
Map from a format name to a list of format specific options.
Definition ogr_geomcoordinateprecision.h:72
double dfZResolution
Resolution for the coordinate precision of the Z coordinate.
Definition ogr_geomcoordinateprecision.h:58
double dfMResolution
Resolution for the coordinate precision of the M coordinate.
Definition ogr_geomcoordinateprecision.h:63
static constexpr double UNKNOWN
Constant for a UNKNOWN resolution.
Definition ogr_geomcoordinateprecision.h:42
double dfXYResolution
Resolution for the coordinate precision of the X and Y coordinates.
Definition ogr_geomcoordinateprecision.h:52