GDAL
ogr
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
27
class
OGRSpatialReference
;
28
39
struct
CPL_DLL
OGRGeomCoordinatePrecision
40
{
42
static
constexpr
double
UNKNOWN = 0;
43
52
double
dfXYResolution = UNKNOWN;
53
58
double
dfZResolution = UNKNOWN;
59
63
double
dfMResolution = UNKNOWN;
64
72
std::map<std::string, CPLStringList> oFormatSpecificOptions{};
73
74
void
SetFromMeter(
const
OGRSpatialReference
*poSRS,
75
double
dfXYMeterResolution,
double
dfZMeterResolution,
76
double
dfMResolution);
77
78
OGRGeomCoordinatePrecision
79
ConvertToOtherSRS(
const
OGRSpatialReference
*poSRSSrc,
80
const
OGRSpatialReference
*poSRSDst)
const
;
81
82
static
int
ResolutionToPrecision(
double
dfResolution);
83
};
84
85
#endif
/* OGR_GEOMCOORDINATEPRECISION_H */
OGRSpatialReference
This class represents an OpenGIS Spatial Reference System, and contains methods for converting betwee...
Definition
ogr_spatialref.h:152
cpl_string.h
Various convenience functions for working with strings and string lists.
OGRGeomCoordinatePrecision
Geometry coordinate precision.
Definition
ogr_geomcoordinateprecision.h:40
Generated by
1.9.8