Geohash.h
Go to the documentation of this file.
1 #pragma once
2 
13 namespace NETGeographicLib
14 {
34  public ref class Geohash
35  {
36  private:
37  // hide the constructor since all members of this class are static.
38  Geohash() {}
39  public:
40 
56  static void Forward(double lat, double lon, int len,
57  [System::Runtime::InteropServices::Out] System::String^% geohash);
58 
76  static void Reverse(System::String^ geohash,
77  [System::Runtime::InteropServices::Out] double% lat,
78  [System::Runtime::InteropServices::Out] double% lon,
79  [System::Runtime::InteropServices::Out] int% len,
80  bool centerp);
81 
90  static double LatitudeResolution(int len);
91 
100  static double LongitudeResolution(int len);
101 
111  static int GeohashLength(double res);
112 
122  static int GeohashLength(double latres, double lonres);
123 
135  static int DecimalPrecision(int len);
136  };
137 } // namespace NETGeographicLib
NETGeographicLib::Geohash::DecimalPrecision
static int DecimalPrecision(int len)
Definition: dotnet/NETGeographicLib/Geohash.cpp:81
NETGeographicLib::Geohash::GeohashLength
static int GeohashLength(double res)
Definition: dotnet/NETGeographicLib/Geohash.cpp:69
res
cout<< "Here is the matrix m:"<< endl<< m<< endl;Matrix< ptrdiff_t, 3, 1 > res
Definition: PartialRedux_count.cpp:3
NETGeographicLib::Geohash::Reverse
static void Reverse(System::String^ geohash, [System::Runtime::InteropServices::Out] double% lat, [System::Runtime::InteropServices::Out] double% lon, [System::Runtime::InteropServices::Out] int% len, bool centerp)
Definition: dotnet/NETGeographicLib/Geohash.cpp:34
NETGeographicLib::Geohash::LatitudeResolution
static double LatitudeResolution(int len)
Definition: dotnet/NETGeographicLib/Geohash.cpp:57
NETGeographicLib::Geohash
.NET wrapper for GeographicLib::Geohash.
Definition: Geohash.h:34
NETGeographicLib::Geohash::Forward
static void Forward(double lat, double lon, int len, [System::Runtime::InteropServices::Out] System::String^% geohash)
Definition: dotnet/NETGeographicLib/Geohash.cpp:19
NETGeographicLib::Geohash::LongitudeResolution
static double LongitudeResolution(int len)
Definition: dotnet/NETGeographicLib/Geohash.cpp:63
NETGeographicLib::Geohash::Geohash
Geohash()
Definition: Geohash.h:38
len
size_t len(handle h)
Get the length of a Python object.
Definition: pytypes.h:2399
lon
static const double lon
Definition: testGeographicLib.cpp:34
NETGeographicLib
Definition: Accumulator.h:13
lat
static const double lat
Definition: testGeographicLib.cpp:34


gtsam
Author(s):
autogenerated on Mon Jul 1 2024 03:01:21