GDAL
ogr_srs_api.h
Go to the documentation of this file.
1 /******************************************************************************
2  * $Id: ogr_srs_api.h 9722d88648b7695fefda75ef93388bca2e7556f1 2021-03-24 00:21:44 +0300 drons $
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 #ifndef SWIG
35 #include "ogr_core.h"
36 
38 
48 typedef enum {
54  OAO_Up=5,
55  OAO_Down=6
57 
58 const char CPL_DLL *OSRAxisEnumToName( OGRAxisOrientation eOrientation );
59 
60 #endif // ndef SWIG
61 
62 /* ==================================================================== */
63 /* Some standard WKT geographic coordinate systems. */
64 /* ==================================================================== */
65 
66 #ifdef USE_DEPRECATED_SRS_WKT_WGS84
67 #define SRS_WKT_WGS84 "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]]"
68 #endif
69 
71 #define SRS_WKT_WGS84_LAT_LONG "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Latitude\",NORTH],AXIS[\"Longitude\",EAST],AUTHORITY[\"EPSG\",\"4326\"]]"
72 
73 /* ==================================================================== */
74 /* Some "standard" strings. */
75 /* ==================================================================== */
76 
78 #define SRS_PT_ALBERS_CONIC_EQUAL_AREA \
79  "Albers_Conic_Equal_Area"
81 #define SRS_PT_AZIMUTHAL_EQUIDISTANT "Azimuthal_Equidistant"
83 #define SRS_PT_CASSINI_SOLDNER "Cassini_Soldner"
85 #define SRS_PT_CYLINDRICAL_EQUAL_AREA "Cylindrical_Equal_Area"
87 #define SRS_PT_BONNE "Bonne"
89 #define SRS_PT_ECKERT_I "Eckert_I"
91 #define SRS_PT_ECKERT_II "Eckert_II"
93 #define SRS_PT_ECKERT_III "Eckert_III"
95 #define SRS_PT_ECKERT_IV "Eckert_IV"
97 #define SRS_PT_ECKERT_V "Eckert_V"
99 #define SRS_PT_ECKERT_VI "Eckert_VI"
101 #define SRS_PT_EQUIDISTANT_CONIC \
102  "Equidistant_Conic"
104 #define SRS_PT_EQUIRECTANGULAR "Equirectangular"
106 #define SRS_PT_GALL_STEREOGRAPHIC \
107  "Gall_Stereographic"
109 #define SRS_PT_GAUSSSCHREIBERTMERCATOR \
110  "Gauss_Schreiber_Transverse_Mercator"
112 #define SRS_PT_GEOSTATIONARY_SATELLITE \
113  "Geostationary_Satellite"
115 #define SRS_PT_GOODE_HOMOLOSINE "Goode_Homolosine"
117 #define SRS_PT_IGH "Interrupted_Goode_Homolosine"
119 #define SRS_PT_GNOMONIC "Gnomonic"
121 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER \
122  "Hotine_Oblique_Mercator_Azimuth_Center"
124 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR \
125  "Hotine_Oblique_Mercator"
127 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN \
128  "Hotine_Oblique_Mercator_Two_Point_Natural_Origin"
130 #define SRS_PT_LABORDE_OBLIQUE_MERCATOR \
131  "Laborde_Oblique_Mercator"
133 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP \
134  "Lambert_Conformal_Conic_1SP"
136 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP \
137  "Lambert_Conformal_Conic_2SP"
139 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM \
140  "Lambert_Conformal_Conic_2SP_Belgium"
142 #define SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA \
143  "Lambert_Azimuthal_Equal_Area"
145 #define SRS_PT_MERCATOR_1SP "Mercator_1SP"
147 #define SRS_PT_MERCATOR_2SP "Mercator_2SP"
149 #define SRS_PT_MERCATOR_AUXILIARY_SPHERE \
150  "Mercator_Auxiliary_Sphere"
152 #define SRS_PT_MILLER_CYLINDRICAL "Miller_Cylindrical"
154 #define SRS_PT_MOLLWEIDE "Mollweide"
156 #define SRS_PT_NEW_ZEALAND_MAP_GRID \
157  "New_Zealand_Map_Grid"
159 #define SRS_PT_OBLIQUE_STEREOGRAPHIC \
160  "Oblique_Stereographic"
162 #define SRS_PT_ORTHOGRAPHIC "Orthographic"
164 #define SRS_PT_POLAR_STEREOGRAPHIC \
165  "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 \
176  "Swiss_Oblique_Cylindrical"
178 #define SRS_PT_TRANSVERSE_MERCATOR \
179  "Transverse_Mercator"
181 #define SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED \
182  "Transverse_Mercator_South_Orientated"
183 
184 /* special mapinfo variants on Transverse Mercator */
186 #define SRS_PT_TRANSVERSE_MERCATOR_MI_21 \
187  "Transverse_Mercator_MapInfo_21"
189 #define SRS_PT_TRANSVERSE_MERCATOR_MI_22 \
190  "Transverse_Mercator_MapInfo_22"
192 #define SRS_PT_TRANSVERSE_MERCATOR_MI_23 \
193  "Transverse_Mercator_MapInfo_23"
195 #define SRS_PT_TRANSVERSE_MERCATOR_MI_24 \
196  "Transverse_Mercator_MapInfo_24"
198 #define SRS_PT_TRANSVERSE_MERCATOR_MI_25 \
199  "Transverse_Mercator_MapInfo_25"
200 
202 #define SRS_PT_TUNISIA_MINING_GRID \
203  "Tunisia_Mining_Grid"
205 #define SRS_PT_TWO_POINT_EQUIDISTANT \
206  "Two_Point_Equidistant"
208 #define SRS_PT_VANDERGRINTEN "VanDerGrinten"
210 #define SRS_PT_KROVAK "Krovak"
212 #define SRS_PT_IMW_POLYCONIC "International_Map_of_the_World_Polyconic"
214 #define SRS_PT_WAGNER_I "Wagner_I"
216 #define SRS_PT_WAGNER_II "Wagner_II"
218 #define SRS_PT_WAGNER_III "Wagner_III"
220 #define SRS_PT_WAGNER_IV "Wagner_IV"
222 #define SRS_PT_WAGNER_V "Wagner_V"
224 #define SRS_PT_WAGNER_VI "Wagner_VI"
226 #define SRS_PT_WAGNER_VII "Wagner_VII"
228 #define SRS_PT_QSC "Quadrilateralized_Spherical_Cube"
230 #define SRS_PT_AITOFF "Aitoff"
232 #define SRS_PT_WINKEL_I "Winkel_I"
234 #define SRS_PT_WINKEL_II "Winkel_II"
236 #define SRS_PT_WINKEL_TRIPEL "Winkel_Tripel"
238 #define SRS_PT_CRASTER_PARABOLIC "Craster_Parabolic"
240 #define SRS_PT_LOXIMUTHAL "Loximuthal"
242 #define SRS_PT_QUARTIC_AUTHALIC "Quartic_Authalic"
244 #define SRS_PT_SCH "Spherical_Cross_Track_Height"
245 
247 #define SRS_PP_CENTRAL_MERIDIAN "central_meridian"
249 #define SRS_PP_SCALE_FACTOR "scale_factor"
251 #define SRS_PP_STANDARD_PARALLEL_1 "standard_parallel_1"
253 #define SRS_PP_STANDARD_PARALLEL_2 "standard_parallel_2"
255 #define SRS_PP_PSEUDO_STD_PARALLEL_1 "pseudo_standard_parallel_1"
257 #define SRS_PP_LONGITUDE_OF_CENTER "longitude_of_center"
259 #define SRS_PP_LATITUDE_OF_CENTER "latitude_of_center"
261 #define SRS_PP_LONGITUDE_OF_ORIGIN "longitude_of_origin"
263 #define SRS_PP_LATITUDE_OF_ORIGIN "latitude_of_origin"
265 #define SRS_PP_FALSE_EASTING "false_easting"
267 #define SRS_PP_FALSE_NORTHING "false_northing"
269 #define SRS_PP_AZIMUTH "azimuth"
271 #define SRS_PP_LONGITUDE_OF_POINT_1 "longitude_of_point_1"
273 #define SRS_PP_LATITUDE_OF_POINT_1 "latitude_of_point_1"
275 #define SRS_PP_LONGITUDE_OF_POINT_2 "longitude_of_point_2"
277 #define SRS_PP_LATITUDE_OF_POINT_2 "latitude_of_point_2"
279 #define SRS_PP_LONGITUDE_OF_POINT_3 "longitude_of_point_3"
281 #define SRS_PP_LATITUDE_OF_POINT_3 "latitude_of_point_3"
283 #define SRS_PP_RECTIFIED_GRID_ANGLE "rectified_grid_angle"
285 #define SRS_PP_LANDSAT_NUMBER "landsat_number"
287 #define SRS_PP_PATH_NUMBER "path_number"
289 #define SRS_PP_PERSPECTIVE_POINT_HEIGHT "perspective_point_height"
291 #define SRS_PP_SATELLITE_HEIGHT "satellite_height"
293 #define SRS_PP_FIPSZONE "fipszone"
295 #define SRS_PP_ZONE "zone"
297 #define SRS_PP_LATITUDE_OF_1ST_POINT "Latitude_Of_1st_Point"
299 #define SRS_PP_LONGITUDE_OF_1ST_POINT "Longitude_Of_1st_Point"
301 #define SRS_PP_LATITUDE_OF_2ND_POINT "Latitude_Of_2nd_Point"
303 #define SRS_PP_LONGITUDE_OF_2ND_POINT "Longitude_Of_2nd_Point"
305 #define SRS_PP_PEG_POINT_LATITUDE "peg_point_latitude"
307 #define SRS_PP_PEG_POINT_LONGITUDE "peg_point_longitude"
309 #define SRS_PP_PEG_POINT_HEADING "peg_point_heading"
311 #define SRS_PP_PEG_POINT_HEIGHT "peg_point_height"
312 
314 #define SRS_UL_METER "Meter"
316 #define SRS_UL_FOOT "Foot (International)" /* or just "FOOT"? */
318 #define SRS_UL_FOOT_CONV "0.3048"
320 #define SRS_UL_US_FOOT "Foot_US" /* or "US survey foot" from EPSG */
322 #define SRS_UL_US_FOOT_CONV "0.3048006096012192"
324 #define SRS_UL_NAUTICAL_MILE "Nautical Mile"
326 #define SRS_UL_NAUTICAL_MILE_CONV "1852.0"
328 #define SRS_UL_LINK "Link" /* Based on US Foot */
330 #define SRS_UL_LINK_CONV "0.20116684023368047"
332 #define SRS_UL_CHAIN "Chain" /* based on US Foot */
334 #define SRS_UL_CHAIN_CONV "20.116684023368047"
336 #define SRS_UL_ROD "Rod" /* based on US Foot */
338 #define SRS_UL_ROD_CONV "5.02921005842012"
340 #define SRS_UL_LINK_Clarke "Link_Clarke"
342 #define SRS_UL_LINK_Clarke_CONV "0.2011661949"
343 
345 #define SRS_UL_KILOMETER "Kilometer"
347 #define SRS_UL_KILOMETER_CONV "1000."
349 #define SRS_UL_DECIMETER "Decimeter"
351 #define SRS_UL_DECIMETER_CONV "0.1"
353 #define SRS_UL_CENTIMETER "Centimeter"
355 #define SRS_UL_CENTIMETER_CONV "0.01"
357 #define SRS_UL_MILLIMETER "Millimeter"
359 #define SRS_UL_MILLIMETER_CONV "0.001"
361 #define SRS_UL_INTL_NAUT_MILE "Nautical_Mile_International"
363 #define SRS_UL_INTL_NAUT_MILE_CONV "1852.0"
365 #define SRS_UL_INTL_INCH "Inch_International"
367 #define SRS_UL_INTL_INCH_CONV "0.0254"
369 #define SRS_UL_INTL_FOOT "Foot_International"
371 #define SRS_UL_INTL_FOOT_CONV "0.3048"
373 #define SRS_UL_INTL_YARD "Yard_International"
375 #define SRS_UL_INTL_YARD_CONV "0.9144"
377 #define SRS_UL_INTL_STAT_MILE "Statute_Mile_International"
379 #define SRS_UL_INTL_STAT_MILE_CONV "1609.344"
381 #define SRS_UL_INTL_FATHOM "Fathom_International"
383 #define SRS_UL_INTL_FATHOM_CONV "1.8288"
385 #define SRS_UL_INTL_CHAIN "Chain_International"
387 #define SRS_UL_INTL_CHAIN_CONV "20.1168"
389 #define SRS_UL_INTL_LINK "Link_International"
391 #define SRS_UL_INTL_LINK_CONV "0.201168"
393 #define SRS_UL_US_INCH "Inch_US_Surveyor"
395 #define SRS_UL_US_INCH_CONV "0.025400050800101603"
397 #define SRS_UL_US_YARD "Yard_US_Surveyor"
399 #define SRS_UL_US_YARD_CONV "0.914401828803658"
401 #define SRS_UL_US_CHAIN "Chain_US_Surveyor"
403 #define SRS_UL_US_CHAIN_CONV "20.11684023368047"
405 #define SRS_UL_US_STAT_MILE "Statute_Mile_US_Surveyor"
407 #define SRS_UL_US_STAT_MILE_CONV "1609.347218694437"
409 #define SRS_UL_INDIAN_YARD "Yard_Indian"
411 #define SRS_UL_INDIAN_YARD_CONV "0.91439523"
413 #define SRS_UL_INDIAN_FOOT "Foot_Indian"
415 #define SRS_UL_INDIAN_FOOT_CONV "0.30479841"
417 #define SRS_UL_INDIAN_CHAIN "Chain_Indian"
419 #define SRS_UL_INDIAN_CHAIN_CONV "20.11669506"
420 
422 #define SRS_UA_DEGREE "degree"
424 #define SRS_UA_DEGREE_CONV "0.0174532925199433"
426 #define SRS_UA_RADIAN "radian"
427 
429 #define SRS_PM_GREENWICH "Greenwich"
430 
432 #define SRS_DN_NAD27 "North_American_Datum_1927"
434 #define SRS_DN_NAD83 "North_American_Datum_1983"
436 #define SRS_DN_WGS72 "WGS_1972"
438 #define SRS_DN_WGS84 "WGS_1984"
439 
441 #define SRS_WGS84_SEMIMAJOR 6378137.0
443 #define SRS_WGS84_INVFLATTENING 298.257223563
444 
445 #ifndef SWIG
446 /* -------------------------------------------------------------------- */
447 /* C Wrappers for C++ objects and methods. */
448 /* -------------------------------------------------------------------- */
449 #ifndef DEFINED_OGRSpatialReferenceH
451 #define DEFINED_OGRSpatialReferenceH
454 #ifdef DEBUG
455 typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
456 typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
457 #else
459 typedef void *OGRSpatialReferenceH;
462 #endif
463 
464 #endif
465 
466 void CPL_DLL OSRSetPROJSearchPaths( const char* const * papszPaths );
467 char CPL_DLL **OSRGetPROJSearchPaths( void );
468 void CPL_DLL OSRSetPROJAuxDbPaths( const char* const * papszPaths );
469 char CPL_DLL **OSRGetPROJAuxDbPaths( void );
470 void CPL_DLL OSRGetPROJVersion( int* pnMajor, int* pnMinor, int* pnPatch );
471 
472 OGRSpatialReferenceH CPL_DLL CPL_STDCALL
473  OSRNewSpatialReference( const char * /* = NULL */);
475 OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRClone( OGRSpatialReferenceH );
476 void CPL_DLL CPL_STDCALL OSRDestroySpatialReference( OGRSpatialReferenceH );
477 
478 int CPL_DLL OSRReference( OGRSpatialReferenceH );
479 int CPL_DLL OSRDereference( OGRSpatialReferenceH );
480 void CPL_DLL OSRRelease( OGRSpatialReferenceH );
481 
483 
484 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSG( OGRSpatialReferenceH, int );
485 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSGA( OGRSpatialReferenceH, int );
486 OGRErr CPL_DLL OSRImportFromWkt( OGRSpatialReferenceH, char ** );
487 OGRErr CPL_DLL OSRImportFromProj4( OGRSpatialReferenceH, const char *);
489 OGRErr CPL_DLL OSRImportFromPCI( OGRSpatialReferenceH hSRS, const char *,
490  const char *, double * );
492  long, long, double *, long);
493 OGRErr CPL_DLL OSRImportFromXML( OGRSpatialReferenceH, const char * );
494 OGRErr CPL_DLL OSRImportFromDict( OGRSpatialReferenceH, const char *,
495  const char * );
496 OGRErr CPL_DLL OSRImportFromPanorama( OGRSpatialReferenceH, long, long, long,
497  double * );
498 OGRErr CPL_DLL OSRImportFromOzi( OGRSpatialReferenceH , const char * const *);
499 OGRErr CPL_DLL OSRImportFromMICoordSys( OGRSpatialReferenceH, const char *);
501  const char *, const char *, const char * );
502 OGRErr CPL_DLL OSRImportFromUrl( OGRSpatialReferenceH, const char * );
503 
504 OGRErr CPL_DLL CPL_STDCALL OSRExportToWkt( OGRSpatialReferenceH, char ** );
505 OGRErr CPL_DLL OSRExportToWktEx( OGRSpatialReferenceH, char ** ppszResult,
506  const char* const* papszOptions );
507 OGRErr CPL_DLL CPL_STDCALL OSRExportToPrettyWkt( OGRSpatialReferenceH, char **, int);
509  char ** ppszReturn,
510  const char* const* papszOptions );
511 OGRErr CPL_DLL CPL_STDCALL OSRExportToProj4( OGRSpatialReferenceH, char **);
512 OGRErr CPL_DLL OSRExportToPCI( OGRSpatialReferenceH, char **, char **,
513  double ** );
514 OGRErr CPL_DLL OSRExportToUSGS( OGRSpatialReferenceH, long *, long *,
515  double **, long * );
516 OGRErr CPL_DLL OSRExportToXML( OGRSpatialReferenceH, char **, const char * );
517 OGRErr CPL_DLL OSRExportToPanorama( OGRSpatialReferenceH, long *, long *,
518  long *, long *, double * );
520 OGRErr CPL_DLL OSRExportToERM( OGRSpatialReferenceH, char *, char *, char * );
521 
524 
527  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, int iChild /* = 0 */ );
537 
538 OGRErr CPL_DLL OSRSetAngularUnits( OGRSpatialReferenceH, const char *, double );
539 double CPL_DLL OSRGetAngularUnits( OGRSpatialReferenceH, char ** );
540 OGRErr CPL_DLL OSRSetLinearUnits( OGRSpatialReferenceH, const char *, double );
541 OGRErr CPL_DLL OSRSetTargetLinearUnits( OGRSpatialReferenceH, const char *, const char *, double );
543  OGRSpatialReferenceH, const char *, double );
544 double CPL_DLL OSRGetLinearUnits( OGRSpatialReferenceH, char ** );
545 double CPL_DLL OSRGetTargetLinearUnits( OGRSpatialReferenceH, const char *, char ** );
546 
547 double CPL_DLL OSRGetPrimeMeridian( OGRSpatialReferenceH, char ** );
548 
551 int CPL_DLL OSRIsLocal( OGRSpatialReferenceH );
552 int CPL_DLL OSRIsProjected( OGRSpatialReferenceH );
553 int CPL_DLL OSRIsCompound( OGRSpatialReferenceH );
555 int CPL_DLL OSRIsVertical( OGRSpatialReferenceH );
560  const char* const *papszOptions );
561 
562 OGRErr CPL_DLL OSRSetLocalCS( OGRSpatialReferenceH hSRS, const char *pszName );
563 OGRErr CPL_DLL OSRSetProjCS( OGRSpatialReferenceH hSRS, const char * pszName );
564 OGRErr CPL_DLL OSRSetGeocCS( OGRSpatialReferenceH hSRS, const char * pszName );
566  const char * pszName );
567 OGRErr CPL_DLL CPL_STDCALL OSRSetFromUserInput( OGRSpatialReferenceH hSRS,
568  const char * );
570  const OGRSpatialReferenceH hSrcSRS );
572  double, double, double,
573  double, double, double, double );
574 OGRErr CPL_DLL OSRGetTOWGS84( OGRSpatialReferenceH hSRS, double *, int );
576 
578  const char *pszName,
579  OGRSpatialReferenceH hHorizSRS,
580  OGRSpatialReferenceH hVertSRS );
581 OGRErr CPL_DLL OSRPromoteTo3D( OGRSpatialReferenceH hSRS, const char* pszName );
582 OGRErr CPL_DLL OSRDemoteTo2D( OGRSpatialReferenceH hSRS, const char* pszName );
583 
585  const char * pszGeogName,
586  const char * pszDatumName,
587  const char * pszEllipsoidName,
588  double dfSemiMajor, double dfInvFlattening,
589  const char * pszPMName /* = NULL */,
590  double dfPMOffset /* = 0.0 */,
591  const char * pszUnits /* = NULL */,
592  double dfConvertToRadians /* = 0.0 */ );
593 
595  const char * pszVertCSName,
596  const char * pszVertDatumName,
597  int nVertDatumType );
598 
599 double CPL_DLL OSRGetSemiMajor( OGRSpatialReferenceH, OGRErr * /* = NULL */ );
600 double CPL_DLL OSRGetSemiMinor( OGRSpatialReferenceH, OGRErr * /* = NULL */ );
601 double CPL_DLL OSRGetInvFlattening( OGRSpatialReferenceH, OGRErr * /*=NULL*/);
602 
604  const char * pszTargetKey,
605  const char * pszAuthority,
606  int nCode );
607 const char CPL_DLL *OSRGetAuthorityCode( OGRSpatialReferenceH hSRS,
608  const char * pszTargetKey );
609 const char CPL_DLL *OSRGetAuthorityName( OGRSpatialReferenceH hSRS,
610  const char * pszTargetKey );
611 
612 int CPL_DLL OSRGetAreaOfUse( OGRSpatialReferenceH hSRS,
613  double* pdfWestLongitudeDeg,
614  double* pdfSouthLatitudeDeg,
615  double* pdfEastLongitudeDeg,
616  double* pdfNorthLatitudeDeg,
617  const char **ppszAreaName );
618 
619 OGRErr CPL_DLL OSRSetProjection( OGRSpatialReferenceH, const char * );
620 OGRErr CPL_DLL OSRSetProjParm( OGRSpatialReferenceH, const char *, double );
621 double CPL_DLL OSRGetProjParm( OGRSpatialReferenceH hSRS,
622  const char * pszParamName,
623  double dfDefault /* = 0.0 */,
624  OGRErr * /* = NULL */ );
625 OGRErr CPL_DLL OSRSetNormProjParm( OGRSpatialReferenceH, const char *, double);
626 double CPL_DLL OSRGetNormProjParm( OGRSpatialReferenceH hSRS,
627  const char * pszParamName,
628  double dfDefault /* = 0.0 */,
629  OGRErr * /* = NULL */ );
630 
631 OGRErr CPL_DLL OSRSetUTM( OGRSpatialReferenceH hSRS, int nZone, int bNorth );
632 int CPL_DLL OSRGetUTMZone( OGRSpatialReferenceH hSRS, int *pbNorth );
634  int nZone, int bNAD83 );
636  int nZone, int bNAD83,
637  const char *pszOverrideUnitName,
638  double dfOverrideUnit );
640 
642  char** papszOptions,
643  int* pnEntries,
644  int** ppanMatchConfidence );
645 void CPL_DLL OSRFreeSRSArray(OGRSpatialReferenceH* pahSRS);
646 
647 int CPL_DLL OSREPSGTreatsAsLatLong( OGRSpatialReferenceH hSRS );
649 const char CPL_DLL *OSRGetAxis( OGRSpatialReferenceH hSRS,
650  const char *pszTargetKey, int iAxis,
651  OGRAxisOrientation *peOrientation );
652 int CPL_DLL OSRGetAxesCount( OGRSpatialReferenceH hSRS );
654  const char *pszTargetKey,
655  const char *pszXAxisName,
656  OGRAxisOrientation eXAxisOrientation,
657  const char *pszYAxisName,
658  OGRAxisOrientation eYAxisOrientation );
659 
661 typedef enum
662 {
665  OAMS_CUSTOM
667 
669 
671  OSRAxisMappingStrategy strategy );
672 
673 const int CPL_DLL *OSRGetDataAxisToSRSAxisMapping( OGRSpatialReferenceH hSRS, int* pnCount );
674 
676  int nMappingSize,
677  const int* panMapping );
678 
680 OGRErr CPL_DLL OSRSetACEA( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
681  double dfCenterLat, double dfCenterLong,
682  double dfFalseEasting, double dfFalseNorthing );
683 
685 OGRErr CPL_DLL OSRSetAE( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
686  double dfFalseEasting, double dfFalseNorthing );
687 
690  double dfStandardParallel, double dfCentralMeridian,
691  double dfFalseEasting, double dfFalseNorthing );
692 
694 OGRErr CPL_DLL OSRSetCEA( OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian,
695  double dfFalseEasting, double dfFalseNorthing );
696 
698 OGRErr CPL_DLL OSRSetCS( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
699  double dfFalseEasting, double dfFalseNorthing );
700 
702 OGRErr CPL_DLL OSRSetEC( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
703  double dfCenterLat, double dfCenterLong,
704  double dfFalseEasting, double dfFalseNorthing );
705 
707 OGRErr CPL_DLL OSRSetEckert( OGRSpatialReferenceH hSRS, int nVariation,
708  double dfCentralMeridian,
709  double dfFalseEasting, double dfFalseNorthing );
710 
712 OGRErr CPL_DLL OSRSetEckertIV( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
713  double dfFalseEasting, double dfFalseNorthing );
714 
716 OGRErr CPL_DLL OSRSetEckertVI( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
717  double dfFalseEasting, double dfFalseNorthing );
718 
721  double dfCenterLat, double dfCenterLong,
722  double dfFalseEasting, double dfFalseNorthing );
723 
726  double dfCenterLat, double dfCenterLong,
727  double dfPseudoStdParallel1,
728  double dfFalseEasting,
729  double dfFalseNorthing );
730 
732 OGRErr CPL_DLL OSRSetGS( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
733  double dfFalseEasting, double dfFalseNorthing );
734 
736 OGRErr CPL_DLL OSRSetGH( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
737  double dfFalseEasting, double dfFalseNorthing );
738 
740 OGRErr CPL_DLL OSRSetIGH( OGRSpatialReferenceH hSRS );
741 
744  double dfCentralMeridian, double dfSatelliteHeight,
745  double dfFalseEasting, double dfFalseNorthing );
746 
749  double dfCenterLat, double dfCenterLong,
750  double dfScale,
751  double dfFalseEasting,
752  double dfFalseNorthing );
755  double dfCenterLat, double dfCenterLong,
756  double dfFalseEasting, double dfFalseNorthing );
757 
758 #ifdef undef
760 OGRErr CPL_DLL OSRSetOM( OGRSpatialReferenceH hSRS,
761  double dfCenterLat, double dfCenterLong,
762  double dfAzimuth, double dfRectToSkew,
763  double dfScale,
764  double dfFalseEasting, double dfFalseNorthing );
765 #endif
766 
769  double dfCenterLat, double dfCenterLong,
770  double dfAzimuth, double dfRectToSkew,
771  double dfScale,
772  double dfFalseEasting, double dfFalseNorthing );
773 
775  double dfCenterLat, double dfCenterLong,
776  double dfAzimuth, double dfRectToSkew,
777  double dfScale,
778  double dfFalseEasting,
779  double dfFalseNorthing );
780 
782 OGRErr CPL_DLL OSRSetHOM2PNO( OGRSpatialReferenceH hSRS, double dfCenterLat,
783  double dfLat1, double dfLong1,
784  double dfLat2, double dfLong2,
785  double dfScale,
786  double dfFalseEasting, double dfFalseNorthing );
787 
790  double dfLat1, double dfLat2,
791  double dfCenterLong,
792  double dfFalseEasting,
793  double dfFalseNorthing );
794 
797  double dfCenterLat, double dfCenterLong,
798  double dfAzimuth, double dfPseudoStdParallelLat,
799  double dfScale,
800  double dfFalseEasting, double dfFalseNorthing );
801 
804  double dfCenterLat, double dfCenterLong,
805  double dfFalseEasting, double dfFalseNorthing );
806 
809  double dfStdP1, double dfStdP2,
810  double dfCenterLat, double dfCenterLong,
811  double dfFalseEasting, double dfFalseNorthing );
812 
815  double dfCenterLat, double dfCenterLong,
816  double dfScale,
817  double dfFalseEasting, double dfFalseNorthing );
818 
821  double dfStdP1, double dfStdP2,
822  double dfCenterLat, double dfCenterLong,
823  double dfFalseEasting, double dfFalseNorthing );
824 
826 OGRErr CPL_DLL OSRSetMC( OGRSpatialReferenceH hSRS,
827  double dfCenterLat, double dfCenterLong,
828  double dfFalseEasting, double dfFalseNorthing );
829 
832  double dfCenterLat, double dfCenterLong,
833  double dfScale,
834  double dfFalseEasting, double dfFalseNorthing );
835 
838  double dfStdP1,
839  double dfCenterLat, double dfCenterLong,
840  double dfFalseEasting, double dfFalseNorthing );
841 
844  double dfCentralMeridian,
845  double dfFalseEasting,
846  double dfFalseNorthing );
847 
850  double dfCenterLat, double dfCenterLong,
851  double dfFalseEasting, double dfFalseNorthing );
852 
854 OGRErr CPL_DLL OSRSetOS( OGRSpatialReferenceH hSRS,
855  double dfOriginLat, double dfCMeridian,
856  double dfScale,
857  double dfFalseEasting,double dfFalseNorthing);
858 
861  double dfCenterLat, double dfCenterLong,
862  double dfFalseEasting,
863  double dfFalseNorthing);
864 
867  double dfCenterLat, double dfCenterLong,
868  double dfFalseEasting, double dfFalseNorthing );
869 
871 OGRErr CPL_DLL OSRSetPS( OGRSpatialReferenceH hSRS,
872  double dfCenterLat, double dfCenterLong,
873  double dfScale,
874  double dfFalseEasting, double dfFalseNorthing);
875 
878  double dfCenterLong,
879  double dfFalseEasting, double dfFalseNorthing );
880 
883  double dfCenterLong,
884  double dfFalseEasting,
885  double dfFalseNorthing );
886 
889  double dfCenterLat, double dfCenterLong,
890  double dfScale,
891  double dfFalseEasting,
892  double dfFalseNorthing);
893 
896  double dfLatitudeOfOrigin, double dfCentralMeridian,
897  double dfFalseEasting, double dfFalseNorthing );
898 
905 OGRErr CPL_DLL OSRSetTM( OGRSpatialReferenceH hSRS,
906  double dfCenterLat, double dfCenterLong,
907  double dfScale,
908  double dfFalseEasting, double dfFalseNorthing );
909 
911 OGRErr CPL_DLL OSRSetTMVariant(
912  OGRSpatialReferenceH hSRS, const char *pszVariantName,
913  double dfCenterLat, double dfCenterLong,
914  double dfScale,
915  double dfFalseEasting, double dfFalseNorthing );
916 
919  double dfCenterLat, double dfCenterLong,
920  double dfFalseEasting, double dfFalseNorthing );
921 
924  double dfCenterLat, double dfCenterLong,
925  double dfScale,
926  double dfFalseEasting, double dfFalseNorthing );
927 
930  double dfLat1, double dfLong1,
931  double dfLat2, double dfLong2,
932  double dfFalseEasting, double dfFalseNorthing );
933 
936  double dfCenterLong,
937  double dfFalseEasting, double dfFalseNorthing );
938 
940 OGRErr CPL_DLL OSRSetWagner( OGRSpatialReferenceH hSRS, int nVariation,
941  double dfCenterLat,
942  double dfFalseEasting,
943  double dfFalseNorthing );
944 
947  double dfCenterLat, double dfCenterLong );
948 
951  double dfPegLat, double dfPegLong,
952  double dfPegHeading, double dfPegHgt);
953 
956  double dfTopoOriginLat,
957  double dfTopoOriginLon,
958  double dfTopoOriginHeight,
959  double dfViewPointHeight,
960  double dfFalseEasting,
961  double dfFalseNorthing);
962 
963 double CPL_DLL OSRCalcInvFlattening( double dfSemiMajor, double dfSemiMinor );
964 double CPL_DLL OSRCalcSemiMinorFromInvFlattening( double dfSemiMajor, double dfInvFlattening );
965 
966 void CPL_DLL OSRCleanup( void );
967 
969 typedef enum
970 {
985 } OSRCRSType;
986 
992 typedef struct
993 {
995  char* pszAuthName;
997  char* pszCode;
999  char* pszName;
1020 } OSRCRSInfo;
1021 
1027 
1029  const char *pszAuthName,
1030  const OSRCRSListParameters* params,
1031  int *pnOutResultCount);
1032 
1033 void CPL_DLL OSRDestroyCRSInfoList(OSRCRSInfo** list);
1034 
1035 
1036 /* -------------------------------------------------------------------- */
1037 /* OGRCoordinateTransform C API. */
1038 /* -------------------------------------------------------------------- */
1039 OGRCoordinateTransformationH CPL_DLL CPL_STDCALL
1041  OGRSpatialReferenceH hTargetSRS );
1042 
1045 
1047 
1050  const char* pszCO, int bReverseCO);
1051 
1054  double dfWestLongitudeDeg,
1055  double dfSouthLatitudeDeg,
1056  double dfEastLongitudeDeg,
1057  double dfNorthLatitudeDeg);
1058 
1060  OGRCoordinateTransformationOptionsH hOptions, double dfAccuracy);
1061 
1063  OGRCoordinateTransformationOptionsH hOptions, int bAllowBallpark);
1064 
1066 
1069  OGRSpatialReferenceH hTargetSRS,
1071 
1072 void CPL_DLL CPL_STDCALL
1074 
1075 int CPL_DLL CPL_STDCALL
1077  int nCount, double *x, double *y, double *z );
1078 
1079 int CPL_DLL CPL_STDCALL
1081  int nCount, double *x, double *y, double *z,
1082  int *pabSuccess );
1083 
1084 int CPL_DLL
1086  int nCount, double *x, double *y, double *z, double *t,
1087  int *pabSuccess );
1088 
1089 int CPL_DLL
1091  int nCount, double *x, double *y, double *z, double *t,
1092  int *panErrorCodes );
1093 
1094 
1095 CPL_C_END
1096 
1097 #endif /* ndef SWIG */
1098 
1099 #endif /* ndef OGR_SRS_API_H_INCLUDED */
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:339
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:337
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition: ogr_api.h:80
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition: ogr_api.h:78
Core portability services for cross-platform OGR code.
int OGRErr
Type for a OGR error.
Definition: ogr_core.h:318
int OSREPSGTreatsAsLatLong(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as havin...
Definition: ogrspatialreference.cpp:10987
OGRErr OSRSetTM(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator.
Definition: ogrspatialreference.cpp:5413
OGRErr OSRImportFromEPSG(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition: ogrspatialreference.cpp:10876
double OSRGetNormProjParm(OGRSpatialReferenceH hSRS, const char *pszParamName, double dfDefault, OGRErr *)
This function is the same as OGRSpatialReference::
Definition: ogrspatialreference.cpp:5323
OGRErr OSRSetNZMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
New Zealand Map Grid.
Definition: ogrspatialreference.cpp:6915
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition: ogr_srs_api.h:461
OGRErr OSRSetEC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equidistant Conic.
Definition: ogrspatialreference.cpp:5791
OGRErr OSRSetQSC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong)
Quadrilateralized Spherical Cube.
Definition: ogrspatialreference.cpp:7542
OGRErr OSRGetTOWGS84(OGRSpatialReferenceH hSRS, double *, int)
Fetch TOWGS84 parameters, if available.
Definition: ogrspatialreference.cpp:9388
void OSRFreeSRSArray(OGRSpatialReferenceH *pahSRS)
Free return of OSRIdentifyMatches()
Definition: ogrspatialreference.cpp:9144
OGRErr OSRImportFromERM(OGRSpatialReferenceH, const char *, const char *, const char *)
Create OGR WKT from ERMapper projection definitions.
Definition: ogr_srs_erm.cpp:55
OGRErr OSRSetTMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Tunesia Mining Grid
Definition: ogrspatialreference.cpp:5585
void OSRSetPROJAuxDbPaths(const char *const *papszPaths)
Set list of PROJ auxiliary database filenames.
Definition: ogr_proj_p.cpp:354
OGRErr OSRExportToPROJJSON(OGRSpatialReferenceH hSRS, char **ppszReturn, const char *const *papszOptions)
Convert this SRS into PROJJSON format.
Definition: ogrspatialreference.cpp:1732
OGRErr OSRImportFromMICoordSys(OGRSpatialReferenceH, const char *)
Import Mapinfo style CoordSys definition.
Definition: ogrspatialreference.cpp:10112
const char * OSRGetAuthorityCode(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority code for a node.
Definition: ogrspatialreference.cpp:7915
OGRErr OSRSetGEOS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfSatelliteHeight, double dfFalseEasting, double dfFalseNorthing)
GEOS - Geostationary Satellite View.
Definition: ogrspatialreference.cpp:6165
int OCTTransform4DWithErrorCodes(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, double *t, int *panErrorCodes)
Transform an array of points.
Definition: ogrct.cpp:2680
int OSRIsSame(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:8925
OGRErr OSRSetIGH(OGRSpatialReferenceH hSRS)
Interrupted Goode Homolosine.
Definition: ogrspatialreference.cpp:6135
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:3131
int OSRGetAxesCount(OGRSpatialReferenceH hSRS)
Return the number of axis of the coordinate system of the CRS.
Definition: ogrspatialreference.cpp:9689
OGRErr OSRImportFromXML(OGRSpatialReferenceH, const char *)
Import coordinate system from XML format (GML only currently).
Definition: ogr_srs_xml.cpp:1310
char ** OSRGetPROJAuxDbPaths(void)
Get PROJ auxiliary database filenames.
Definition: ogr_proj_p.cpp:372
const char * OSRGetAttrValue(OGRSpatialReferenceH hSRS, const char *pszName, int iChild)
Fetch indicated attribute of named node.
Definition: ogrspatialreference.cpp:1166
void * OGRSpatialReferenceH
Opaque type for a Spatial Reference object.
Definition: ogr_srs_api.h:459
OGRErr OSRSetWellKnownGeogCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set a GeogCS based on well known name.
Definition: ogrspatialreference.cpp:3279
OGRErr OSRExportToPrettyWkt(OGRSpatialReferenceH, char **, int)
Convert this SRS into a nicely formatted WKT 1 string for display to a person.
Definition: ogrspatialreference.cpp:1338
OSRCRSInfo ** OSRGetCRSInfoListFromDatabase(const char *pszAuthName, const OSRCRSListParameters *params, int *pnOutResultCount)
Enumerate CRS objects from the database.
Definition: ogrspatialreference.cpp:11491
OGRErr OSRSetVertCS(OGRSpatialReferenceH hSRS, const char *pszVertCSName, const char *pszVertDatumName, int nVertDatumType)
Setup the vertical coordinate system.
Definition: ogrspatialreference.cpp:4823
OGRErr OSRExportToMICoordSys(OGRSpatialReferenceH, char **)
Export coordinate system in Mapinfo style CoordSys format.
Definition: ogrspatialreference.cpp:10057
int OSRIsDerivedGeographic(OGRSpatialReferenceH)
Check if derived geographic coordinate system.
Definition: ogrspatialreference.cpp:8478
OGRErr OSRSetPS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Polar Stereographic.
Definition: ogrspatialreference.cpp:7098
void OCTDestroyCoordinateTransformationOptions(OGRCoordinateTransformationOptionsH)
Destroy coordinate transformation options.
Definition: ogrct.cpp:289
OGRErr OSRSetTargetLinearUnits(OGRSpatialReferenceH, const char *, const char *, double)
Set the linear units for the target node.
Definition: ogrspatialreference.cpp:2595
OGRErr OSRSetBonne(OGRSpatialReferenceH hSRS, double dfStandardParallel, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Bonne.
Definition: ogrspatialreference.cpp:5690
int OSRIsVertical(OGRSpatialReferenceH)
Check if vertical coordinate system.
Definition: ogrspatialreference.cpp:8579
OGRErr OSRImportFromPCI(OGRSpatialReferenceH hSRS, const char *, const char *, double *)
Import coordinate system from PCI projection definition.
Definition: ogr_srs_pci.cpp:147
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:10028
OGRErr OSRSetIWMPolyconic(OGRSpatialReferenceH hSRS, double dfLat1, double dfLat2, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
International Map of the World Polyconic.
Definition: ogrspatialreference.cpp:6501
OGRCoordinateTransformationH OCTNewCoordinateTransformationEx(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS, OGRCoordinateTransformationOptionsH hOptions)
Create transformation object.
Definition: ogrct.cpp:907
OGRErr OSRImportFromWkt(OGRSpatialReferenceH, char **)
Import from WKT string.
Definition: ogrspatialreference.cpp:2002
void OCTDestroyCoordinateTransformation(OGRCoordinateTransformationH)
OGRCoordinateTransformation destructor.
Definition: ogrct.cpp:676
OSRAxisMappingStrategy OSRGetAxisMappingStrategy(OGRSpatialReferenceH hSRS)
Return the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:11266
double OSRGetAngularUnits(OGRSpatialReferenceH, char **)
Fetch angular geographic coordinate system units.
Definition: ogrspatialreference.cpp:2342
OGRErr OSRMorphFromESRI(OGRSpatialReferenceH)
Convert in place from ESRI WKT format.
Definition: ogrspatialreference.cpp:10574
OGRErr OSRImportFromProj4(OGRSpatialReferenceH, const char *)
Import PROJ coordinate string.
Definition: ogrspatialreference.cpp:10267
int OSRIsSameEx(OGRSpatialReferenceH, OGRSpatialReferenceH, const char *const *papszOptions)
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:8944
double OSRGetSemiMinor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi minor axis.
Definition: ogrspatialreference.cpp:4594
double OSRGetPrimeMeridian(OGRSpatialReferenceH, char **)
Fetch prime meridian info.
Definition: ogrspatialreference.cpp:3003
OGRErr OSRCopyGeogCSFrom(OGRSpatialReferenceH hSRS, const OGRSpatialReferenceH hSrcSRS)
Copy GEOGCS from another OGRSpatialReference.
Definition: ogrspatialreference.cpp:3397
OGRErr OSRSetAttrValue(OGRSpatialReferenceH hSRS, const char *pszNodePath, const char *pszNewNodeValue)
Set attribute value in spatial reference.
Definition: ogrspatialreference.cpp:2105
OGRErr OSRSetSCH(OGRSpatialReferenceH hSRS, double dfPegLat, double dfPegLong, double dfPegHeading, double dfPegHgt)
Spherical, Cross-track, Height.
Definition: ogrspatialreference.cpp:7572
double OSRGetLinearUnits(OGRSpatialReferenceH, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:2670
void OSRCleanup(void)
Cleanup cached SRS related memory.
Definition: ogrspatialreference.cpp:9611
OGRErr OSRSetProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter value.
Definition: ogrspatialreference.cpp:5111
int OCTTransformEx(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, int *pabSuccess)
Transform an array of points.
Definition: ogrct.cpp:2623
int OCTTransform(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z)
Transform an array of points.
Definition: ogrct.cpp:2599
OGRErr OSRSetCEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Cylindrical Equal Area.
Definition: ogrspatialreference.cpp:5722
void OSRSetPROJSearchPaths(const char *const *papszPaths)
Set the search path(s) for PROJ resource files.
Definition: ogr_proj_p.cpp:309
OGRErr OSRImportFromUSGS(OGRSpatialReferenceH, long, long, double *, long)
Import coordinate system from USGS projection definition.
Definition: ogr_srs_usgs.cpp:165
void OSRDestroyCRSInfoList(OSRCRSInfo **list)
Destroy the result returned by OSRGetCRSInfoListFromDatabase().
Definition: ogrspatialreference.cpp:11561
OGRErr OSRSetProjection(OGRSpatialReferenceH, const char *)
Set a projection name.
Definition: ogrspatialreference.cpp:5029
OGRErr OSRSetStatePlane(OGRSpatialReferenceH hSRS, int nZone, int bNAD83)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:256
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:11457
int OCTCoordinateTransformationOptionsSetBallparkAllowed(OGRCoordinateTransformationOptionsH hOptions, int bAllowBallpark)
Sets whether ballpark transformations are allowed.
Definition: ogrct.cpp:517
int OCTCoordinateTransformationOptionsSetOperation(OGRCoordinateTransformationOptionsH hOptions, const char *pszCO, int bReverseCO)
Sets a coordinate operation.
Definition: ogrct.cpp:434
char ** OSRGetPROJSearchPaths(void)
Get the search path(s) for PROJ resource files.
Definition: ogr_proj_p.cpp:325
int OCTTransform4D(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, double *t, int *pabSuccess)
Transform an array of points.
Definition: ogrct.cpp:2650
OGRErr OSRSetACEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Albers Conic Equal Area.
Definition: ogrspatialreference.cpp:5622
OGRErr OSRExportToUSGS(OGRSpatialReferenceH, long *, long *, double **, long *)
Export coordinate system in USGS GCTP projection definition.
Definition: ogr_srs_usgs.cpp:798
OSRCRSType
Type of Coordinate Reference System (CRS).
Definition: ogr_srs_api.h:970
@ OSR_CRS_TYPE_COMPOUND
Compound CRS.
Definition: ogr_srs_api.h:982
@ OSR_CRS_TYPE_GEOGRAPHIC_2D
Geographic 2D CRS.
Definition: ogr_srs_api.h:972
@ OSR_CRS_TYPE_PROJECTED
Projected CRS.
Definition: ogr_srs_api.h:978
@ OSR_CRS_TYPE_GEOCENTRIC
Geocentric CRS.
Definition: ogr_srs_api.h:976
@ OSR_CRS_TYPE_OTHER
Other.
Definition: ogr_srs_api.h:984
@ OSR_CRS_TYPE_GEOGRAPHIC_3D
Geographic 3D CRS.
Definition: ogr_srs_api.h:974
@ OSR_CRS_TYPE_VERTICAL
Vertical CRS.
Definition: ogr_srs_api.h:980
struct OGRCoordinateTransformationOptions * OGRCoordinateTransformationOptionsH
Coordinate transformation options.
Definition: ogr_srs_api.h:1044
int OSRIsProjected(OGRSpatialReferenceH)
Check if projected coordinate system.
Definition: ogrspatialreference.cpp:8308
OGRErr OSRSetLAEA(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Azimuthal Equal-Area.
Definition: ogrspatialreference.cpp:6610
double OSRGetProjParm(OGRSpatialReferenceH hSRS, const char *pszParamName, double dfDefault, OGRErr *)
Fetch a projection parameter value.
Definition: ogrspatialreference.cpp:5256
double OSRGetInvFlattening(OGRSpatialReferenceH, OGRErr *)
Get spheroid inverse flattening.
Definition: ogrspatialreference.cpp:4497
OGRErr OSRSetEckertVI(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert VI.
Definition: ogrspatialreference.cpp:5937
OGRErr OSRSetProjCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:4971
OGRErr OSRPromoteTo3D(OGRSpatialReferenceH hSRS, const char *pszName)
"Promotes" a 2D CRS to a 3D CRS one.
Definition: ogrspatialreference.cpp:11714
OGRErr OSRSetLCCB(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic (Belgium)
Definition: ogrspatialreference.cpp:6716
OGRErr OSRSetGaussSchreiberTMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Gauss Schreiber Transverse Mercator.
Definition: ogrspatialreference.cpp:6202
OGRSpatialReferenceH OSRNewSpatialReference(const char *)
Constructor.
Definition: ogrspatialreference.cpp:727
int OSRReference(OGRSpatialReferenceH)
Increments the reference count by one.
Definition: ogrspatialreference.cpp:897
OGRErr OSRSetMercator2SP(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Mercator 2SP.
Definition: ogrspatialreference.cpp:6847
OGRErr OSRImportFromPanorama(OGRSpatialReferenceH, long, long, long, double *)
Import coordinate system from "Panorama" GIS projection definition.
Definition: ogr_srs_panorama.cpp:200
OGRErr OSRSetOS(OGRSpatialReferenceH hSRS, double dfOriginLat, double dfCMeridian, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Oblique Stereographic.
Definition: ogrspatialreference.cpp:6949
OGRErr OSRAutoIdentifyEPSG(OGRSpatialReferenceH hSRS)
Set EPSG authority info if possible.
Definition: ogr_fromepsg.cpp:433
OGRErr OSRSetLCC1SP(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic 1SP.
Definition: ogrspatialreference.cpp:6680
OGRErr OSRSetGeocCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:4745
int OCTCoordinateTransformationOptionsSetAreaOfInterest(OGRCoordinateTransformationOptionsH hOptions, double dfWestLongitudeDeg, double dfSouthLatitudeDeg, double dfEastLongitudeDeg, double dfNorthLatitudeDeg)
Sets an area of interest.
Definition: ogrct.cpp:360
int OSRIsCompound(OGRSpatialReferenceH)
Check if the coordinate system is compound.
Definition: ogrspatialreference.cpp:8247
OGRErr OSRSetAE(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Azimuthal Equidistant.
Definition: ogrspatialreference.cpp:5657
int OSRIsSameGeogCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the GeogCS'es match?
Definition: ogrspatialreference.cpp:8754
int OSRIsGeocentric(OGRSpatialReferenceH)
Check if geocentric coordinate system.
Definition: ogrspatialreference.cpp:8351
OGRErr OSRSetNormProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter with a normalized value.
Definition: ogrspatialreference.cpp:5383
OGRErr OSRSetFromUserInput(OGRSpatialReferenceH hSRS, const char *)
Set spatial reference from various text formats.
Definition: ogrspatialreference.cpp:3693
const char * OSRGetAuthorityName(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority name for a node.
Definition: ogrspatialreference.cpp:8020
void OSRSetAxisMappingStrategy(OGRSpatialReferenceH hSRS, OSRAxisMappingStrategy strategy)
Set the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:11297
const int * OSRGetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int *pnCount)
Return the data axis to SRS axis mapping.
Definition: ogrspatialreference.cpp:11334
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:6300
double OSRGetTargetLinearUnits(OGRSpatialReferenceH, const char *, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:2888
int OCTCoordinateTransformationOptionsSetDesiredAccuracy(OGRCoordinateTransformationOptionsH hOptions, double dfAccuracy)
Sets the desired accuracy for coordinate operations.
Definition: ogrct.cpp:478
OGRErr OSRSetTMSO(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator (South Oriented)
Definition: ogrspatialreference.cpp:5516
OGRErr OSRValidate(OGRSpatialReferenceH)
Validate SRS tokens.
Definition: ogrspatialreference.cpp:1981
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:6364
OGRErr OSRSetMC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Miller Cylindrical.
Definition: ogrspatialreference.cpp:6753
void OSRDestroySpatialReference(OGRSpatialReferenceH)
OGRSpatialReference destructor.
Definition: ogrspatialreference.cpp:811
OGRErr OSRSetEckert(OGRSpatialReferenceH hSRS, int nVariation, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert I-VI.
Definition: ogrspatialreference.cpp:5874
OGRErr OSRSetEckertIV(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert IV.
Definition: ogrspatialreference.cpp:5906
OGRErr OSRExportToWkt(OGRSpatialReferenceH, char **)
Convert this SRS into WKT 1 format.
Definition: ogrspatialreference.cpp:1630
double OSRGetSemiMajor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi major axis.
Definition: ogrspatialreference.cpp:4436
OGRErr OSRSetTOWGS84(OGRSpatialReferenceH hSRS, double, double, double, double, double, double, double)
Set the Bursa-Wolf conversion to WGS84.
Definition: ogrspatialreference.cpp:9331
OGRErr OSRSetPolyconic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Polyconic.
Definition: ogrspatialreference.cpp:7019
int OSRIsSameVertCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the VertCS'es match?
Definition: ogrspatialreference.cpp:8817
OGRErr OSRExportToPCI(OGRSpatialReferenceH, char **, char **, double **)
Export coordinate system in PCI projection definition.
Definition: ogr_srs_pci.cpp:729
OGRErr OSRSetLocalCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible LOCAL_CS name.
Definition: ogrspatialreference.cpp:4649
OGRSpatialReferenceH OSRConvertToOtherProjection(OGRSpatialReferenceH hSRS, const char *pszTargetProjection, const char *const *papszOptions)
Convert to another equivalent projection.
Definition: ogrspatialreference.cpp:9077
int OSRDereference(OGRSpatialReferenceH)
Decrements the reference count by one.
Definition: ogrspatialreference.cpp:937
OGRErr OSRSetEquirectangular2(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfPseudoStdParallel1, double dfFalseEasting, double dfFalseNorthing)
Equirectangular generalized form.
Definition: ogrspatialreference.cpp:6034
OGRErr OSRSetCS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Cassini-Soldner.
Definition: ogrspatialreference.cpp:5754
OGRErr OSRSetGH(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Goode Homolosine.
Definition: ogrspatialreference.cpp:6104
OGRErr OSRSetGnomonic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Gnomonic.
Definition: ogrspatialreference.cpp:6238
OGRErr OSRSetTMVariant(OGRSpatialReferenceH hSRS, const char *pszVariantName, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator variant.
Definition: ogrspatialreference.cpp:5454
const char * OSRGetName(OGRSpatialReferenceH hSRS)
Return the CRS name.
Definition: ogrspatialreference.cpp:1210
struct OSRCRSListParameters OSRCRSListParameters
Structure to describe optional parameters to OSRGetCRSInfoListFromDatabase()
Definition: ogr_srs_api.h:1026
int OSRIsLocal(OGRSpatialReferenceH)
Check if local coordinate system.
Definition: ogrspatialreference.cpp:8514
const char * OSRAxisEnumToName(OGRAxisOrientation eOrientation)
Return the string representation for the OGRAxisOrientation enumeration.
Definition: ogrspatialreference.cpp:9931
OGRErr OSRSetVDG(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
VanDerGrinten.
Definition: ogrspatialreference.cpp:7285
OGRErr OSRSetVerticalPerspective(OGRSpatialReferenceH hSRS, double dfTopoOriginLat, double dfTopoOriginLon, double dfTopoOriginHeight, double dfViewPointHeight, double dfFalseEasting, double dfFalseNorthing)
Vertical Perspective / Near-sided Perspective.
Definition: ogrspatialreference.cpp:7622
int OSREPSGTreatsAsNorthingEasting(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this projected coordinate system should be treated as having...
Definition: ogrspatialreference.cpp:11082
OGRErr OSRSetGS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Gall Stereograpic.
Definition: ogrspatialreference.cpp:6070
OGRErr OSRSetSOC(OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Swiss Oblique Cylindrical.
Definition: ogrspatialreference.cpp:7252
OGRErr OSRImportFromEPSGA(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition: ogrspatialreference.cpp:10828
OGRErr OSRSetAuthority(OGRSpatialReferenceH hSRS, const char *pszTargetKey, const char *pszAuthority, int nCode)
Set the authority for a node.
Definition: ogrspatialreference.cpp:7806
OGRErr OSRSetCompoundCS(OGRSpatialReferenceH hSRS, const char *pszName, OGRSpatialReferenceH hHorizSRS, OGRSpatialReferenceH hVertSRS)
Setup a compound coordinate system.
Definition: ogrspatialreference.cpp:4903
double OSRCalcSemiMinorFromInvFlattening(double dfSemiMajor, double dfInvFlattening)
Compute semi-minor axis from semi-major axis and inverse flattening.
Definition: ogrspatialreference.cpp:10201
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:6544
OGRErr OSRSetLinearUnits(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2470
double OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor)
Compute inverse flattening from semi-major and semi-minor axis.
Definition: ogrspatialreference.cpp:10173
OGRErr OSRImportFromDict(OGRSpatialReferenceH, const char *, const char *)
Read SRS from WKT dictionary.
Definition: ogr_srs_dict.cpp:175
OGRErr OSRSetRobinson(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Robinson.
Definition: ogrspatialreference.cpp:7133
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:6428
OGRErr OSRImportFromESRI(OGRSpatialReferenceH, char **)
Import coordinate system from ESRI .prj format(s).
Definition: ogr_srs_esri.cpp:238
OGRErr OSRSetAngularUnits(OGRSpatialReferenceH, const char *, double)
Set the angular units for the geographic coordinate system.
Definition: ogrspatialreference.cpp:2207
OGRErr OSRSetUTM(OGRSpatialReferenceH hSRS, int nZone, int bNorth)
Set UTM projection definition.
Definition: ogrspatialreference.cpp:7341
const char * OSRGetAxis(OGRSpatialReferenceH hSRS, const char *pszTargetKey, int iAxis, OGRAxisOrientation *peOrientation)
Fetch the orientation of one axis.
Definition: ogrspatialreference.cpp:9909
int OSRGetUTMZone(OGRSpatialReferenceH hSRS, int *pbNorth)
Get utm zone information.
Definition: ogrspatialreference.cpp:7430
OGRErr OSRSetOrthographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Orthographic.
Definition: ogrspatialreference.cpp:6984
OGRErr OSRDemoteTo2D(OGRSpatialReferenceH hSRS, const char *pszName)
"Demote" a 3D CRS to a 2D CRS one.
Definition: ogrspatialreference.cpp:11759
OGRErr OSRExportToPanorama(OGRSpatialReferenceH, long *, long *, long *, long *, double *)
Export coordinate system in "Panorama" GIS projection definition.
Definition: ogr_srs_panorama.cpp:624
OGRCoordinateTransformationOptionsH OCTNewCoordinateTransformationOptions(void)
Create coordinate transformation options.
Definition: ogrct.cpp:276
OGRErr OSRSetLCC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic.
Definition: ogrspatialreference.cpp:6644
OGRCoordinateTransformationH OCTNewCoordinateTransformation(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS)
Create transformation object.
Definition: ogrct.cpp:857
OGRErr OSRExportToXML(OGRSpatialReferenceH, char **, const char *)
Export coordinate system in XML format.
Definition: ogr_srs_xml.cpp:746
OGRErr OSRImportFromOzi(OGRSpatialReferenceH, const char *const *)
Import coordinate system from OziExplorer projection definition.
Definition: ogr_srs_ozi.cpp:68
OSRAxisMappingStrategy
Data axis to CRS axis mapping strategy.
Definition: ogr_srs_api.h:662
@ OAMS_AUTHORITY_COMPLIANT
Compliant with the order mandated by the CRS authority.
Definition: ogr_srs_api.h:664
@ OAMS_TRADITIONAL_GIS_ORDER
Traditional GIS order.
Definition: ogr_srs_api.h:663
@ OAMS_CUSTOM
Custom.
Definition: ogr_srs_api.h:665
OGRErr OSRSetMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Mercator.
Definition: ogrspatialreference.cpp:6796
void OSRRelease(OGRSpatialReferenceH)
Decrements the reference count by one, and destroy if zero.
Definition: ogrspatialreference.cpp:985
OGRErr OSRAddGuessedTOWGS84(OGRSpatialReferenceH hSRS)
Try to add a a 3-parameter or 7-parameter Helmert transformation to WGS84.
Definition: ogrspatialreference.cpp:10810
OGRErr OSRSetSinusoidal(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Sinusoidal.
Definition: ogrspatialreference.cpp:7166
int OSRIsGeographic(OGRSpatialReferenceH)
Check if geographic coordinate system.
Definition: ogrspatialreference.cpp:8429
OGRAxisOrientation
Axis orientations (corresponds to CS_AxisOrientationEnum).
Definition: ogr_srs_api.h:48
@ OAO_Up
Up (to space)
Definition: ogr_srs_api.h:54
@ OAO_West
West.
Definition: ogr_srs_api.h:53
@ OAO_South
South.
Definition: ogr_srs_api.h:51
@ OAO_East
East.
Definition: ogr_srs_api.h:52
@ OAO_Down
Down (to Earth center)
Definition: ogr_srs_api.h:55
@ OAO_Other
Other.
Definition: ogr_srs_api.h:49
@ OAO_North
North.
Definition: ogr_srs_api.h:50
OGRErr OSRExportToERM(OGRSpatialReferenceH, char *, char *, char *)
Convert coordinate system to ERMapper format.
Definition: ogr_srs_erm.cpp:163
OGRErr OSRExportToProj4(OGRSpatialReferenceH, char **)
Export coordinate system in PROJ.4 legacy format.
Definition: ogrspatialreference.cpp:10354
OGRErr OSRExportToWktEx(OGRSpatialReferenceH, char **ppszResult, const char *const *papszOptions)
Convert this SRS into WKT format.
Definition: ogrspatialreference.cpp:1653
OGRErr OSRSetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int nMappingSize, const int *panMapping)
Set a custom data axis to CRS axis mapping.
Definition: ogrspatialreference.cpp:11377
OGRErr OSRSetEquirectangular(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equirectangular.
Definition: ogrspatialreference.cpp:5984
OGRErr OSRMorphToESRI(OGRSpatialReferenceH)
Convert in place to ESRI WKT format.
Definition: ogrspatialreference.cpp:10524
OGRErr OSRSetStereographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Stereographic.
Definition: ogrspatialreference.cpp:7201
OGRSpatialReferenceH OSRCloneGeogCS(OGRSpatialReferenceH)
Make a duplicate of the GEOGCS node of this OGRSpatialReference object.
Definition: ogrspatialreference.cpp:8668
OGRSpatialReferenceH OSRClone(OGRSpatialReferenceH)
Make a duplicate of this OGRSpatialReference.
Definition: ogrspatialreference.cpp:1257
OGRErr OSRSetWagner(OGRSpatialReferenceH hSRS, int nVariation, double dfCenterLat, double dfFalseEasting, double dfFalseNorthing)
Wagner I – VII.
Definition: ogrspatialreference.cpp:7512
OGRErr OSRSetLinearUnitsAndUpdateParameters(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2418
OGRErr OSRSetStatePlaneWithUnits(OGRSpatialReferenceH hSRS, int nZone, int bNAD83, const char *pszOverrideUnitName, double dfOverrideUnit)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:275
OGRErr OSRSetTPED(OGRSpatialReferenceH hSRS, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfFalseEasting, double dfFalseNorthing)
TPED (Two Point Equi Distant)
Definition: ogrspatialreference.cpp:5552
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:9118
OGRErr OSRImportFromUrl(OGRSpatialReferenceH, const char *)
Set spatial reference from a URL.
Definition: ogrspatialreference.cpp:3801
void OSRGetPROJVersion(int *pnMajor, int *pnMinor, int *pnPatch)
Get the PROJ version.
Definition: ogr_proj_p.cpp:391
OGRErr OSRSetMollweide(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Mollweide.
Definition: ogrspatialreference.cpp:6882
Context for coordinate transformation.
Definition: ogr_spatialref.h:859
Structure given overall description of a CRS.
Definition: ogr_srs_api.h:993
double dfEastLongitudeDeg
Eastern-most longitude of the area of use, in degrees.
Definition: ogr_srs_api.h:1012
double dfNorthLatitudeDeg
Northern-most latitude of the area of use, in degrees.
Definition: ogr_srs_api.h:1014
int bDeprecated
Whether the object is deprecated.
Definition: ogr_srs_api.h:1003
double dfWestLongitudeDeg
Western-most longitude of the area of use, in degrees.
Definition: ogr_srs_api.h:1008
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:1006
char * pszName
Object name.
Definition: ogr_srs_api.h:999
char * pszProjectionMethod
Name of the projection method for a projected CRS.
Definition: ogr_srs_api.h:1019
double dfSouthLatitudeDeg
Southern-most latitude of the area of use, in degrees.
Definition: ogr_srs_api.h:1010
char * pszCode
Object code.
Definition: ogr_srs_api.h:997
char * pszAreaName
Name of the area of use.
Definition: ogr_srs_api.h:1016
char * pszAuthName
Authority name.
Definition: ogr_srs_api.h:995
OSRCRSType eType
Object type.
Definition: ogr_srs_api.h:1001