GDAL

ogr_srs_api.h
Go to the documentation of this file.
1/******************************************************************************
2 *
3 * Project: OpenGIS Simple Features Reference Implementation
4 * Purpose: C API and constant declarations for OGR Spatial References.
5 * Author: Frank Warmerdam, warmerdam@pobox.com
6 *
7 ******************************************************************************
8 * Copyright (c) 2000, Frank Warmerdam
9 * Copyright (c) 2008-2013, Even Rouault <even dot rouault at spatialys.com>
10 *
11 * SPDX-License-Identifier: MIT
12 ****************************************************************************/
13
14#ifndef OGR_SRS_API_H_INCLUDED
15#define OGR_SRS_API_H_INCLUDED
16
17#include <stdbool.h>
18
19#ifndef SWIG
20#include "ogr_core.h"
21#include "gdal_fwd.h"
22
23 CPL_C_START
24
34 typedef enum
35{
36 OAO_Other = 0,
37 OAO_North = 1,
38 OAO_South = 2,
39 OAO_East = 3,
40 OAO_West = 4,
41 OAO_Up = 5,
42 OAO_Down = 6
43} OGRAxisOrientation;
44
45 const char CPL_DLL *OSRAxisEnumToName(OGRAxisOrientation eOrientation);
46
47#endif // ndef SWIG
48
49/* ==================================================================== */
50/* Some standard WKT geographic coordinate systems. */
51/* ==================================================================== */
52
53#ifdef USE_DEPRECATED_SRS_WKT_WGS84
54#define SRS_WKT_WGS84 \
55 "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS " \
56 "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" \
57 "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]" \
58 ",UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]]," \
59 "AUTHORITY[\"EPSG\",\"4326\"]]"
60#endif
61
63#define SRS_WKT_WGS84_LAT_LONG \
64 "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS " \
65 "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" \
66 "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]" \
67 ",UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" \
68 "\"Latitude\",NORTH],AXIS[\"Longitude\",EAST],AUTHORITY[\"EPSG\"," \
69 "\"4326\"]]"
70
71/* ==================================================================== */
72/* Some "standard" strings. */
73/* ==================================================================== */
74
76#define SRS_PT_ALBERS_CONIC_EQUAL_AREA "Albers_Conic_Equal_Area"
78#define SRS_PT_AZIMUTHAL_EQUIDISTANT "Azimuthal_Equidistant"
80#define SRS_PT_CASSINI_SOLDNER "Cassini_Soldner"
82#define SRS_PT_CYLINDRICAL_EQUAL_AREA "Cylindrical_Equal_Area"
84#define SRS_PT_BONNE "Bonne"
86#define SRS_PT_ECKERT_I "Eckert_I"
88#define SRS_PT_ECKERT_II "Eckert_II"
90#define SRS_PT_ECKERT_III "Eckert_III"
92#define SRS_PT_ECKERT_IV "Eckert_IV"
94#define SRS_PT_ECKERT_V "Eckert_V"
96#define SRS_PT_ECKERT_VI "Eckert_VI"
98#define SRS_PT_EQUIDISTANT_CONIC "Equidistant_Conic"
100#define SRS_PT_EQUIRECTANGULAR "Equirectangular"
102#define SRS_PT_GALL_STEREOGRAPHIC "Gall_Stereographic"
104#define SRS_PT_GAUSSSCHREIBERTMERCATOR "Gauss_Schreiber_Transverse_Mercator"
106#define SRS_PT_GEOSTATIONARY_SATELLITE "Geostationary_Satellite"
108#define SRS_PT_GOODE_HOMOLOSINE "Goode_Homolosine"
110#define SRS_PT_IGH "Interrupted_Goode_Homolosine"
112#define SRS_PT_GNOMONIC "Gnomonic"
114#define SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER \
115 "Hotine_Oblique_Mercator_Azimuth_Center"
117#define SRS_PT_HOTINE_OBLIQUE_MERCATOR "Hotine_Oblique_Mercator"
119#define SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN \
120 "Hotine_Oblique_Mercator_Two_Point_Natural_Origin"
122#define SRS_PT_LABORDE_OBLIQUE_MERCATOR "Laborde_Oblique_Mercator"
124#define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP "Lambert_Conformal_Conic_1SP"
126#define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP "Lambert_Conformal_Conic_2SP"
128#define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM \
129 "Lambert_Conformal_Conic_2SP_Belgium"
131#define SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA "Lambert_Azimuthal_Equal_Area"
133#define SRS_PT_MERCATOR_1SP "Mercator_1SP"
135#define SRS_PT_MERCATOR_2SP "Mercator_2SP"
137#define SRS_PT_MERCATOR_AUXILIARY_SPHERE "Mercator_Auxiliary_Sphere"
139#define SRS_PT_MILLER_CYLINDRICAL "Miller_Cylindrical"
141#define SRS_PT_MOLLWEIDE "Mollweide"
143#define SRS_PT_NEW_ZEALAND_MAP_GRID "New_Zealand_Map_Grid"
145#define SRS_PT_OBLIQUE_STEREOGRAPHIC "Oblique_Stereographic"
147#define SRS_PT_ORTHOGRAPHIC "Orthographic"
149#define SRS_PT_POLAR_STEREOGRAPHIC "Polar_Stereographic"
151#define SRS_PT_POLYCONIC "Polyconic"
153#define SRS_PT_ROBINSON "Robinson"
155#define SRS_PT_SINUSOIDAL "Sinusoidal"
157#define SRS_PT_STEREOGRAPHIC "Stereographic"
159#define SRS_PT_SWISS_OBLIQUE_CYLINDRICAL "Swiss_Oblique_Cylindrical"
161#define SRS_PT_TRANSVERSE_MERCATOR "Transverse_Mercator"
163#define SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED \
164 "Transverse_Mercator_South_Orientated"
165
166/* special mapinfo variants on Transverse Mercator */
168#define SRS_PT_TRANSVERSE_MERCATOR_MI_21 "Transverse_Mercator_MapInfo_21"
170#define SRS_PT_TRANSVERSE_MERCATOR_MI_22 "Transverse_Mercator_MapInfo_22"
172#define SRS_PT_TRANSVERSE_MERCATOR_MI_23 "Transverse_Mercator_MapInfo_23"
174#define SRS_PT_TRANSVERSE_MERCATOR_MI_24 "Transverse_Mercator_MapInfo_24"
176#define SRS_PT_TRANSVERSE_MERCATOR_MI_25 "Transverse_Mercator_MapInfo_25"
177
179#define SRS_PT_TUNISIA_MINING_GRID "Tunisia_Mining_Grid"
181#define SRS_PT_TWO_POINT_EQUIDISTANT "Two_Point_Equidistant"
183#define SRS_PT_VANDERGRINTEN "VanDerGrinten"
185#define SRS_PT_KROVAK "Krovak"
187#define SRS_PT_IMW_POLYCONIC "International_Map_of_the_World_Polyconic"
189#define SRS_PT_WAGNER_I "Wagner_I"
191#define SRS_PT_WAGNER_II "Wagner_II"
193#define SRS_PT_WAGNER_III "Wagner_III"
195#define SRS_PT_WAGNER_IV "Wagner_IV"
197#define SRS_PT_WAGNER_V "Wagner_V"
199#define SRS_PT_WAGNER_VI "Wagner_VI"
201#define SRS_PT_WAGNER_VII "Wagner_VII"
203#define SRS_PT_QSC "Quadrilateralized_Spherical_Cube"
205#define SRS_PT_AITOFF "Aitoff"
207#define SRS_PT_WINKEL_I "Winkel_I"
209#define SRS_PT_WINKEL_II "Winkel_II"
211#define SRS_PT_WINKEL_TRIPEL "Winkel_Tripel"
213#define SRS_PT_CRASTER_PARABOLIC "Craster_Parabolic"
215#define SRS_PT_LOXIMUTHAL "Loximuthal"
217#define SRS_PT_QUARTIC_AUTHALIC "Quartic_Authalic"
219#define SRS_PT_SCH "Spherical_Cross_Track_Height"
220
222#define SRS_PP_CENTRAL_MERIDIAN "central_meridian"
224#define SRS_PP_SCALE_FACTOR "scale_factor"
226#define SRS_PP_STANDARD_PARALLEL_1 "standard_parallel_1"
228#define SRS_PP_STANDARD_PARALLEL_2 "standard_parallel_2"
230#define SRS_PP_PSEUDO_STD_PARALLEL_1 "pseudo_standard_parallel_1"
232#define SRS_PP_LONGITUDE_OF_CENTER "longitude_of_center"
234#define SRS_PP_LATITUDE_OF_CENTER "latitude_of_center"
236#define SRS_PP_LONGITUDE_OF_ORIGIN "longitude_of_origin"
238#define SRS_PP_LATITUDE_OF_ORIGIN "latitude_of_origin"
240#define SRS_PP_FALSE_EASTING "false_easting"
242#define SRS_PP_FALSE_NORTHING "false_northing"
244#define SRS_PP_AZIMUTH "azimuth"
246#define SRS_PP_LONGITUDE_OF_POINT_1 "longitude_of_point_1"
248#define SRS_PP_LATITUDE_OF_POINT_1 "latitude_of_point_1"
250#define SRS_PP_LONGITUDE_OF_POINT_2 "longitude_of_point_2"
252#define SRS_PP_LATITUDE_OF_POINT_2 "latitude_of_point_2"
254#define SRS_PP_LONGITUDE_OF_POINT_3 "longitude_of_point_3"
256#define SRS_PP_LATITUDE_OF_POINT_3 "latitude_of_point_3"
258#define SRS_PP_RECTIFIED_GRID_ANGLE "rectified_grid_angle"
260#define SRS_PP_LANDSAT_NUMBER "landsat_number"
262#define SRS_PP_PATH_NUMBER "path_number"
264#define SRS_PP_PERSPECTIVE_POINT_HEIGHT "perspective_point_height"
266#define SRS_PP_SATELLITE_HEIGHT "satellite_height"
268#define SRS_PP_FIPSZONE "fipszone"
270#define SRS_PP_ZONE "zone"
272#define SRS_PP_LATITUDE_OF_1ST_POINT "Latitude_Of_1st_Point"
274#define SRS_PP_LONGITUDE_OF_1ST_POINT "Longitude_Of_1st_Point"
276#define SRS_PP_LATITUDE_OF_2ND_POINT "Latitude_Of_2nd_Point"
278#define SRS_PP_LONGITUDE_OF_2ND_POINT "Longitude_Of_2nd_Point"
280#define SRS_PP_PEG_POINT_LATITUDE "peg_point_latitude"
282#define SRS_PP_PEG_POINT_LONGITUDE "peg_point_longitude"
284#define SRS_PP_PEG_POINT_HEADING "peg_point_heading"
286#define SRS_PP_PEG_POINT_HEIGHT "peg_point_height"
287
289#define SRS_UL_METER "Meter"
291#define SRS_UL_FOOT "Foot (International)" /* or just "FOOT"? */
293#define SRS_UL_FOOT_CONV "0.3048"
295#define SRS_UL_US_FOOT "Foot_US" /* or "US survey foot" from EPSG */
297#define SRS_UL_US_FOOT_CONV "0.3048006096012192"
299#define SRS_UL_NAUTICAL_MILE "Nautical Mile"
301#define SRS_UL_NAUTICAL_MILE_CONV "1852.0"
303#define SRS_UL_LINK "Link" /* Based on US Foot */
305#define SRS_UL_LINK_CONV "0.20116684023368047"
307#define SRS_UL_CHAIN "Chain" /* based on US Foot */
309#define SRS_UL_CHAIN_CONV "20.116684023368047"
311#define SRS_UL_ROD "Rod" /* based on US Foot */
313#define SRS_UL_ROD_CONV "5.02921005842012"
315#define SRS_UL_LINK_Clarke "Link_Clarke"
317#define SRS_UL_LINK_Clarke_CONV "0.2011661949"
318
320#define SRS_UL_KILOMETER "Kilometer"
322#define SRS_UL_KILOMETER_CONV "1000."
324#define SRS_UL_DECIMETER "Decimeter"
326#define SRS_UL_DECIMETER_CONV "0.1"
328#define SRS_UL_CENTIMETER "Centimeter"
330#define SRS_UL_CENTIMETER_CONV "0.01"
332#define SRS_UL_MILLIMETER "Millimeter"
334#define SRS_UL_MILLIMETER_CONV "0.001"
336#define SRS_UL_INTL_NAUT_MILE "Nautical_Mile_International"
338#define SRS_UL_INTL_NAUT_MILE_CONV "1852.0"
340#define SRS_UL_INTL_INCH "Inch_International"
342#define SRS_UL_INTL_INCH_CONV "0.0254"
344#define SRS_UL_INTL_FOOT "Foot_International"
346#define SRS_UL_INTL_FOOT_CONV "0.3048"
348#define SRS_UL_INTL_YARD "Yard_International"
350#define SRS_UL_INTL_YARD_CONV "0.9144"
352#define SRS_UL_INTL_STAT_MILE "Statute_Mile_International"
354#define SRS_UL_INTL_STAT_MILE_CONV "1609.344"
356#define SRS_UL_INTL_FATHOM "Fathom_International"
358#define SRS_UL_INTL_FATHOM_CONV "1.8288"
360#define SRS_UL_INTL_CHAIN "Chain_International"
362#define SRS_UL_INTL_CHAIN_CONV "20.1168"
364#define SRS_UL_INTL_LINK "Link_International"
366#define SRS_UL_INTL_LINK_CONV "0.201168"
368#define SRS_UL_US_INCH "Inch_US_Surveyor"
370#define SRS_UL_US_INCH_CONV "0.025400050800101603"
372#define SRS_UL_US_YARD "Yard_US_Surveyor"
374#define SRS_UL_US_YARD_CONV "0.914401828803658"
376#define SRS_UL_US_CHAIN "Chain_US_Surveyor"
378#define SRS_UL_US_CHAIN_CONV "20.11684023368047"
380#define SRS_UL_US_STAT_MILE "Statute_Mile_US_Surveyor"
382#define SRS_UL_US_STAT_MILE_CONV "1609.347218694437"
384#define SRS_UL_INDIAN_YARD "Yard_Indian"
386#define SRS_UL_INDIAN_YARD_CONV "0.91439523"
388#define SRS_UL_INDIAN_FOOT "Foot_Indian"
390#define SRS_UL_INDIAN_FOOT_CONV "0.30479841"
392#define SRS_UL_INDIAN_CHAIN "Chain_Indian"
394#define SRS_UL_INDIAN_CHAIN_CONV "20.11669506"
395
397#define SRS_UA_DEGREE "degree"
399#define SRS_UA_DEGREE_CONV "0.0174532925199433"
401#define SRS_UA_RADIAN "radian"
402
404#define SRS_PM_GREENWICH "Greenwich"
405
407#define SRS_DN_NAD27 "North_American_Datum_1927"
409#define SRS_DN_NAD83 "North_American_Datum_1983"
411#define SRS_DN_WGS72 "WGS_1972"
413#define SRS_DN_WGS84 "WGS_1984"
414
416#define SRS_WGS84_SEMIMAJOR 6378137.0
418#define SRS_WGS84_INVFLATTENING 298.257223563
419
420#ifndef SWIG
421/* -------------------------------------------------------------------- */
422/* C Wrappers for C++ objects and methods. */
423/* -------------------------------------------------------------------- */
424
425 void CPL_DLL OSRSetPROJSearchPaths(const char *const *papszPaths);
426 char CPL_DLL **OSRGetPROJSearchPaths(void);
427 void CPL_DLL OSRSetPROJAuxDbPaths(const char *const *papszPaths);
428 char CPL_DLL **OSRGetPROJAuxDbPaths(void);
429 void CPL_DLL OSRSetPROJEnableNetwork(int enabled);
430 int CPL_DLL OSRGetPROJEnableNetwork(void);
431 void CPL_DLL OSRGetPROJVersion(int *pnMajor, int *pnMinor, int *pnPatch);
432
433 OGRSpatialReferenceH CPL_DLL CPL_STDCALL
434 OSRNewSpatialReference(const char * /* = NULL */);
435 OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRCloneGeogCS(OGRSpatialReferenceH);
436 OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRClone(OGRSpatialReferenceH);
437 void CPL_DLL CPL_STDCALL OSRDestroySpatialReference(OGRSpatialReferenceH);
438
439 int CPL_DLL OSRReference(OGRSpatialReferenceH);
440 int CPL_DLL OSRDereference(OGRSpatialReferenceH);
441 void CPL_DLL OSRRelease(OGRSpatialReferenceH);
442
443 OGRErr CPL_DLL OSRValidate(OGRSpatialReferenceH);
444
445 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSG(OGRSpatialReferenceH, int);
446 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSGA(OGRSpatialReferenceH, int);
447 OGRErr CPL_DLL OSRImportFromWkt(OGRSpatialReferenceH, char **);
448 OGRErr CPL_DLL OSRImportFromProj4(OGRSpatialReferenceH, const char *);
449 OGRErr CPL_DLL OSRImportFromESRI(OGRSpatialReferenceH, char **);
450 OGRErr CPL_DLL OSRImportFromPCI(OGRSpatialReferenceH hSRS, const char *,
451 const char *, double *);
452 OGRErr CPL_DLL OSRImportFromUSGS(OGRSpatialReferenceH, long, long, double *,
453 long);
454 OGRErr CPL_DLL OSRImportFromXML(OGRSpatialReferenceH, const char *);
455 OGRErr CPL_DLL OSRImportFromDict(OGRSpatialReferenceH, const char *,
456 const char *);
457 OGRErr CPL_DLL OSRImportFromPanorama(OGRSpatialReferenceH, long, long, long,
458 double *);
459 OGRErr CPL_DLL OSRImportFromOzi(OGRSpatialReferenceH, const char *const *);
460 OGRErr CPL_DLL OSRImportFromMICoordSys(OGRSpatialReferenceH, const char *);
461 OGRErr CPL_DLL OSRImportFromERM(OGRSpatialReferenceH, const char *,
462 const char *, const char *);
463 OGRErr CPL_DLL OSRImportFromUrl(OGRSpatialReferenceH, const char *);
464 OGRErr CPL_DLL OSRImportFromCF1(OGRSpatialReferenceH,
465 CSLConstList papszKeyValues,
466 const char *pszUnits);
467
468 OGRErr CPL_DLL CPL_STDCALL OSRExportToWkt(OGRSpatialReferenceH, char **);
469 OGRErr CPL_DLL OSRExportToWktEx(OGRSpatialReferenceH, char **ppszResult,
470 const char *const *papszOptions);
471 OGRErr CPL_DLL CPL_STDCALL OSRExportToPrettyWkt(OGRSpatialReferenceH, char **,
472 int);
473 OGRErr CPL_DLL OSRExportToPROJJSON(OGRSpatialReferenceH hSRS, char **ppszReturn,
474 const char *const *papszOptions);
475 OGRErr CPL_DLL CPL_STDCALL OSRExportToProj4(OGRSpatialReferenceH, char **);
476 OGRErr CPL_DLL OSRExportToPCI(OGRSpatialReferenceH, char **, char **,
477 double **);
478 OGRErr CPL_DLL OSRExportToUSGS(OGRSpatialReferenceH, long *, long *, double **,
479 long *);
480 OGRErr CPL_DLL OSRExportToXML(OGRSpatialReferenceH, char **, const char *);
481 OGRErr CPL_DLL OSRExportToPanorama(OGRSpatialReferenceH, long *, long *, long *,
482 long *, double *);
483 OGRErr CPL_DLL OSRExportToMICoordSys(OGRSpatialReferenceH, char **);
484 OGRErr CPL_DLL OSRExportToERM(OGRSpatialReferenceH, char *, char *, char *);
485 OGRErr CPL_DLL OSRExportToCF1(OGRSpatialReferenceH, char **ppszGridMappingName,
486 char ***ppapszKeyValues, char **ppszUnits,
487 CSLConstList papszOptions);
488
489 OGRErr CPL_DLL OSRMorphToESRI(OGRSpatialReferenceH);
490 OGRErr CPL_DLL OSRMorphFromESRI(OGRSpatialReferenceH);
491
492 OGRErr CPL_DLL OSRStripVertical(OGRSpatialReferenceH);
493
494 OGRSpatialReferenceH CPL_DLL OSRConvertToOtherProjection(
495 OGRSpatialReferenceH hSRS, const char *pszTargetProjection,
496 const char *const *papszOptions);
497
498 const char CPL_DLL *OSRGetName(OGRSpatialReferenceH hSRS);
499 const char CPL_DLL *OSRGetCelestialBodyName(OGRSpatialReferenceH hSRS);
500
501 OGRErr CPL_DLL CPL_STDCALL OSRSetAttrValue(OGRSpatialReferenceH hSRS,
502 const char *pszNodePath,
503 const char *pszNewNodeValue);
504 const char CPL_DLL *CPL_STDCALL OSRGetAttrValue(OGRSpatialReferenceH hSRS,
505 const char *pszName,
506 int iChild /* = 0 */);
507
508 OGRErr CPL_DLL OSRSetAngularUnits(OGRSpatialReferenceH, const char *, double);
509 double CPL_DLL OSRGetAngularUnits(OGRSpatialReferenceH, char **);
510 OGRErr CPL_DLL OSRSetLinearUnits(OGRSpatialReferenceH, const char *, double);
511 OGRErr CPL_DLL OSRSetTargetLinearUnits(OGRSpatialReferenceH, const char *,
512 const char *, double);
513 OGRErr CPL_DLL OSRSetLinearUnitsAndUpdateParameters(OGRSpatialReferenceH,
514 const char *, double);
515 double CPL_DLL OSRGetLinearUnits(OGRSpatialReferenceH, char **);
516 double CPL_DLL OSRGetTargetLinearUnits(OGRSpatialReferenceH, const char *,
517 char **);
518
519 double CPL_DLL OSRGetPrimeMeridian(OGRSpatialReferenceH, char **);
520
521 int CPL_DLL OSRIsGeographic(OGRSpatialReferenceH);
522 int CPL_DLL OSRIsDerivedGeographic(OGRSpatialReferenceH);
523 int CPL_DLL OSRIsLocal(OGRSpatialReferenceH);
524 int CPL_DLL OSRIsProjected(OGRSpatialReferenceH);
525 int CPL_DLL OSRIsDerivedProjected(OGRSpatialReferenceH);
526 int CPL_DLL OSRIsCompound(OGRSpatialReferenceH);
527 int CPL_DLL OSRIsGeocentric(OGRSpatialReferenceH);
528 int CPL_DLL OSRIsVertical(OGRSpatialReferenceH);
529 int CPL_DLL OSRIsDynamic(OGRSpatialReferenceH);
530 int CPL_DLL OSRHasPointMotionOperation(OGRSpatialReferenceH);
531 int CPL_DLL OSRIsSameGeogCS(OGRSpatialReferenceH, OGRSpatialReferenceH);
532 int CPL_DLL OSRIsSameVertCS(OGRSpatialReferenceH, OGRSpatialReferenceH);
533 int CPL_DLL OSRIsSame(OGRSpatialReferenceH, OGRSpatialReferenceH);
534 int CPL_DLL OSRIsSameEx(OGRSpatialReferenceH, OGRSpatialReferenceH,
535 const char *const *papszOptions);
536
537 void CPL_DLL OSRSetCoordinateEpoch(OGRSpatialReferenceH hSRS,
538 double dfCoordinateEpoch);
539 double CPL_DLL OSRGetCoordinateEpoch(OGRSpatialReferenceH hSRS);
540
541 OGRErr CPL_DLL OSRSetLocalCS(OGRSpatialReferenceH hSRS, const char *pszName);
542 OGRErr CPL_DLL OSRSetProjCS(OGRSpatialReferenceH hSRS, const char *pszName);
543 OGRErr CPL_DLL OSRSetGeocCS(OGRSpatialReferenceH hSRS, const char *pszName);
544 OGRErr CPL_DLL OSRSetWellKnownGeogCS(OGRSpatialReferenceH hSRS,
545 const char *pszName);
546 OGRErr CPL_DLL CPL_STDCALL OSRSetFromUserInput(OGRSpatialReferenceH hSRS,
547 const char *);
548 OGRErr CPL_DLL OSRSetFromUserInputEx(OGRSpatialReferenceH hSRS, const char *,
549 CSLConstList papszOptions);
550 OGRErr CPL_DLL OSRCopyGeogCSFrom(OGRSpatialReferenceH hSRS,
551 const OGRSpatialReferenceH hSrcSRS);
552 OGRErr CPL_DLL OSRSetTOWGS84(OGRSpatialReferenceH hSRS, double, double, double,
553 double, double, double, double);
554 OGRErr CPL_DLL OSRGetTOWGS84(OGRSpatialReferenceH hSRS, double *, int);
555 OGRErr CPL_DLL OSRAddGuessedTOWGS84(OGRSpatialReferenceH hSRS);
556
557 OGRErr CPL_DLL OSRSetCompoundCS(OGRSpatialReferenceH hSRS, const char *pszName,
558 OGRSpatialReferenceH hHorizSRS,
559 OGRSpatialReferenceH hVertSRS);
560 OGRErr CPL_DLL OSRPromoteTo3D(OGRSpatialReferenceH hSRS, const char *pszName);
561 OGRErr CPL_DLL OSRDemoteTo2D(OGRSpatialReferenceH hSRS, const char *pszName);
562
563 OGRErr CPL_DLL OSRSetGeogCS(OGRSpatialReferenceH hSRS, const char *pszGeogName,
564 const char *pszDatumName,
565 const char *pszEllipsoidName, double dfSemiMajor,
566 double dfInvFlattening,
567 const char *pszPMName /* = NULL */,
568 double dfPMOffset /* = 0.0 */,
569 const char *pszUnits /* = NULL */,
570 double dfConvertToRadians /* = 0.0 */);
571
572 OGRErr CPL_DLL OSRSetVertCS(OGRSpatialReferenceH hSRS,
573 const char *pszVertCSName,
574 const char *pszVertDatumName, int nVertDatumType);
575
576 double CPL_DLL OSRGetSemiMajor(OGRSpatialReferenceH, OGRErr * /* = NULL */);
577 double CPL_DLL OSRGetSemiMinor(OGRSpatialReferenceH, OGRErr * /* = NULL */);
578 double CPL_DLL OSRGetInvFlattening(OGRSpatialReferenceH, OGRErr * /*=NULL*/);
579
580 OGRErr CPL_DLL OSRSetAuthority(OGRSpatialReferenceH hSRS,
581 const char *pszTargetKey,
582 const char *pszAuthority, int nCode);
583 const char CPL_DLL *OSRGetAuthorityCode(OGRSpatialReferenceH hSRS,
584 const char *pszTargetKey);
585 const char CPL_DLL *OSRGetAuthorityName(OGRSpatialReferenceH hSRS,
586 const char *pszTargetKey);
587
588 int CPL_DLL OSRGetAreaOfUse(OGRSpatialReferenceH hSRS,
589 double *pdfWestLongitudeDeg,
590 double *pdfSouthLatitudeDeg,
591 double *pdfEastLongitudeDeg,
592 double *pdfNorthLatitudeDeg,
593 const char **ppszAreaName);
594
595 OGRErr CPL_DLL OSRSetProjection(OGRSpatialReferenceH, const char *);
596 OGRErr CPL_DLL OSRSetProjParm(OGRSpatialReferenceH, const char *, double);
597 double CPL_DLL OSRGetProjParm(OGRSpatialReferenceH hSRS,
598 const char *pszParamName,
599 double dfDefault /* = 0.0 */,
600 OGRErr * /* = NULL */);
601 OGRErr CPL_DLL OSRSetNormProjParm(OGRSpatialReferenceH, const char *, double);
602 double CPL_DLL OSRGetNormProjParm(OGRSpatialReferenceH hSRS,
603 const char *pszParamName,
604 double dfDefault /* = 0.0 */,
605 OGRErr * /* = NULL */);
606
607 OGRErr CPL_DLL OSRSetUTM(OGRSpatialReferenceH hSRS, int nZone, int bNorth);
608 int CPL_DLL OSRGetUTMZone(OGRSpatialReferenceH hSRS, int *pbNorth);
609 OGRErr CPL_DLL OSRSetStatePlane(OGRSpatialReferenceH hSRS, int nZone,
610 int bNAD83);
611 OGRErr CPL_DLL OSRSetStatePlaneWithUnits(OGRSpatialReferenceH hSRS, int nZone,
612 int bNAD83,
613 const char *pszOverrideUnitName,
614 double dfOverrideUnit);
615 OGRErr CPL_DLL OSRAutoIdentifyEPSG(OGRSpatialReferenceH hSRS);
616
617 OGRSpatialReferenceH CPL_DLL *OSRFindMatches(OGRSpatialReferenceH hSRS,
618 char **papszOptions,
619 int *pnEntries,
620 int **ppanMatchConfidence);
621 void CPL_DLL OSRFreeSRSArray(OGRSpatialReferenceH *pahSRS);
622
623 int CPL_DLL OSREPSGTreatsAsLatLong(OGRSpatialReferenceH hSRS);
624 int CPL_DLL OSREPSGTreatsAsNorthingEasting(OGRSpatialReferenceH hSRS);
625 const char CPL_DLL *OSRGetAxis(OGRSpatialReferenceH hSRS,
626 const char *pszTargetKey, int iAxis,
627 OGRAxisOrientation *peOrientation);
628 int CPL_DLL OSRGetAxesCount(OGRSpatialReferenceH hSRS);
629 OGRErr CPL_DLL OSRSetAxes(OGRSpatialReferenceH hSRS, const char *pszTargetKey,
630 const char *pszXAxisName,
631 OGRAxisOrientation eXAxisOrientation,
632 const char *pszYAxisName,
633 OGRAxisOrientation eYAxisOrientation);
634
636 typedef enum
637{
638 OAMS_TRADITIONAL_GIS_ORDER,
639 OAMS_AUTHORITY_COMPLIANT,
641 OAMS_CUSTOM
642} OSRAxisMappingStrategy;
643
644 OSRAxisMappingStrategy CPL_DLL
645 OSRGetAxisMappingStrategy(OGRSpatialReferenceH hSRS);
646
647 void CPL_DLL OSRSetAxisMappingStrategy(OGRSpatialReferenceH hSRS,
648 OSRAxisMappingStrategy strategy);
649
650 const int CPL_DLL *OSRGetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS,
651 int *pnCount);
652
653 OGRErr CPL_DLL OSRSetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS,
654 int nMappingSize,
655 const int *panMapping);
656
658 OGRErr CPL_DLL OSRSetACEA(OGRSpatialReferenceH hSRS, double dfStdP1,
659 double dfStdP2, double dfCenterLat,
660 double dfCenterLong, double dfFalseEasting,
661 double dfFalseNorthing);
662
664 OGRErr CPL_DLL OSRSetAE(OGRSpatialReferenceH hSRS, double dfCenterLat,
665 double dfCenterLong, double dfFalseEasting,
666 double dfFalseNorthing);
667
669 OGRErr CPL_DLL OSRSetBonne(OGRSpatialReferenceH hSRS, double dfStandardParallel,
670 double dfCentralMeridian, double dfFalseEasting,
671 double dfFalseNorthing);
672
674 OGRErr CPL_DLL OSRSetCEA(OGRSpatialReferenceH hSRS, double dfStdP1,
675 double dfCentralMeridian, double dfFalseEasting,
676 double dfFalseNorthing);
677
679 OGRErr CPL_DLL OSRSetCS(OGRSpatialReferenceH hSRS, double dfCenterLat,
680 double dfCenterLong, double dfFalseEasting,
681 double dfFalseNorthing);
682
684 OGRErr CPL_DLL OSRSetEC(OGRSpatialReferenceH hSRS, double dfStdP1,
685 double dfStdP2, double dfCenterLat, double dfCenterLong,
686 double dfFalseEasting, double dfFalseNorthing);
687
689 OGRErr CPL_DLL OSRSetEckert(OGRSpatialReferenceH hSRS, int nVariation,
690 double dfCentralMeridian, double dfFalseEasting,
691 double dfFalseNorthing);
692
694 OGRErr CPL_DLL OSRSetEckertIV(OGRSpatialReferenceH hSRS,
695 double dfCentralMeridian, double dfFalseEasting,
696 double dfFalseNorthing);
697
699 OGRErr CPL_DLL OSRSetEckertVI(OGRSpatialReferenceH hSRS,
700 double dfCentralMeridian, double dfFalseEasting,
701 double dfFalseNorthing);
702
704 OGRErr CPL_DLL OSRSetEquirectangular(OGRSpatialReferenceH hSRS,
705 double dfCenterLat, double dfCenterLong,
706 double dfFalseEasting,
707 double dfFalseNorthing);
708
710 OGRErr CPL_DLL OSRSetEquirectangular2(OGRSpatialReferenceH hSRS,
711 double dfCenterLat, double dfCenterLong,
712 double dfPseudoStdParallel1,
713 double dfFalseEasting,
714 double dfFalseNorthing);
715
717 OGRErr CPL_DLL OSRSetGS(OGRSpatialReferenceH hSRS, double dfCentralMeridian,
718 double dfFalseEasting, double dfFalseNorthing);
719
721 OGRErr CPL_DLL OSRSetGH(OGRSpatialReferenceH hSRS, double dfCentralMeridian,
722 double dfFalseEasting, double dfFalseNorthing);
723
725 OGRErr CPL_DLL OSRSetIGH(OGRSpatialReferenceH hSRS);
726
728 OGRErr CPL_DLL OSRSetGEOS(OGRSpatialReferenceH hSRS, double dfCentralMeridian,
729 double dfSatelliteHeight, double dfFalseEasting,
730 double dfFalseNorthing);
731
733 OGRErr CPL_DLL OSRSetGaussSchreiberTMercator(
734 OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
735 double dfScale, double dfFalseEasting, double dfFalseNorthing);
737 OGRErr CPL_DLL OSRSetGnomonic(OGRSpatialReferenceH hSRS, double dfCenterLat,
738 double dfCenterLong, double dfFalseEasting,
739 double dfFalseNorthing);
740
741#ifdef undef
743 OGRErr CPL_DLL OSRSetOM(OGRSpatialReferenceH hSRS, double dfCenterLat,
744 double dfCenterLong, double dfAzimuth,
745 double dfRectToSkew, double dfScale,
746 double dfFalseEasting, double dfFalseNorthing);
747#endif
748
750 OGRErr CPL_DLL OSRSetHOM(OGRSpatialReferenceH hSRS, double dfCenterLat,
751 double dfCenterLong, double dfAzimuth,
752 double dfRectToSkew, double dfScale,
753 double dfFalseEasting, double dfFalseNorthing);
754
755 OGRErr CPL_DLL OSRSetHOMAC(OGRSpatialReferenceH hSRS, double dfCenterLat,
756 double dfCenterLong, double dfAzimuth,
757 double dfRectToSkew, double dfScale,
758 double dfFalseEasting, double dfFalseNorthing);
759
761 OGRErr CPL_DLL OSRSetHOM2PNO(OGRSpatialReferenceH hSRS, double dfCenterLat,
762 double dfLat1, double dfLong1, double dfLat2,
763 double dfLong2, double dfScale,
764 double dfFalseEasting, double dfFalseNorthing);
765
767 OGRErr CPL_DLL OSRSetIWMPolyconic(OGRSpatialReferenceH hSRS, double dfLat1,
768 double dfLat2, double dfCenterLong,
769 double dfFalseEasting,
770 double dfFalseNorthing);
771
773 OGRErr CPL_DLL OSRSetKrovak(OGRSpatialReferenceH hSRS, double dfCenterLat,
774 double dfCenterLong, double dfAzimuth,
775 double dfPseudoStdParallelLat, double dfScale,
776 double dfFalseEasting, double dfFalseNorthing);
777
779 OGRErr CPL_DLL OSRSetLAEA(OGRSpatialReferenceH hSRS, double dfCenterLat,
780 double dfCenterLong, double dfFalseEasting,
781 double dfFalseNorthing);
782
784 OGRErr CPL_DLL OSRSetLCC(OGRSpatialReferenceH hSRS, double dfStdP1,
785 double dfStdP2, double dfCenterLat,
786 double dfCenterLong, double dfFalseEasting,
787 double dfFalseNorthing);
788
790 OGRErr CPL_DLL OSRSetLCC1SP(OGRSpatialReferenceH hSRS, double dfCenterLat,
791 double dfCenterLong, double dfScale,
792 double dfFalseEasting, double dfFalseNorthing);
793
795 OGRErr CPL_DLL OSRSetLCCB(OGRSpatialReferenceH hSRS, double dfStdP1,
796 double dfStdP2, double dfCenterLat,
797 double dfCenterLong, double dfFalseEasting,
798 double dfFalseNorthing);
799
801 OGRErr CPL_DLL OSRSetMC(OGRSpatialReferenceH hSRS, double dfCenterLat,
802 double dfCenterLong, double dfFalseEasting,
803 double dfFalseNorthing);
804
806 OGRErr CPL_DLL OSRSetMercator(OGRSpatialReferenceH hSRS, double dfCenterLat,
807 double dfCenterLong, double dfScale,
808 double dfFalseEasting, double dfFalseNorthing);
809
811 OGRErr CPL_DLL OSRSetMercator2SP(OGRSpatialReferenceH hSRS, double dfStdP1,
812 double dfCenterLat, double dfCenterLong,
813 double dfFalseEasting, double dfFalseNorthing);
814
816 OGRErr CPL_DLL OSRSetMollweide(OGRSpatialReferenceH hSRS,
817 double dfCentralMeridian, double dfFalseEasting,
818 double dfFalseNorthing);
819
821 OGRErr CPL_DLL OSRSetNZMG(OGRSpatialReferenceH hSRS, double dfCenterLat,
822 double dfCenterLong, double dfFalseEasting,
823 double dfFalseNorthing);
824
826 OGRErr CPL_DLL OSRSetOS(OGRSpatialReferenceH hSRS, double dfOriginLat,
827 double dfCMeridian, double dfScale,
828 double dfFalseEasting, double dfFalseNorthing);
829
831 OGRErr CPL_DLL OSRSetOrthographic(OGRSpatialReferenceH hSRS, double dfCenterLat,
832 double dfCenterLong, double dfFalseEasting,
833 double dfFalseNorthing);
834
836 OGRErr CPL_DLL OSRSetPolyconic(OGRSpatialReferenceH hSRS, double dfCenterLat,
837 double dfCenterLong, double dfFalseEasting,
838 double dfFalseNorthing);
839
841 OGRErr CPL_DLL OSRSetPS(OGRSpatialReferenceH hSRS, double dfCenterLat,
842 double dfCenterLong, double dfScale,
843 double dfFalseEasting, double dfFalseNorthing);
844
846 OGRErr CPL_DLL OSRSetRobinson(OGRSpatialReferenceH hSRS, double dfCenterLong,
847 double dfFalseEasting, double dfFalseNorthing);
848
850 OGRErr CPL_DLL OSRSetSinusoidal(OGRSpatialReferenceH hSRS, double dfCenterLong,
851 double dfFalseEasting, double dfFalseNorthing);
852
854 OGRErr CPL_DLL OSRSetStereographic(OGRSpatialReferenceH hSRS,
855 double dfCenterLat, double dfCenterLong,
856 double dfScale, double dfFalseEasting,
857 double dfFalseNorthing);
858
860 OGRErr CPL_DLL OSRSetSOC(OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin,
861 double dfCentralMeridian, double dfFalseEasting,
862 double dfFalseNorthing);
863
870 OGRErr CPL_DLL OSRSetTM(OGRSpatialReferenceH hSRS, double dfCenterLat,
871 double dfCenterLong, double dfScale,
872 double dfFalseEasting, double dfFalseNorthing);
873
875 OGRErr CPL_DLL OSRSetTMVariant(OGRSpatialReferenceH hSRS,
876 const char *pszVariantName, double dfCenterLat,
877 double dfCenterLong, double dfScale,
878 double dfFalseEasting, double dfFalseNorthing);
879
881 OGRErr CPL_DLL OSRSetTMG(OGRSpatialReferenceH hSRS, double dfCenterLat,
882 double dfCenterLong, double dfFalseEasting,
883 double dfFalseNorthing);
884
886 OGRErr CPL_DLL OSRSetTMSO(OGRSpatialReferenceH hSRS, double dfCenterLat,
887 double dfCenterLong, double dfScale,
888 double dfFalseEasting, double dfFalseNorthing);
889
891 OGRErr CPL_DLL OSRSetTPED(OGRSpatialReferenceH hSRS, double dfLat1,
892 double dfLong1, double dfLat2, double dfLong2,
893 double dfFalseEasting, double dfFalseNorthing);
894
896 OGRErr CPL_DLL OSRSetVDG(OGRSpatialReferenceH hSRS, double dfCenterLong,
897 double dfFalseEasting, double dfFalseNorthing);
898
900 OGRErr CPL_DLL OSRSetWagner(OGRSpatialReferenceH hSRS, int nVariation,
901 double dfCenterLat, double dfFalseEasting,
902 double dfFalseNorthing);
903
905 OGRErr CPL_DLL OSRSetQSC(OGRSpatialReferenceH hSRS, double dfCenterLat,
906 double dfCenterLong);
907
909 OGRErr CPL_DLL OSRSetSCH(OGRSpatialReferenceH hSRS, double dfPegLat,
910 double dfPegLong, double dfPegHeading,
911 double dfPegHgt);
912
914 OGRErr CPL_DLL OSRSetVerticalPerspective(
915 OGRSpatialReferenceH hSRS, double dfTopoOriginLat, double dfTopoOriginLon,
916 double dfTopoOriginHeight, double dfViewPointHeight, double dfFalseEasting,
917 double dfFalseNorthing);
918
919 double CPL_DLL OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor);
920 double CPL_DLL OSRCalcSemiMinorFromInvFlattening(double dfSemiMajor,
921 double dfInvFlattening);
922
923 void CPL_DLL OSRCleanup(void);
924
926 typedef enum
927{
929 OSR_CRS_TYPE_GEOGRAPHIC_2D,
931 OSR_CRS_TYPE_GEOGRAPHIC_3D,
933 OSR_CRS_TYPE_GEOCENTRIC,
935 OSR_CRS_TYPE_PROJECTED,
937 OSR_CRS_TYPE_VERTICAL,
939 OSR_CRS_TYPE_COMPOUND,
941 OSR_CRS_TYPE_OTHER,
942} OSRCRSType;
943
949 typedef struct
950{
952 char *pszAuthName;
954 char *pszCode;
956 char *pszName;
958 OSRCRSType eType;
960 int bDeprecated;
963 int bBboxValid;
965 double dfWestLongitudeDeg;
967 double dfSouthLatitudeDeg;
969 double dfEastLongitudeDeg;
971 double dfNorthLatitudeDeg;
973 char *pszAreaName;
976 char *pszProjectionMethod;
980 char *pszCelestialBodyName;
981} OSRCRSInfo;
982
988 typedef struct OSRCRSListParameters OSRCRSListParameters;
989
990 OSRCRSInfo CPL_DLL **
991 OSRGetCRSInfoListFromDatabase(const char *pszAuthName,
992 const OSRCRSListParameters *params,
993 int *pnOutResultCount);
994
995 void CPL_DLL OSRDestroyCRSInfoList(OSRCRSInfo **list);
996
997 char CPL_DLL **OSRGetAuthorityListFromDatabase(void);
998
999/* -------------------------------------------------------------------- */
1000/* OGRCoordinateTransform C API. */
1001/* -------------------------------------------------------------------- */
1002 OGRCoordinateTransformationH CPL_DLL CPL_STDCALL OCTNewCoordinateTransformation(
1003 OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS);
1004
1005 OGRCoordinateTransformationOptionsH CPL_DLL
1006 OCTNewCoordinateTransformationOptions(void);
1007
1008 int CPL_DLL OCTCoordinateTransformationOptionsSetOperation(
1009 OGRCoordinateTransformationOptionsH hOptions, const char *pszCO,
1010 int bReverseCO);
1011
1012 int CPL_DLL OCTCoordinateTransformationOptionsSetAreaOfInterest(
1013 OGRCoordinateTransformationOptionsH hOptions, double dfWestLongitudeDeg,
1014 double dfSouthLatitudeDeg, double dfEastLongitudeDeg,
1015 double dfNorthLatitudeDeg);
1016
1017 int CPL_DLL OCTCoordinateTransformationOptionsSetDesiredAccuracy(
1018 OGRCoordinateTransformationOptionsH hOptions, double dfAccuracy);
1019
1020 int CPL_DLL OCTCoordinateTransformationOptionsSetBallparkAllowed(
1021 OGRCoordinateTransformationOptionsH hOptions, int bAllowBallpark);
1022
1023 int CPL_DLL OCTCoordinateTransformationOptionsSetOnlyBest(
1024 OGRCoordinateTransformationOptionsH hOptions, bool bOnlyBest);
1025
1026 void CPL_DLL OCTDestroyCoordinateTransformationOptions(
1027 OGRCoordinateTransformationOptionsH);
1028
1029 OGRCoordinateTransformationH CPL_DLL OCTNewCoordinateTransformationEx(
1030 OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS,
1031 OGRCoordinateTransformationOptionsH hOptions);
1032
1033 OGRCoordinateTransformationH CPL_DLL
1034 OCTClone(OGRCoordinateTransformationH hTransform);
1035 OGRSpatialReferenceH CPL_DLL
1036 OCTGetSourceCS(OGRCoordinateTransformationH hTransform);
1037 OGRSpatialReferenceH CPL_DLL
1038 OCTGetTargetCS(OGRCoordinateTransformationH hTransform);
1039 OGRCoordinateTransformationH CPL_DLL
1040 OCTGetInverse(OGRCoordinateTransformationH hTransform);
1041
1042 void CPL_DLL CPL_STDCALL
1043 OCTDestroyCoordinateTransformation(OGRCoordinateTransformationH);
1044
1045 int CPL_DLL CPL_STDCALL OCTTransform(OGRCoordinateTransformationH hCT,
1046 int nCount, double *x, double *y,
1047 double *z);
1048
1049 int CPL_DLL CPL_STDCALL OCTTransformEx(OGRCoordinateTransformationH hCT,
1050 int nCount, double *x, double *y,
1051 double *z, int *pabSuccess);
1052
1053 int CPL_DLL OCTTransform4D(OGRCoordinateTransformationH hCT, int nCount,
1054 double *x, double *y, double *z, double *t,
1055 int *pabSuccess);
1056
1057 int CPL_DLL OCTTransform4DWithErrorCodes(OGRCoordinateTransformationH hCT,
1058 int nCount, double *x, double *y,
1059 double *z, double *t,
1060 int *panErrorCodes);
1061
1062 int CPL_DLL CPL_STDCALL OCTTransformBounds(OGRCoordinateTransformationH hCT,
1063 const double xmin, const double ymin,
1064 const double xmax, const double ymax,
1065 double *out_xmin, double *out_ymin,
1066 double *out_xmax, double *out_ymax,
1067 const int densify_pts);
1068
1069 CPL_C_END
1070
1071#endif /* ndef SWIG */
1072
1073#endif /* ndef OGR_SRS_API_H_INCLUDED */
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition cpl_port.h:289
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition cpl_port.h:285
CSLConstList
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition cpl_port.h:1087
gdal_fwd.h
Forward definitions of GDAL/OGR/OSR C handle types.
OGRCoordinateTransformationH
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition gdal_fwd.h:197
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition gdal_fwd.h:195
ogr_core.h
Core portability services for cross-platform OGR code.
OGRErr
int OGRErr
Type for a OGR error.
Definition ogr_core.h:370
OSREPSGTreatsAsLatLong
int OSREPSGTreatsAsLatLong(OGRSpatialReferenceH hSRS)
This function returns TRUE if this geographic coordinate system should be treated as having lat/long ...
Definition ogrspatialreference.cpp:12397
OSRSetTM
OGRErr OSRSetTM(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator.
Definition ogrspatialreference.cpp:6359
OSRImportFromEPSG
OGRErr OSRImportFromEPSG(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition ogrspatialreference.cpp:12289
OSRGetNormProjParm
double OSRGetNormProjParm(OGRSpatialReferenceH hSRS, const char *pszParamName, double dfDefault, OGRErr *)
This function is the same as OGRSpatialReference::
Definition ogrspatialreference.cpp:6269
OSRSetNZMG
OGRErr OSRSetNZMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
New Zealand Map Grid.
Definition ogrspatialreference.cpp:7741
OSRSetEC
OGRErr OSRSetEC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equidistant Conic.
Definition ogrspatialreference.cpp:6709
OSRAxisEnumToName
const char * OSRAxisEnumToName(OGRAxisOrientation eOrientation)
Return the string representation for the OGRAxisOrientation enumeration.
Definition ogrspatialreference.cpp:11234
OSRSetQSC
OGRErr OSRSetQSC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong)
Quadrilateralized Spherical Cube.
Definition ogrspatialreference.cpp:8334
OSRGetPROJAuxDbPaths
char ** OSRGetPROJAuxDbPaths(void)
Get PROJ auxiliary database filenames.
Definition ogr_proj_p.cpp:460
OSRGetTOWGS84
OGRErr OSRGetTOWGS84(OGRSpatialReferenceH hSRS, double *, int)
Fetch TOWGS84 parameters, if available.
Definition ogrspatialreference.cpp:10660
OCTTransformBounds
int OCTTransformBounds(OGRCoordinateTransformationH hCT, const double xmin, const double ymin, const double xmax, const double ymax, double *out_xmin, double *out_ymin, double *out_xmax, double *out_ymax, const int densify_pts)
Transform boundary.
Definition ogrct.cpp:3974
OSRFreeSRSArray
void OSRFreeSRSArray(OGRSpatialReferenceH *pahSRS)
Free return of OSRIdentifyMatches()
Definition ogrspatialreference.cpp:10283
OSRImportFromERM
OGRErr OSRImportFromERM(OGRSpatialReferenceH, const char *, const char *, const char *)
Create OGR WKT from ERMapper projection definitions.
Definition ogr_srs_erm.cpp:37
OSRSetTMG
OGRErr OSRSetTMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Tunesia Mining Grid
Definition ogrspatialreference.cpp:6517
OSRGetDataAxisToSRSAxisMapping
const int * OSRGetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int *pnCount)
Return the data axis to SRS axis mapping.
Definition ogrspatialreference.cpp:12756
OSRSetPROJAuxDbPaths
void OSRSetPROJAuxDbPaths(const char *const *papszPaths)
Set list of PROJ auxiliary database filenames.
Definition ogr_proj_p.cpp:441
OSRIsDynamic
int OSRIsDynamic(OGRSpatialReferenceH)
Check if a CRS is a dynamic CRS.
Definition ogrspatialreference.cpp:9649
OSRExportToPROJJSON
OGRErr OSRExportToPROJJSON(OGRSpatialReferenceH hSRS, char **ppszReturn, const char *const *papszOptions)
Convert this SRS into PROJJSON format.
Definition ogrspatialreference.cpp:2195
OSRImportFromMICoordSys
OGRErr OSRImportFromMICoordSys(OGRSpatialReferenceH, const char *)
Import Mapinfo style CoordSys definition.
Definition ogrspatialreference.cpp:11403
OCTGetInverse
OGRCoordinateTransformationH OCTGetInverse(OGRCoordinateTransformationH hTransform)
Inverse transformation object.
Definition ogrct.cpp:1311
OSRGetCelestialBodyName
const char * OSRGetCelestialBodyName(OGRSpatialReferenceH hSRS)
Return the name of the celestial body of this CRS.
Definition ogrspatialreference.cpp:1491
OSRSetGEOS
OGRErr OSRSetGEOS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfSatelliteHeight, double dfFalseEasting, double dfFalseNorthing)
GEOS - Geostationary Satellite View.
Definition ogrspatialreference.cpp:7048
OCTTransform4DWithErrorCodes
int OCTTransform4DWithErrorCodes(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, double *t, int *panErrorCodes)
Transform an array of points.
Definition ogrct.cpp:3927
OSRIsSame
int OSRIsSame(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do these two spatial references describe the same system ?
Definition ogrspatialreference.cpp:10070
OSRSetIGH
OGRErr OSRSetIGH(OGRSpatialReferenceH hSRS)
Interrupted Goode Homolosine.
Definition ogrspatialreference.cpp:7018
OSRSetGeogCS
OGRErr OSRSetGeogCS(OGRSpatialReferenceH hSRS, const char *pszGeogName, const char *pszDatumName, const char *pszEllipsoidName, double dfSemiMajor, double dfInvFlattening, const char *pszPMName, double dfPMOffset, const char *pszUnits, double dfConvertToRadians)
Set geographic coordinate system.
Definition ogrspatialreference.cpp:3622
OSRGetAxesCount
int OSRGetAxesCount(OGRSpatialReferenceH hSRS)
Return the number of axis of the coordinate system of the CRS.
Definition ogrspatialreference.cpp:10978
OSRImportFromXML
OGRErr OSRImportFromXML(OGRSpatialReferenceH, const char *)
Import coordinate system from XML format (GML only currently).
Definition ogr_srs_xml.cpp:1247
OSRSetWellKnownGeogCS
OGRErr OSRSetWellKnownGeogCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set a GeogCS based on well known name.
Definition ogrspatialreference.cpp:3788
OSRExportToPrettyWkt
OGRErr OSRExportToPrettyWkt(OGRSpatialReferenceH, char **, int)
Convert this SRS into a nicely formatted WKT 1 string for display to a person.
Definition ogrspatialreference.cpp:1620
OSRSetVertCS
OGRErr OSRSetVertCS(OGRSpatialReferenceH hSRS, const char *pszVertCSName, const char *pszVertDatumName, int nVertDatumType)
Setup the vertical coordinate system.
Definition ogrspatialreference.cpp:5682
OSRExportToMICoordSys
OGRErr OSRExportToMICoordSys(OGRSpatialReferenceH, char **)
Export coordinate system in Mapinfo style CoordSys format.
Definition ogrspatialreference.cpp:11354
OSRIsDerivedGeographic
int OSRIsDerivedGeographic(OGRSpatialReferenceH)
Check if the CRS is a derived geographic coordinate system.
Definition ogrspatialreference.cpp:9394
OSRSetPS
OGRErr OSRSetPS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Polar Stereographic.
Definition ogrspatialreference.cpp:7915
OCTDestroyCoordinateTransformationOptions
void OCTDestroyCoordinateTransformationOptions(OGRCoordinateTransformationOptionsH)
Destroy coordinate transformation options.
Definition ogrct.cpp:364
OSRGetAuthorityListFromDatabase
char ** OSRGetAuthorityListFromDatabase(void)
Return the list of CRS authorities used in the PROJ database.
Definition ogrspatialreference.cpp:13061
OSRSetTargetLinearUnits
OGRErr OSRSetTargetLinearUnits(OGRSpatialReferenceH, const char *, const char *, double)
Set the linear units for the target node.
Definition ogrspatialreference.cpp:3084
OSRSetBonne
OGRErr OSRSetBonne(OGRSpatialReferenceH hSRS, double dfStandardParallel, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Bonne.
Definition ogrspatialreference.cpp:6614
OSRIsVertical
int OSRIsVertical(OGRSpatialReferenceH)
Check if vertical coordinate system.
Definition ogrspatialreference.cpp:9540
OSRImportFromPCI
OGRErr OSRImportFromPCI(OGRSpatialReferenceH hSRS, const char *, const char *, double *)
Import coordinate system from PCI projection definition.
Definition ogr_srs_pci.cpp:126
OSRSetAxes
OGRErr OSRSetAxes(OGRSpatialReferenceH hSRS, const char *pszTargetKey, const char *pszXAxisName, OGRAxisOrientation eXAxisOrientation, const char *pszYAxisName, OGRAxisOrientation eYAxisOrientation)
Set the axes for a coordinate system.
Definition ogrspatialreference.cpp:11332
OSRSetIWMPolyconic
OGRErr OSRSetIWMPolyconic(OGRSpatialReferenceH hSRS, double dfLat1, double dfLat2, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
International Map of the World Polyconic.
Definition ogrspatialreference.cpp:7360
OCTNewCoordinateTransformationEx
OGRCoordinateTransformationH OCTNewCoordinateTransformationEx(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS, OGRCoordinateTransformationOptionsH hOptions)
Create transformation object.
Definition ogrct.cpp:1205
OSRImportFromWkt
OGRErr OSRImportFromWkt(OGRSpatialReferenceH, char **)
Import from WKT string.
Definition ogrspatialreference.cpp:2492
OCTDestroyCoordinateTransformation
void OCTDestroyCoordinateTransformation(OGRCoordinateTransformationH)
OGRCoordinateTransformation destructor.
Definition ogrct.cpp:961
OSRGetAxisMappingStrategy
OSRAxisMappingStrategy OSRGetAxisMappingStrategy(OGRSpatialReferenceH hSRS)
Return the data axis to CRS axis mapping strategy.
Definition ogrspatialreference.cpp:12676
OSRGetAngularUnits
double OSRGetAngularUnits(OGRSpatialReferenceH, char **)
Fetch angular geographic coordinate system units.
Definition ogrspatialreference.cpp:2831
OSRMorphFromESRI
OGRErr OSRMorphFromESRI(OGRSpatialReferenceH)
Convert in place from ESRI WKT format.
Definition ogrspatialreference.cpp:11853
OSRImportFromProj4
OGRErr OSRImportFromProj4(OGRSpatialReferenceH, const char *)
Import PROJ coordinate string.
Definition ogrspatialreference.cpp:11552
OSRIsSameEx
int OSRIsSameEx(OGRSpatialReferenceH, OGRSpatialReferenceH, const char *const *papszOptions)
Do these two spatial references describe the same system ?
Definition ogrspatialreference.cpp:10088
OSRGetSemiMinor
double OSRGetSemiMinor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi minor axis.
Definition ogrspatialreference.cpp:5455
OSRGetPrimeMeridian
double OSRGetPrimeMeridian(OGRSpatialReferenceH, char **)
Fetch prime meridian info.
Definition ogrspatialreference.cpp:3499
OSRCopyGeogCSFrom
OGRErr OSRCopyGeogCSFrom(OGRSpatialReferenceH hSRS, const OGRSpatialReferenceH hSrcSRS)
Copy GEOGCS from another OGRSpatialReference.
Definition ogrspatialreference.cpp:3906
OSRSetAttrValue
OGRErr OSRSetAttrValue(OGRSpatialReferenceH hSRS, const char *pszNodePath, const char *pszNewNodeValue)
Set attribute value in spatial reference.
Definition ogrspatialreference.cpp:2597
OSRSetSCH
OGRErr OSRSetSCH(OGRSpatialReferenceH hSRS, double dfPegLat, double dfPegLong, double dfPegHeading, double dfPegHgt)
Spherical, Cross-track, Height.
Definition ogrspatialreference.cpp:8363
OSRGetLinearUnits
double OSRGetLinearUnits(OGRSpatialReferenceH, char **)
Fetch linear projection units.
Definition ogrspatialreference.cpp:3158
OSRCleanup
void OSRCleanup(void)
Cleanup cached SRS related memory.
Definition ogrspatialreference.cpp:10897
OSRSetProjParm
OGRErr OSRSetProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter value.
Definition ogrspatialreference.cpp:6027
OCTTransformEx
int OCTTransformEx(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, int *pabSuccess)
Transform an array of points.
Definition ogrct.cpp:3869
OCTTransform
int OCTTransform(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z)
Transform an array of points.
Definition ogrct.cpp:3844
OSRSetFromUserInputEx
OGRErr OSRSetFromUserInputEx(OGRSpatialReferenceH hSRS, const char *, CSLConstList papszOptions)
Set spatial reference from various text formats.
Definition ogrspatialreference.cpp:4433
OSRSetCEA
OGRErr OSRSetCEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Cylindrical Equal Area.
Definition ogrspatialreference.cpp:6646
OSRSetPROJSearchPaths
void OSRSetPROJSearchPaths(const char *const *papszPaths)
Set the search path(s) for PROJ resource files.
Definition ogr_proj_p.cpp:394
OSRImportFromUSGS
OGRErr OSRImportFromUSGS(OGRSpatialReferenceH, long, long, double *, long)
Import coordinate system from USGS projection definition.
Definition ogr_srs_usgs.cpp:146
OSRDestroyCRSInfoList
void OSRDestroyCRSInfoList(OSRCRSInfo **list)
Destroy the result returned by OSRGetCRSInfoListFromDatabase().
Definition ogrspatialreference.cpp:13029
OSRSetProjection
OGRErr OSRSetProjection(OGRSpatialReferenceH, const char *)
Set a projection name.
Definition ogrspatialreference.cpp:5890
OSRSetStatePlane
OGRErr OSRSetStatePlane(OGRSpatialReferenceH hSRS, int nZone, int bNAD83)
Set State Plane projection definition.
Definition ogr_fromepsg.cpp:229
OSRGetAreaOfUse
int OSRGetAreaOfUse(OGRSpatialReferenceH hSRS, double *pdfWestLongitudeDeg, double *pdfSouthLatitudeDeg, double *pdfEastLongitudeDeg, double *pdfNorthLatitudeDeg, const char **ppszAreaName)
Return the area of use of the CRS.
Definition ogrspatialreference.cpp:12911
OCTCoordinateTransformationOptionsSetBallparkAllowed
int OCTCoordinateTransformationOptionsSetBallparkAllowed(OGRCoordinateTransformationOptionsH hOptions, int bAllowBallpark)
Sets whether ballpark transformations are allowed.
Definition ogrct.cpp:599
OCTCoordinateTransformationOptionsSetOperation
int OCTCoordinateTransformationOptionsSetOperation(OGRCoordinateTransformationOptionsH hOptions, const char *pszCO, int bReverseCO)
Sets a coordinate operation.
Definition ogrct.cpp:512
OCTTransform4D
int OCTTransform4D(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, double *t, int *pabSuccess)
Transform an array of points.
Definition ogrct.cpp:3898
OSRSetACEA
OGRErr OSRSetACEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Albers Conic Equal Area.
Definition ogrspatialreference.cpp:6552
OSRExportToUSGS
OGRErr OSRExportToUSGS(OGRSpatialReferenceH, long *, long *, double **, long *)
Export coordinate system in USGS GCTP projection definition.
Definition ogr_srs_usgs.cpp:788
OSRCRSType
OSRCRSType
Type of Coordinate Reference System (CRS).
Definition ogr_srs_api.h:927
OSR_CRS_TYPE_COMPOUND
@ OSR_CRS_TYPE_COMPOUND
Compound CRS.
Definition ogr_srs_api.h:939
OSR_CRS_TYPE_GEOGRAPHIC_2D
@ OSR_CRS_TYPE_GEOGRAPHIC_2D
Geographic 2D CRS.
Definition ogr_srs_api.h:929
OSR_CRS_TYPE_PROJECTED
@ OSR_CRS_TYPE_PROJECTED
Projected CRS.
Definition ogr_srs_api.h:935
OSR_CRS_TYPE_GEOCENTRIC
@ OSR_CRS_TYPE_GEOCENTRIC
Geocentric CRS.
Definition ogr_srs_api.h:933
OSR_CRS_TYPE_OTHER
@ OSR_CRS_TYPE_OTHER
Other.
Definition ogr_srs_api.h:941
OSR_CRS_TYPE_GEOGRAPHIC_3D
@ OSR_CRS_TYPE_GEOGRAPHIC_3D
Geographic 3D CRS.
Definition ogr_srs_api.h:931
OSR_CRS_TYPE_VERTICAL
@ OSR_CRS_TYPE_VERTICAL
Vertical CRS.
Definition ogr_srs_api.h:937
OSRGetName
const char * OSRGetName(OGRSpatialReferenceH hSRS)
Return the CRS name.
Definition ogrspatialreference.cpp:1424
OSRIsProjected
int OSRIsProjected(OGRSpatialReferenceH)
Check if projected coordinate system.
Definition ogrspatialreference.cpp:9224
OSRSetLAEA
OGRErr OSRSetLAEA(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Azimuthal Equal-Area.
Definition ogrspatialreference.cpp:7461
OSRGetProjParm
double OSRGetProjParm(OGRSpatialReferenceH hSRS, const char *pszParamName, double dfDefault, OGRErr *)
Fetch a projection parameter value.
Definition ogrspatialreference.cpp:6201
OSRStripVertical
OGRErr OSRStripVertical(OGRSpatialReferenceH)
Convert a compound cs into a horizontal CS.
Definition ogrspatialreference.cpp:8999
OSRGetInvFlattening
double OSRGetInvFlattening(OGRSpatialReferenceH, OGRErr *)
Get spheroid inverse flattening.
Definition ogrspatialreference.cpp:5361
OSRSetEckertVI
OGRErr OSRSetEckertVI(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert VI.
Definition ogrspatialreference.cpp:6840
OSRSetProjCS
OGRErr OSRSetProjCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition ogrspatialreference.cpp:5830
OSRPromoteTo3D
OGRErr OSRPromoteTo3D(OGRSpatialReferenceH hSRS, const char *pszName)
"Promotes" a 2D CRS to a 3D CRS one.
Definition ogrspatialreference.cpp:13207
OSRSetLCCB
OGRErr OSRSetLCCB(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic (Belgium)
Definition ogrspatialreference.cpp:7559
OSRSetGaussSchreiberTMercator
OGRErr OSRSetGaussSchreiberTMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Gauss Schreiber Transverse Mercator.
Definition ogrspatialreference.cpp:7082
OSRNewSpatialReference
OGRSpatialReferenceH OSRNewSpatialReference(const char *)
Constructor.
Definition ogrspatialreference.cpp:860
OSRGetPROJSearchPaths
char ** OSRGetPROJSearchPaths(void)
Get the search path(s) for PROJ resource files.
Definition ogr_proj_p.cpp:412
OSRReference
int OSRReference(OGRSpatialReferenceH)
Increments the reference count by one.
Definition ogrspatialreference.cpp:1084
OSRSetMercator2SP
OGRErr OSRSetMercator2SP(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Mercator 2SP.
Definition ogrspatialreference.cpp:7679
OSRImportFromPanorama
OGRErr OSRImportFromPanorama(OGRSpatialReferenceH, long, long, long, double *)
Import coordinate system from "Panorama" GIS projection definition.
Definition ogr_srs_panorama.cpp:219
OSRSetOS
OGRErr OSRSetOS(OGRSpatialReferenceH hSRS, double dfOriginLat, double dfCMeridian, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Oblique Stereographic.
Definition ogrspatialreference.cpp:7773
OSRAutoIdentifyEPSG
OGRErr OSRAutoIdentifyEPSG(OGRSpatialReferenceH hSRS)
Set EPSG authority info if possible.
Definition ogr_fromepsg.cpp:410
OSRSetLCC1SP
OGRErr OSRSetLCC1SP(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic 1SP.
Definition ogrspatialreference.cpp:7526
OSRSetGeocCS
OGRErr OSRSetGeocCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition ogrspatialreference.cpp:5607
OCTCoordinateTransformationOptionsSetAreaOfInterest
int OCTCoordinateTransformationOptionsSetAreaOfInterest(OGRCoordinateTransformationOptionsH hOptions, double dfWestLongitudeDeg, double dfSouthLatitudeDeg, double dfEastLongitudeDeg, double dfNorthLatitudeDeg)
Sets an area of interest.
Definition ogrct.cpp:435
OSRIsCompound
int OSRIsCompound(OGRSpatialReferenceH)
Check if the coordinate system is compound.
Definition ogrspatialreference.cpp:9162
OSRSetAE
OGRErr OSRSetAE(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Azimuthal Equidistant.
Definition ogrspatialreference.cpp:6583
OSRIsSameGeogCS
int OSRIsSameGeogCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the GeogCS'es match?
Definition ogrspatialreference.cpp:9890
OSRIsGeocentric
int OSRIsGeocentric(OGRSpatialReferenceH)
Check if geocentric coordinate system.
Definition ogrspatialreference.cpp:9267
OSRGetCRSInfoListFromDatabase
OSRCRSInfo ** OSRGetCRSInfoListFromDatabase(const char *pszAuthName, const OSRCRSListParameters *params, int *pnOutResultCount)
Enumerate CRS objects from the database.
Definition ogrspatialreference.cpp:12942
OSRSetNormProjParm
OGRErr OSRSetNormProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter with a normalized value.
Definition ogrspatialreference.cpp:6329
OSRSetFromUserInput
OGRErr OSRSetFromUserInput(OGRSpatialReferenceH hSRS, const char *)
Set spatial reference from various text formats.
Definition ogrspatialreference.cpp:4413
OSRGetAttrValue
const char * OSRGetAttrValue(OGRSpatialReferenceH hSRS, const char *pszName, int iChild)
Fetch indicated attribute of named node.
Definition ogrspatialreference.cpp:1365
OCTGetSourceCS
OGRSpatialReferenceH OCTGetSourceCS(OGRCoordinateTransformationH hTransform)
Transformation's source coordinate system reference.
Definition ogrct.cpp:1259
OSRSetAxisMappingStrategy
void OSRSetAxisMappingStrategy(OGRSpatialReferenceH hSRS, OSRAxisMappingStrategy strategy)
Set the data axis to CRS axis mapping strategy.
Definition ogrspatialreference.cpp:12717
OSRHasPointMotionOperation
int OSRHasPointMotionOperation(OGRSpatialReferenceH)
Check if a CRS has at least an associated point motion operation.
Definition ogrspatialreference.cpp:9708
OSRSetHOMAC
OGRErr OSRSetHOMAC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfRectToSkew, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Set an Oblique Mercator projection using azimuth angle.
Definition ogrspatialreference.cpp:7174
OSRGetTargetLinearUnits
double OSRGetTargetLinearUnits(OGRSpatialReferenceH, const char *, char **)
Fetch linear projection units.
Definition ogrspatialreference.cpp:3384
OCTCoordinateTransformationOptionsSetDesiredAccuracy
int OCTCoordinateTransformationOptionsSetDesiredAccuracy(OGRCoordinateTransformationOptionsH hOptions, double dfAccuracy)
Sets the desired accuracy for coordinate operations.
Definition ogrct.cpp:558
OSRSetTMSO
OGRErr OSRSetTMSO(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator (South Oriented)
Definition ogrspatialreference.cpp:6452
OSRValidate
OGRErr OSRValidate(OGRSpatialReferenceH)
Validate SRS tokens.
Definition ogrspatialreference.cpp:2471
OSRSetHOM
OGRErr OSRSetHOM(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfRectToSkew, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Hotine Oblique Mercator using azimuth angle.
Definition ogrspatialreference.cpp:7234
OSRSetMC
OGRErr OSRSetMC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Miller Cylindrical.
Definition ogrspatialreference.cpp:7592
OSRFindMatches
OGRSpatialReferenceH * OSRFindMatches(OGRSpatialReferenceH hSRS, char **papszOptions, int *pnEntries, int **ppanMatchConfidence)
Try to identify a match between the passed SRS and a related SRS in a catalog.
Definition ogrspatialreference.cpp:10260
OSRDestroySpatialReference
void OSRDestroySpatialReference(OGRSpatialReferenceH)
OGRSpatialReference destructor.
Definition ogrspatialreference.cpp:955
OSRSetEckert
OGRErr OSRSetEckert(OGRSpatialReferenceH hSRS, int nVariation, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert I-VI.
Definition ogrspatialreference.cpp:6783
OSRSetEckertIV
OGRErr OSRSetEckertIV(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert IV.
Definition ogrspatialreference.cpp:6812
OSRGetAxis
const char * OSRGetAxis(OGRSpatialReferenceH hSRS, const char *pszTargetKey, int iAxis, OGRAxisOrientation *peOrientation)
Fetch the orientation of one axis.
Definition ogrspatialreference.cpp:11213
OSRExportToWkt
OGRErr OSRExportToWkt(OGRSpatialReferenceH, char **)
Convert this SRS into WKT 1 format.
Definition ogrspatialreference.cpp:2031
OCTGetTargetCS
OGRSpatialReferenceH OCTGetTargetCS(OGRCoordinateTransformationH hTransform)
Transformation's target coordinate system reference.
Definition ogrct.cpp:1286
OSRGetSemiMajor
double OSRGetSemiMajor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi major axis.
Definition ogrspatialreference.cpp:5298
OSRSetTOWGS84
OGRErr OSRSetTOWGS84(OGRSpatialReferenceH hSRS, double, double, double, double, double, double, double)
Set the Bursa-Wolf conversion to WGS84.
Definition ogrspatialreference.cpp:10604
OSRSetPolyconic
OGRErr OSRSetPolyconic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Polyconic.
Definition ogrspatialreference.cpp:7840
OSRGetAuthorityCode
const char * OSRGetAuthorityCode(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority code for a node.
Definition ogrspatialreference.cpp:8732
OSRIsSameVertCS
int OSRIsSameVertCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the VertCS'es match?
Definition ogrspatialreference.cpp:9954
OSRExportToPCI
OGRErr OSRExportToPCI(OGRSpatialReferenceH, char **, char **, double **)
Export coordinate system in PCI projection definition.
Definition ogr_srs_pci.cpp:694
OSRSetLocalCS
OGRErr OSRSetLocalCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible LOCAL_CS name.
Definition ogrspatialreference.cpp:5511
OSRConvertToOtherProjection
OGRSpatialReferenceH OSRConvertToOtherProjection(OGRSpatialReferenceH hSRS, const char *pszTargetProjection, const char *const *papszOptions)
Convert to another equivalent projection.
Definition ogrspatialreference.cpp:10222
OSRDereference
int OSRDereference(OGRSpatialReferenceH)
Decrements the reference count by one.
Definition ogrspatialreference.cpp:1124
OSRSetEquirectangular2
OGRErr OSRSetEquirectangular2(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfPseudoStdParallel1, double dfFalseEasting, double dfFalseNorthing)
Equirectangular generalized form.
Definition ogrspatialreference.cpp:6932
OSRSetCS
OGRErr OSRSetCS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Cassini-Soldner.
Definition ogrspatialreference.cpp:6676
OSRSetGH
OGRErr OSRSetGH(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Goode Homolosine.
Definition ogrspatialreference.cpp:6990
OSRSetGnomonic
OGRErr OSRSetGnomonic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Gnomonic.
Definition ogrspatialreference.cpp:7114
OSRSetTMVariant
OGRErr OSRSetTMVariant(OGRSpatialReferenceH hSRS, const char *pszVariantName, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator variant.
Definition ogrspatialreference.cpp:6397
OSRCRSListParameters
struct OSRCRSListParameters OSRCRSListParameters
Structure to describe optional parameters to OSRGetCRSInfoListFromDatabase()
Definition ogr_srs_api.h:988
OSRIsLocal
int OSRIsLocal(OGRSpatialReferenceH)
Check if local coordinate system.
Definition ogrspatialreference.cpp:9477
OSRSetVDG
OGRErr OSRSetVDG(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
VanDerGrinten.
Definition ogrspatialreference.cpp:8086
OSRSetVerticalPerspective
OGRErr OSRSetVerticalPerspective(OGRSpatialReferenceH hSRS, double dfTopoOriginLat, double dfTopoOriginLon, double dfTopoOriginHeight, double dfViewPointHeight, double dfFalseEasting, double dfFalseNorthing)
Vertical Perspective / Near-sided Perspective.
Definition ogrspatialreference.cpp:8393
OSREPSGTreatsAsNorthingEasting
int OSREPSGTreatsAsNorthingEasting(OGRSpatialReferenceH hSRS)
This function returns TRUE if this projected coordinate system should be treated as having northing/e...
Definition ogrspatialreference.cpp:12486
OSRSetGS
OGRErr OSRSetGS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Gall Stereograpic.
Definition ogrspatialreference.cpp:6961
OSRGetAuthorityName
const char * OSRGetAuthorityName(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority name for a node.
Definition ogrspatialreference.cpp:8868
OSRSetSOC
OGRErr OSRSetSOC(OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Swiss Oblique Cylindrical.
Definition ogrspatialreference.cpp:8056
OSRImportFromEPSGA
OGRErr OSRImportFromEPSGA(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition ogrspatialreference.cpp:12240
OSRSetAuthority
OGRErr OSRSetAuthority(OGRSpatialReferenceH hSRS, const char *pszTargetKey, const char *pszAuthority, int nCode)
Set the authority for a node.
Definition ogrspatialreference.cpp:8595
OSRSetCompoundCS
OGRErr OSRSetCompoundCS(OGRSpatialReferenceH hSRS, const char *pszName, OGRSpatialReferenceH hHorizSRS, OGRSpatialReferenceH hVertSRS)
Setup a compound coordinate system.
Definition ogrspatialreference.cpp:5760
OSRCalcSemiMinorFromInvFlattening
double OSRCalcSemiMinorFromInvFlattening(double dfSemiMajor, double dfInvFlattening)
Compute semi-minor axis from semi-major axis and inverse flattening.
Definition ogrspatialreference.cpp:11484
OSRSetKrovak
OGRErr OSRSetKrovak(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfPseudoStdParallelLat, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Krovak Oblique Conic Conformal.
Definition ogrspatialreference.cpp:7400
OSRSetLinearUnits
OGRErr OSRSetLinearUnits(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition ogrspatialreference.cpp:2961
OSRCalcInvFlattening
double OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor)
Compute inverse flattening from semi-major and semi-minor axis.
Definition ogrspatialreference.cpp:11457
OSRImportFromDict
OGRErr OSRImportFromDict(OGRSpatialReferenceH, const char *, const char *)
Read SRS from WKT dictionary.
Definition ogr_srs_dict.cpp:157
OSRSetRobinson
OGRErr OSRSetRobinson(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Robinson.
Definition ogrspatialreference.cpp:7946
OSRExportToCF1
OGRErr OSRExportToCF1(OGRSpatialReferenceH, char **ppszGridMappingName, char ***ppapszKeyValues, char **ppszUnits, CSLConstList papszOptions)
Export a CRS to netCDF CF-1 definitions.
Definition ogr_srs_cf1.cpp:1729
OSRSetHOM2PNO
OGRErr OSRSetHOM2PNO(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Hotine Oblique Mercator using two points on centerline.
Definition ogrspatialreference.cpp:7293
OSRImportFromESRI
OGRErr OSRImportFromESRI(OGRSpatialReferenceH, char **)
Import coordinate system from ESRI .prj format(s).
Definition ogr_srs_esri.cpp:102
OSRSetAngularUnits
OGRErr OSRSetAngularUnits(OGRSpatialReferenceH, const char *, double)
Set the angular units for the geographic coordinate system.
Definition ogrspatialreference.cpp:2698
OSRGetCoordinateEpoch
double OSRGetCoordinateEpoch(OGRSpatialReferenceH hSRS)
Get the coordinate epoch, as decimal year.
Definition ogrspatialreference.cpp:13491
OSRSetUTM
OGRErr OSRSetUTM(OGRSpatialReferenceH hSRS, int nZone, int bNorth)
Set UTM projection definition.
Definition ogrspatialreference.cpp:8142
OSRGetUTMZone
int OSRGetUTMZone(OGRSpatialReferenceH hSRS, int *pbNorth)
Get utm zone information.
Definition ogrspatialreference.cpp:8229
OSRSetOrthographic
OGRErr OSRSetOrthographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Orthographic.
Definition ogrspatialreference.cpp:7805
OSRDemoteTo2D
OGRErr OSRDemoteTo2D(OGRSpatialReferenceH hSRS, const char *pszName)
"Demote" a 3D CRS to a 2D CRS one.
Definition ogrspatialreference.cpp:13250
OSRExportToPanorama
OGRErr OSRExportToPanorama(OGRSpatialReferenceH, long *, long *, long *, long *, double *)
Export coordinate system in "Panorama" GIS projection definition.
Definition ogr_srs_panorama.cpp:797
OCTNewCoordinateTransformationOptions
OGRCoordinateTransformationOptionsH OCTNewCoordinateTransformationOptions(void)
Create coordinate transformation options.
Definition ogrct.cpp:351
OSRSetLCC
OGRErr OSRSetLCC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic.
Definition ogrspatialreference.cpp:7494
OSRGetPROJEnableNetwork
int OSRGetPROJEnableNetwork(void)
Get whether PROJ networking capabilities are enabled.
Definition ogr_proj_p.cpp:508
OCTNewCoordinateTransformation
OGRCoordinateTransformationH OCTNewCoordinateTransformation(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS)
Create transformation object.
Definition ogrct.cpp:1152
OSRExportToXML
OGRErr OSRExportToXML(OGRSpatialReferenceH, char **, const char *)
Export coordinate system in XML format.
Definition ogr_srs_xml.cpp:701
OSRImportFromOzi
OGRErr OSRImportFromOzi(OGRSpatialReferenceH, const char *const *)
Import coordinate system from OziExplorer projection definition.
Definition ogr_srs_ozi.cpp:45
OSRAxisMappingStrategy
OSRAxisMappingStrategy
Data axis to CRS axis mapping strategy.
Definition ogr_srs_api.h:637
OAMS_AUTHORITY_COMPLIANT
@ OAMS_AUTHORITY_COMPLIANT
Compliant with the order mandated by the CRS authority.
Definition ogr_srs_api.h:639
OAMS_TRADITIONAL_GIS_ORDER
@ OAMS_TRADITIONAL_GIS_ORDER
Traditional GIS order.
Definition ogr_srs_api.h:638
OAMS_CUSTOM
@ OAMS_CUSTOM
Custom.
Definition ogr_srs_api.h:641
OSRSetMercator
OGRErr OSRSetMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Mercator.
Definition ogrspatialreference.cpp:7633
OSRSetCoordinateEpoch
void OSRSetCoordinateEpoch(OGRSpatialReferenceH hSRS, double dfCoordinateEpoch)
Set the coordinate epoch, as decimal year.
Definition ogrspatialreference.cpp:13445
OSRIsDerivedProjected
int OSRIsDerivedProjected(OGRSpatialReferenceH)
Check if the CRS is a derived projected coordinate system.
Definition ogrspatialreference.cpp:9440
OSRRelease
void OSRRelease(OGRSpatialReferenceH)
Decrements the reference count by one, and destroy if zero.
Definition ogrspatialreference.cpp:1172
OSRAddGuessedTOWGS84
OGRErr OSRAddGuessedTOWGS84(OGRSpatialReferenceH hSRS)
Try to add a a 3-parameter or 7-parameter Helmert transformation to WGS84.
Definition ogrspatialreference.cpp:12221
OCTClone
OGRCoordinateTransformationH OCTClone(OGRCoordinateTransformationH hTransform)
Clone transformation object.
Definition ogrct.cpp:1232
OSRSetSinusoidal
OGRErr OSRSetSinusoidal(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Sinusoidal.
Definition ogrspatialreference.cpp:7976
OSRSetPROJEnableNetwork
void OSRSetPROJEnableNetwork(int enabled)
Enable or disable PROJ networking capabilities.
Definition ogr_proj_p.cpp:479
OSRIsGeographic
int OSRIsGeographic(OGRSpatialReferenceH)
Check if geographic coordinate system.
Definition ogrspatialreference.cpp:9349
OGRAxisOrientation
OGRAxisOrientation
Axis orientations (corresponds to CS_AxisOrientationEnum).
Definition ogr_srs_api.h:35
OAO_Up
@ OAO_Up
Up (to space)
Definition ogr_srs_api.h:41
OAO_West
@ OAO_West
West.
Definition ogr_srs_api.h:40
OAO_South
@ OAO_South
South.
Definition ogr_srs_api.h:38
OAO_East
@ OAO_East
East.
Definition ogr_srs_api.h:39
OAO_Down
@ OAO_Down
Down (to Earth center)
Definition ogr_srs_api.h:42
OAO_Other
@ OAO_Other
Other.
Definition ogr_srs_api.h:36
OAO_North
@ OAO_North
North.
Definition ogr_srs_api.h:37
OSRExportToERM
OGRErr OSRExportToERM(OGRSpatialReferenceH, char *, char *, char *)
Convert coordinate system to ERMapper format.
Definition ogr_srs_erm.cpp:145
OSRExportToProj4
OGRErr OSRExportToProj4(OGRSpatialReferenceH, char **)
Export coordinate system in PROJ.4 legacy format.
Definition ogrspatialreference.cpp:11635
OSRExportToWktEx
OGRErr OSRExportToWktEx(OGRSpatialReferenceH, char **ppszResult, const char *const *papszOptions)
Convert this SRS into WKT format.
Definition ogrspatialreference.cpp:2054
OSRSetDataAxisToSRSAxisMapping
OGRErr OSRSetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int nMappingSize, const int *panMapping)
Set a custom data axis to CRS axis mapping.
Definition ogrspatialreference.cpp:12832
OSRImportFromCF1
OGRErr OSRImportFromCF1(OGRSpatialReferenceH, CSLConstList papszKeyValues, const char *pszUnits)
Import a CRS from netCDF CF-1 definitions.
Definition ogr_srs_cf1.cpp:29
OSRSetEquirectangular
OGRErr OSRSetEquirectangular(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equirectangular.
Definition ogrspatialreference.cpp:6884
OSRMorphToESRI
OGRErr OSRMorphToESRI(OGRSpatialReferenceH)
Convert in place to ESRI WKT format.
Definition ogrspatialreference.cpp:11801
OSRSetStereographic
OGRErr OSRSetStereographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Stereographic.
Definition ogrspatialreference.cpp:8007
OSRCloneGeogCS
OGRSpatialReferenceH OSRCloneGeogCS(OGRSpatialReferenceH)
Make a duplicate of the GEOGCS node of this OGRSpatialReference object.
Definition ogrspatialreference.cpp:9804
OSRClone
OGRSpatialReferenceH OSRClone(OGRSpatialReferenceH)
Make a duplicate of this OGRSpatialReference.
Definition ogrspatialreference.cpp:1540
OSRSetWagner
OGRErr OSRSetWagner(OGRSpatialReferenceH hSRS, int nVariation, double dfCenterLat, double dfFalseEasting, double dfFalseNorthing)
Wagner I -- VII.
Definition ogrspatialreference.cpp:8305
OSRSetLinearUnitsAndUpdateParameters
OGRErr OSRSetLinearUnitsAndUpdateParameters(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition ogrspatialreference.cpp:2909
OSRSetStatePlaneWithUnits
OGRErr OSRSetStatePlaneWithUnits(OGRSpatialReferenceH hSRS, int nZone, int bNAD83, const char *pszOverrideUnitName, double dfOverrideUnit)
Set State Plane projection definition.
Definition ogr_fromepsg.cpp:248
OSRSetTPED
OGRErr OSRSetTPED(OGRSpatialReferenceH hSRS, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfFalseEasting, double dfFalseNorthing)
TPED (Two Point Equi Distant)
Definition ogrspatialreference.cpp:6485
OSRImportFromUrl
OGRErr OSRImportFromUrl(OGRSpatialReferenceH, const char *)
Set spatial reference from a URL.
Definition ogrspatialreference.cpp:4565
OSRGetPROJVersion
void OSRGetPROJVersion(int *pnMajor, int *pnMinor, int *pnPatch)
Get the PROJ version.
Definition ogr_proj_p.cpp:536
OSRSetMollweide
OGRErr OSRSetMollweide(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Mollweide.
Definition ogrspatialreference.cpp:7710
OCTCoordinateTransformationOptionsSetOnlyBest
int OCTCoordinateTransformationOptionsSetOnlyBest(OGRCoordinateTransformationOptionsH hOptions, bool bOnlyBest)
Sets whether only the "best" operation(s) should be used.
Definition ogrct.cpp:653
OGRCoordinateTransformationOptions
Context for coordinate transformation.
Definition ogr_spatialref.h:991
OSRCRSInfo
Structure given overall description of a CRS.
Definition ogr_srs_api.h:950
OSRCRSInfo::dfEastLongitudeDeg
double dfEastLongitudeDeg
Eastern-most longitude of the area of use, in degrees.
Definition ogr_srs_api.h:969
OSRCRSInfo::dfNorthLatitudeDeg
double dfNorthLatitudeDeg
Northern-most latitude of the area of use, in degrees.
Definition ogr_srs_api.h:971
OSRCRSInfo::bDeprecated
int bDeprecated
Whether the object is deprecated.
Definition ogr_srs_api.h:960
OSRCRSInfo::dfWestLongitudeDeg
double dfWestLongitudeDeg
Western-most longitude of the area of use, in degrees.
Definition ogr_srs_api.h:965
OSRCRSInfo::bBboxValid
int bBboxValid
Whereas the west_lon_degree, south_lat_degree, east_lon_degree and north_lat_degree fields are valid.
Definition ogr_srs_api.h:963
OSRCRSInfo::pszName
char * pszName
Object name.
Definition ogr_srs_api.h:956
OSRCRSInfo::pszProjectionMethod
char * pszProjectionMethod
Name of the projection method for a projected CRS.
Definition ogr_srs_api.h:976
OSRCRSInfo::dfSouthLatitudeDeg
double dfSouthLatitudeDeg
Southern-most latitude of the area of use, in degrees.
Definition ogr_srs_api.h:967
OSRCRSInfo::pszCelestialBodyName
char * pszCelestialBodyName
Name of the celestial body of the CRS (e.g.
Definition ogr_srs_api.h:980
OSRCRSInfo::pszCode
char * pszCode
Object code.
Definition ogr_srs_api.h:954
OSRCRSInfo::pszAreaName
char * pszAreaName
Name of the area of use.
Definition ogr_srs_api.h:973
OSRCRSInfo::pszAuthName
char * pszAuthName
Authority name.
Definition ogr_srs_api.h:952
OSRCRSInfo::eType
OSRCRSType eType
Object type.
Definition ogr_srs_api.h:958