GDAL

ogr_srs_api.h
Go to the documentation of this file.
1/******************************************************************************
2 * $Id$
3 *
4 * Project: OpenGIS Simple Features Reference Implementation
5 * Purpose: C API and constant declarations for OGR Spatial References.
6 * Author: Frank Warmerdam, warmerdam@pobox.com
7 *
8 ******************************************************************************
9 * Copyright (c) 2000, Frank Warmerdam
10 * Copyright (c) 2008-2013, Even Rouault <even dot rouault at spatialys.com>
11 *
12 * Permission is hereby granted, free of charge, to any person obtaining a
13 * copy of this software and associated documentation files (the "Software"),
14 * to deal in the Software without restriction, including without limitation
15 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
16 * and/or sell copies of the Software, and to permit persons to whom the
17 * Software is furnished to do so, subject to the following conditions:
18 *
19 * The above copyright notice and this permission notice shall be included
20 * in all copies or substantial portions of the Software.
21 *
22 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
23 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
25 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
26 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
27 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
28 * DEALINGS IN THE SOFTWARE.
29 ****************************************************************************/
30
31#ifndef OGR_SRS_API_H_INCLUDED
32#define OGR_SRS_API_H_INCLUDED
33
34#include <stdbool.h>
35
36#ifndef SWIG
37#include "ogr_core.h"
38
39 CPL_C_START
40
50 typedef enum
51{
52 OAO_Other = 0,
53 OAO_North = 1,
54 OAO_South = 2,
55 OAO_East = 3,
56 OAO_West = 4,
57 OAO_Up = 5,
58 OAO_Down = 6
59} OGRAxisOrientation;
60
61 const char CPL_DLL *OSRAxisEnumToName(OGRAxisOrientation eOrientation);
62
63#endif // ndef SWIG
64
65/* ==================================================================== */
66/* Some standard WKT geographic coordinate systems. */
67/* ==================================================================== */
68
69#ifdef USE_DEPRECATED_SRS_WKT_WGS84
70#define SRS_WKT_WGS84 \
71 "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS " \
72 "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" \
73 "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]" \
74 ",UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]]," \
75 "AUTHORITY[\"EPSG\",\"4326\"]]"
76#endif
77
79#define SRS_WKT_WGS84_LAT_LONG \
80 "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS " \
81 "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" \
82 "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]" \
83 ",UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" \
84 "\"Latitude\",NORTH],AXIS[\"Longitude\",EAST],AUTHORITY[\"EPSG\"," \
85 "\"4326\"]]"
86
87/* ==================================================================== */
88/* Some "standard" strings. */
89/* ==================================================================== */
90
92#define SRS_PT_ALBERS_CONIC_EQUAL_AREA "Albers_Conic_Equal_Area"
94#define SRS_PT_AZIMUTHAL_EQUIDISTANT "Azimuthal_Equidistant"
96#define SRS_PT_CASSINI_SOLDNER "Cassini_Soldner"
98#define SRS_PT_CYLINDRICAL_EQUAL_AREA "Cylindrical_Equal_Area"
100#define SRS_PT_BONNE "Bonne"
102#define SRS_PT_ECKERT_I "Eckert_I"
104#define SRS_PT_ECKERT_II "Eckert_II"
106#define SRS_PT_ECKERT_III "Eckert_III"
108#define SRS_PT_ECKERT_IV "Eckert_IV"
110#define SRS_PT_ECKERT_V "Eckert_V"
112#define SRS_PT_ECKERT_VI "Eckert_VI"
114#define SRS_PT_EQUIDISTANT_CONIC "Equidistant_Conic"
116#define SRS_PT_EQUIRECTANGULAR "Equirectangular"
118#define SRS_PT_GALL_STEREOGRAPHIC "Gall_Stereographic"
120#define SRS_PT_GAUSSSCHREIBERTMERCATOR "Gauss_Schreiber_Transverse_Mercator"
122#define SRS_PT_GEOSTATIONARY_SATELLITE "Geostationary_Satellite"
124#define SRS_PT_GOODE_HOMOLOSINE "Goode_Homolosine"
126#define SRS_PT_IGH "Interrupted_Goode_Homolosine"
128#define SRS_PT_GNOMONIC "Gnomonic"
130#define SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER \
131 "Hotine_Oblique_Mercator_Azimuth_Center"
133#define SRS_PT_HOTINE_OBLIQUE_MERCATOR "Hotine_Oblique_Mercator"
135#define SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN \
136 "Hotine_Oblique_Mercator_Two_Point_Natural_Origin"
138#define SRS_PT_LABORDE_OBLIQUE_MERCATOR "Laborde_Oblique_Mercator"
140#define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP "Lambert_Conformal_Conic_1SP"
142#define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP "Lambert_Conformal_Conic_2SP"
144#define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM \
145 "Lambert_Conformal_Conic_2SP_Belgium"
147#define SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA "Lambert_Azimuthal_Equal_Area"
149#define SRS_PT_MERCATOR_1SP "Mercator_1SP"
151#define SRS_PT_MERCATOR_2SP "Mercator_2SP"
153#define SRS_PT_MERCATOR_AUXILIARY_SPHERE "Mercator_Auxiliary_Sphere"
155#define SRS_PT_MILLER_CYLINDRICAL "Miller_Cylindrical"
157#define SRS_PT_MOLLWEIDE "Mollweide"
159#define SRS_PT_NEW_ZEALAND_MAP_GRID "New_Zealand_Map_Grid"
161#define SRS_PT_OBLIQUE_STEREOGRAPHIC "Oblique_Stereographic"
163#define SRS_PT_ORTHOGRAPHIC "Orthographic"
165#define SRS_PT_POLAR_STEREOGRAPHIC "Polar_Stereographic"
167#define SRS_PT_POLYCONIC "Polyconic"
169#define SRS_PT_ROBINSON "Robinson"
171#define SRS_PT_SINUSOIDAL "Sinusoidal"
173#define SRS_PT_STEREOGRAPHIC "Stereographic"
175#define SRS_PT_SWISS_OBLIQUE_CYLINDRICAL "Swiss_Oblique_Cylindrical"
177#define SRS_PT_TRANSVERSE_MERCATOR "Transverse_Mercator"
179#define SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED \
180 "Transverse_Mercator_South_Orientated"
181
182/* special mapinfo variants on Transverse Mercator */
184#define SRS_PT_TRANSVERSE_MERCATOR_MI_21 "Transverse_Mercator_MapInfo_21"
186#define SRS_PT_TRANSVERSE_MERCATOR_MI_22 "Transverse_Mercator_MapInfo_22"
188#define SRS_PT_TRANSVERSE_MERCATOR_MI_23 "Transverse_Mercator_MapInfo_23"
190#define SRS_PT_TRANSVERSE_MERCATOR_MI_24 "Transverse_Mercator_MapInfo_24"
192#define SRS_PT_TRANSVERSE_MERCATOR_MI_25 "Transverse_Mercator_MapInfo_25"
193
195#define SRS_PT_TUNISIA_MINING_GRID "Tunisia_Mining_Grid"
197#define SRS_PT_TWO_POINT_EQUIDISTANT "Two_Point_Equidistant"
199#define SRS_PT_VANDERGRINTEN "VanDerGrinten"
201#define SRS_PT_KROVAK "Krovak"
203#define SRS_PT_IMW_POLYCONIC "International_Map_of_the_World_Polyconic"
205#define SRS_PT_WAGNER_I "Wagner_I"
207#define SRS_PT_WAGNER_II "Wagner_II"
209#define SRS_PT_WAGNER_III "Wagner_III"
211#define SRS_PT_WAGNER_IV "Wagner_IV"
213#define SRS_PT_WAGNER_V "Wagner_V"
215#define SRS_PT_WAGNER_VI "Wagner_VI"
217#define SRS_PT_WAGNER_VII "Wagner_VII"
219#define SRS_PT_QSC "Quadrilateralized_Spherical_Cube"
221#define SRS_PT_AITOFF "Aitoff"
223#define SRS_PT_WINKEL_I "Winkel_I"
225#define SRS_PT_WINKEL_II "Winkel_II"
227#define SRS_PT_WINKEL_TRIPEL "Winkel_Tripel"
229#define SRS_PT_CRASTER_PARABOLIC "Craster_Parabolic"
231#define SRS_PT_LOXIMUTHAL "Loximuthal"
233#define SRS_PT_QUARTIC_AUTHALIC "Quartic_Authalic"
235#define SRS_PT_SCH "Spherical_Cross_Track_Height"
236
238#define SRS_PP_CENTRAL_MERIDIAN "central_meridian"
240#define SRS_PP_SCALE_FACTOR "scale_factor"
242#define SRS_PP_STANDARD_PARALLEL_1 "standard_parallel_1"
244#define SRS_PP_STANDARD_PARALLEL_2 "standard_parallel_2"
246#define SRS_PP_PSEUDO_STD_PARALLEL_1 "pseudo_standard_parallel_1"
248#define SRS_PP_LONGITUDE_OF_CENTER "longitude_of_center"
250#define SRS_PP_LATITUDE_OF_CENTER "latitude_of_center"
252#define SRS_PP_LONGITUDE_OF_ORIGIN "longitude_of_origin"
254#define SRS_PP_LATITUDE_OF_ORIGIN "latitude_of_origin"
256#define SRS_PP_FALSE_EASTING "false_easting"
258#define SRS_PP_FALSE_NORTHING "false_northing"
260#define SRS_PP_AZIMUTH "azimuth"
262#define SRS_PP_LONGITUDE_OF_POINT_1 "longitude_of_point_1"
264#define SRS_PP_LATITUDE_OF_POINT_1 "latitude_of_point_1"
266#define SRS_PP_LONGITUDE_OF_POINT_2 "longitude_of_point_2"
268#define SRS_PP_LATITUDE_OF_POINT_2 "latitude_of_point_2"
270#define SRS_PP_LONGITUDE_OF_POINT_3 "longitude_of_point_3"
272#define SRS_PP_LATITUDE_OF_POINT_3 "latitude_of_point_3"
274#define SRS_PP_RECTIFIED_GRID_ANGLE "rectified_grid_angle"
276#define SRS_PP_LANDSAT_NUMBER "landsat_number"
278#define SRS_PP_PATH_NUMBER "path_number"
280#define SRS_PP_PERSPECTIVE_POINT_HEIGHT "perspective_point_height"
282#define SRS_PP_SATELLITE_HEIGHT "satellite_height"
284#define SRS_PP_FIPSZONE "fipszone"
286#define SRS_PP_ZONE "zone"
288#define SRS_PP_LATITUDE_OF_1ST_POINT "Latitude_Of_1st_Point"
290#define SRS_PP_LONGITUDE_OF_1ST_POINT "Longitude_Of_1st_Point"
292#define SRS_PP_LATITUDE_OF_2ND_POINT "Latitude_Of_2nd_Point"
294#define SRS_PP_LONGITUDE_OF_2ND_POINT "Longitude_Of_2nd_Point"
296#define SRS_PP_PEG_POINT_LATITUDE "peg_point_latitude"
298#define SRS_PP_PEG_POINT_LONGITUDE "peg_point_longitude"
300#define SRS_PP_PEG_POINT_HEADING "peg_point_heading"
302#define SRS_PP_PEG_POINT_HEIGHT "peg_point_height"
303
305#define SRS_UL_METER "Meter"
307#define SRS_UL_FOOT "Foot (International)" /* or just "FOOT"? */
309#define SRS_UL_FOOT_CONV "0.3048"
311#define SRS_UL_US_FOOT "Foot_US" /* or "US survey foot" from EPSG */
313#define SRS_UL_US_FOOT_CONV "0.3048006096012192"
315#define SRS_UL_NAUTICAL_MILE "Nautical Mile"
317#define SRS_UL_NAUTICAL_MILE_CONV "1852.0"
319#define SRS_UL_LINK "Link" /* Based on US Foot */
321#define SRS_UL_LINK_CONV "0.20116684023368047"
323#define SRS_UL_CHAIN "Chain" /* based on US Foot */
325#define SRS_UL_CHAIN_CONV "20.116684023368047"
327#define SRS_UL_ROD "Rod" /* based on US Foot */
329#define SRS_UL_ROD_CONV "5.02921005842012"
331#define SRS_UL_LINK_Clarke "Link_Clarke"
333#define SRS_UL_LINK_Clarke_CONV "0.2011661949"
334
336#define SRS_UL_KILOMETER "Kilometer"
338#define SRS_UL_KILOMETER_CONV "1000."
340#define SRS_UL_DECIMETER "Decimeter"
342#define SRS_UL_DECIMETER_CONV "0.1"
344#define SRS_UL_CENTIMETER "Centimeter"
346#define SRS_UL_CENTIMETER_CONV "0.01"
348#define SRS_UL_MILLIMETER "Millimeter"
350#define SRS_UL_MILLIMETER_CONV "0.001"
352#define SRS_UL_INTL_NAUT_MILE "Nautical_Mile_International"
354#define SRS_UL_INTL_NAUT_MILE_CONV "1852.0"
356#define SRS_UL_INTL_INCH "Inch_International"
358#define SRS_UL_INTL_INCH_CONV "0.0254"
360#define SRS_UL_INTL_FOOT "Foot_International"
362#define SRS_UL_INTL_FOOT_CONV "0.3048"
364#define SRS_UL_INTL_YARD "Yard_International"
366#define SRS_UL_INTL_YARD_CONV "0.9144"
368#define SRS_UL_INTL_STAT_MILE "Statute_Mile_International"
370#define SRS_UL_INTL_STAT_MILE_CONV "1609.344"
372#define SRS_UL_INTL_FATHOM "Fathom_International"
374#define SRS_UL_INTL_FATHOM_CONV "1.8288"
376#define SRS_UL_INTL_CHAIN "Chain_International"
378#define SRS_UL_INTL_CHAIN_CONV "20.1168"
380#define SRS_UL_INTL_LINK "Link_International"
382#define SRS_UL_INTL_LINK_CONV "0.201168"
384#define SRS_UL_US_INCH "Inch_US_Surveyor"
386#define SRS_UL_US_INCH_CONV "0.025400050800101603"
388#define SRS_UL_US_YARD "Yard_US_Surveyor"
390#define SRS_UL_US_YARD_CONV "0.914401828803658"
392#define SRS_UL_US_CHAIN "Chain_US_Surveyor"
394#define SRS_UL_US_CHAIN_CONV "20.11684023368047"
396#define SRS_UL_US_STAT_MILE "Statute_Mile_US_Surveyor"
398#define SRS_UL_US_STAT_MILE_CONV "1609.347218694437"
400#define SRS_UL_INDIAN_YARD "Yard_Indian"
402#define SRS_UL_INDIAN_YARD_CONV "0.91439523"
404#define SRS_UL_INDIAN_FOOT "Foot_Indian"
406#define SRS_UL_INDIAN_FOOT_CONV "0.30479841"
408#define SRS_UL_INDIAN_CHAIN "Chain_Indian"
410#define SRS_UL_INDIAN_CHAIN_CONV "20.11669506"
411
413#define SRS_UA_DEGREE "degree"
415#define SRS_UA_DEGREE_CONV "0.0174532925199433"
417#define SRS_UA_RADIAN "radian"
418
420#define SRS_PM_GREENWICH "Greenwich"
421
423#define SRS_DN_NAD27 "North_American_Datum_1927"
425#define SRS_DN_NAD83 "North_American_Datum_1983"
427#define SRS_DN_WGS72 "WGS_1972"
429#define SRS_DN_WGS84 "WGS_1984"
430
432#define SRS_WGS84_SEMIMAJOR 6378137.0
434#define SRS_WGS84_INVFLATTENING 298.257223563
435
436#ifndef SWIG
437/* -------------------------------------------------------------------- */
438/* C Wrappers for C++ objects and methods. */
439/* -------------------------------------------------------------------- */
440#ifndef DEFINED_OGRSpatialReferenceH
442#define DEFINED_OGRSpatialReferenceH
445#ifdef DEBUG
446 typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
447 typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
448#else
450 typedef void *OGRSpatialReferenceH;
452 typedef void *OGRCoordinateTransformationH;
453#endif
454
455#endif
456
457 void CPL_DLL OSRSetPROJSearchPaths(const char *const *papszPaths);
458 char CPL_DLL **OSRGetPROJSearchPaths(void);
459 void CPL_DLL OSRSetPROJAuxDbPaths(const char *const *papszPaths);
460 char CPL_DLL **OSRGetPROJAuxDbPaths(void);
461 void CPL_DLL OSRSetPROJEnableNetwork(int enabled);
462 int CPL_DLL OSRGetPROJEnableNetwork(void);
463 void CPL_DLL OSRGetPROJVersion(int *pnMajor, int *pnMinor, int *pnPatch);
464
465 OGRSpatialReferenceH CPL_DLL CPL_STDCALL
466 OSRNewSpatialReference(const char * /* = NULL */);
467 OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRCloneGeogCS(OGRSpatialReferenceH);
468 OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRClone(OGRSpatialReferenceH);
469 void CPL_DLL CPL_STDCALL OSRDestroySpatialReference(OGRSpatialReferenceH);
470
471 int CPL_DLL OSRReference(OGRSpatialReferenceH);
472 int CPL_DLL OSRDereference(OGRSpatialReferenceH);
473 void CPL_DLL OSRRelease(OGRSpatialReferenceH);
474
475 OGRErr CPL_DLL OSRValidate(OGRSpatialReferenceH);
476
477 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSG(OGRSpatialReferenceH, int);
478 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSGA(OGRSpatialReferenceH, int);
479 OGRErr CPL_DLL OSRImportFromWkt(OGRSpatialReferenceH, char **);
480 OGRErr CPL_DLL OSRImportFromProj4(OGRSpatialReferenceH, const char *);
481 OGRErr CPL_DLL OSRImportFromESRI(OGRSpatialReferenceH, char **);
482 OGRErr CPL_DLL OSRImportFromPCI(OGRSpatialReferenceH hSRS, const char *,
483 const char *, double *);
484 OGRErr CPL_DLL OSRImportFromUSGS(OGRSpatialReferenceH, long, long, double *,
485 long);
486 OGRErr CPL_DLL OSRImportFromXML(OGRSpatialReferenceH, const char *);
487 OGRErr CPL_DLL OSRImportFromDict(OGRSpatialReferenceH, const char *,
488 const char *);
489 OGRErr CPL_DLL OSRImportFromPanorama(OGRSpatialReferenceH, long, long, long,
490 double *);
491 OGRErr CPL_DLL OSRImportFromOzi(OGRSpatialReferenceH, const char *const *);
492 OGRErr CPL_DLL OSRImportFromMICoordSys(OGRSpatialReferenceH, const char *);
493 OGRErr CPL_DLL OSRImportFromERM(OGRSpatialReferenceH, const char *,
494 const char *, const char *);
495 OGRErr CPL_DLL OSRImportFromUrl(OGRSpatialReferenceH, const char *);
496 OGRErr CPL_DLL OSRImportFromCF1(OGRSpatialReferenceH,
497 CSLConstList papszKeyValues,
498 const char *pszUnits);
499
500 OGRErr CPL_DLL CPL_STDCALL OSRExportToWkt(OGRSpatialReferenceH, char **);
501 OGRErr CPL_DLL OSRExportToWktEx(OGRSpatialReferenceH, char **ppszResult,
502 const char *const *papszOptions);
503 OGRErr CPL_DLL CPL_STDCALL OSRExportToPrettyWkt(OGRSpatialReferenceH, char **,
504 int);
505 OGRErr CPL_DLL OSRExportToPROJJSON(OGRSpatialReferenceH hSRS, char **ppszReturn,
506 const char *const *papszOptions);
507 OGRErr CPL_DLL CPL_STDCALL OSRExportToProj4(OGRSpatialReferenceH, char **);
508 OGRErr CPL_DLL OSRExportToPCI(OGRSpatialReferenceH, char **, char **,
509 double **);
510 OGRErr CPL_DLL OSRExportToUSGS(OGRSpatialReferenceH, long *, long *, double **,
511 long *);
512 OGRErr CPL_DLL OSRExportToXML(OGRSpatialReferenceH, char **, const char *);
513 OGRErr CPL_DLL OSRExportToPanorama(OGRSpatialReferenceH, long *, long *, long *,
514 long *, double *);
515 OGRErr CPL_DLL OSRExportToMICoordSys(OGRSpatialReferenceH, char **);
516 OGRErr CPL_DLL OSRExportToERM(OGRSpatialReferenceH, char *, char *, char *);
517 OGRErr CPL_DLL OSRExportToCF1(OGRSpatialReferenceH, char **ppszGridMappingName,
518 char ***ppapszKeyValues, char **ppszUnits,
519 CSLConstList papszOptions);
520
521 OGRErr CPL_DLL OSRMorphToESRI(OGRSpatialReferenceH);
522 OGRErr CPL_DLL OSRMorphFromESRI(OGRSpatialReferenceH);
523
524 OGRErr CPL_DLL OSRStripVertical(OGRSpatialReferenceH);
525
526 OGRSpatialReferenceH CPL_DLL OSRConvertToOtherProjection(
527 OGRSpatialReferenceH hSRS, const char *pszTargetProjection,
528 const char *const *papszOptions);
529
530 const char CPL_DLL *OSRGetName(OGRSpatialReferenceH hSRS);
531
532 OGRErr CPL_DLL CPL_STDCALL OSRSetAttrValue(OGRSpatialReferenceH hSRS,
533 const char *pszNodePath,
534 const char *pszNewNodeValue);
535 const char CPL_DLL *CPL_STDCALL OSRGetAttrValue(OGRSpatialReferenceH hSRS,
536 const char *pszName,
537 int iChild /* = 0 */);
538
539 OGRErr CPL_DLL OSRSetAngularUnits(OGRSpatialReferenceH, const char *, double);
540 double CPL_DLL OSRGetAngularUnits(OGRSpatialReferenceH, char **);
541 OGRErr CPL_DLL OSRSetLinearUnits(OGRSpatialReferenceH, const char *, double);
542 OGRErr CPL_DLL OSRSetTargetLinearUnits(OGRSpatialReferenceH, const char *,
543 const char *, double);
544 OGRErr CPL_DLL OSRSetLinearUnitsAndUpdateParameters(OGRSpatialReferenceH,
545 const char *, double);
546 double CPL_DLL OSRGetLinearUnits(OGRSpatialReferenceH, char **);
547 double CPL_DLL OSRGetTargetLinearUnits(OGRSpatialReferenceH, const char *,
548 char **);
549
550 double CPL_DLL OSRGetPrimeMeridian(OGRSpatialReferenceH, char **);
551
552 int CPL_DLL OSRIsGeographic(OGRSpatialReferenceH);
553 int CPL_DLL OSRIsDerivedGeographic(OGRSpatialReferenceH);
554 int CPL_DLL OSRIsLocal(OGRSpatialReferenceH);
555 int CPL_DLL OSRIsProjected(OGRSpatialReferenceH);
556 int CPL_DLL OSRIsDerivedProjected(OGRSpatialReferenceH);
557 int CPL_DLL OSRIsCompound(OGRSpatialReferenceH);
558 int CPL_DLL OSRIsGeocentric(OGRSpatialReferenceH);
559 int CPL_DLL OSRIsVertical(OGRSpatialReferenceH);
560 int CPL_DLL OSRIsDynamic(OGRSpatialReferenceH);
561 int CPL_DLL OSRHasPointMotionOperation(OGRSpatialReferenceH);
562 int CPL_DLL OSRIsSameGeogCS(OGRSpatialReferenceH, OGRSpatialReferenceH);
563 int CPL_DLL OSRIsSameVertCS(OGRSpatialReferenceH, OGRSpatialReferenceH);
564 int CPL_DLL OSRIsSame(OGRSpatialReferenceH, OGRSpatialReferenceH);
565 int CPL_DLL OSRIsSameEx(OGRSpatialReferenceH, OGRSpatialReferenceH,
566 const char *const *papszOptions);
567
568 void CPL_DLL OSRSetCoordinateEpoch(OGRSpatialReferenceH hSRS,
569 double dfCoordinateEpoch);
570 double CPL_DLL OSRGetCoordinateEpoch(OGRSpatialReferenceH hSRS);
571
572 OGRErr CPL_DLL OSRSetLocalCS(OGRSpatialReferenceH hSRS, const char *pszName);
573 OGRErr CPL_DLL OSRSetProjCS(OGRSpatialReferenceH hSRS, const char *pszName);
574 OGRErr CPL_DLL OSRSetGeocCS(OGRSpatialReferenceH hSRS, const char *pszName);
575 OGRErr CPL_DLL OSRSetWellKnownGeogCS(OGRSpatialReferenceH hSRS,
576 const char *pszName);
577 OGRErr CPL_DLL CPL_STDCALL OSRSetFromUserInput(OGRSpatialReferenceH hSRS,
578 const char *);
579 OGRErr CPL_DLL OSRSetFromUserInputEx(OGRSpatialReferenceH hSRS, const char *,
580 CSLConstList papszOptions);
581 OGRErr CPL_DLL OSRCopyGeogCSFrom(OGRSpatialReferenceH hSRS,
582 const OGRSpatialReferenceH hSrcSRS);
583 OGRErr CPL_DLL OSRSetTOWGS84(OGRSpatialReferenceH hSRS, double, double, double,
584 double, double, double, double);
585 OGRErr CPL_DLL OSRGetTOWGS84(OGRSpatialReferenceH hSRS, double *, int);
586 OGRErr CPL_DLL OSRAddGuessedTOWGS84(OGRSpatialReferenceH hSRS);
587
588 OGRErr CPL_DLL OSRSetCompoundCS(OGRSpatialReferenceH hSRS, const char *pszName,
589 OGRSpatialReferenceH hHorizSRS,
590 OGRSpatialReferenceH hVertSRS);
591 OGRErr CPL_DLL OSRPromoteTo3D(OGRSpatialReferenceH hSRS, const char *pszName);
592 OGRErr CPL_DLL OSRDemoteTo2D(OGRSpatialReferenceH hSRS, const char *pszName);
593
594 OGRErr CPL_DLL OSRSetGeogCS(OGRSpatialReferenceH hSRS, const char *pszGeogName,
595 const char *pszDatumName,
596 const char *pszEllipsoidName, double dfSemiMajor,
597 double dfInvFlattening,
598 const char *pszPMName /* = NULL */,
599 double dfPMOffset /* = 0.0 */,
600 const char *pszUnits /* = NULL */,
601 double dfConvertToRadians /* = 0.0 */);
602
603 OGRErr CPL_DLL OSRSetVertCS(OGRSpatialReferenceH hSRS,
604 const char *pszVertCSName,
605 const char *pszVertDatumName, int nVertDatumType);
606
607 double CPL_DLL OSRGetSemiMajor(OGRSpatialReferenceH, OGRErr * /* = NULL */);
608 double CPL_DLL OSRGetSemiMinor(OGRSpatialReferenceH, OGRErr * /* = NULL */);
609 double CPL_DLL OSRGetInvFlattening(OGRSpatialReferenceH, OGRErr * /*=NULL*/);
610
611 OGRErr CPL_DLL OSRSetAuthority(OGRSpatialReferenceH hSRS,
612 const char *pszTargetKey,
613 const char *pszAuthority, int nCode);
614 const char CPL_DLL *OSRGetAuthorityCode(OGRSpatialReferenceH hSRS,
615 const char *pszTargetKey);
616 const char CPL_DLL *OSRGetAuthorityName(OGRSpatialReferenceH hSRS,
617 const char *pszTargetKey);
618
619 int CPL_DLL OSRGetAreaOfUse(OGRSpatialReferenceH hSRS,
620 double *pdfWestLongitudeDeg,
621 double *pdfSouthLatitudeDeg,
622 double *pdfEastLongitudeDeg,
623 double *pdfNorthLatitudeDeg,
624 const char **ppszAreaName);
625
626 OGRErr CPL_DLL OSRSetProjection(OGRSpatialReferenceH, const char *);
627 OGRErr CPL_DLL OSRSetProjParm(OGRSpatialReferenceH, const char *, double);
628 double CPL_DLL OSRGetProjParm(OGRSpatialReferenceH hSRS,
629 const char *pszParamName,
630 double dfDefault /* = 0.0 */,
631 OGRErr * /* = NULL */);
632 OGRErr CPL_DLL OSRSetNormProjParm(OGRSpatialReferenceH, const char *, double);
633 double CPL_DLL OSRGetNormProjParm(OGRSpatialReferenceH hSRS,
634 const char *pszParamName,
635 double dfDefault /* = 0.0 */,
636 OGRErr * /* = NULL */);
637
638 OGRErr CPL_DLL OSRSetUTM(OGRSpatialReferenceH hSRS, int nZone, int bNorth);
639 int CPL_DLL OSRGetUTMZone(OGRSpatialReferenceH hSRS, int *pbNorth);
640 OGRErr CPL_DLL OSRSetStatePlane(OGRSpatialReferenceH hSRS, int nZone,
641 int bNAD83);
642 OGRErr CPL_DLL OSRSetStatePlaneWithUnits(OGRSpatialReferenceH hSRS, int nZone,
643 int bNAD83,
644 const char *pszOverrideUnitName,
645 double dfOverrideUnit);
646 OGRErr CPL_DLL OSRAutoIdentifyEPSG(OGRSpatialReferenceH hSRS);
647
648 OGRSpatialReferenceH CPL_DLL *OSRFindMatches(OGRSpatialReferenceH hSRS,
649 char **papszOptions,
650 int *pnEntries,
651 int **ppanMatchConfidence);
652 void CPL_DLL OSRFreeSRSArray(OGRSpatialReferenceH *pahSRS);
653
654 int CPL_DLL OSREPSGTreatsAsLatLong(OGRSpatialReferenceH hSRS);
655 int CPL_DLL OSREPSGTreatsAsNorthingEasting(OGRSpatialReferenceH hSRS);
656 const char CPL_DLL *OSRGetAxis(OGRSpatialReferenceH hSRS,
657 const char *pszTargetKey, int iAxis,
658 OGRAxisOrientation *peOrientation);
659 int CPL_DLL OSRGetAxesCount(OGRSpatialReferenceH hSRS);
660 OGRErr CPL_DLL OSRSetAxes(OGRSpatialReferenceH hSRS, const char *pszTargetKey,
661 const char *pszXAxisName,
662 OGRAxisOrientation eXAxisOrientation,
663 const char *pszYAxisName,
664 OGRAxisOrientation eYAxisOrientation);
665
667 typedef enum
668{
669 OAMS_TRADITIONAL_GIS_ORDER,
670 OAMS_AUTHORITY_COMPLIANT,
672 OAMS_CUSTOM
673} OSRAxisMappingStrategy;
674
675 OSRAxisMappingStrategy CPL_DLL
676 OSRGetAxisMappingStrategy(OGRSpatialReferenceH hSRS);
677
678 void CPL_DLL OSRSetAxisMappingStrategy(OGRSpatialReferenceH hSRS,
679 OSRAxisMappingStrategy strategy);
680
681 const int CPL_DLL *OSRGetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS,
682 int *pnCount);
683
684 OGRErr CPL_DLL OSRSetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS,
685 int nMappingSize,
686 const int *panMapping);
687
689 OGRErr CPL_DLL OSRSetACEA(OGRSpatialReferenceH hSRS, double dfStdP1,
690 double dfStdP2, double dfCenterLat,
691 double dfCenterLong, double dfFalseEasting,
692 double dfFalseNorthing);
693
695 OGRErr CPL_DLL OSRSetAE(OGRSpatialReferenceH hSRS, double dfCenterLat,
696 double dfCenterLong, double dfFalseEasting,
697 double dfFalseNorthing);
698
700 OGRErr CPL_DLL OSRSetBonne(OGRSpatialReferenceH hSRS, double dfStandardParallel,
701 double dfCentralMeridian, double dfFalseEasting,
702 double dfFalseNorthing);
703
705 OGRErr CPL_DLL OSRSetCEA(OGRSpatialReferenceH hSRS, double dfStdP1,
706 double dfCentralMeridian, double dfFalseEasting,
707 double dfFalseNorthing);
708
710 OGRErr CPL_DLL OSRSetCS(OGRSpatialReferenceH hSRS, double dfCenterLat,
711 double dfCenterLong, double dfFalseEasting,
712 double dfFalseNorthing);
713
715 OGRErr CPL_DLL OSRSetEC(OGRSpatialReferenceH hSRS, double dfStdP1,
716 double dfStdP2, double dfCenterLat, double dfCenterLong,
717 double dfFalseEasting, double dfFalseNorthing);
718
720 OGRErr CPL_DLL OSRSetEckert(OGRSpatialReferenceH hSRS, int nVariation,
721 double dfCentralMeridian, double dfFalseEasting,
722 double dfFalseNorthing);
723
725 OGRErr CPL_DLL OSRSetEckertIV(OGRSpatialReferenceH hSRS,
726 double dfCentralMeridian, double dfFalseEasting,
727 double dfFalseNorthing);
728
730 OGRErr CPL_DLL OSRSetEckertVI(OGRSpatialReferenceH hSRS,
731 double dfCentralMeridian, double dfFalseEasting,
732 double dfFalseNorthing);
733
735 OGRErr CPL_DLL OSRSetEquirectangular(OGRSpatialReferenceH hSRS,
736 double dfCenterLat, double dfCenterLong,
737 double dfFalseEasting,
738 double dfFalseNorthing);
739
741 OGRErr CPL_DLL OSRSetEquirectangular2(OGRSpatialReferenceH hSRS,
742 double dfCenterLat, double dfCenterLong,
743 double dfPseudoStdParallel1,
744 double dfFalseEasting,
745 double dfFalseNorthing);
746
748 OGRErr CPL_DLL OSRSetGS(OGRSpatialReferenceH hSRS, double dfCentralMeridian,
749 double dfFalseEasting, double dfFalseNorthing);
750
752 OGRErr CPL_DLL OSRSetGH(OGRSpatialReferenceH hSRS, double dfCentralMeridian,
753 double dfFalseEasting, double dfFalseNorthing);
754
756 OGRErr CPL_DLL OSRSetIGH(OGRSpatialReferenceH hSRS);
757
759 OGRErr CPL_DLL OSRSetGEOS(OGRSpatialReferenceH hSRS, double dfCentralMeridian,
760 double dfSatelliteHeight, double dfFalseEasting,
761 double dfFalseNorthing);
762
764 OGRErr CPL_DLL OSRSetGaussSchreiberTMercator(
765 OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
766 double dfScale, double dfFalseEasting, double dfFalseNorthing);
768 OGRErr CPL_DLL OSRSetGnomonic(OGRSpatialReferenceH hSRS, double dfCenterLat,
769 double dfCenterLong, double dfFalseEasting,
770 double dfFalseNorthing);
771
772#ifdef undef
774 OGRErr CPL_DLL OSRSetOM(OGRSpatialReferenceH hSRS, double dfCenterLat,
775 double dfCenterLong, double dfAzimuth,
776 double dfRectToSkew, double dfScale,
777 double dfFalseEasting, double dfFalseNorthing);
778#endif
779
781 OGRErr CPL_DLL OSRSetHOM(OGRSpatialReferenceH hSRS, double dfCenterLat,
782 double dfCenterLong, double dfAzimuth,
783 double dfRectToSkew, double dfScale,
784 double dfFalseEasting, double dfFalseNorthing);
785
786 OGRErr CPL_DLL OSRSetHOMAC(OGRSpatialReferenceH hSRS, double dfCenterLat,
787 double dfCenterLong, double dfAzimuth,
788 double dfRectToSkew, double dfScale,
789 double dfFalseEasting, double dfFalseNorthing);
790
792 OGRErr CPL_DLL OSRSetHOM2PNO(OGRSpatialReferenceH hSRS, double dfCenterLat,
793 double dfLat1, double dfLong1, double dfLat2,
794 double dfLong2, double dfScale,
795 double dfFalseEasting, double dfFalseNorthing);
796
798 OGRErr CPL_DLL OSRSetIWMPolyconic(OGRSpatialReferenceH hSRS, double dfLat1,
799 double dfLat2, double dfCenterLong,
800 double dfFalseEasting,
801 double dfFalseNorthing);
802
804 OGRErr CPL_DLL OSRSetKrovak(OGRSpatialReferenceH hSRS, double dfCenterLat,
805 double dfCenterLong, double dfAzimuth,
806 double dfPseudoStdParallelLat, double dfScale,
807 double dfFalseEasting, double dfFalseNorthing);
808
810 OGRErr CPL_DLL OSRSetLAEA(OGRSpatialReferenceH hSRS, double dfCenterLat,
811 double dfCenterLong, double dfFalseEasting,
812 double dfFalseNorthing);
813
815 OGRErr CPL_DLL OSRSetLCC(OGRSpatialReferenceH hSRS, double dfStdP1,
816 double dfStdP2, double dfCenterLat,
817 double dfCenterLong, double dfFalseEasting,
818 double dfFalseNorthing);
819
821 OGRErr CPL_DLL OSRSetLCC1SP(OGRSpatialReferenceH hSRS, double dfCenterLat,
822 double dfCenterLong, double dfScale,
823 double dfFalseEasting, double dfFalseNorthing);
824
826 OGRErr CPL_DLL OSRSetLCCB(OGRSpatialReferenceH hSRS, double dfStdP1,
827 double dfStdP2, double dfCenterLat,
828 double dfCenterLong, double dfFalseEasting,
829 double dfFalseNorthing);
830
832 OGRErr CPL_DLL OSRSetMC(OGRSpatialReferenceH hSRS, double dfCenterLat,
833 double dfCenterLong, double dfFalseEasting,
834 double dfFalseNorthing);
835
837 OGRErr CPL_DLL OSRSetMercator(OGRSpatialReferenceH hSRS, double dfCenterLat,
838 double dfCenterLong, double dfScale,
839 double dfFalseEasting, double dfFalseNorthing);
840
842 OGRErr CPL_DLL OSRSetMercator2SP(OGRSpatialReferenceH hSRS, double dfStdP1,
843 double dfCenterLat, double dfCenterLong,
844 double dfFalseEasting, double dfFalseNorthing);
845
847 OGRErr CPL_DLL OSRSetMollweide(OGRSpatialReferenceH hSRS,
848 double dfCentralMeridian, double dfFalseEasting,
849 double dfFalseNorthing);
850
852 OGRErr CPL_DLL OSRSetNZMG(OGRSpatialReferenceH hSRS, double dfCenterLat,
853 double dfCenterLong, double dfFalseEasting,
854 double dfFalseNorthing);
855
857 OGRErr CPL_DLL OSRSetOS(OGRSpatialReferenceH hSRS, double dfOriginLat,
858 double dfCMeridian, double dfScale,
859 double dfFalseEasting, double dfFalseNorthing);
860
862 OGRErr CPL_DLL OSRSetOrthographic(OGRSpatialReferenceH hSRS, double dfCenterLat,
863 double dfCenterLong, double dfFalseEasting,
864 double dfFalseNorthing);
865
867 OGRErr CPL_DLL OSRSetPolyconic(OGRSpatialReferenceH hSRS, double dfCenterLat,
868 double dfCenterLong, double dfFalseEasting,
869 double dfFalseNorthing);
870
872 OGRErr CPL_DLL OSRSetPS(OGRSpatialReferenceH hSRS, double dfCenterLat,
873 double dfCenterLong, double dfScale,
874 double dfFalseEasting, double dfFalseNorthing);
875
877 OGRErr CPL_DLL OSRSetRobinson(OGRSpatialReferenceH hSRS, double dfCenterLong,
878 double dfFalseEasting, double dfFalseNorthing);
879
881 OGRErr CPL_DLL OSRSetSinusoidal(OGRSpatialReferenceH hSRS, double dfCenterLong,
882 double dfFalseEasting, double dfFalseNorthing);
883
885 OGRErr CPL_DLL OSRSetStereographic(OGRSpatialReferenceH hSRS,
886 double dfCenterLat, double dfCenterLong,
887 double dfScale, double dfFalseEasting,
888 double dfFalseNorthing);
889
891 OGRErr CPL_DLL OSRSetSOC(OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin,
892 double dfCentralMeridian, double dfFalseEasting,
893 double dfFalseNorthing);
894
901 OGRErr CPL_DLL OSRSetTM(OGRSpatialReferenceH hSRS, double dfCenterLat,
902 double dfCenterLong, double dfScale,
903 double dfFalseEasting, double dfFalseNorthing);
904
906 OGRErr CPL_DLL OSRSetTMVariant(OGRSpatialReferenceH hSRS,
907 const char *pszVariantName, double dfCenterLat,
908 double dfCenterLong, double dfScale,
909 double dfFalseEasting, double dfFalseNorthing);
910
912 OGRErr CPL_DLL OSRSetTMG(OGRSpatialReferenceH hSRS, double dfCenterLat,
913 double dfCenterLong, double dfFalseEasting,
914 double dfFalseNorthing);
915
917 OGRErr CPL_DLL OSRSetTMSO(OGRSpatialReferenceH hSRS, double dfCenterLat,
918 double dfCenterLong, double dfScale,
919 double dfFalseEasting, double dfFalseNorthing);
920
922 OGRErr CPL_DLL OSRSetTPED(OGRSpatialReferenceH hSRS, double dfLat1,
923 double dfLong1, double dfLat2, double dfLong2,
924 double dfFalseEasting, double dfFalseNorthing);
925
927 OGRErr CPL_DLL OSRSetVDG(OGRSpatialReferenceH hSRS, double dfCenterLong,
928 double dfFalseEasting, double dfFalseNorthing);
929
931 OGRErr CPL_DLL OSRSetWagner(OGRSpatialReferenceH hSRS, int nVariation,
932 double dfCenterLat, double dfFalseEasting,
933 double dfFalseNorthing);
934
936 OGRErr CPL_DLL OSRSetQSC(OGRSpatialReferenceH hSRS, double dfCenterLat,
937 double dfCenterLong);
938
940 OGRErr CPL_DLL OSRSetSCH(OGRSpatialReferenceH hSRS, double dfPegLat,
941 double dfPegLong, double dfPegHeading,
942 double dfPegHgt);
943
945 OGRErr CPL_DLL OSRSetVerticalPerspective(
946 OGRSpatialReferenceH hSRS, double dfTopoOriginLat, double dfTopoOriginLon,
947 double dfTopoOriginHeight, double dfViewPointHeight, double dfFalseEasting,
948 double dfFalseNorthing);
949
950 double CPL_DLL OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor);
951 double CPL_DLL OSRCalcSemiMinorFromInvFlattening(double dfSemiMajor,
952 double dfInvFlattening);
953
954 void CPL_DLL OSRCleanup(void);
955
957 typedef enum
958{
960 OSR_CRS_TYPE_GEOGRAPHIC_2D,
962 OSR_CRS_TYPE_GEOGRAPHIC_3D,
964 OSR_CRS_TYPE_GEOCENTRIC,
966 OSR_CRS_TYPE_PROJECTED,
968 OSR_CRS_TYPE_VERTICAL,
970 OSR_CRS_TYPE_COMPOUND,
972 OSR_CRS_TYPE_OTHER,
973} OSRCRSType;
974
980 typedef struct
981{
983 char *pszAuthName;
985 char *pszCode;
987 char *pszName;
989 OSRCRSType eType;
991 int bDeprecated;
994 int bBboxValid;
996 double dfWestLongitudeDeg;
998 double dfSouthLatitudeDeg;
1000 double dfEastLongitudeDeg;
1002 double dfNorthLatitudeDeg;
1004 char *pszAreaName;
1007 char *pszProjectionMethod;
1008} OSRCRSInfo;
1009
1015 typedef struct OSRCRSListParameters OSRCRSListParameters;
1016
1017 OSRCRSInfo CPL_DLL **
1018 OSRGetCRSInfoListFromDatabase(const char *pszAuthName,
1019 const OSRCRSListParameters *params,
1020 int *pnOutResultCount);
1021
1022 void CPL_DLL OSRDestroyCRSInfoList(OSRCRSInfo **list);
1023
1024/* -------------------------------------------------------------------- */
1025/* OGRCoordinateTransform C API. */
1026/* -------------------------------------------------------------------- */
1027 OGRCoordinateTransformationH CPL_DLL CPL_STDCALL OCTNewCoordinateTransformation(
1028 OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS);
1029
1031 typedef struct OGRCoordinateTransformationOptions
1032 *OGRCoordinateTransformationOptionsH;
1033
1034 OGRCoordinateTransformationOptionsH CPL_DLL
1035 OCTNewCoordinateTransformationOptions(void);
1036
1037 int CPL_DLL OCTCoordinateTransformationOptionsSetOperation(
1038 OGRCoordinateTransformationOptionsH hOptions, const char *pszCO,
1039 int bReverseCO);
1040
1041 int CPL_DLL OCTCoordinateTransformationOptionsSetAreaOfInterest(
1042 OGRCoordinateTransformationOptionsH hOptions, double dfWestLongitudeDeg,
1043 double dfSouthLatitudeDeg, double dfEastLongitudeDeg,
1044 double dfNorthLatitudeDeg);
1045
1046 int CPL_DLL OCTCoordinateTransformationOptionsSetDesiredAccuracy(
1047 OGRCoordinateTransformationOptionsH hOptions, double dfAccuracy);
1048
1049 int CPL_DLL OCTCoordinateTransformationOptionsSetBallparkAllowed(
1050 OGRCoordinateTransformationOptionsH hOptions, int bAllowBallpark);
1051
1052 int CPL_DLL OCTCoordinateTransformationOptionsSetOnlyBest(
1053 OGRCoordinateTransformationOptionsH hOptions, bool bOnlyBest);
1054
1055 void CPL_DLL OCTDestroyCoordinateTransformationOptions(
1056 OGRCoordinateTransformationOptionsH);
1057
1058 OGRCoordinateTransformationH CPL_DLL OCTNewCoordinateTransformationEx(
1059 OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS,
1060 OGRCoordinateTransformationOptionsH hOptions);
1061
1062 OGRCoordinateTransformationH CPL_DLL
1063 OCTClone(OGRCoordinateTransformationH hTransform);
1064 OGRSpatialReferenceH CPL_DLL
1065 OCTGetSourceCS(OGRCoordinateTransformationH hTransform);
1066 OGRSpatialReferenceH CPL_DLL
1067 OCTGetTargetCS(OGRCoordinateTransformationH hTransform);
1068 OGRCoordinateTransformationH CPL_DLL
1069 OCTGetInverse(OGRCoordinateTransformationH hTransform);
1070
1071 void CPL_DLL CPL_STDCALL
1072 OCTDestroyCoordinateTransformation(OGRCoordinateTransformationH);
1073
1074 int CPL_DLL CPL_STDCALL OCTTransform(OGRCoordinateTransformationH hCT,
1075 int nCount, double *x, double *y,
1076 double *z);
1077
1078 int CPL_DLL CPL_STDCALL OCTTransformEx(OGRCoordinateTransformationH hCT,
1079 int nCount, double *x, double *y,
1080 double *z, int *pabSuccess);
1081
1082 int CPL_DLL OCTTransform4D(OGRCoordinateTransformationH hCT, int nCount,
1083 double *x, double *y, double *z, double *t,
1084 int *pabSuccess);
1085
1086 int CPL_DLL OCTTransform4DWithErrorCodes(OGRCoordinateTransformationH hCT,
1087 int nCount, double *x, double *y,
1088 double *z, double *t,
1089 int *panErrorCodes);
1090
1091 int CPL_DLL CPL_STDCALL OCTTransformBounds(OGRCoordinateTransformationH hCT,
1092 const double xmin, const double ymin,
1093 const double xmax, const double ymax,
1094 double *out_xmin, double *out_ymin,
1095 double *out_xmax, double *out_ymax,
1096 const int densify_pts);
1097
1098 CPL_C_END
1099
1100#endif /* ndef SWIG */
1101
1102#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:299
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition cpl_port.h:295
CSLConstList
char ** CSLConstList
Type of a constant null-terminated list of nul terminated strings.
Definition cpl_port.h:1183
OGRCoordinateTransformationH
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition ogr_api.h:83
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition ogr_api.h:81
ogr_core.h
Core portability services for cross-platform OGR code.
OGRErr
int OGRErr
Type for a OGR error.
Definition ogr_core.h:387
OSREPSGTreatsAsLatLong
int OSREPSGTreatsAsLatLong(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as havin...
Definition ogrspatialreference.cpp:11884
OSRSetTM
OGRErr OSRSetTM(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator.
Definition ogrspatialreference.cpp:6087
OSRImportFromEPSG
OGRErr OSRImportFromEPSG(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition ogrspatialreference.cpp:11774
OSRGetNormProjParm
double OSRGetNormProjParm(OGRSpatialReferenceH hSRS, const char *pszParamName, double dfDefault, OGRErr *)
This function is the same as OGRSpatialReference::
Definition ogrspatialreference.cpp:6001
OSRSetNZMG
OGRErr OSRSetNZMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
New Zealand Map Grid.
Definition ogrspatialreference.cpp:7403
OGRCoordinateTransformationH
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition ogr_srs_api.h:452
OSRSetEC
OGRErr OSRSetEC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equidistant Conic.
Definition ogrspatialreference.cpp:6417
OSRAxisEnumToName
const char * OSRAxisEnumToName(OGRAxisOrientation eOrientation)
Return the string representation for the OGRAxisOrientation enumeration.
Definition ogrspatialreference.cpp:10806
OSRSetQSC
OGRErr OSRSetQSC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong)
Quadrilateralized Spherical Cube.
Definition ogrspatialreference.cpp:7970
OSRGetPROJAuxDbPaths
char ** OSRGetPROJAuxDbPaths(void)
Get PROJ auxiliary database filenames.
Definition ogr_proj_p.cpp:476
OSRGetTOWGS84
OGRErr OSRGetTOWGS84(OGRSpatialReferenceH hSRS, double *, int)
Fetch TOWGS84 parameters, if available.
Definition ogrspatialreference.cpp:10246
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:3852
OSRFreeSRSArray
void OSRFreeSRSArray(OGRSpatialReferenceH *pahSRS)
Free return of OSRIdentifyMatches()
Definition ogrspatialreference.cpp:9882
OSRImportFromERM
OGRErr OSRImportFromERM(OGRSpatialReferenceH, const char *, const char *, const char *)
Create OGR WKT from ERMapper projection definitions.
Definition ogr_srs_erm.cpp:53
OSRSetTMG
OGRErr OSRSetTMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Tunesia Mining Grid
Definition ogrspatialreference.cpp:6237
OSRGetDataAxisToSRSAxisMapping
const int * OSRGetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int *pnCount)
Return the data axis to SRS axis mapping.
Definition ogrspatialreference.cpp:12240
OSRSetPROJAuxDbPaths
void OSRSetPROJAuxDbPaths(const char *const *papszPaths)
Set list of PROJ auxiliary database filenames.
Definition ogr_proj_p.cpp:457
OSRIsDynamic
int OSRIsDynamic(OGRSpatialReferenceH)
Check if a CRS is a dynamic CRS.
Definition ogrspatialreference.cpp:9254
OSRExportToPROJJSON
OGRErr OSRExportToPROJJSON(OGRSpatialReferenceH hSRS, char **ppszReturn, const char *const *papszOptions)
Convert this SRS into PROJJSON format.
Definition ogrspatialreference.cpp:2053
OSRImportFromMICoordSys
OGRErr OSRImportFromMICoordSys(OGRSpatialReferenceH, const char *)
Import Mapinfo style CoordSys definition.
Definition ogrspatialreference.cpp:10985
OCTGetInverse
OGRCoordinateTransformationH OCTGetInverse(OGRCoordinateTransformationH hTransform)
Inverse transformation object.
Definition ogrct.cpp:1240
OSRSetGEOS
OGRErr OSRSetGEOS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfSatelliteHeight, double dfFalseEasting, double dfFalseNorthing)
GEOS - Geostationary Satellite View.
Definition ogrspatialreference.cpp:6744
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:3807
OSRIsSame
int OSRIsSame(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do these two spatial references describe the same system ?
Definition ogrspatialreference.cpp:9667
OSRSetIGH
OGRErr OSRSetIGH(OGRSpatialReferenceH hSRS)
Interrupted Goode Homolosine.
Definition ogrspatialreference.cpp:6716
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:3470
OSRGetAxesCount
int OSRGetAxesCount(OGRSpatialReferenceH hSRS)
Return the number of axis of the coordinate system of the CRS.
Definition ogrspatialreference.cpp:10552
OSRImportFromXML
OGRErr OSRImportFromXML(OGRSpatialReferenceH, const char *)
Import coordinate system from XML format (GML only currently).
Definition ogr_srs_xml.cpp:1262
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Opaque type for a Spatial Reference object.
Definition ogr_srs_api.h:450
OSRSetWellKnownGeogCS
OGRErr OSRSetWellKnownGeogCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set a GeogCS based on well known name.
Definition ogrspatialreference.cpp:3634
OSRExportToPrettyWkt
OGRErr OSRExportToPrettyWkt(OGRSpatialReferenceH, char **, int)
Convert this SRS into a nicely formatted WKT 1 string for display to a person.
Definition ogrspatialreference.cpp:1483
OSRSetVertCS
OGRErr OSRSetVertCS(OGRSpatialReferenceH hSRS, const char *pszVertCSName, const char *pszVertDatumName, int nVertDatumType)
Setup the vertical coordinate system.
Definition ogrspatialreference.cpp:5430
OSRExportToMICoordSys
OGRErr OSRExportToMICoordSys(OGRSpatialReferenceH, char **)
Export coordinate system in Mapinfo style CoordSys format.
Definition ogrspatialreference.cpp:10929
OSRIsDerivedGeographic
int OSRIsDerivedGeographic(OGRSpatialReferenceH)
Check if the CRS is a derived geographic coordinate system.
Definition ogrspatialreference.cpp:9001
OSRSetPS
OGRErr OSRSetPS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Polar Stereographic.
Definition ogrspatialreference.cpp:7569
OCTDestroyCoordinateTransformationOptions
void OCTDestroyCoordinateTransformationOptions(OGRCoordinateTransformationOptionsH)
Destroy coordinate transformation options.
Definition ogrct.cpp:369
OSRSetTargetLinearUnits
OGRErr OSRSetTargetLinearUnits(OGRSpatialReferenceH, const char *, const char *, double)
Set the linear units for the target node.
Definition ogrspatialreference.cpp:2933
OSRSetBonne
OGRErr OSRSetBonne(OGRSpatialReferenceH hSRS, double dfStandardParallel, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Bonne.
Definition ogrspatialreference.cpp:6328
OSRIsVertical
int OSRIsVertical(OGRSpatialReferenceH)
Check if vertical coordinate system.
Definition ogrspatialreference.cpp:9146
OSRImportFromPCI
OGRErr OSRImportFromPCI(OGRSpatialReferenceH hSRS, const char *, const char *, double *)
Import coordinate system from PCI projection definition.
Definition ogr_srs_pci.cpp:142
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:10902
OSRSetIWMPolyconic
OGRErr OSRSetIWMPolyconic(OGRSpatialReferenceH hSRS, double dfLat1, double dfLat2, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
International Map of the World Polyconic.
Definition ogrspatialreference.cpp:7042
OCTNewCoordinateTransformationEx
OGRCoordinateTransformationH OCTNewCoordinateTransformationEx(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS, OGRCoordinateTransformationOptionsH hOptions)
Create transformation object.
Definition ogrct.cpp:1134
OSRImportFromWkt
OGRErr OSRImportFromWkt(OGRSpatialReferenceH, char **)
Import from WKT string.
Definition ogrspatialreference.cpp:2348
OCTDestroyCoordinateTransformation
void OCTDestroyCoordinateTransformation(OGRCoordinateTransformationH)
OGRCoordinateTransformation destructor.
Definition ogrct.cpp:889
OSRGetAxisMappingStrategy
OSRAxisMappingStrategy OSRGetAxisMappingStrategy(OGRSpatialReferenceH hSRS)
Return the data axis to CRS axis mapping strategy.
Definition ogrspatialreference.cpp:12164
OSRGetAngularUnits
double OSRGetAngularUnits(OGRSpatialReferenceH, char **)
Fetch angular geographic coordinate system units.
Definition ogrspatialreference.cpp:2682
OSRMorphFromESRI
OGRErr OSRMorphFromESRI(OGRSpatialReferenceH)
Convert in place from ESRI WKT format.
Definition ogrspatialreference.cpp:11449
OSRImportFromProj4
OGRErr OSRImportFromProj4(OGRSpatialReferenceH, const char *)
Import PROJ coordinate string.
Definition ogrspatialreference.cpp:11144
OSRIsSameEx
int OSRIsSameEx(OGRSpatialReferenceH, OGRSpatialReferenceH, const char *const *papszOptions)
Do these two spatial references describe the same system ?
Definition ogrspatialreference.cpp:9685
OSRGetSemiMinor
double OSRGetSemiMinor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi minor axis.
Definition ogrspatialreference.cpp:5205
OSRGetPrimeMeridian
double OSRGetPrimeMeridian(OGRSpatialReferenceH, char **)
Fetch prime meridian info.
Definition ogrspatialreference.cpp:3349
OSRCopyGeogCSFrom
OGRErr OSRCopyGeogCSFrom(OGRSpatialReferenceH hSRS, const OGRSpatialReferenceH hSrcSRS)
Copy GEOGCS from another OGRSpatialReference.
Definition ogrspatialreference.cpp:3750
OSRSetAttrValue
OGRErr OSRSetAttrValue(OGRSpatialReferenceH hSRS, const char *pszNodePath, const char *pszNewNodeValue)
Set attribute value in spatial reference.
Definition ogrspatialreference.cpp:2451
OSRSetSCH
OGRErr OSRSetSCH(OGRSpatialReferenceH hSRS, double dfPegLat, double dfPegLong, double dfPegHeading, double dfPegHgt)
Spherical, Cross-track, Height.
Definition ogrspatialreference.cpp:7997
OSRGetLinearUnits
double OSRGetLinearUnits(OGRSpatialReferenceH, char **)
Fetch linear projection units.
Definition ogrspatialreference.cpp:3008
OSRCleanup
void OSRCleanup(void)
Cleanup cached SRS related memory.
Definition ogrspatialreference.cpp:10473
OSRSetProjParm
OGRErr OSRSetProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter value.
Definition ogrspatialreference.cpp:5765
OCTTransformEx
int OCTTransformEx(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, int *pabSuccess)
Transform an array of points.
Definition ogrct.cpp:3749
OCTTransform
int OCTTransform(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z)
Transform an array of points.
Definition ogrct.cpp:3724
OSRSetFromUserInputEx
OGRErr OSRSetFromUserInputEx(OGRSpatialReferenceH hSRS, const char *, CSLConstList papszOptions)
Set spatial reference from various text formats.
Definition ogrspatialreference.cpp:4247
OSRSetCEA
OGRErr OSRSetCEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Cylindrical Equal Area.
Definition ogrspatialreference.cpp:6358
OSRSetPROJSearchPaths
void OSRSetPROJSearchPaths(const char *const *papszPaths)
Set the search path(s) for PROJ resource files.
Definition ogr_proj_p.cpp:410
OSRImportFromUSGS
OGRErr OSRImportFromUSGS(OGRSpatialReferenceH, long, long, double *, long)
Import coordinate system from USGS projection definition.
Definition ogr_srs_usgs.cpp:162
OSRDestroyCRSInfoList
void OSRDestroyCRSInfoList(OSRCRSInfo **list)
Destroy the result returned by OSRGetCRSInfoListFromDatabase().
Definition ogrspatialreference.cpp:12498
OSRSetProjection
OGRErr OSRSetProjection(OGRSpatialReferenceH, const char *)
Set a projection name.
Definition ogrspatialreference.cpp:5632
OSRSetStatePlane
OGRErr OSRSetStatePlane(OGRSpatialReferenceH hSRS, int nZone, int bNAD83)
Set State Plane projection definition.
Definition ogr_fromepsg.cpp:245
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:12391
OCTCoordinateTransformationOptionsSetBallparkAllowed
int OCTCoordinateTransformationOptionsSetBallparkAllowed(OGRCoordinateTransformationOptionsH hOptions, int bAllowBallpark)
Sets whether ballpark transformations are allowed.
Definition ogrct.cpp:604
OCTCoordinateTransformationOptionsSetOperation
int OCTCoordinateTransformationOptionsSetOperation(OGRCoordinateTransformationOptionsH hOptions, const char *pszCO, int bReverseCO)
Sets a coordinate operation.
Definition ogrct.cpp:517
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:3778
OSRSetACEA
OGRErr OSRSetACEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Albers Conic Equal Area.
Definition ogrspatialreference.cpp:6270
OSRExportToUSGS
OGRErr OSRExportToUSGS(OGRSpatialReferenceH, long *, long *, double **, long *)
Export coordinate system in USGS GCTP projection definition.
Definition ogr_srs_usgs.cpp:804
OSRCRSType
OSRCRSType
Type of Coordinate Reference System (CRS).
Definition ogr_srs_api.h:958
OSR_CRS_TYPE_COMPOUND
@ OSR_CRS_TYPE_COMPOUND
Compound CRS.
Definition ogr_srs_api.h:970
OSR_CRS_TYPE_GEOGRAPHIC_2D
@ OSR_CRS_TYPE_GEOGRAPHIC_2D
Geographic 2D CRS.
Definition ogr_srs_api.h:960
OSR_CRS_TYPE_PROJECTED
@ OSR_CRS_TYPE_PROJECTED
Projected CRS.
Definition ogr_srs_api.h:966
OSR_CRS_TYPE_GEOCENTRIC
@ OSR_CRS_TYPE_GEOCENTRIC
Geocentric CRS.
Definition ogr_srs_api.h:964
OSR_CRS_TYPE_OTHER
@ OSR_CRS_TYPE_OTHER
Other.
Definition ogr_srs_api.h:972
OSR_CRS_TYPE_GEOGRAPHIC_3D
@ OSR_CRS_TYPE_GEOGRAPHIC_3D
Geographic 3D CRS.
Definition ogr_srs_api.h:962
OSR_CRS_TYPE_VERTICAL
@ OSR_CRS_TYPE_VERTICAL
Vertical CRS.
Definition ogr_srs_api.h:968
OSRGetName
const char * OSRGetName(OGRSpatialReferenceH hSRS)
Return the CRS name.
Definition ogrspatialreference.cpp:1356
OGRCoordinateTransformationOptionsH
struct OGRCoordinateTransformationOptions * OGRCoordinateTransformationOptionsH
Coordinate transformation options.
Definition ogr_srs_api.h:1031
OSRIsProjected
int OSRIsProjected(OGRSpatialReferenceH)
Check if projected coordinate system.
Definition ogrspatialreference.cpp:8837
OSRSetLAEA
OGRErr OSRSetLAEA(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Azimuthal Equal-Area.
Definition ogrspatialreference.cpp:7139
OSRGetProjParm
double OSRGetProjParm(OGRSpatialReferenceH hSRS, const char *pszParamName, double dfDefault, OGRErr *)
Fetch a projection parameter value.
Definition ogrspatialreference.cpp:5935
OSRStripVertical
OGRErr OSRStripVertical(OGRSpatialReferenceH)
Convert a compound cs into a horizontal CS.
Definition ogrspatialreference.cpp:8618
OSRGetInvFlattening
double OSRGetInvFlattening(OGRSpatialReferenceH, OGRErr *)
Get spheroid inverse flattening.
Definition ogrspatialreference.cpp:5109
OSRSetEckertVI
OGRErr OSRSetEckertVI(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert VI.
Definition ogrspatialreference.cpp:6546
OSRSetProjCS
OGRErr OSRSetProjCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition ogrspatialreference.cpp:5574
OSRPromoteTo3D
OGRErr OSRPromoteTo3D(OGRSpatialReferenceH hSRS, const char *pszName)
"Promotes" a 2D CRS to a 3D CRS one.
Definition ogrspatialreference.cpp:12639
OSRSetLCCB
OGRErr OSRSetLCCB(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic (Belgium)
Definition ogrspatialreference.cpp:7231
OSRSetGaussSchreiberTMercator
OGRErr OSRSetGaussSchreiberTMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Gauss Schreiber Transverse Mercator.
Definition ogrspatialreference.cpp:6776
OSRNewSpatialReference
OGRSpatialReferenceH OSRNewSpatialReference(const char *)
Constructor.
Definition ogrspatialreference.cpp:819
OSRGetPROJSearchPaths
char ** OSRGetPROJSearchPaths(void)
Get the search path(s) for PROJ resource files.
Definition ogr_proj_p.cpp:428
OSRReference
int OSRReference(OGRSpatialReferenceH)
Increments the reference count by one.
Definition ogrspatialreference.cpp:1022
OSRSetMercator2SP
OGRErr OSRSetMercator2SP(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Mercator 2SP.
Definition ogrspatialreference.cpp:7345
OSRImportFromPanorama
OGRErr OSRImportFromPanorama(OGRSpatialReferenceH, long, long, long, double *)
Import coordinate system from "Panorama" GIS projection definition.
Definition ogr_srs_panorama.cpp:235
OSRSetOS
OGRErr OSRSetOS(OGRSpatialReferenceH hSRS, double dfOriginLat, double dfCMeridian, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Oblique Stereographic.
Definition ogrspatialreference.cpp:7433
OSRAutoIdentifyEPSG
OGRErr OSRAutoIdentifyEPSG(OGRSpatialReferenceH hSRS)
Set EPSG authority info if possible.
Definition ogr_fromepsg.cpp:426
OSRSetLCC1SP
OGRErr OSRSetLCC1SP(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic 1SP.
Definition ogrspatialreference.cpp:7200
OSRSetGeocCS
OGRErr OSRSetGeocCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition ogrspatialreference.cpp:5355
OCTCoordinateTransformationOptionsSetAreaOfInterest
int OCTCoordinateTransformationOptionsSetAreaOfInterest(OGRCoordinateTransformationOptionsH hOptions, double dfWestLongitudeDeg, double dfSouthLatitudeDeg, double dfEastLongitudeDeg, double dfNorthLatitudeDeg)
Sets an area of interest.
Definition ogrct.cpp:440
OSRIsCompound
int OSRIsCompound(OGRSpatialReferenceH)
Check if the coordinate system is compound.
Definition ogrspatialreference.cpp:8777
OSRSetAE
OGRErr OSRSetAE(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Azimuthal Equidistant.
Definition ogrspatialreference.cpp:6299
OSRIsSameGeogCS
int OSRIsSameGeogCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the GeogCS'es match?
Definition ogrspatialreference.cpp:9491
OSRIsGeocentric
int OSRIsGeocentric(OGRSpatialReferenceH)
Check if geocentric coordinate system.
Definition ogrspatialreference.cpp:8880
OSRGetCRSInfoListFromDatabase
OSRCRSInfo ** OSRGetCRSInfoListFromDatabase(const char *pszAuthName, const OSRCRSListParameters *params, int *pnOutResultCount)
Enumerate CRS objects from the database.
Definition ogrspatialreference.cpp:12422
OSRSetNormProjParm
OGRErr OSRSetNormProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter with a normalized value.
Definition ogrspatialreference.cpp:6059
OSRSetFromUserInput
OGRErr OSRSetFromUserInput(OGRSpatialReferenceH hSRS, const char *)
Set spatial reference from various text formats.
Definition ogrspatialreference.cpp:4227
OSRGetAttrValue
const char * OSRGetAttrValue(OGRSpatialReferenceH hSRS, const char *pszName, int iChild)
Fetch indicated attribute of named node.
Definition ogrspatialreference.cpp:1299
OCTGetSourceCS
OGRSpatialReferenceH OCTGetSourceCS(OGRCoordinateTransformationH hTransform)
Transformation's source coordinate system reference.
Definition ogrct.cpp:1188
OSRSetAxisMappingStrategy
void OSRSetAxisMappingStrategy(OGRSpatialReferenceH hSRS, OSRAxisMappingStrategy strategy)
Set the data axis to CRS axis mapping strategy.
Definition ogrspatialreference.cpp:12203
OSRHasPointMotionOperation
int OSRHasPointMotionOperation(OGRSpatialReferenceH)
Check if a CRS has at least an associated point motion operation.
Definition ogrspatialreference.cpp:9312
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:6864
OSRGetTargetLinearUnits
double OSRGetTargetLinearUnits(OGRSpatialReferenceH, const char *, char **)
Fetch linear projection units.
Definition ogrspatialreference.cpp:3235
OCTCoordinateTransformationOptionsSetDesiredAccuracy
int OCTCoordinateTransformationOptionsSetDesiredAccuracy(OGRCoordinateTransformationOptionsH hOptions, double dfAccuracy)
Sets the desired accuracy for coordinate operations.
Definition ogrct.cpp:563
OSRSetTMSO
OGRErr OSRSetTMSO(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator (South Oriented)
Definition ogrspatialreference.cpp:6176
OSRValidate
OGRErr OSRValidate(OGRSpatialReferenceH)
Validate SRS tokens.
Definition ogrspatialreference.cpp:2327
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:6922
OSRSetMC
OGRErr OSRSetMC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Miller Cylindrical.
Definition ogrspatialreference.cpp:7262
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:9858
OSRDestroySpatialReference
void OSRDestroySpatialReference(OGRSpatialReferenceH)
OGRSpatialReference destructor.
Definition ogrspatialreference.cpp:915
OSRSetEckert
OGRErr OSRSetEckert(OGRSpatialReferenceH hSRS, int nVariation, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert I-VI.
Definition ogrspatialreference.cpp:6489
OSRSetEckertIV
OGRErr OSRSetEckertIV(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert IV.
Definition ogrspatialreference.cpp:6518
OSRGetAxis
const char * OSRGetAxis(OGRSpatialReferenceH hSRS, const char *pszTargetKey, int iAxis, OGRAxisOrientation *peOrientation)
Fetch the orientation of one axis.
Definition ogrspatialreference.cpp:10785
OSRExportToWkt
OGRErr OSRExportToWkt(OGRSpatialReferenceH, char **)
Convert this SRS into WKT 1 format.
Definition ogrspatialreference.cpp:1891
OCTGetTargetCS
OGRSpatialReferenceH OCTGetTargetCS(OGRCoordinateTransformationH hTransform)
Transformation's target coordinate system reference.
Definition ogrct.cpp:1215
OSRGetSemiMajor
double OSRGetSemiMajor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi major axis.
Definition ogrspatialreference.cpp:5048
OSRSetTOWGS84
OGRErr OSRSetTOWGS84(OGRSpatialReferenceH hSRS, double, double, double, double, double, double, double)
Set the Bursa-Wolf conversion to WGS84.
Definition ogrspatialreference.cpp:10192
OSRSetPolyconic
OGRErr OSRSetPolyconic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Polyconic.
Definition ogrspatialreference.cpp:7496
OSRGetAuthorityCode
const char * OSRGetAuthorityCode(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority code for a node.
Definition ogrspatialreference.cpp:8356
OSRIsSameVertCS
int OSRIsSameVertCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the VertCS'es match?
Definition ogrspatialreference.cpp:9553
OSRExportToPCI
OGRErr OSRExportToPCI(OGRSpatialReferenceH, char **, char **, double **)
Export coordinate system in PCI projection definition.
Definition ogr_srs_pci.cpp:710
OSRSetLocalCS
OGRErr OSRSetLocalCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible LOCAL_CS name.
Definition ogrspatialreference.cpp:5259
OSRConvertToOtherProjection
OGRSpatialReferenceH OSRConvertToOtherProjection(OGRSpatialReferenceH hSRS, const char *pszTargetProjection, const char *const *papszOptions)
Convert to another equivalent projection.
Definition ogrspatialreference.cpp:9819
OSRDereference
int OSRDereference(OGRSpatialReferenceH)
Decrements the reference count by one.
Definition ogrspatialreference.cpp:1062
OSRSetEquirectangular2
OGRErr OSRSetEquirectangular2(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfPseudoStdParallel1, double dfFalseEasting, double dfFalseNorthing)
Equirectangular generalized form.
Definition ogrspatialreference.cpp:6634
OSRSetCS
OGRErr OSRSetCS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Cassini-Soldner.
Definition ogrspatialreference.cpp:6386
OSRSetGH
OGRErr OSRSetGH(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Goode Homolosine.
Definition ogrspatialreference.cpp:6690
OSRSetGnomonic
OGRErr OSRSetGnomonic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Gnomonic.
Definition ogrspatialreference.cpp:6806
OSRSetTMVariant
OGRErr OSRSetTMVariant(OGRSpatialReferenceH hSRS, const char *pszVariantName, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator variant.
Definition ogrspatialreference.cpp:6123
OSRCRSListParameters
struct OSRCRSListParameters OSRCRSListParameters
Structure to describe optional parameters to OSRGetCRSInfoListFromDatabase()
Definition ogr_srs_api.h:1015
OSRIsLocal
int OSRIsLocal(OGRSpatialReferenceH)
Check if local coordinate system.
Definition ogrspatialreference.cpp:9082
OSRSetVDG
OGRErr OSRSetVDG(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
VanDerGrinten.
Definition ogrspatialreference.cpp:7730
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:8025
OSREPSGTreatsAsNorthingEasting
int OSREPSGTreatsAsNorthingEasting(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this projected coordinate system should be treated as having...
Definition ogrspatialreference.cpp:11978
OSRSetGS
OGRErr OSRSetGS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Gall Stereograpic.
Definition ogrspatialreference.cpp:6663
OSRGetAuthorityName
const char * OSRGetAuthorityName(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority name for a node.
Definition ogrspatialreference.cpp:8490
OSRSetSOC
OGRErr OSRSetSOC(OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Swiss Oblique Cylindrical.
Definition ogrspatialreference.cpp:7702
OSRImportFromEPSGA
OGRErr OSRImportFromEPSGA(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition ogrspatialreference.cpp:11725
OSRSetAuthority
OGRErr OSRSetAuthority(OGRSpatialReferenceH hSRS, const char *pszTargetKey, const char *pszAuthority, int nCode)
Set the authority for a node.
Definition ogrspatialreference.cpp:8221
OSRSetCompoundCS
OGRErr OSRSetCompoundCS(OGRSpatialReferenceH hSRS, const char *pszName, OGRSpatialReferenceH hHorizSRS, OGRSpatialReferenceH hVertSRS)
Setup a compound coordinate system.
Definition ogrspatialreference.cpp:5506
OSRCalcSemiMinorFromInvFlattening
double OSRCalcSemiMinorFromInvFlattening(double dfSemiMajor, double dfInvFlattening)
Compute semi-minor axis from semi-major axis and inverse flattening.
Definition ogrspatialreference.cpp:11075
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:7080
OSRSetLinearUnits
OGRErr OSRSetLinearUnits(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition ogrspatialreference.cpp:2810
OSRCalcInvFlattening
double OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor)
Compute inverse flattening from semi-major and semi-minor axis.
Definition ogrspatialreference.cpp:11047
OSRImportFromDict
OGRErr OSRImportFromDict(OGRSpatialReferenceH, const char *, const char *)
Read SRS from WKT dictionary.
Definition ogr_srs_dict.cpp:173
OSRSetRobinson
OGRErr OSRSetRobinson(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Robinson.
Definition ogrspatialreference.cpp:7598
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:1743
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:6979
OSRImportFromESRI
OGRErr OSRImportFromESRI(OGRSpatialReferenceH, char **)
Import coordinate system from ESRI .prj format(s).
Definition ogr_srs_esri.cpp:118
OSRSetAngularUnits
OGRErr OSRSetAngularUnits(OGRSpatialReferenceH, const char *, double)
Set the angular units for the geographic coordinate system.
Definition ogrspatialreference.cpp:2550
OSRGetCoordinateEpoch
double OSRGetCoordinateEpoch(OGRSpatialReferenceH hSRS)
Get the coordinate epoch, as decimal year.
Definition ogrspatialreference.cpp:12919
OSRSetUTM
OGRErr OSRSetUTM(OGRSpatialReferenceH hSRS, int nZone, int bNorth)
Set UTM projection definition.
Definition ogrspatialreference.cpp:7784
OSRGetUTMZone
int OSRGetUTMZone(OGRSpatialReferenceH hSRS, int *pbNorth)
Get utm zone information.
Definition ogrspatialreference.cpp:7869
OSRSetOrthographic
OGRErr OSRSetOrthographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Orthographic.
Definition ogrspatialreference.cpp:7463
OSRDemoteTo2D
OGRErr OSRDemoteTo2D(OGRSpatialReferenceH hSRS, const char *pszName)
"Demote" a 3D CRS to a 2D CRS one.
Definition ogrspatialreference.cpp:12680
OSRExportToPanorama
OGRErr OSRExportToPanorama(OGRSpatialReferenceH, long *, long *, long *, long *, double *)
Export coordinate system in "Panorama" GIS projection definition.
Definition ogr_srs_panorama.cpp:813
OCTNewCoordinateTransformationOptions
OGRCoordinateTransformationOptionsH OCTNewCoordinateTransformationOptions(void)
Create coordinate transformation options.
Definition ogrct.cpp:356
OSRSetLCC
OGRErr OSRSetLCC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic.
Definition ogrspatialreference.cpp:7170
OSRGetPROJEnableNetwork
int OSRGetPROJEnableNetwork(void)
Get whether PROJ networking capabilities are enabled.
Definition ogr_proj_p.cpp:524
OCTNewCoordinateTransformation
OGRCoordinateTransformationH OCTNewCoordinateTransformation(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS)
Create transformation object.
Definition ogrct.cpp:1081
OSRExportToXML
OGRErr OSRExportToXML(OGRSpatialReferenceH, char **, const char *)
Export coordinate system in XML format.
Definition ogr_srs_xml.cpp:716
OSRImportFromOzi
OGRErr OSRImportFromOzi(OGRSpatialReferenceH, const char *const *)
Import coordinate system from OziExplorer projection definition.
Definition ogr_srs_ozi.cpp:66
OSRAxisMappingStrategy
OSRAxisMappingStrategy
Data axis to CRS axis mapping strategy.
Definition ogr_srs_api.h:668
OAMS_AUTHORITY_COMPLIANT
@ OAMS_AUTHORITY_COMPLIANT
Compliant with the order mandated by the CRS authority.
Definition ogr_srs_api.h:670
OAMS_TRADITIONAL_GIS_ORDER
@ OAMS_TRADITIONAL_GIS_ORDER
Traditional GIS order.
Definition ogr_srs_api.h:669
OAMS_CUSTOM
@ OAMS_CUSTOM
Custom.
Definition ogr_srs_api.h:672
OSRSetMercator
OGRErr OSRSetMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Mercator.
Definition ogrspatialreference.cpp:7301
OSRSetCoordinateEpoch
void OSRSetCoordinateEpoch(OGRSpatialReferenceH hSRS, double dfCoordinateEpoch)
Set the coordinate epoch, as decimal year.
Definition ogrspatialreference.cpp:12873
OSRIsDerivedProjected
int OSRIsDerivedProjected(OGRSpatialReferenceH)
Check if the CRS is a derived projected coordinate system.
Definition ogrspatialreference.cpp:9046
OSRRelease
void OSRRelease(OGRSpatialReferenceH)
Decrements the reference count by one, and destroy if zero.
Definition ogrspatialreference.cpp:1110
OSRAddGuessedTOWGS84
OGRErr OSRAddGuessedTOWGS84(OGRSpatialReferenceH hSRS)
Try to add a a 3-parameter or 7-parameter Helmert transformation to WGS84.
Definition ogrspatialreference.cpp:11706
OCTClone
OGRCoordinateTransformationH OCTClone(OGRCoordinateTransformationH hTransform)
Clone transformation object.
Definition ogrct.cpp:1161
OSRSetSinusoidal
OGRErr OSRSetSinusoidal(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Sinusoidal.
Definition ogrspatialreference.cpp:7626
OSRSetPROJEnableNetwork
void OSRSetPROJEnableNetwork(int enabled)
Enable or disable PROJ networking capabilities.
Definition ogr_proj_p.cpp:495
OSRIsGeographic
int OSRIsGeographic(OGRSpatialReferenceH)
Check if geographic coordinate system.
Definition ogrspatialreference.cpp:8958
OGRAxisOrientation
OGRAxisOrientation
Axis orientations (corresponds to CS_AxisOrientationEnum).
Definition ogr_srs_api.h:51
OAO_Up
@ OAO_Up
Up (to space)
Definition ogr_srs_api.h:57
OAO_West
@ OAO_West
West.
Definition ogr_srs_api.h:56
OAO_South
@ OAO_South
South.
Definition ogr_srs_api.h:54
OAO_East
@ OAO_East
East.
Definition ogr_srs_api.h:55
OAO_Down
@ OAO_Down
Down (to Earth center)
Definition ogr_srs_api.h:58
OAO_Other
@ OAO_Other
Other.
Definition ogr_srs_api.h:52
OAO_North
@ OAO_North
North.
Definition ogr_srs_api.h:53
OSRExportToERM
OGRErr OSRExportToERM(OGRSpatialReferenceH, char *, char *, char *)
Convert coordinate system to ERMapper format.
Definition ogr_srs_erm.cpp:161
OSRExportToProj4
OGRErr OSRExportToProj4(OGRSpatialReferenceH, char **)
Export coordinate system in PROJ.4 legacy format.
Definition ogrspatialreference.cpp:11230
OSRExportToWktEx
OGRErr OSRExportToWktEx(OGRSpatialReferenceH, char **ppszResult, const char *const *papszOptions)
Convert this SRS into WKT format.
Definition ogrspatialreference.cpp:1914
OSRSetDataAxisToSRSAxisMapping
OGRErr OSRSetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int nMappingSize, const int *panMapping)
Set a custom data axis to CRS axis mapping.
Definition ogrspatialreference.cpp:12314
OSRImportFromCF1
OGRErr OSRImportFromCF1(OGRSpatialReferenceH, CSLConstList papszKeyValues, const char *pszUnits)
Import a CRS from netCDF CF-1 definitions.
Definition ogr_srs_cf1.cpp:45
OSRSetEquirectangular
OGRErr OSRSetEquirectangular(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equirectangular.
Definition ogrspatialreference.cpp:6588
OSRMorphToESRI
OGRErr OSRMorphToESRI(OGRSpatialReferenceH)
Convert in place to ESRI WKT format.
Definition ogrspatialreference.cpp:11399
OSRSetStereographic
OGRErr OSRSetStereographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Stereographic.
Definition ogrspatialreference.cpp:7655
OSRCloneGeogCS
OGRSpatialReferenceH OSRCloneGeogCS(OGRSpatialReferenceH)
Make a duplicate of the GEOGCS node of this OGRSpatialReference object.
Definition ogrspatialreference.cpp:9407
OSRClone
OGRSpatialReferenceH OSRClone(OGRSpatialReferenceH)
Make a duplicate of this OGRSpatialReference.
Definition ogrspatialreference.cpp:1403
OSRSetWagner
OGRErr OSRSetWagner(OGRSpatialReferenceH hSRS, int nVariation, double dfCenterLat, double dfFalseEasting, double dfFalseNorthing)
Wagner I – VII.
Definition ogrspatialreference.cpp:7943
OSRSetLinearUnitsAndUpdateParameters
OGRErr OSRSetLinearUnitsAndUpdateParameters(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition ogrspatialreference.cpp:2758
OSRSetStatePlaneWithUnits
OGRErr OSRSetStatePlaneWithUnits(OGRSpatialReferenceH hSRS, int nZone, int bNAD83, const char *pszOverrideUnitName, double dfOverrideUnit)
Set State Plane projection definition.
Definition ogr_fromepsg.cpp:264
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:6207
OSRImportFromUrl
OGRErr OSRImportFromUrl(OGRSpatialReferenceH, const char *)
Set spatial reference from a URL.
Definition ogrspatialreference.cpp:4377
OSRGetPROJVersion
void OSRGetPROJVersion(int *pnMajor, int *pnMinor, int *pnPatch)
Get the PROJ version.
Definition ogr_proj_p.cpp:552
OSRSetMollweide
OGRErr OSRSetMollweide(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Mollweide.
Definition ogrspatialreference.cpp:7374
OCTCoordinateTransformationOptionsSetOnlyBest
int OCTCoordinateTransformationOptionsSetOnlyBest(OGRCoordinateTransformationOptionsH hOptions, bool bOnlyBest)
Sets whether only the "best" operation(s) should be used.
Definition ogrct.cpp:658
OGRCoordinateTransformationOptions
Context for coordinate transformation.
Definition ogr_spatialref.h:987
OSRCRSInfo
Structure given overall description of a CRS.
Definition ogr_srs_api.h:981
OSRCRSInfo::dfEastLongitudeDeg
double dfEastLongitudeDeg
Eastern-most longitude of the area of use, in degrees.
Definition ogr_srs_api.h:1000
OSRCRSInfo::dfNorthLatitudeDeg
double dfNorthLatitudeDeg
Northern-most latitude of the area of use, in degrees.
Definition ogr_srs_api.h:1002
OSRCRSInfo::bDeprecated
int bDeprecated
Whether the object is deprecated.
Definition ogr_srs_api.h:991
OSRCRSInfo::dfWestLongitudeDeg
double dfWestLongitudeDeg
Western-most longitude of the area of use, in degrees.
Definition ogr_srs_api.h:996
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:994
OSRCRSInfo::pszName
char * pszName
Object name.
Definition ogr_srs_api.h:987
OSRCRSInfo::pszProjectionMethod
char * pszProjectionMethod
Name of the projection method for a projected CRS.
Definition ogr_srs_api.h:1007
OSRCRSInfo::dfSouthLatitudeDeg
double dfSouthLatitudeDeg
Southern-most latitude of the area of use, in degrees.
Definition ogr_srs_api.h:998
OSRCRSInfo::pszCode
char * pszCode
Object code.
Definition ogr_srs_api.h:985
OSRCRSInfo::pszAreaName
char * pszAreaName
Name of the area of use.
Definition ogr_srs_api.h:1004
OSRCRSInfo::pszAuthName
char * pszAuthName
Authority name.
Definition ogr_srs_api.h:983
OSRCRSInfo::eType
OSRCRSType eType
Object type.
Definition ogr_srs_api.h:989