19 #define EARTH_RADIUS 6378000.0f // in meters
20 #define METERS_PER_LATITUDE 111317.1f
23 #define OCT OGRCoordinateTransformation
37 #define EPSG_DATUM_OLD_HAWAIIAN 6135
38 #define EPSG_DATUM_PUERTO_RICO 6139
39 #define EPSG_DATUM_NAD27 6267
40 #define EPSG_DATUM_NAD83 6269
41 #define EPSG_DATUM_WGS72 6322
42 #define EPSG_DATUM_WGS84 6326
44 #include "ogr_spatialref.h"
92 void SetDymaxion(
bool bTrue) { m_bDymaxion = bTrue; }
93 bool IsDymaxion()
const {
return m_bDymaxion; }
99 void LogDescription()
const;
113 void CalculateInverse();
119 double onef, f, f2, f4, f64;
126 const char *DatumToString(
int d);
127 const char *DatumToStringShort(
int d);
133 const char *szShortName;
136 void SetupEPSGDatums();
139 int GetNumStatePlanes();
149 double EstimateDegreesToMeters(
double latitude);
154 double GetMetersPerUnit(LinearUnits lu);
159 const char *GetLinearUnitName(LinearUnits lu);
164 double MetersPerLongitude(
double latitude);
170 bool ReadAssociatedWorldFile(
const char *filename_base,
double params[6]);
179 GDALInitResult() { hasGDAL_DATA =
false; hasPROJ_LIB =
false; hasPROJSO =
false; }
185 bool Success() {
return hasGDAL_DATA && hasPROJ_LIB && hasPROJSO; }
194 void RequestGDALFormats();
195 void RequestOGRFormats();
202 bool FindPROJ4Data();
205 bool m_bGDALFormatsRegistered;
206 bool m_bOGRFormatsRegistered;
213 #define DEFAULT_LOCATION_GDAL_DATA "../../GDAL-data/"
214 #define DEFAULT_LOCATION_PROJ_LIB "../../PROJ4-data/"
216 #define DEFAULT_LOCATION_GDAL_DATA "Shared/share/gdal/"
217 #define DEFAULT_LOCATION_PROJ_LIB "Shared/share/proj/"
218 #define DEFAULT_LOCATION_PROJSO "Shared/lib/"
219 #else // other unixes
220 #define DEFAULT_LOCATION_GDAL_DATA "/usr/local/share/gdal/"
221 #define DEFAULT_LOCATION_PROJ_LIB "/usr/local/share/proj/"
223 # define DEFAULT_LOCATION_PROJSO "/usr/local/lib64/"
225 # define DEFAULT_LOCATION_PROJSO "/usr/local/lib/"
229 #endif // PROJECTIONSH