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 #ifndef SWIG
35 #include "ogr_core.h"
36 
38 
48 typedef enum
49 {
50  OAO_Other = 0,
51  OAO_North = 1,
52  OAO_South = 2,
53  OAO_East = 3,
54  OAO_West = 4,
55  OAO_Up = 5,
56  OAO_Down = 6
58 
59 const char CPL_DLL *OSRAxisEnumToName(OGRAxisOrientation eOrientation);
60 
61 #endif // ndef SWIG
62 
63 /* ==================================================================== */
64 /* Some standard WKT geographic coordinate systems. */
65 /* ==================================================================== */
66 
67 #ifdef USE_DEPRECATED_SRS_WKT_WGS84
68 #define SRS_WKT_WGS84 \
69  "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS " \
70  "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" \
71  "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]" \
72  ",UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]]," \
73  "AUTHORITY[\"EPSG\",\"4326\"]]"
74 #endif
75 
77 #define SRS_WKT_WGS84_LAT_LONG \
78  "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS " \
79  "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" \
80  "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]" \
81  ",UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" \
82  "\"Latitude\",NORTH],AXIS[\"Longitude\",EAST],AUTHORITY[\"EPSG\"," \
83  "\"4326\"]]"
84 
85 /* ==================================================================== */
86 /* Some "standard" strings. */
87 /* ==================================================================== */
88 
90 #define SRS_PT_ALBERS_CONIC_EQUAL_AREA "Albers_Conic_Equal_Area"
91 
92 #define SRS_PT_AZIMUTHAL_EQUIDISTANT "Azimuthal_Equidistant"
93 
94 #define SRS_PT_CASSINI_SOLDNER "Cassini_Soldner"
95 
96 #define SRS_PT_CYLINDRICAL_EQUAL_AREA "Cylindrical_Equal_Area"
97 
98 #define SRS_PT_BONNE "Bonne"
99 
100 #define SRS_PT_ECKERT_I "Eckert_I"
101 
102 #define SRS_PT_ECKERT_II "Eckert_II"
103 
104 #define SRS_PT_ECKERT_III "Eckert_III"
105 
106 #define SRS_PT_ECKERT_IV "Eckert_IV"
107 
108 #define SRS_PT_ECKERT_V "Eckert_V"
109 
110 #define SRS_PT_ECKERT_VI "Eckert_VI"
111 
112 #define SRS_PT_EQUIDISTANT_CONIC "Equidistant_Conic"
113 
114 #define SRS_PT_EQUIRECTANGULAR "Equirectangular"
115 
116 #define SRS_PT_GALL_STEREOGRAPHIC "Gall_Stereographic"
117 
118 #define SRS_PT_GAUSSSCHREIBERTMERCATOR "Gauss_Schreiber_Transverse_Mercator"
119 
120 #define SRS_PT_GEOSTATIONARY_SATELLITE "Geostationary_Satellite"
121 
122 #define SRS_PT_GOODE_HOMOLOSINE "Goode_Homolosine"
123 
124 #define SRS_PT_IGH "Interrupted_Goode_Homolosine"
125 
126 #define SRS_PT_GNOMONIC "Gnomonic"
127 
128 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER \
129  "Hotine_Oblique_Mercator_Azimuth_Center"
130 
131 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR "Hotine_Oblique_Mercator"
132 
133 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN \
134  "Hotine_Oblique_Mercator_Two_Point_Natural_Origin"
135 
136 #define SRS_PT_LABORDE_OBLIQUE_MERCATOR "Laborde_Oblique_Mercator"
137 
138 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP "Lambert_Conformal_Conic_1SP"
139 
140 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP "Lambert_Conformal_Conic_2SP"
141 
142 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM \
143  "Lambert_Conformal_Conic_2SP_Belgium"
144 
145 #define SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA "Lambert_Azimuthal_Equal_Area"
146 
147 #define SRS_PT_MERCATOR_1SP "Mercator_1SP"
148 
149 #define SRS_PT_MERCATOR_2SP "Mercator_2SP"
150 
151 #define SRS_PT_MERCATOR_AUXILIARY_SPHERE "Mercator_Auxiliary_Sphere"
152 
153 #define SRS_PT_MILLER_CYLINDRICAL "Miller_Cylindrical"
154 
155 #define SRS_PT_MOLLWEIDE "Mollweide"
156 
157 #define SRS_PT_NEW_ZEALAND_MAP_GRID "New_Zealand_Map_Grid"
158 
159 #define SRS_PT_OBLIQUE_STEREOGRAPHIC "Oblique_Stereographic"
160 
161 #define SRS_PT_ORTHOGRAPHIC "Orthographic"
162 
163 #define SRS_PT_POLAR_STEREOGRAPHIC "Polar_Stereographic"
164 
165 #define SRS_PT_POLYCONIC "Polyconic"
166 
167 #define SRS_PT_ROBINSON "Robinson"
168 
169 #define SRS_PT_SINUSOIDAL "Sinusoidal"
170 
171 #define SRS_PT_STEREOGRAPHIC "Stereographic"
172 
173 #define SRS_PT_SWISS_OBLIQUE_CYLINDRICAL "Swiss_Oblique_Cylindrical"
174 
175 #define SRS_PT_TRANSVERSE_MERCATOR "Transverse_Mercator"
176 
177 #define SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED \
178  "Transverse_Mercator_South_Orientated"
179 
180 /* special mapinfo variants on Transverse Mercator */
182 #define SRS_PT_TRANSVERSE_MERCATOR_MI_21 "Transverse_Mercator_MapInfo_21"
183 
184 #define SRS_PT_TRANSVERSE_MERCATOR_MI_22 "Transverse_Mercator_MapInfo_22"
185 
186 #define SRS_PT_TRANSVERSE_MERCATOR_MI_23 "Transverse_Mercator_MapInfo_23"
187 
188 #define SRS_PT_TRANSVERSE_MERCATOR_MI_24 "Transverse_Mercator_MapInfo_24"
189 
190 #define SRS_PT_TRANSVERSE_MERCATOR_MI_25 "Transverse_Mercator_MapInfo_25"
191 
193 #define SRS_PT_TUNISIA_MINING_GRID "Tunisia_Mining_Grid"
194 
195 #define SRS_PT_TWO_POINT_EQUIDISTANT "Two_Point_Equidistant"
196 
197 #define SRS_PT_VANDERGRINTEN "VanDerGrinten"
198 
199 #define SRS_PT_KROVAK "Krovak"
200 
201 #define SRS_PT_IMW_POLYCONIC "International_Map_of_the_World_Polyconic"
202 
203 #define SRS_PT_WAGNER_I "Wagner_I"
204 
205 #define SRS_PT_WAGNER_II "Wagner_II"
206 
207 #define SRS_PT_WAGNER_III "Wagner_III"
208 
209 #define SRS_PT_WAGNER_IV "Wagner_IV"
210 
211 #define SRS_PT_WAGNER_V "Wagner_V"
212 
213 #define SRS_PT_WAGNER_VI "Wagner_VI"
214 
215 #define SRS_PT_WAGNER_VII "Wagner_VII"
216 
217 #define SRS_PT_QSC "Quadrilateralized_Spherical_Cube"
218 
219 #define SRS_PT_AITOFF "Aitoff"
220 
221 #define SRS_PT_WINKEL_I "Winkel_I"
222 
223 #define SRS_PT_WINKEL_II "Winkel_II"
224 
225 #define SRS_PT_WINKEL_TRIPEL "Winkel_Tripel"
226 
227 #define SRS_PT_CRASTER_PARABOLIC "Craster_Parabolic"
228 
229 #define SRS_PT_LOXIMUTHAL "Loximuthal"
230 
231 #define SRS_PT_QUARTIC_AUTHALIC "Quartic_Authalic"
232 
233 #define SRS_PT_SCH "Spherical_Cross_Track_Height"
234 
236 #define SRS_PP_CENTRAL_MERIDIAN "central_meridian"
237 
238 #define SRS_PP_SCALE_FACTOR "scale_factor"
239 
240 #define SRS_PP_STANDARD_PARALLEL_1 "standard_parallel_1"
241 
242 #define SRS_PP_STANDARD_PARALLEL_2 "standard_parallel_2"
243 
244 #define SRS_PP_PSEUDO_STD_PARALLEL_1 "pseudo_standard_parallel_1"
245 
246 #define SRS_PP_LONGITUDE_OF_CENTER "longitude_of_center"
247 
248 #define SRS_PP_LATITUDE_OF_CENTER "latitude_of_center"
249 
250 #define SRS_PP_LONGITUDE_OF_ORIGIN "longitude_of_origin"
251 
252 #define SRS_PP_LATITUDE_OF_ORIGIN "latitude_of_origin"
253 
254 #define SRS_PP_FALSE_EASTING "false_easting"
255 
256 #define SRS_PP_FALSE_NORTHING "false_northing"
257 
258 #define SRS_PP_AZIMUTH "azimuth"
259 
260 #define SRS_PP_LONGITUDE_OF_POINT_1 "longitude_of_point_1"
261 
262 #define SRS_PP_LATITUDE_OF_POINT_1 "latitude_of_point_1"
263 
264 #define SRS_PP_LONGITUDE_OF_POINT_2 "longitude_of_point_2"
265 
266 #define SRS_PP_LATITUDE_OF_POINT_2 "latitude_of_point_2"
267 
268 #define SRS_PP_LONGITUDE_OF_POINT_3 "longitude_of_point_3"
269 
270 #define SRS_PP_LATITUDE_OF_POINT_3 "latitude_of_point_3"
271 
272 #define SRS_PP_RECTIFIED_GRID_ANGLE "rectified_grid_angle"
273 
274 #define SRS_PP_LANDSAT_NUMBER "landsat_number"
275 
276 #define SRS_PP_PATH_NUMBER "path_number"
277 
278 #define SRS_PP_PERSPECTIVE_POINT_HEIGHT "perspective_point_height"
279 
280 #define SRS_PP_SATELLITE_HEIGHT "satellite_height"
281 
282 #define SRS_PP_FIPSZONE "fipszone"
283 
284 #define SRS_PP_ZONE "zone"
285 
286 #define SRS_PP_LATITUDE_OF_1ST_POINT "Latitude_Of_1st_Point"
287 
288 #define SRS_PP_LONGITUDE_OF_1ST_POINT "Longitude_Of_1st_Point"
289 
290 #define SRS_PP_LATITUDE_OF_2ND_POINT "Latitude_Of_2nd_Point"
291 
292 #define SRS_PP_LONGITUDE_OF_2ND_POINT "Longitude_Of_2nd_Point"
293 
294 #define SRS_PP_PEG_POINT_LATITUDE "peg_point_latitude"
295 
296 #define SRS_PP_PEG_POINT_LONGITUDE "peg_point_longitude"
297 
298 #define SRS_PP_PEG_POINT_HEADING "peg_point_heading"
299 
300 #define SRS_PP_PEG_POINT_HEIGHT "peg_point_height"
301 
303 #define SRS_UL_METER "Meter"
304 
305 #define SRS_UL_FOOT "Foot (International)" /* or just "FOOT"? */
306 
307 #define SRS_UL_FOOT_CONV "0.3048"
308 
309 #define SRS_UL_US_FOOT "Foot_US" /* or "US survey foot" from EPSG */
310 
311 #define SRS_UL_US_FOOT_CONV "0.3048006096012192"
312 
313 #define SRS_UL_NAUTICAL_MILE "Nautical Mile"
314 
315 #define SRS_UL_NAUTICAL_MILE_CONV "1852.0"
316 
317 #define SRS_UL_LINK "Link" /* Based on US Foot */
318 
319 #define SRS_UL_LINK_CONV "0.20116684023368047"
320 
321 #define SRS_UL_CHAIN "Chain" /* based on US Foot */
322 
323 #define SRS_UL_CHAIN_CONV "20.116684023368047"
324 
325 #define SRS_UL_ROD "Rod" /* based on US Foot */
326 
327 #define SRS_UL_ROD_CONV "5.02921005842012"
328 
329 #define SRS_UL_LINK_Clarke "Link_Clarke"
330 
331 #define SRS_UL_LINK_Clarke_CONV "0.2011661949"
332 
334 #define SRS_UL_KILOMETER "Kilometer"
335 
336 #define SRS_UL_KILOMETER_CONV "1000."
337 
338 #define SRS_UL_DECIMETER "Decimeter"
339 
340 #define SRS_UL_DECIMETER_CONV "0.1"
341 
342 #define SRS_UL_CENTIMETER "Centimeter"
343 
344 #define SRS_UL_CENTIMETER_CONV "0.01"
345 
346 #define SRS_UL_MILLIMETER "Millimeter"
347 
348 #define SRS_UL_MILLIMETER_CONV "0.001"
349 
350 #define SRS_UL_INTL_NAUT_MILE "Nautical_Mile_International"
351 
352 #define SRS_UL_INTL_NAUT_MILE_CONV "1852.0"
353 
354 #define SRS_UL_INTL_INCH "Inch_International"
355 
356 #define SRS_UL_INTL_INCH_CONV "0.0254"
357 
358 #define SRS_UL_INTL_FOOT "Foot_International"
359 
360 #define SRS_UL_INTL_FOOT_CONV "0.3048"
361 
362 #define SRS_UL_INTL_YARD "Yard_International"
363 
364 #define SRS_UL_INTL_YARD_CONV "0.9144"
365 
366 #define SRS_UL_INTL_STAT_MILE "Statute_Mile_International"
367 
368 #define SRS_UL_INTL_STAT_MILE_CONV "1609.344"
369 
370 #define SRS_UL_INTL_FATHOM "Fathom_International"
371 
372 #define SRS_UL_INTL_FATHOM_CONV "1.8288"
373 
374 #define SRS_UL_INTL_CHAIN "Chain_International"
375 
376 #define SRS_UL_INTL_CHAIN_CONV "20.1168"
377 
378 #define SRS_UL_INTL_LINK "Link_International"
379 
380 #define SRS_UL_INTL_LINK_CONV "0.201168"
381 
382 #define SRS_UL_US_INCH "Inch_US_Surveyor"
383 
384 #define SRS_UL_US_INCH_CONV "0.025400050800101603"
385 
386 #define SRS_UL_US_YARD "Yard_US_Surveyor"
387 
388 #define SRS_UL_US_YARD_CONV "0.914401828803658"
389 
390 #define SRS_UL_US_CHAIN "Chain_US_Surveyor"
391 
392 #define SRS_UL_US_CHAIN_CONV "20.11684023368047"
393 
394 #define SRS_UL_US_STAT_MILE "Statute_Mile_US_Surveyor"
395 
396 #define SRS_UL_US_STAT_MILE_CONV "1609.347218694437"
397 
398 #define SRS_UL_INDIAN_YARD "Yard_Indian"
399 
400 #define SRS_UL_INDIAN_YARD_CONV "0.91439523"
401 
402 #define SRS_UL_INDIAN_FOOT "Foot_Indian"
403 
404 #define SRS_UL_INDIAN_FOOT_CONV "0.30479841"
405 
406 #define SRS_UL_INDIAN_CHAIN "Chain_Indian"
407 
408 #define SRS_UL_INDIAN_CHAIN_CONV "20.11669506"
409 
411 #define SRS_UA_DEGREE "degree"
412 
413 #define SRS_UA_DEGREE_CONV "0.0174532925199433"
414 
415 #define SRS_UA_RADIAN "radian"
416 
418 #define SRS_PM_GREENWICH "Greenwich"
419 
421 #define SRS_DN_NAD27 "North_American_Datum_1927"
422 
423 #define SRS_DN_NAD83 "North_American_Datum_1983"
424 
425 #define SRS_DN_WGS72 "WGS_1972"
426 
427 #define SRS_DN_WGS84 "WGS_1984"
428 
430 #define SRS_WGS84_SEMIMAJOR 6378137.0
431 
432 #define SRS_WGS84_INVFLATTENING 298.257223563
433 
434 #ifndef SWIG
435 /* -------------------------------------------------------------------- */
436 /* C Wrappers for C++ objects and methods. */
437 /* -------------------------------------------------------------------- */
438 #ifndef DEFINED_OGRSpatialReferenceH
439 
440 #define DEFINED_OGRSpatialReferenceH
441 
443 #ifdef DEBUG
444 typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
445 typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
446 #else
447 
448 typedef void *OGRSpatialReferenceH;
451 #endif
452 
453 #endif
454 
455 void CPL_DLL OSRSetPROJSearchPaths(const char *const *papszPaths);
456 char CPL_DLL **OSRGetPROJSearchPaths(void);
457 void CPL_DLL OSRSetPROJAuxDbPaths(const char *const *papszPaths);
458 char CPL_DLL **OSRGetPROJAuxDbPaths(void);
459 void CPL_DLL OSRSetPROJEnableNetwork(int enabled);
460 int CPL_DLL OSRGetPROJEnableNetwork(void);
461 void CPL_DLL OSRGetPROJVersion(int *pnMajor, int *pnMinor, int *pnPatch);
462 
463 OGRSpatialReferenceH CPL_DLL CPL_STDCALL
464 OSRNewSpatialReference(const char * /* = NULL */);
467 void CPL_DLL CPL_STDCALL OSRDestroySpatialReference(OGRSpatialReferenceH);
468 
471 void CPL_DLL OSRRelease(OGRSpatialReferenceH);
472 
474 
475 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSG(OGRSpatialReferenceH, int);
476 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSGA(OGRSpatialReferenceH, int);
478 OGRErr CPL_DLL OSRImportFromProj4(OGRSpatialReferenceH, const char *);
480 OGRErr CPL_DLL OSRImportFromPCI(OGRSpatialReferenceH hSRS, const char *,
481  const char *, double *);
482 OGRErr CPL_DLL OSRImportFromUSGS(OGRSpatialReferenceH, long, long, double *,
483  long);
484 OGRErr CPL_DLL OSRImportFromXML(OGRSpatialReferenceH, const char *);
485 OGRErr CPL_DLL OSRImportFromDict(OGRSpatialReferenceH, const char *,
486  const char *);
487 OGRErr CPL_DLL OSRImportFromPanorama(OGRSpatialReferenceH, long, long, long,
488  double *);
489 OGRErr CPL_DLL OSRImportFromOzi(OGRSpatialReferenceH, const char *const *);
491 OGRErr CPL_DLL OSRImportFromERM(OGRSpatialReferenceH, const char *,
492  const char *, const char *);
493 OGRErr CPL_DLL OSRImportFromUrl(OGRSpatialReferenceH, const char *);
494 
495 OGRErr CPL_DLL CPL_STDCALL OSRExportToWkt(OGRSpatialReferenceH, char **);
496 OGRErr CPL_DLL OSRExportToWktEx(OGRSpatialReferenceH, char **ppszResult,
497  const char *const *papszOptions);
498 OGRErr CPL_DLL CPL_STDCALL OSRExportToPrettyWkt(OGRSpatialReferenceH, char **,
499  int);
500 OGRErr CPL_DLL OSRExportToPROJJSON(OGRSpatialReferenceH hSRS, char **ppszReturn,
501  const char *const *papszOptions);
502 OGRErr CPL_DLL CPL_STDCALL OSRExportToProj4(OGRSpatialReferenceH, char **);
503 OGRErr CPL_DLL OSRExportToPCI(OGRSpatialReferenceH, char **, char **,
504  double **);
505 OGRErr CPL_DLL OSRExportToUSGS(OGRSpatialReferenceH, long *, long *, double **,
506  long *);
507 OGRErr CPL_DLL OSRExportToXML(OGRSpatialReferenceH, char **, const char *);
508 OGRErr CPL_DLL OSRExportToPanorama(OGRSpatialReferenceH, long *, long *, long *,
509  long *, double *);
511 OGRErr CPL_DLL OSRExportToERM(OGRSpatialReferenceH, char *, char *, char *);
512 
515 
517 
519  OGRSpatialReferenceH hSRS, const char *pszTargetProjection,
520  const char *const *papszOptions);
521 
522 const char CPL_DLL *OSRGetName(OGRSpatialReferenceH hSRS);
523 
524 OGRErr CPL_DLL CPL_STDCALL OSRSetAttrValue(OGRSpatialReferenceH hSRS,
525  const char *pszNodePath,
526  const char *pszNewNodeValue);
527 const char CPL_DLL *CPL_STDCALL OSRGetAttrValue(OGRSpatialReferenceH hSRS,
528  const char *pszName,
529  int iChild /* = 0 */);
530 
531 OGRErr CPL_DLL OSRSetAngularUnits(OGRSpatialReferenceH, const char *, double);
532 double CPL_DLL OSRGetAngularUnits(OGRSpatialReferenceH, char **);
533 OGRErr CPL_DLL OSRSetLinearUnits(OGRSpatialReferenceH, const char *, double);
535  const char *, double);
537  const char *, double);
538 double CPL_DLL OSRGetLinearUnits(OGRSpatialReferenceH, char **);
539 double CPL_DLL OSRGetTargetLinearUnits(OGRSpatialReferenceH, const char *,
540  char **);
541 
542 double CPL_DLL OSRGetPrimeMeridian(OGRSpatialReferenceH, char **);
543 
546 int CPL_DLL OSRIsLocal(OGRSpatialReferenceH);
556  const char *const *papszOptions);
557 
559  double dfCoordinateEpoch);
560 double CPL_DLL OSRGetCoordinateEpoch(OGRSpatialReferenceH hSRS);
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);
571 OGRErr CPL_DLL OSRSetTOWGS84(OGRSpatialReferenceH hSRS, double, double, double,
572  double, double, double, double);
573 OGRErr CPL_DLL OSRGetTOWGS84(OGRSpatialReferenceH hSRS, double *, int);
575 
576 OGRErr CPL_DLL OSRSetCompoundCS(OGRSpatialReferenceH hSRS, const char *pszName,
577  OGRSpatialReferenceH hHorizSRS,
578  OGRSpatialReferenceH hVertSRS);
579 OGRErr CPL_DLL OSRPromoteTo3D(OGRSpatialReferenceH hSRS, const char *pszName);
580 OGRErr CPL_DLL OSRDemoteTo2D(OGRSpatialReferenceH hSRS, const char *pszName);
581 
582 OGRErr CPL_DLL OSRSetGeogCS(OGRSpatialReferenceH hSRS, const char *pszGeogName,
583  const char *pszDatumName,
584  const char *pszEllipsoidName, double dfSemiMajor,
585  double dfInvFlattening,
586  const char *pszPMName /* = NULL */,
587  double dfPMOffset /* = 0.0 */,
588  const char *pszUnits /* = NULL */,
589  double dfConvertToRadians /* = 0.0 */);
590 
592  const char *pszVertCSName,
593  const char *pszVertDatumName, int nVertDatumType);
594 
595 double CPL_DLL OSRGetSemiMajor(OGRSpatialReferenceH, OGRErr * /* = NULL */);
596 double CPL_DLL OSRGetSemiMinor(OGRSpatialReferenceH, OGRErr * /* = NULL */);
597 double CPL_DLL OSRGetInvFlattening(OGRSpatialReferenceH, OGRErr * /*=NULL*/);
598 
600  const char *pszTargetKey,
601  const char *pszAuthority, int nCode);
602 const char CPL_DLL *OSRGetAuthorityCode(OGRSpatialReferenceH hSRS,
603  const char *pszTargetKey);
604 const char CPL_DLL *OSRGetAuthorityName(OGRSpatialReferenceH hSRS,
605  const char *pszTargetKey);
606 
607 int CPL_DLL OSRGetAreaOfUse(OGRSpatialReferenceH hSRS,
608  double *pdfWestLongitudeDeg,
609  double *pdfSouthLatitudeDeg,
610  double *pdfEastLongitudeDeg,
611  double *pdfNorthLatitudeDeg,
612  const char **ppszAreaName);
613 
614 OGRErr CPL_DLL OSRSetProjection(OGRSpatialReferenceH, const char *);
615 OGRErr CPL_DLL OSRSetProjParm(OGRSpatialReferenceH, const char *, double);
616 double CPL_DLL OSRGetProjParm(OGRSpatialReferenceH hSRS,
617  const char *pszParamName,
618  double dfDefault /* = 0.0 */,
619  OGRErr * /* = NULL */);
620 OGRErr CPL_DLL OSRSetNormProjParm(OGRSpatialReferenceH, const char *, double);
621 double CPL_DLL OSRGetNormProjParm(OGRSpatialReferenceH hSRS,
622  const char *pszParamName,
623  double dfDefault /* = 0.0 */,
624  OGRErr * /* = NULL */);
625 
626 OGRErr CPL_DLL OSRSetUTM(OGRSpatialReferenceH hSRS, int nZone, int bNorth);
627 int CPL_DLL OSRGetUTMZone(OGRSpatialReferenceH hSRS, int *pbNorth);
628 OGRErr CPL_DLL OSRSetStatePlane(OGRSpatialReferenceH hSRS, int nZone,
629  int bNAD83);
631  int bNAD83,
632  const char *pszOverrideUnitName,
633  double dfOverrideUnit);
635 
637  char **papszOptions,
638  int *pnEntries,
639  int **ppanMatchConfidence);
640 void CPL_DLL OSRFreeSRSArray(OGRSpatialReferenceH *pahSRS);
641 
644 const char CPL_DLL *OSRGetAxis(OGRSpatialReferenceH hSRS,
645  const char *pszTargetKey, int iAxis,
646  OGRAxisOrientation *peOrientation);
647 int CPL_DLL OSRGetAxesCount(OGRSpatialReferenceH hSRS);
648 OGRErr CPL_DLL OSRSetAxes(OGRSpatialReferenceH hSRS, const char *pszTargetKey,
649  const char *pszXAxisName,
650  OGRAxisOrientation eXAxisOrientation,
651  const char *pszYAxisName,
652  OGRAxisOrientation eYAxisOrientation);
653 
655 typedef enum
656 {
662 
665 
667  OSRAxisMappingStrategy strategy);
668 
670  int *pnCount);
671 
673  int nMappingSize,
674  const int *panMapping);
675 
677 OGRErr CPL_DLL OSRSetACEA(OGRSpatialReferenceH hSRS, double dfStdP1,
678  double dfStdP2, double dfCenterLat,
679  double dfCenterLong, double dfFalseEasting,
680  double dfFalseNorthing);
681 
683 OGRErr CPL_DLL OSRSetAE(OGRSpatialReferenceH hSRS, double dfCenterLat,
684  double dfCenterLong, double dfFalseEasting,
685  double dfFalseNorthing);
686 
688 OGRErr CPL_DLL OSRSetBonne(OGRSpatialReferenceH hSRS, double dfStandardParallel,
689  double dfCentralMeridian, double dfFalseEasting,
690  double dfFalseNorthing);
691 
693 OGRErr CPL_DLL OSRSetCEA(OGRSpatialReferenceH hSRS, double dfStdP1,
694  double dfCentralMeridian, double dfFalseEasting,
695  double dfFalseNorthing);
696 
698 OGRErr CPL_DLL OSRSetCS(OGRSpatialReferenceH hSRS, double dfCenterLat,
699  double dfCenterLong, double dfFalseEasting,
700  double dfFalseNorthing);
701 
703 OGRErr CPL_DLL OSRSetEC(OGRSpatialReferenceH hSRS, double dfStdP1,
704  double dfStdP2, double dfCenterLat, double dfCenterLong,
705  double dfFalseEasting, double dfFalseNorthing);
706 
708 OGRErr CPL_DLL OSRSetEckert(OGRSpatialReferenceH hSRS, int nVariation,
709  double dfCentralMeridian, double dfFalseEasting,
710  double dfFalseNorthing);
711 
714  double dfCentralMeridian, double dfFalseEasting,
715  double dfFalseNorthing);
716 
719  double dfCentralMeridian, double dfFalseEasting,
720  double dfFalseNorthing);
721 
724  double dfCenterLat, double dfCenterLong,
725  double dfFalseEasting,
726  double dfFalseNorthing);
727 
730  double dfCenterLat, double dfCenterLong,
731  double dfPseudoStdParallel1,
732  double dfFalseEasting,
733  double dfFalseNorthing);
734 
736 OGRErr CPL_DLL OSRSetGS(OGRSpatialReferenceH hSRS, double dfCentralMeridian,
737  double dfFalseEasting, double dfFalseNorthing);
738 
740 OGRErr CPL_DLL OSRSetGH(OGRSpatialReferenceH hSRS, double dfCentralMeridian,
741  double dfFalseEasting, double dfFalseNorthing);
742 
745 
747 OGRErr CPL_DLL OSRSetGEOS(OGRSpatialReferenceH hSRS, double dfCentralMeridian,
748  double dfSatelliteHeight, double dfFalseEasting,
749  double dfFalseNorthing);
750 
753  OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
754  double dfScale, double dfFalseEasting, double dfFalseNorthing);
756 OGRErr CPL_DLL OSRSetGnomonic(OGRSpatialReferenceH hSRS, double dfCenterLat,
757  double dfCenterLong, double dfFalseEasting,
758  double dfFalseNorthing);
759 
760 #ifdef undef
761 
762 OGRErr CPL_DLL OSRSetOM(OGRSpatialReferenceH hSRS, double dfCenterLat,
763  double dfCenterLong, double dfAzimuth,
764  double dfRectToSkew, double dfScale,
765  double dfFalseEasting, double dfFalseNorthing);
766 #endif
767 
769 OGRErr CPL_DLL OSRSetHOM(OGRSpatialReferenceH hSRS, double dfCenterLat,
770  double dfCenterLong, double dfAzimuth,
771  double dfRectToSkew, double dfScale,
772  double dfFalseEasting, double dfFalseNorthing);
773 
774 OGRErr CPL_DLL OSRSetHOMAC(OGRSpatialReferenceH hSRS, double dfCenterLat,
775  double dfCenterLong, double dfAzimuth,
776  double dfRectToSkew, double dfScale,
777  double dfFalseEasting, double dfFalseNorthing);
778 
780 OGRErr CPL_DLL OSRSetHOM2PNO(OGRSpatialReferenceH hSRS, double dfCenterLat,
781  double dfLat1, double dfLong1, double dfLat2,
782  double dfLong2, double dfScale,
783  double dfFalseEasting, double dfFalseNorthing);
784 
786 OGRErr CPL_DLL OSRSetIWMPolyconic(OGRSpatialReferenceH hSRS, double dfLat1,
787  double dfLat2, double dfCenterLong,
788  double dfFalseEasting,
789  double dfFalseNorthing);
790 
792 OGRErr CPL_DLL OSRSetKrovak(OGRSpatialReferenceH hSRS, double dfCenterLat,
793  double dfCenterLong, double dfAzimuth,
794  double dfPseudoStdParallelLat, double dfScale,
795  double dfFalseEasting, double dfFalseNorthing);
796 
798 OGRErr CPL_DLL OSRSetLAEA(OGRSpatialReferenceH hSRS, double dfCenterLat,
799  double dfCenterLong, double dfFalseEasting,
800  double dfFalseNorthing);
801 
803 OGRErr CPL_DLL OSRSetLCC(OGRSpatialReferenceH hSRS, double dfStdP1,
804  double dfStdP2, double dfCenterLat,
805  double dfCenterLong, double dfFalseEasting,
806  double dfFalseNorthing);
807 
809 OGRErr CPL_DLL OSRSetLCC1SP(OGRSpatialReferenceH hSRS, double dfCenterLat,
810  double dfCenterLong, double dfScale,
811  double dfFalseEasting, double dfFalseNorthing);
812 
814 OGRErr CPL_DLL OSRSetLCCB(OGRSpatialReferenceH hSRS, double dfStdP1,
815  double dfStdP2, double dfCenterLat,
816  double dfCenterLong, double dfFalseEasting,
817  double dfFalseNorthing);
818 
820 OGRErr CPL_DLL OSRSetMC(OGRSpatialReferenceH hSRS, double dfCenterLat,
821  double dfCenterLong, double dfFalseEasting,
822  double dfFalseNorthing);
823 
825 OGRErr CPL_DLL OSRSetMercator(OGRSpatialReferenceH hSRS, double dfCenterLat,
826  double dfCenterLong, double dfScale,
827  double dfFalseEasting, double dfFalseNorthing);
828 
830 OGRErr CPL_DLL OSRSetMercator2SP(OGRSpatialReferenceH hSRS, double dfStdP1,
831  double dfCenterLat, double dfCenterLong,
832  double dfFalseEasting, double dfFalseNorthing);
833 
836  double dfCentralMeridian, double dfFalseEasting,
837  double dfFalseNorthing);
838 
840 OGRErr CPL_DLL OSRSetNZMG(OGRSpatialReferenceH hSRS, double dfCenterLat,
841  double dfCenterLong, double dfFalseEasting,
842  double dfFalseNorthing);
843 
845 OGRErr CPL_DLL OSRSetOS(OGRSpatialReferenceH hSRS, double dfOriginLat,
846  double dfCMeridian, double dfScale,
847  double dfFalseEasting, double dfFalseNorthing);
848 
850 OGRErr CPL_DLL OSRSetOrthographic(OGRSpatialReferenceH hSRS, double dfCenterLat,
851  double dfCenterLong, double dfFalseEasting,
852  double dfFalseNorthing);
853 
855 OGRErr CPL_DLL OSRSetPolyconic(OGRSpatialReferenceH hSRS, double dfCenterLat,
856  double dfCenterLong, double dfFalseEasting,
857  double dfFalseNorthing);
858 
860 OGRErr CPL_DLL OSRSetPS(OGRSpatialReferenceH hSRS, double dfCenterLat,
861  double dfCenterLong, double dfScale,
862  double dfFalseEasting, double dfFalseNorthing);
863 
865 OGRErr CPL_DLL OSRSetRobinson(OGRSpatialReferenceH hSRS, double dfCenterLong,
866  double dfFalseEasting, double dfFalseNorthing);
867 
869 OGRErr CPL_DLL OSRSetSinusoidal(OGRSpatialReferenceH hSRS, double dfCenterLong,
870  double dfFalseEasting, double dfFalseNorthing);
871 
874  double dfCenterLat, double dfCenterLong,
875  double dfScale, double dfFalseEasting,
876  double dfFalseNorthing);
877 
879 OGRErr CPL_DLL OSRSetSOC(OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin,
880  double dfCentralMeridian, double dfFalseEasting,
881  double dfFalseNorthing);
882 
889 OGRErr CPL_DLL OSRSetTM(OGRSpatialReferenceH hSRS, double dfCenterLat,
890  double dfCenterLong, double dfScale,
891  double dfFalseEasting, double dfFalseNorthing);
892 
895  const char *pszVariantName, double dfCenterLat,
896  double dfCenterLong, double dfScale,
897  double dfFalseEasting, double dfFalseNorthing);
898 
900 OGRErr CPL_DLL OSRSetTMG(OGRSpatialReferenceH hSRS, double dfCenterLat,
901  double dfCenterLong, double dfFalseEasting,
902  double dfFalseNorthing);
903 
905 OGRErr CPL_DLL OSRSetTMSO(OGRSpatialReferenceH hSRS, double dfCenterLat,
906  double dfCenterLong, double dfScale,
907  double dfFalseEasting, double dfFalseNorthing);
908 
910 OGRErr CPL_DLL OSRSetTPED(OGRSpatialReferenceH hSRS, double dfLat1,
911  double dfLong1, double dfLat2, double dfLong2,
912  double dfFalseEasting, double dfFalseNorthing);
913 
915 OGRErr CPL_DLL OSRSetVDG(OGRSpatialReferenceH hSRS, double dfCenterLong,
916  double dfFalseEasting, double dfFalseNorthing);
917 
919 OGRErr CPL_DLL OSRSetWagner(OGRSpatialReferenceH hSRS, int nVariation,
920  double dfCenterLat, double dfFalseEasting,
921  double dfFalseNorthing);
922 
924 OGRErr CPL_DLL OSRSetQSC(OGRSpatialReferenceH hSRS, double dfCenterLat,
925  double dfCenterLong);
926 
928 OGRErr CPL_DLL OSRSetSCH(OGRSpatialReferenceH hSRS, double dfPegLat,
929  double dfPegLong, double dfPegHeading,
930  double dfPegHgt);
931 
934  OGRSpatialReferenceH hSRS, double dfTopoOriginLat, double dfTopoOriginLon,
935  double dfTopoOriginHeight, double dfViewPointHeight, double dfFalseEasting,
936  double dfFalseNorthing);
937 
938 double CPL_DLL OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor);
939 double CPL_DLL OSRCalcSemiMinorFromInvFlattening(double dfSemiMajor,
940  double dfInvFlattening);
941 
942 void CPL_DLL OSRCleanup(void);
943 
945 typedef enum
946 {
961 } OSRCRSType;
962 
968 typedef struct
969 {
971  char *pszAuthName;
973  char *pszCode;
975  char *pszName;
992  char *pszAreaName;
996 } OSRCRSInfo;
997 
1004 
1005 OSRCRSInfo CPL_DLL **
1006 OSRGetCRSInfoListFromDatabase(const char *pszAuthName,
1007  const OSRCRSListParameters *params,
1008  int *pnOutResultCount);
1009 
1010 void CPL_DLL OSRDestroyCRSInfoList(OSRCRSInfo **list);
1011 
1012 /* -------------------------------------------------------------------- */
1013 /* OGRCoordinateTransform C API. */
1014 /* -------------------------------------------------------------------- */
1016  OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS);
1017 
1021 
1024 
1026  OGRCoordinateTransformationOptionsH hOptions, const char *pszCO,
1027  int bReverseCO);
1028 
1030  OGRCoordinateTransformationOptionsH hOptions, double dfWestLongitudeDeg,
1031  double dfSouthLatitudeDeg, double dfEastLongitudeDeg,
1032  double dfNorthLatitudeDeg);
1033 
1035  OGRCoordinateTransformationOptionsH hOptions, double dfAccuracy);
1036 
1038  OGRCoordinateTransformationOptionsH hOptions, int bAllowBallpark);
1039 
1042 
1044  OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS,
1046 
1049 OGRSpatialReferenceH CPL_DLL
1051 OGRSpatialReferenceH CPL_DLL
1055 
1056 void CPL_DLL CPL_STDCALL
1058 
1059 int CPL_DLL CPL_STDCALL OCTTransform(OGRCoordinateTransformationH hCT,
1060  int nCount, double *x, double *y,
1061  double *z);
1062 
1063 int CPL_DLL CPL_STDCALL OCTTransformEx(OGRCoordinateTransformationH hCT,
1064  int nCount, double *x, double *y,
1065  double *z, int *pabSuccess);
1066 
1067 int CPL_DLL OCTTransform4D(OGRCoordinateTransformationH hCT, int nCount,
1068  double *x, double *y, double *z, double *t,
1069  int *pabSuccess);
1070 
1072  int nCount, double *x, double *y,
1073  double *z, double *t,
1074  int *panErrorCodes);
1075 
1076 int CPL_DLL CPL_STDCALL OCTTransformBounds(OGRCoordinateTransformationH hCT,
1077  const double xmin, const double ymin,
1078  const double xmax, const double ymax,
1079  double *out_xmin, double *out_ymin,
1080  double *out_xmax, double *out_ymax,
1081  const int densify_pts);
1082 
1083 CPL_C_END
1084 
1085 #endif /* ndef SWIG */
1086 
1087 #endif /* ndef OGR_SRS_API_H_INCLUDED */
OSRCRSInfo::eType
OSRCRSType eType
Object type.
Definition: ogr_srs_api.h:977
OSRImportFromEPSGA
OGRErr OSRImportFromEPSGA(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition: ogrspatialreference.cpp:11384
OSRSetEC
OGRErr OSRSetEC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equidistant Conic.
Definition: ogrspatialreference.cpp:6205
OSRGetPROJAuxDbPaths
char ** OSRGetPROJAuxDbPaths(void)
Get PROJ auxiliary database filenames.
Definition: ogr_proj_p.cpp:486
OSRSetMercator
OGRErr OSRSetMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Mercator.
Definition: ogrspatialreference.cpp:7089
OSRSetUTM
OGRErr OSRSetUTM(OGRSpatialReferenceH hSRS, int nZone, int bNorth)
Set UTM projection definition.
Definition: ogrspatialreference.cpp:7572
OSRCRSInfo::pszCode
char * pszCode
Object code.
Definition: ogr_srs_api.h:973
OAO_North
@ OAO_North
North.
Definition: ogr_srs_api.h:51
OAMS_CUSTOM
@ OAMS_CUSTOM
Custom.
Definition: ogr_srs_api.h:660
OSRSetStereographic
OGRErr OSRSetStereographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Stereographic.
Definition: ogrspatialreference.cpp:7443
OSR_CRS_TYPE_PROJECTED
@ OSR_CRS_TYPE_PROJECTED
Projected CRS.
Definition: ogr_srs_api.h:954
OSRGetInvFlattening
double OSRGetInvFlattening(OGRSpatialReferenceH, OGRErr *)
Get spheroid inverse flattening.
Definition: ogrspatialreference.cpp:4895
OSRSetMercator2SP
OGRErr OSRSetMercator2SP(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Mercator 2SP.
Definition: ogrspatialreference.cpp:7133
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:6767
OSRCRSInfo
Structure given overall description of a CRS.
Definition: ogr_srs_api.h:968
OSRGetAttrValue
const char * OSRGetAttrValue(OGRSpatialReferenceH hSRS, const char *pszName, int iChild)
Fetch indicated attribute of named node.
Definition: ogrspatialreference.cpp:1278
OSRSetTMG
OGRErr OSRSetTMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Tunesia Mining Grid
Definition: ogrspatialreference.cpp:6025
OSRSetAttrValue
OGRErr OSRSetAttrValue(OGRSpatialReferenceH hSRS, const char *pszNodePath, const char *pszNewNodeValue)
Set attribute value in spatial reference.
Definition: ogrspatialreference.cpp:2265
OSRSetAxisMappingStrategy
void OSRSetAxisMappingStrategy(OGRSpatialReferenceH hSRS, OSRAxisMappingStrategy strategy)
Set the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:11862
OAO_Down
@ OAO_Down
Down (to Earth center)
Definition: ogr_srs_api.h:56
OSRGetDataAxisToSRSAxisMapping
const int * OSRGetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int *pnCount)
Return the data axis to SRS axis mapping.
Definition: ogrspatialreference.cpp:11899
OSRMorphToESRI
OGRErr OSRMorphToESRI(OGRSpatialReferenceH)
Convert in place to ESRI WKT format.
Definition: ogrspatialreference.cpp:11057
OSRClone
OGRSpatialReferenceH OSRClone(OGRSpatialReferenceH)
Make a duplicate of this OGRSpatialReference.
Definition: ogrspatialreference.cpp:1382
OSRImportFromMICoordSys
OGRErr OSRImportFromMICoordSys(OGRSpatialReferenceH, const char *)
Import Mapinfo style CoordSys definition.
Definition: ogrspatialreference.cpp:10643
OSRSetPROJEnableNetwork
void OSRSetPROJEnableNetwork(int enabled)
Enable or disable PROJ networking capabilities.
Definition: ogr_proj_p.cpp:505
OSRConvertToOtherProjection
OGRSpatialReferenceH OSRConvertToOtherProjection(OGRSpatialReferenceH hSRS, const char *pszTargetProjection, const char *const *papszOptions)
Convert to another equivalent projection.
Definition: ogrspatialreference.cpp:9477
OSRSetIWMPolyconic
OGRErr OSRSetIWMPolyconic(OGRSpatialReferenceH hSRS, double dfLat1, double dfLat2, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
International Map of the World Polyconic.
Definition: ogrspatialreference.cpp:6830
OGRCoordinateTransformationOptions
Context for coordinate transformation.
Definition: ogr_spatialref.h:962
OSRSetProjParm
OGRErr OSRSetProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter value.
Definition: ogrspatialreference.cpp:5551
OSRGetName
const char * OSRGetName(OGRSpatialReferenceH hSRS)
Return the CRS name.
Definition: ogrspatialreference.cpp:1335
OAO_West
@ OAO_West
West.
Definition: ogr_srs_api.h:54
OSRGetCRSInfoListFromDatabase
OSRCRSInfo ** OSRGetCRSInfoListFromDatabase(const char *pszAuthName, const OSRCRSListParameters *params, int *pnOutResultCount)
Enumerate CRS objects from the database.
Definition: ogrspatialreference.cpp:12052
OGRCoordinateTransformationOptionsH
struct OGRCoordinateTransformationOptions * OGRCoordinateTransformationOptionsH
Coordinate transformation options.
Definition: ogr_srs_api.h:1019
OSRAddGuessedTOWGS84
OGRErr OSRAddGuessedTOWGS84(OGRSpatialReferenceH hSRS)
Try to add a a 3-parameter or 7-parameter Helmert transformation to WGS84.
Definition: ogrspatialreference.cpp:11365
OSR_CRS_TYPE_GEOGRAPHIC_3D
@ OSR_CRS_TYPE_GEOGRAPHIC_3D
Geographic 3D CRS.
Definition: ogr_srs_api.h:950
OSRDestroySpatialReference
void OSRDestroySpatialReference(OGRSpatialReferenceH)
OGRSpatialReference destructor.
Definition: ogrspatialreference.cpp:894
OSRSetOrthographic
OGRErr OSRSetOrthographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Orthographic.
Definition: ogrspatialreference.cpp:7251
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:12021
OCTTransformEx
int OCTTransformEx(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, int *pabSuccess)
Transform an array of points.
Definition: ogrct.cpp:3536
OSR_CRS_TYPE_GEOCENTRIC
@ OSR_CRS_TYPE_GEOCENTRIC
Geocentric CRS.
Definition: ogr_srs_api.h:952
OSRSetEquirectangular2
OGRErr OSRSetEquirectangular2(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfPseudoStdParallel1, double dfFalseEasting, double dfFalseNorthing)
Equirectangular generalized form.
Definition: ogrspatialreference.cpp:6422
OCTNewCoordinateTransformationEx
OGRCoordinateTransformationH OCTNewCoordinateTransformationEx(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS, OGRCoordinateTransformationOptionsH hOptions)
Create transformation object.
Definition: ogrct.cpp:1051
OSRDestroyCRSInfoList
void OSRDestroyCRSInfoList(OSRCRSInfo **list)
Destroy the result returned by OSRGetCRSInfoListFromDatabase().
Definition: ogrspatialreference.cpp:12128
OSRSetGnomonic
OGRErr OSRSetGnomonic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Gnomonic.
Definition: ogrspatialreference.cpp:6594
OSRAutoIdentifyEPSG
OGRErr OSRAutoIdentifyEPSG(OGRSpatialReferenceH hSRS)
Set EPSG authority info if possible.
Definition: ogr_fromepsg.cpp:426
OSRImportFromProj4
OGRErr OSRImportFromProj4(OGRSpatialReferenceH, const char *)
Import PROJ coordinate string.
Definition: ogrspatialreference.cpp:10802
OSRImportFromPanorama
OGRErr OSRImportFromPanorama(OGRSpatialReferenceH, long, long, long, double *)
Import coordinate system from "Panorama" GIS projection definition.
Definition: ogr_srs_panorama.cpp:233
OSRGetProjParm
double OSRGetProjParm(OGRSpatialReferenceH hSRS, const char *pszParamName, double dfDefault, OGRErr *)
Fetch a projection parameter value.
Definition: ogrspatialreference.cpp:5723
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:3637
OSRMorphFromESRI
OGRErr OSRMorphFromESRI(OGRSpatialReferenceH)
Convert in place from ESRI WKT format.
Definition: ogrspatialreference.cpp:11107
OSRSetCoordinateEpoch
void OSRSetCoordinateEpoch(OGRSpatialReferenceH hSRS, double dfCoordinateEpoch)
Set the coordinate epoch, as decimal year.
Definition: ogrspatialreference.cpp:12515
OSR_CRS_TYPE_VERTICAL
@ OSR_CRS_TYPE_VERTICAL
Vertical CRS.
Definition: ogr_srs_api.h:956
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:5995
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:3564
OSRSetAuthority
OGRErr OSRSetAuthority(OGRSpatialReferenceH hSRS, const char *pszTargetKey, const char *pszAuthority, int nCode)
Set the authority for a node.
Definition: ogrspatialreference.cpp:8039
OSRDemoteTo2D
OGRErr OSRDemoteTo2D(OGRSpatialReferenceH hSRS, const char *pszName)
"Demote" a 3D CRS to a 2D CRS one.
Definition: ogrspatialreference.cpp:12322
OSRCleanup
void OSRCleanup(void)
Cleanup cached SRS related memory.
Definition: ogrspatialreference.cpp:10131
OSRSetLinearUnits
OGRErr OSRSetLinearUnits(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2624
OSRExportToPROJJSON
OGRErr OSRExportToPROJJSON(OGRSpatialReferenceH hSRS, char **ppszReturn, const char *const *papszOptions)
Convert this SRS into PROJJSON format.
Definition: ogrspatialreference.cpp:1853
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:982
OSRAxisMappingStrategy
OSRAxisMappingStrategy
Data axis to CRS axis mapping strategy.
Definition: ogr_srs_api.h:655
OAO_East
@ OAO_East
East.
Definition: ogr_srs_api.h:53
OSRCRSListParameters
struct OSRCRSListParameters OSRCRSListParameters
Structure to describe optional parameters to OSRGetCRSInfoListFromDatabase()
Definition: ogr_srs_api.h:1003
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:6652
OSRSetLinearUnitsAndUpdateParameters
OGRErr OSRSetLinearUnitsAndUpdateParameters(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2572
OSRSetGEOS
OGRErr OSRSetGEOS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfSatelliteHeight, double dfFalseEasting, double dfFalseNorthing)
GEOS - Geostationary Satellite View.
Definition: ogrspatialreference.cpp:6532
OSRSetSOC
OGRErr OSRSetSOC(OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Swiss Oblique Cylindrical.
Definition: ogrspatialreference.cpp:7490
OSRGetNormProjParm
double OSRGetNormProjParm(OGRSpatialReferenceH hSRS, const char *pszParamName, double dfDefault, OGRErr *)
This function is the same as OGRSpatialReference::
Definition: ogrspatialreference.cpp:5789
OSRDereference
int OSRDereference(OGRSpatialReferenceH)
Decrements the reference count by one.
Definition: ogrspatialreference.cpp:1041
OCTGetSourceCS
OGRSpatialReferenceH OCTGetSourceCS(OGRCoordinateTransformationH hTransform)
Transformation's source coordinate system reference.
Definition: ogrct.cpp:1105
OSRSetEckertIV
OGRErr OSRSetEckertIV(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert IV.
Definition: ogrspatialreference.cpp:6306
OSRIsDerivedGeographic
int OSRIsDerivedGeographic(OGRSpatialReferenceH)
Check if derived geographic coordinate system.
Definition: ogrspatialreference.cpp:8764
OSRSetVDG
OGRErr OSRSetVDG(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
VanDerGrinten.
Definition: ogrspatialreference.cpp:7518
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:315
OSRIsLocal
int OSRIsLocal(OGRSpatialReferenceH)
Check if local coordinate system.
Definition: ogrspatialreference.cpp:8800
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:3592
OSRSetGaussSchreiberTMercator
OGRErr OSRSetGaussSchreiberTMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Gauss Schreiber Transverse Mercator.
Definition: ogrspatialreference.cpp:6564
OSRIsDynamic
int OSRIsDynamic(OGRSpatialReferenceH)
Check if a CRS is a dynamic CRS.
Definition: ogrspatialreference.cpp:8970
OSRGetAxis
const char * OSRGetAxis(OGRSpatialReferenceH hSRS, const char *pszTargetKey, int iAxis, OGRAxisOrientation *peOrientation)
Fetch the orientation of one axis.
Definition: ogrspatialreference.cpp:10443
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition: ogr_api.h:81
OSRReference
int OSRReference(OGRSpatialReferenceH)
Increments the reference count by one.
Definition: ogrspatialreference.cpp:1001
OSRSetProjCS
OGRErr OSRSetProjCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:5360
OSRSetPS
OGRErr OSRSetPS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Polar Stereographic.
Definition: ogrspatialreference.cpp:7357
OGRCoordinateTransformationH
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition: ogr_api.h:83
OSRGetTargetLinearUnits
double OSRGetTargetLinearUnits(OGRSpatialReferenceH, const char *, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:3049
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:9516
OSRSetPROJSearchPaths
void OSRSetPROJSearchPaths(const char *const *papszPaths)
Set the search path(s) for PROJ resource files.
Definition: ogr_proj_p.cpp:420
OSRCRSInfo::dfWestLongitudeDeg
double dfWestLongitudeDeg
Western-most longitude of the area of use, in degrees.
Definition: ogr_srs_api.h:984
OAMS_TRADITIONAL_GIS_ORDER
@ OAMS_TRADITIONAL_GIS_ORDER
Traditional GIS order.
Definition: ogr_srs_api.h:657
OSRCloneGeogCS
OGRSpatialReferenceH OSRCloneGeogCS(OGRSpatialReferenceH)
Make a duplicate of the GEOGCS node of this OGRSpatialReference object.
Definition: ogrspatialreference.cpp:9065
OSRCRSInfo::dfEastLongitudeDeg
double dfEastLongitudeDeg
Eastern-most longitude of the area of use, in degrees.
Definition: ogr_srs_api.h:988
OSRSetIGH
OGRErr OSRSetIGH(OGRSpatialReferenceH hSRS)
Interrupted Goode Homolosine.
Definition: ogrspatialreference.cpp:6504
OSRSetMC
OGRErr OSRSetMC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Miller Cylindrical.
Definition: ogrspatialreference.cpp:7050
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Opaque type for a Spatial Reference object.
Definition: ogr_srs_api.h:448
OSRImportFromPCI
OGRErr OSRImportFromPCI(OGRSpatialReferenceH hSRS, const char *, const char *, double *)
Import coordinate system from PCI projection definition.
Definition: ogr_srs_pci.cpp:142
OAMS_AUTHORITY_COMPLIANT
@ OAMS_AUTHORITY_COMPLIANT
Compliant with the order mandated by the CRS authority.
Definition: ogr_srs_api.h:658
OSRSetLAEA
OGRErr OSRSetLAEA(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Azimuthal Equal-Area.
Definition: ogrspatialreference.cpp:6927
OAO_Other
@ OAO_Other
Other.
Definition: ogr_srs_api.h:50
OSRNewSpatialReference
OGRSpatialReferenceH OSRNewSpatialReference(const char *)
Constructor.
Definition: ogrspatialreference.cpp:798
OSRExportToProj4
OGRErr OSRExportToProj4(OGRSpatialReferenceH, char **)
Export coordinate system in PROJ.4 legacy format.
Definition: ogrspatialreference.cpp:10888
OSRSetDataAxisToSRSAxisMapping
OGRErr OSRSetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int nMappingSize, const int *panMapping)
Set a custom data axis to CRS axis mapping.
Definition: ogrspatialreference.cpp:11944
OSRGetAuthorityName
const char * OSRGetAuthorityName(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority name for a node.
Definition: ogrspatialreference.cpp:8248
OSRSetProjection
OGRErr OSRSetProjection(OGRSpatialReferenceH, const char *)
Set a projection name.
Definition: ogrspatialreference.cpp:5418
OSR_CRS_TYPE_COMPOUND
@ OSR_CRS_TYPE_COMPOUND
Compound CRS.
Definition: ogr_srs_api.h:958
OSRSetPolyconic
OGRErr OSRSetPolyconic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Polyconic.
Definition: ogrspatialreference.cpp:7284
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:319
OSRSetGeocCS
OGRErr OSRSetGeocCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:5141
OSRPromoteTo3D
OGRErr OSRPromoteTo3D(OGRSpatialReferenceH hSRS, const char *pszName)
"Promotes" a 2D CRS to a 3D CRS one.
Definition: ogrspatialreference.cpp:12275
OSRGetCoordinateEpoch
double OSRGetCoordinateEpoch(OGRSpatialReferenceH hSRS)
Get the coordinate epoch, as decimal year.
Definition: ogrspatialreference.cpp:12561
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:6868
OSRExportToUSGS
OGRErr OSRExportToUSGS(OGRSpatialReferenceH, long *, long *, double **, long *)
Export coordinate system in USGS GCTP projection definition.
Definition: ogr_srs_usgs.cpp:786
OSRSetMollweide
OGRErr OSRSetMollweide(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Mollweide.
Definition: ogrspatialreference.cpp:7162
OSRSetEquirectangular
OGRErr OSRSetEquirectangular(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equirectangular.
Definition: ogrspatialreference.cpp:6376
OSRIsGeocentric
int OSRIsGeocentric(OGRSpatialReferenceH)
Check if geocentric coordinate system.
Definition: ogrspatialreference.cpp:8638
OAO_Up
@ OAO_Up
Up (to space)
Definition: ogr_srs_api.h:55
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:7829
OSRGetTOWGS84
OGRErr OSRGetTOWGS84(OGRSpatialReferenceH hSRS, double *, int)
Fetch TOWGS84 parameters, if available.
Definition: ogrspatialreference.cpp:9904
OSRGetSemiMinor
double OSRGetSemiMinor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi minor axis.
Definition: ogrspatialreference.cpp:4991
OSRSetAngularUnits
OGRErr OSRSetAngularUnits(OGRSpatialReferenceH, const char *, double)
Set the angular units for the geographic coordinate system.
Definition: ogrspatialreference.cpp:2364
OSR_CRS_TYPE_OTHER
@ OSR_CRS_TYPE_OTHER
Other.
Definition: ogr_srs_api.h:960
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:10560
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:3284
OSRSetTMSO
OGRErr OSRSetTMSO(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator (South Oriented)
Definition: ogrspatialreference.cpp:5964
OSRExportToWktEx
OGRErr OSRExportToWktEx(OGRSpatialReferenceH, char **ppszResult, const char *const *papszOptions)
Convert this SRS into WKT format.
Definition: ogrspatialreference.cpp:1776
OSRExportToPCI
OGRErr OSRExportToPCI(OGRSpatialReferenceH, char **, char **, double **)
Export coordinate system in PCI projection definition.
Definition: ogr_srs_pci.cpp:719
OCTDestroyCoordinateTransformationOptions
void OCTDestroyCoordinateTransformationOptions(OGRCoordinateTransformationOptionsH)
Destroy coordinate transformation options.
Definition: ogrct.cpp:354
OCTCoordinateTransformationOptionsSetOperation
int OCTCoordinateTransformationOptionsSetOperation(OGRCoordinateTransformationOptionsH hOptions, const char *pszCO, int bReverseCO)
Sets a coordinate operation.
Definition: ogrct.cpp:500
OSRGetLinearUnits
double OSRGetLinearUnits(OGRSpatialReferenceH, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:2822
OSRSetEckert
OGRErr OSRSetEckert(OGRSpatialReferenceH hSRS, int nVariation, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert I-VI.
Definition: ogrspatialreference.cpp:6277
OSRValidate
OGRErr OSRValidate(OGRSpatialReferenceH)
Validate SRS tokens.
Definition: ogrspatialreference.cpp:2141
OSRSetTM
OGRErr OSRSetTM(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator.
Definition: ogrspatialreference.cpp:5875
OSRCalcInvFlattening
double OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor)
Compute inverse flattening from semi-major and semi-minor axis.
Definition: ogrspatialreference.cpp:10705
OSRSetCompoundCS
OGRErr OSRSetCompoundCS(OGRSpatialReferenceH hSRS, const char *pszName, OGRSpatialReferenceH hHorizSRS, OGRSpatialReferenceH hVertSRS)
Setup a compound coordinate system.
Definition: ogrspatialreference.cpp:5292
OGRAxisOrientation
OGRAxisOrientation
Axis orientations (corresponds to CS_AxisOrientationEnum).
Definition: ogr_srs_api.h:48
OSRIsGeographic
int OSRIsGeographic(OGRSpatialReferenceH)
Check if geographic coordinate system.
Definition: ogrspatialreference.cpp:8716
OSRImportFromDict
OGRErr OSRImportFromDict(OGRSpatialReferenceH, const char *, const char *)
Read SRS from WKT dictionary.
Definition: ogr_srs_dict.cpp:173
OCTGetTargetCS
OGRSpatialReferenceH OCTGetTargetCS(OGRCoordinateTransformationH hTransform)
Transformation's target coordinate system reference.
Definition: ogrct.cpp:1132
OSRExportToXML
OGRErr OSRExportToXML(OGRSpatialReferenceH, char **, const char *)
Export coordinate system in XML format.
Definition: ogr_srs_xml.cpp:711
OSREPSGTreatsAsNorthingEasting
int OSREPSGTreatsAsNorthingEasting(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this projected coordinate system should be treated as having...
Definition: ogrspatialreference.cpp:11637
OSRSetSCH
OGRErr OSRSetSCH(OGRSpatialReferenceH hSRS, double dfPegLat, double dfPegLong, double dfPegHeading, double dfPegHgt)
Spherical, Cross-track, Height.
Definition: ogrspatialreference.cpp:7787
OSRCRSInfo::dfSouthLatitudeDeg
double dfSouthLatitudeDeg
Southern-most latitude of the area of use, in degrees.
Definition: ogr_srs_api.h:986
OSRCalcSemiMinorFromInvFlattening
double OSRCalcSemiMinorFromInvFlattening(double dfSemiMajor, double dfInvFlattening)
Compute semi-minor axis from semi-major axis and inverse flattening.
Definition: ogrspatialreference.cpp:10733
OCTGetInverse
OGRCoordinateTransformationH OCTGetInverse(OGRCoordinateTransformationH hTransform)
Inverse transformation object.
Definition: ogrct.cpp:1157
OSRCRSInfo::pszAuthName
char * pszAuthName
Authority name.
Definition: ogr_srs_api.h:971
OCTDestroyCoordinateTransformation
void OCTDestroyCoordinateTransformation(OGRCoordinateTransformationH)
OGRCoordinateTransformation destructor.
Definition: ogrct.cpp:806
OSRSetVertCS
OGRErr OSRSetVertCS(OGRSpatialReferenceH hSRS, const char *pszVertCSName, const char *pszVertDatumName, int nVertDatumType)
Setup the vertical coordinate system.
Definition: ogrspatialreference.cpp:5216
OSR_CRS_TYPE_GEOGRAPHIC_2D
@ OSR_CRS_TYPE_GEOGRAPHIC_2D
Geographic 2D CRS.
Definition: ogr_srs_api.h:948
OSRGetAuthorityCode
const char * OSRGetAuthorityCode(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority code for a node.
Definition: ogrspatialreference.cpp:8144
OSRGetPROJSearchPaths
char ** OSRGetPROJSearchPaths(void)
Get the search path(s) for PROJ resource files.
Definition: ogr_proj_p.cpp:438
OSRSetTOWGS84
OGRErr OSRSetTOWGS84(OGRSpatialReferenceH hSRS, double, double, double, double, double, double, double)
Set the Bursa-Wolf conversion to WGS84.
Definition: ogrspatialreference.cpp:9850
OCTCoordinateTransformationOptionsSetBallparkAllowed
int OCTCoordinateTransformationOptionsSetBallparkAllowed(OGRCoordinateTransformationOptionsH hOptions, int bAllowBallpark)
Sets whether ballpark transformations are allowed.
Definition: ogrct.cpp:585
OSREPSGTreatsAsLatLong
int OSREPSGTreatsAsLatLong(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as havin...
Definition: ogrspatialreference.cpp:11543
OSRCRSType
OSRCRSType
Type of Coordinate Reference System (CRS).
Definition: ogr_srs_api.h:945
OSRIsSame
int OSRIsSame(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:9325
OGRErr
int OGRErr
Type for a OGR error.
Definition: ogr_core.h:378
OSRRelease
void OSRRelease(OGRSpatialReferenceH)
Decrements the reference count by one, and destroy if zero.
Definition: ogrspatialreference.cpp:1089
OSRSetWagner
OGRErr OSRSetWagner(OGRSpatialReferenceH hSRS, int nVariation, double dfCenterLat, double dfFalseEasting, double dfFalseNorthing)
Wagner I – VII.
Definition: ogrspatialreference.cpp:7733
OSRCopyGeogCSFrom
OGRErr OSRCopyGeogCSFrom(OGRSpatialReferenceH hSRS, const OGRSpatialReferenceH hSrcSRS)
Copy GEOGCS from another OGRSpatialReference.
Definition: ogrspatialreference.cpp:3564
OSRSetNormProjParm
OGRErr OSRSetNormProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter with a normalized value.
Definition: ogrspatialreference.cpp:5847
OSRCRSInfo::pszProjectionMethod
char * pszProjectionMethod
Name of the projection method for a projected CRS.
Definition: ogr_srs_api.h:995
OSRSetRobinson
OGRErr OSRSetRobinson(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Robinson.
Definition: ogrspatialreference.cpp:7386
OSRSetWellKnownGeogCS
OGRErr OSRSetWellKnownGeogCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set a GeogCS based on well known name.
Definition: ogrspatialreference.cpp:3448
OSRCRSInfo::pszName
char * pszName
Object name.
Definition: ogr_srs_api.h:975
OSRExportToPanorama
OGRErr OSRExportToPanorama(OGRSpatialReferenceH, long *, long *, long *, long *, double *)
Export coordinate system in "Panorama" GIS projection definition.
Definition: ogr_srs_panorama.cpp:809
OSRGetPROJVersion
void OSRGetPROJVersion(int *pnMajor, int *pnMinor, int *pnPatch)
Get the PROJ version.
Definition: ogr_proj_p.cpp:562
OCTNewCoordinateTransformation
OGRCoordinateTransformationH OCTNewCoordinateTransformation(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS)
Create transformation object.
Definition: ogrct.cpp:998
OSRImportFromOzi
OGRErr OSRImportFromOzi(OGRSpatialReferenceH, const char *const *)
Import coordinate system from OziExplorer projection definition.
Definition: ogr_srs_ozi.cpp:66
OSRSetFromUserInput
OGRErr OSRSetFromUserInput(OGRSpatialReferenceH hSRS, const char *)
Set spatial reference from various text formats.
Definition: ogrspatialreference.cpp:4070
OSRGetAxesCount
int OSRGetAxesCount(OGRSpatialReferenceH hSRS)
Return the number of axis of the coordinate system of the CRS.
Definition: ogrspatialreference.cpp:10210
OSRSetLCCB
OGRErr OSRSetLCCB(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic (Belgium)
Definition: ogrspatialreference.cpp:7019
OSRGetPrimeMeridian
double OSRGetPrimeMeridian(OGRSpatialReferenceH, char **)
Fetch prime meridian info.
Definition: ogrspatialreference.cpp:3163
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:6710
OSRGetAngularUnits
double OSRGetAngularUnits(OGRSpatialReferenceH, char **)
Fetch angular geographic coordinate system units.
Definition: ogrspatialreference.cpp:2496
OSRImportFromESRI
OGRErr OSRImportFromESRI(OGRSpatialReferenceH, char **)
Import coordinate system from ESRI .prj format(s).
Definition: ogr_srs_esri.cpp:118
OSRStripVertical
OGRErr OSRStripVertical(OGRSpatialReferenceH)
Convert a compound cs into a horizontal CS.
Definition: ogrspatialreference.cpp:8376
OSRAxisEnumToName
const char * OSRAxisEnumToName(OGRAxisOrientation eOrientation)
Return the string representation for the OGRAxisOrientation enumeration.
Definition: ogrspatialreference.cpp:10464
OSRIsSameGeogCS
int OSRIsSameGeogCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the GeogCS'es match?
Definition: ogrspatialreference.cpp:9149
OSRExportToMICoordSys
OGRErr OSRExportToMICoordSys(OGRSpatialReferenceH, char **)
Export coordinate system in Mapinfo style CoordSys format.
Definition: ogrspatialreference.cpp:10587
OSRSetQSC
OGRErr OSRSetQSC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong)
Quadrilateralized Spherical Cube.
Definition: ogrspatialreference.cpp:7760
OSRExportToPrettyWkt
OGRErr OSRExportToPrettyWkt(OGRSpatialReferenceH, char **, int)
Convert this SRS into a nicely formatted WKT 1 string for display to a person.
Definition: ogrspatialreference.cpp:1462
OSRSetTargetLinearUnits
OGRErr OSRSetTargetLinearUnits(OGRSpatialReferenceH, const char *, const char *, double)
Set the linear units for the target node.
Definition: ogrspatialreference.cpp:2747
OSRSetLCC
OGRErr OSRSetLCC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic.
Definition: ogrspatialreference.cpp:6958
OSRSetACEA
OGRErr OSRSetACEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Albers Conic Equal Area.
Definition: ogrspatialreference.cpp:6058
OSRSetSinusoidal
OGRErr OSRSetSinusoidal(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Sinusoidal.
Definition: ogrspatialreference.cpp:7414
OSRIsVertical
int OSRIsVertical(OGRSpatialReferenceH)
Check if vertical coordinate system.
Definition: ogrspatialreference.cpp:8864
OSRSetAE
OGRErr OSRSetAE(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Azimuthal Equidistant.
Definition: ogrspatialreference.cpp:6087
OSRGetUTMZone
int OSRGetUTMZone(OGRSpatialReferenceH hSRS, int *pbNorth)
Get utm zone information.
Definition: ogrspatialreference.cpp:7659
OSRSetEckertVI
OGRErr OSRSetEckertVI(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert VI.
Definition: ogrspatialreference.cpp:6334
OSRGetPROJEnableNetwork
int OSRGetPROJEnableNetwork(void)
Get whether PROJ networking capabilities are enabled.
Definition: ogr_proj_p.cpp:534
OCTCoordinateTransformationOptionsSetDesiredAccuracy
int OCTCoordinateTransformationOptionsSetDesiredAccuracy(OGRCoordinateTransformationOptionsH hOptions, double dfAccuracy)
Sets the desired accuracy for coordinate operations.
Definition: ogrct.cpp:545
OSRIsSameEx
int OSRIsSameEx(OGRSpatialReferenceH, OGRSpatialReferenceH, const char *const *papszOptions)
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:9343
OSRSetGH
OGRErr OSRSetGH(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Goode Homolosine.
Definition: ogrspatialreference.cpp:6478
OSRIsSameVertCS
int OSRIsSameVertCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the VertCS'es match?
Definition: ogrspatialreference.cpp:9211
OCTClone
OGRCoordinateTransformationH OCTClone(OGRCoordinateTransformationH hTransform)
Clone transformation object.
Definition: ogrct.cpp:1078
OSRImportFromUSGS
OGRErr OSRImportFromUSGS(OGRSpatialReferenceH, long, long, double *, long)
Import coordinate system from USGS projection definition.
Definition: ogr_srs_usgs.cpp:162
OSRSetBonne
OGRErr OSRSetBonne(OGRSpatialReferenceH hSRS, double dfStandardParallel, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Bonne.
Definition: ogrspatialreference.cpp:6116
OSRExportToWkt
OGRErr OSRExportToWkt(OGRSpatialReferenceH, char **)
Convert this SRS into WKT 1 format.
Definition: ogrspatialreference.cpp:1753
OSRImportFromUrl
OGRErr OSRImportFromUrl(OGRSpatialReferenceH, const char *)
Set spatial reference from a URL.
Definition: ogrspatialreference.cpp:4178
OSRSetPROJAuxDbPaths
void OSRSetPROJAuxDbPaths(const char *const *papszPaths)
Set list of PROJ auxiliary database filenames.
Definition: ogr_proj_p.cpp:467
OSRExportToERM
OGRErr OSRExportToERM(OGRSpatialReferenceH, char *, char *, char *)
Convert coordinate system to ERMapper format.
Definition: ogr_srs_erm.cpp:161
OSRSetLCC1SP
OGRErr OSRSetLCC1SP(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic 1SP.
Definition: ogrspatialreference.cpp:6988
OSRSetGS
OGRErr OSRSetGS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Gall Stereograpic.
Definition: ogrspatialreference.cpp:6451
OSRCRSInfo::pszAreaName
char * pszAreaName
Name of the area of use.
Definition: ogr_srs_api.h:992
OGRCoordinateTransformationH
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition: ogr_srs_api.h:450
OSRSetLocalCS
OGRErr OSRSetLocalCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible LOCAL_CS name.
Definition: ogrspatialreference.cpp:5045
OSRSetStatePlaneWithUnits
OGRErr OSRSetStatePlaneWithUnits(OGRSpatialReferenceH hSRS, int nZone, int bNAD83, const char *pszOverrideUnitName, double dfOverrideUnit)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:264
OSRSetCS
OGRErr OSRSetCS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Cassini-Soldner.
Definition: ogrspatialreference.cpp:6174
OSRImportFromERM
OGRErr OSRImportFromERM(OGRSpatialReferenceH, const char *, const char *, const char *)
Create OGR WKT from ERMapper projection definitions.
Definition: ogr_srs_erm.cpp:53
OSRCRSInfo::dfNorthLatitudeDeg
double dfNorthLatitudeDeg
Northern-most latitude of the area of use, in degrees.
Definition: ogr_srs_api.h:990
OSRImportFromWkt
OGRErr OSRImportFromWkt(OGRSpatialReferenceH, char **)
Import from WKT string.
Definition: ogrspatialreference.cpp:2162
ogr_core.h
OSRGetSemiMajor
double OSRGetSemiMajor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi major axis.
Definition: ogrspatialreference.cpp:4834
OSRFreeSRSArray
void OSRFreeSRSArray(OGRSpatialReferenceH *pahSRS)
Free return of OSRIdentifyMatches()
Definition: ogrspatialreference.cpp:9540
OSRSetStatePlane
OGRErr OSRSetStatePlane(OGRSpatialReferenceH hSRS, int nZone, int bNAD83)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:245
OSRIsCompound
int OSRIsCompound(OGRSpatialReferenceH)
Check if the coordinate system is compound.
Definition: ogrspatialreference.cpp:8535
OSRSetTMVariant
OGRErr OSRSetTMVariant(OGRSpatialReferenceH hSRS, const char *pszVariantName, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator variant.
Definition: ogrspatialreference.cpp:5911
OSRGetAxisMappingStrategy
OSRAxisMappingStrategy OSRGetAxisMappingStrategy(OGRSpatialReferenceH hSRS)
Return the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:11823
OCTCoordinateTransformationOptionsSetAreaOfInterest
int OCTCoordinateTransformationOptionsSetAreaOfInterest(OGRCoordinateTransformationOptionsH hOptions, double dfWestLongitudeDeg, double dfSouthLatitudeDeg, double dfEastLongitudeDeg, double dfNorthLatitudeDeg)
Sets an area of interest.
Definition: ogrct.cpp:425
OSRImportFromXML
OGRErr OSRImportFromXML(OGRSpatialReferenceH, const char *)
Import coordinate system from XML format (GML only currently).
Definition: ogr_srs_xml.cpp:1257
OAO_South
@ OAO_South
South.
Definition: ogr_srs_api.h:52
OCTNewCoordinateTransformationOptions
OGRCoordinateTransformationOptionsH OCTNewCoordinateTransformationOptions(void)
Create coordinate transformation options.
Definition: ogrct.cpp:341
OSRIsProjected
int OSRIsProjected(OGRSpatialReferenceH)
Check if projected coordinate system.
Definition: ogrspatialreference.cpp:8595
OCTTransform
int OCTTransform(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z)
Transform an array of points.
Definition: ogrct.cpp:3512
OSRSetOS
OGRErr OSRSetOS(OGRSpatialReferenceH hSRS, double dfOriginLat, double dfCMeridian, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Oblique Stereographic.
Definition: ogrspatialreference.cpp:7221
OSRCRSInfo::bDeprecated
int bDeprecated
Whether the object is deprecated.
Definition: ogr_srs_api.h:979
OSRImportFromEPSG
OGRErr OSRImportFromEPSG(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition: ogrspatialreference.cpp:11433
OSRSetCEA
OGRErr OSRSetCEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Cylindrical Equal Area.
Definition: ogrspatialreference.cpp:6146
OSRSetNZMG
OGRErr OSRSetNZMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
New Zealand Map Grid.
Definition: ogrspatialreference.cpp:7191