GDAL

- Main Page
- Related Pages
- Classes
- Files
- Download
- Issue Tracker

- File List
- File Members

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 mines-paris dot org>
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
37 CPL_C_START
38
48 typedef enum {
49 OAO_Other=0,
50 OAO_North=1,
51 OAO_South=2,
52 OAO_East=3,
53 OAO_West=4,
54 OAO_Up=5,
55 OAO_Down=6
56 } OGRAxisOrientation;
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"
80
81 #define SRS_PT_AZIMUTHAL_EQUIDISTANT "Azimuthal_Equidistant"
82
83 #define SRS_PT_CASSINI_SOLDNER "Cassini_Soldner"
84
85 #define SRS_PT_CYLINDRICAL_EQUAL_AREA "Cylindrical_Equal_Area"
86
87 #define SRS_PT_BONNE "Bonne"
88
89 #define SRS_PT_ECKERT_I "Eckert_I"
90
91 #define SRS_PT_ECKERT_II "Eckert_II"
92
93 #define SRS_PT_ECKERT_III "Eckert_III"
94
95 #define SRS_PT_ECKERT_IV "Eckert_IV"
96
97 #define SRS_PT_ECKERT_V "Eckert_V"
98
99 #define SRS_PT_ECKERT_VI "Eckert_VI"
100
101 #define SRS_PT_EQUIDISTANT_CONIC \
102 "Equidistant_Conic"
103
104 #define SRS_PT_EQUIRECTANGULAR "Equirectangular"
105
106 #define SRS_PT_GALL_STEREOGRAPHIC \
107 "Gall_Stereographic"
108
109 #define SRS_PT_GAUSSSCHREIBERTMERCATOR \
110 "Gauss_Schreiber_Transverse_Mercator"
111
112 #define SRS_PT_GEOSTATIONARY_SATELLITE \
113 "Geostationary_Satellite"
114
115 #define SRS_PT_GOODE_HOMOLOSINE "Goode_Homolosine"
116
117 #define SRS_PT_IGH "Interrupted_Goode_Homolosine"
118
119 #define SRS_PT_GNOMONIC "Gnomonic"
120
121 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER \
122 "Hotine_Oblique_Mercator_Azimuth_Center"
123
124 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR \
125 "Hotine_Oblique_Mercator"
126
127 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN \
128 "Hotine_Oblique_Mercator_Two_Point_Natural_Origin"
129
130 #define SRS_PT_LABORDE_OBLIQUE_MERCATOR \
131 "Laborde_Oblique_Mercator"
132
133 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP \
134 "Lambert_Conformal_Conic_1SP"
135
136 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP \
137 "Lambert_Conformal_Conic_2SP"
138
139 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM \
140 "Lambert_Conformal_Conic_2SP_Belgium"
141
142 #define SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA \
143 "Lambert_Azimuthal_Equal_Area"
144
145 #define SRS_PT_MERCATOR_1SP "Mercator_1SP"
146
147 #define SRS_PT_MERCATOR_2SP "Mercator_2SP"
148
149 #define SRS_PT_MERCATOR_AUXILIARY_SPHERE \
150 "Mercator_Auxiliary_Sphere"
151
152 #define SRS_PT_MILLER_CYLINDRICAL "Miller_Cylindrical"
153
154 #define SRS_PT_MOLLWEIDE "Mollweide"
155
156 #define SRS_PT_NEW_ZEALAND_MAP_GRID \
157 "New_Zealand_Map_Grid"
158
159 #define SRS_PT_OBLIQUE_STEREOGRAPHIC \
160 "Oblique_Stereographic"
161
162 #define SRS_PT_ORTHOGRAPHIC "Orthographic"
163
164 #define SRS_PT_POLAR_STEREOGRAPHIC \
165 "Polar_Stereographic"
166
167 #define SRS_PT_POLYCONIC "Polyconic"
168
169 #define SRS_PT_ROBINSON "Robinson"
170
171 #define SRS_PT_SINUSOIDAL "Sinusoidal"
172
173 #define SRS_PT_STEREOGRAPHIC "Stereographic"
174
175 #define SRS_PT_SWISS_OBLIQUE_CYLINDRICAL \
176 "Swiss_Oblique_Cylindrical"
177
178 #define SRS_PT_TRANSVERSE_MERCATOR \
179 "Transverse_Mercator"
180
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"
188
189 #define SRS_PT_TRANSVERSE_MERCATOR_MI_22 \
190 "Transverse_Mercator_MapInfo_22"
191
192 #define SRS_PT_TRANSVERSE_MERCATOR_MI_23 \
193 "Transverse_Mercator_MapInfo_23"
194
195 #define SRS_PT_TRANSVERSE_MERCATOR_MI_24 \
196 "Transverse_Mercator_MapInfo_24"
197
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"
204
205 #define SRS_PT_TWO_POINT_EQUIDISTANT \
206 "Two_Point_Equidistant"
207
208 #define SRS_PT_VANDERGRINTEN "VanDerGrinten"
209
210 #define SRS_PT_KROVAK "Krovak"
211
212 #define SRS_PT_IMW_POLYCONIC "International_Map_of_the_World_Polyconic"
213
214 #define SRS_PT_WAGNER_I "Wagner_I"
215
216 #define SRS_PT_WAGNER_II "Wagner_II"
217
218 #define SRS_PT_WAGNER_III "Wagner_III"
219
220 #define SRS_PT_WAGNER_IV "Wagner_IV"
221
222 #define SRS_PT_WAGNER_V "Wagner_V"
223
224 #define SRS_PT_WAGNER_VI "Wagner_VI"
225
226 #define SRS_PT_WAGNER_VII "Wagner_VII"
227
228 #define SRS_PT_QSC "Quadrilateralized_Spherical_Cube"
229
230 #define SRS_PT_AITOFF "Aitoff"
231
232 #define SRS_PT_WINKEL_I "Winkel_I"
233
234 #define SRS_PT_WINKEL_II "Winkel_II"
235
236 #define SRS_PT_WINKEL_TRIPEL "Winkel_Tripel"
237
238 #define SRS_PT_CRASTER_PARABOLIC "Craster_Parabolic"
239
240 #define SRS_PT_LOXIMUTHAL "Loximuthal"
241
242 #define SRS_PT_QUARTIC_AUTHALIC "Quartic_Authalic"
243
244 #define SRS_PT_SCH "Spherical_Cross_Track_Height"
245
247 #define SRS_PP_CENTRAL_MERIDIAN "central_meridian"
248
249 #define SRS_PP_SCALE_FACTOR "scale_factor"
250
251 #define SRS_PP_STANDARD_PARALLEL_1 "standard_parallel_1"
252
253 #define SRS_PP_STANDARD_PARALLEL_2 "standard_parallel_2"
254
255 #define SRS_PP_PSEUDO_STD_PARALLEL_1 "pseudo_standard_parallel_1"
256
257 #define SRS_PP_LONGITUDE_OF_CENTER "longitude_of_center"
258
259 #define SRS_PP_LATITUDE_OF_CENTER "latitude_of_center"
260
261 #define SRS_PP_LONGITUDE_OF_ORIGIN "longitude_of_origin"
262
263 #define SRS_PP_LATITUDE_OF_ORIGIN "latitude_of_origin"
264
265 #define SRS_PP_FALSE_EASTING "false_easting"
266
267 #define SRS_PP_FALSE_NORTHING "false_northing"
268
269 #define SRS_PP_AZIMUTH "azimuth"
270
271 #define SRS_PP_LONGITUDE_OF_POINT_1 "longitude_of_point_1"
272
273 #define SRS_PP_LATITUDE_OF_POINT_1 "latitude_of_point_1"
274
275 #define SRS_PP_LONGITUDE_OF_POINT_2 "longitude_of_point_2"
276
277 #define SRS_PP_LATITUDE_OF_POINT_2 "latitude_of_point_2"
278
279 #define SRS_PP_LONGITUDE_OF_POINT_3 "longitude_of_point_3"
280
281 #define SRS_PP_LATITUDE_OF_POINT_3 "latitude_of_point_3"
282
283 #define SRS_PP_RECTIFIED_GRID_ANGLE "rectified_grid_angle"
284
285 #define SRS_PP_LANDSAT_NUMBER "landsat_number"
286
287 #define SRS_PP_PATH_NUMBER "path_number"
288
289 #define SRS_PP_PERSPECTIVE_POINT_HEIGHT "perspective_point_height"
290
291 #define SRS_PP_SATELLITE_HEIGHT "satellite_height"
292
293 #define SRS_PP_FIPSZONE "fipszone"
294
295 #define SRS_PP_ZONE "zone"
296
297 #define SRS_PP_LATITUDE_OF_1ST_POINT "Latitude_Of_1st_Point"
298
299 #define SRS_PP_LONGITUDE_OF_1ST_POINT "Longitude_Of_1st_Point"
300
301 #define SRS_PP_LATITUDE_OF_2ND_POINT "Latitude_Of_2nd_Point"
302
303 #define SRS_PP_LONGITUDE_OF_2ND_POINT "Longitude_Of_2nd_Point"
304
305 #define SRS_PP_PEG_POINT_LATITUDE "peg_point_latitude"
306
307 #define SRS_PP_PEG_POINT_LONGITUDE "peg_point_longitude"
308
309 #define SRS_PP_PEG_POINT_HEADING "peg_point_heading"
310
311 #define SRS_PP_PEG_POINT_HEIGHT "peg_point_height"
312
314 #define SRS_UL_METER "Meter"
315
316 #define SRS_UL_FOOT "Foot (International)" /* or just "FOOT"? */
317
318 #define SRS_UL_FOOT_CONV "0.3048"
319
320 #define SRS_UL_US_FOOT "Foot_US" /* or "US survey foot" from EPSG */
321
322 #define SRS_UL_US_FOOT_CONV "0.3048006096012192"
323
324 #define SRS_UL_NAUTICAL_MILE "Nautical Mile"
325
326 #define SRS_UL_NAUTICAL_MILE_CONV "1852.0"
327
328 #define SRS_UL_LINK "Link" /* Based on US Foot */
329
330 #define SRS_UL_LINK_CONV "0.20116684023368047"
331
332 #define SRS_UL_CHAIN "Chain" /* based on US Foot */
333
334 #define SRS_UL_CHAIN_CONV "20.116684023368047"
335
336 #define SRS_UL_ROD "Rod" /* based on US Foot */
337
338 #define SRS_UL_ROD_CONV "5.02921005842012"
339
340 #define SRS_UL_LINK_Clarke "Link_Clarke"
341
342 #define SRS_UL_LINK_Clarke_CONV "0.2011661949"
343
345 #define SRS_UL_KILOMETER "Kilometer"
346
347 #define SRS_UL_KILOMETER_CONV "1000."
348
349 #define SRS_UL_DECIMETER "Decimeter"
350
351 #define SRS_UL_DECIMETER_CONV "0.1"
352
353 #define SRS_UL_CENTIMETER "Centimeter"
354
355 #define SRS_UL_CENTIMETER_CONV "0.01"
356
357 #define SRS_UL_MILLIMETER "Millimeter"
358
359 #define SRS_UL_MILLIMETER_CONV "0.001"
360
361 #define SRS_UL_INTL_NAUT_MILE "Nautical_Mile_International"
362
363 #define SRS_UL_INTL_NAUT_MILE_CONV "1852.0"
364
365 #define SRS_UL_INTL_INCH "Inch_International"
366
367 #define SRS_UL_INTL_INCH_CONV "0.0254"
368
369 #define SRS_UL_INTL_FOOT "Foot_International"
370
371 #define SRS_UL_INTL_FOOT_CONV "0.3048"
372
373 #define SRS_UL_INTL_YARD "Yard_International"
374
375 #define SRS_UL_INTL_YARD_CONV "0.9144"
376
377 #define SRS_UL_INTL_STAT_MILE "Statute_Mile_International"
378
379 #define SRS_UL_INTL_STAT_MILE_CONV "1609.344"
380
381 #define SRS_UL_INTL_FATHOM "Fathom_International"
382
383 #define SRS_UL_INTL_FATHOM_CONV "1.8288"
384
385 #define SRS_UL_INTL_CHAIN "Chain_International"
386
387 #define SRS_UL_INTL_CHAIN_CONV "20.1168"
388
389 #define SRS_UL_INTL_LINK "Link_International"
390
391 #define SRS_UL_INTL_LINK_CONV "0.201168"
392
393 #define SRS_UL_US_INCH "Inch_US_Surveyor"
394
395 #define SRS_UL_US_INCH_CONV "0.025400050800101603"
396
397 #define SRS_UL_US_YARD "Yard_US_Surveyor"
398
399 #define SRS_UL_US_YARD_CONV "0.914401828803658"
400
401 #define SRS_UL_US_CHAIN "Chain_US_Surveyor"
402
403 #define SRS_UL_US_CHAIN_CONV "20.11684023368047"
404
405 #define SRS_UL_US_STAT_MILE "Statute_Mile_US_Surveyor"
406
407 #define SRS_UL_US_STAT_MILE_CONV "1609.347218694437"
408
409 #define SRS_UL_INDIAN_YARD "Yard_Indian"
410
411 #define SRS_UL_INDIAN_YARD_CONV "0.91439523"
412
413 #define SRS_UL_INDIAN_FOOT "Foot_Indian"
414
415 #define SRS_UL_INDIAN_FOOT_CONV "0.30479841"
416
417 #define SRS_UL_INDIAN_CHAIN "Chain_Indian"
418
419 #define SRS_UL_INDIAN_CHAIN_CONV "20.11669506"
420
422 #define SRS_UA_DEGREE "degree"
423
424 #define SRS_UA_DEGREE_CONV "0.0174532925199433"
425
426 #define SRS_UA_RADIAN "radian"
427
429 #define SRS_PM_GREENWICH "Greenwich"
430
432 #define SRS_DN_NAD27 "North_American_Datum_1927"
433
434 #define SRS_DN_NAD83 "North_American_Datum_1983"
435
436 #define SRS_DN_WGS72 "WGS_1972"
437
438 #define SRS_DN_WGS84 "WGS_1984"
439
441 #define SRS_WGS84_SEMIMAJOR 6378137.0
442
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
450
451 #define DEFINED_OGRSpatialReferenceH
452
454 #ifdef DEBUG
455 typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
456 typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
457 #else
458
459 typedef void *OGRSpatialReferenceH;
461 typedef void *OGRCoordinateTransformationH;
462 #endif
463
464 #endif
465
466 void CPL_DLL OSRSetPROJSearchPaths( const char* const * papszPaths );
467
468 OGRSpatialReferenceH CPL_DLL CPL_STDCALL
469 OSRNewSpatialReference( const char * /* = NULL */);
470 OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRCloneGeogCS( OGRSpatialReferenceH );
471 OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRClone( OGRSpatialReferenceH );
472 void CPL_DLL CPL_STDCALL OSRDestroySpatialReference( OGRSpatialReferenceH );
473
474 int CPL_DLL OSRReference( OGRSpatialReferenceH );
475 int CPL_DLL OSRDereference( OGRSpatialReferenceH );
476 void CPL_DLL OSRRelease( OGRSpatialReferenceH );
477
478 OGRErr CPL_DLL OSRValidate( OGRSpatialReferenceH );
479
480 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSG( OGRSpatialReferenceH, int );
481 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSGA( OGRSpatialReferenceH, int );
482 OGRErr CPL_DLL OSRImportFromWkt( OGRSpatialReferenceH, char ** );
483 OGRErr CPL_DLL OSRImportFromProj4( OGRSpatialReferenceH, const char *);
484 OGRErr CPL_DLL OSRImportFromESRI( OGRSpatialReferenceH, char **);
485 OGRErr CPL_DLL OSRImportFromPCI( OGRSpatialReferenceH hSRS, const char *,
486 const char *, double * );
487 OGRErr CPL_DLL OSRImportFromUSGS( OGRSpatialReferenceH,
488 long, long, double *, long);
489 OGRErr CPL_DLL OSRImportFromXML( OGRSpatialReferenceH, const char * );
490 OGRErr CPL_DLL OSRImportFromDict( OGRSpatialReferenceH, const char *,
491 const char * );
492 OGRErr CPL_DLL OSRImportFromPanorama( OGRSpatialReferenceH, long, long, long,
493 double * );
494 OGRErr CPL_DLL OSRImportFromOzi( OGRSpatialReferenceH , const char * const *);
495 OGRErr CPL_DLL OSRImportFromMICoordSys( OGRSpatialReferenceH, const char *);
496 OGRErr CPL_DLL OSRImportFromERM( OGRSpatialReferenceH,
497 const char *, const char *, const char * );
498 OGRErr CPL_DLL OSRImportFromUrl( OGRSpatialReferenceH, const char * );
499
500 OGRErr CPL_DLL CPL_STDCALL OSRExportToWkt( OGRSpatialReferenceH, char ** );
501 OGRErr CPL_DLL OSRExportToWktEx( OGRSpatialReferenceH, char ** ppszResult,
502 const char* const* papszOptions );
503 OGRErr CPL_DLL CPL_STDCALL OSRExportToPrettyWkt( OGRSpatialReferenceH, char **, int);
504 OGRErr CPL_DLL CPL_STDCALL OSRExportToProj4( OGRSpatialReferenceH, char **);
505 OGRErr CPL_DLL OSRExportToPCI( OGRSpatialReferenceH, char **, char **,
506 double ** );
507 OGRErr CPL_DLL OSRExportToUSGS( OGRSpatialReferenceH, long *, long *,
508 double **, long * );
509 OGRErr CPL_DLL OSRExportToXML( OGRSpatialReferenceH, char **, const char * );
510 OGRErr CPL_DLL OSRExportToPanorama( OGRSpatialReferenceH, long *, long *,
511 long *, long *, double * );
512 OGRErr CPL_DLL OSRExportToMICoordSys( OGRSpatialReferenceH, char ** );
513 OGRErr CPL_DLL OSRExportToERM( OGRSpatialReferenceH, char *, char *, char * );
514
515 OGRErr CPL_DLL OSRMorphToESRI( OGRSpatialReferenceH );
516 OGRErr CPL_DLL OSRMorphFromESRI( OGRSpatialReferenceH );
517
518 OGRSpatialReferenceH CPL_DLL OSRConvertToOtherProjection(
519 OGRSpatialReferenceH hSRS,
520 const char* pszTargetProjection,
521 const char* const* papszOptions );
522
523 const char CPL_DLL* OSRGetName( OGRSpatialReferenceH hSRS );
524
525 OGRErr CPL_DLL CPL_STDCALL OSRSetAttrValue( OGRSpatialReferenceH hSRS,
526 const char * pszNodePath,
527 const char * pszNewNodeValue );
528 const char CPL_DLL * CPL_STDCALL OSRGetAttrValue( OGRSpatialReferenceH hSRS,
529 const char * pszName, 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 );
534 OGRErr CPL_DLL OSRSetTargetLinearUnits( OGRSpatialReferenceH, const char *, const char *, double );
535 OGRErr CPL_DLL OSRSetLinearUnitsAndUpdateParameters(
536 OGRSpatialReferenceH, const char *, double );
537 double CPL_DLL OSRGetLinearUnits( OGRSpatialReferenceH, char ** );
538 double CPL_DLL OSRGetTargetLinearUnits( OGRSpatialReferenceH, const char *, char ** );
539
540 double CPL_DLL OSRGetPrimeMeridian( OGRSpatialReferenceH, char ** );
541
542 int CPL_DLL OSRIsGeographic( OGRSpatialReferenceH );
543 int CPL_DLL OSRIsLocal( OGRSpatialReferenceH );
544 int CPL_DLL OSRIsProjected( OGRSpatialReferenceH );
545 int CPL_DLL OSRIsCompound( OGRSpatialReferenceH );
546 int CPL_DLL OSRIsGeocentric( OGRSpatialReferenceH );
547 int CPL_DLL OSRIsVertical( OGRSpatialReferenceH );
548 int CPL_DLL OSRIsSameGeogCS( OGRSpatialReferenceH, OGRSpatialReferenceH );
549 int CPL_DLL OSRIsSameVertCS( OGRSpatialReferenceH, OGRSpatialReferenceH );
550 int CPL_DLL OSRIsSame( OGRSpatialReferenceH, OGRSpatialReferenceH );
551 int CPL_DLL OSRIsSameEx( OGRSpatialReferenceH, OGRSpatialReferenceH,
552 const char* const *papszOptions );
553
554 OGRErr CPL_DLL OSRSetLocalCS( OGRSpatialReferenceH hSRS, const char *pszName );
555 OGRErr CPL_DLL OSRSetProjCS( OGRSpatialReferenceH hSRS, const char * pszName );
556 OGRErr CPL_DLL OSRSetGeocCS( OGRSpatialReferenceH hSRS, const char * pszName );
557 OGRErr CPL_DLL OSRSetWellKnownGeogCS( OGRSpatialReferenceH hSRS,
558 const char * pszName );
559 OGRErr CPL_DLL CPL_STDCALL OSRSetFromUserInput( OGRSpatialReferenceH hSRS,
560 const char * );
561 OGRErr CPL_DLL OSRCopyGeogCSFrom( OGRSpatialReferenceH hSRS,
562 const OGRSpatialReferenceH hSrcSRS );
563 OGRErr CPL_DLL OSRSetTOWGS84( OGRSpatialReferenceH hSRS,
564 double, double, double,
565 double, double, double, double );
566 OGRErr CPL_DLL OSRGetTOWGS84( OGRSpatialReferenceH hSRS, double *, int );
567
568 OGRErr CPL_DLL OSRSetCompoundCS( OGRSpatialReferenceH hSRS,
569 const char *pszName,
570 OGRSpatialReferenceH hHorizSRS,
571 OGRSpatialReferenceH hVertSRS );
572 OGRErr CPL_DLL OSRSetGeogCS( OGRSpatialReferenceH hSRS,
573 const char * pszGeogName,
574 const char * pszDatumName,
575 const char * pszEllipsoidName,
576 double dfSemiMajor, double dfInvFlattening,
577 const char * pszPMName /* = NULL */,
578 double dfPMOffset /* = 0.0 */,
579 const char * pszUnits /* = NULL */,
580 double dfConvertToRadians /* = 0.0 */ );
581
582 OGRErr CPL_DLL OSRSetVertCS( OGRSpatialReferenceH hSRS,
583 const char * pszVertCSName,
584 const char * pszVertDatumName,
585 int nVertDatumType );
586
587 double CPL_DLL OSRGetSemiMajor( OGRSpatialReferenceH, OGRErr * /* = NULL */ );
588 double CPL_DLL OSRGetSemiMinor( OGRSpatialReferenceH, OGRErr * /* = NULL */ );
589 double CPL_DLL OSRGetInvFlattening( OGRSpatialReferenceH, OGRErr * /*=NULL*/);
590
591 OGRErr CPL_DLL OSRSetAuthority( OGRSpatialReferenceH hSRS,
592 const char * pszTargetKey,
593 const char * pszAuthority,
594 int nCode );
595 const char CPL_DLL *OSRGetAuthorityCode( OGRSpatialReferenceH hSRS,
596 const char * pszTargetKey );
597 const char CPL_DLL *OSRGetAuthorityName( OGRSpatialReferenceH hSRS,
598 const char * pszTargetKey );
599
600 int CPL_DLL OSRGetAreaOfUse( OGRSpatialReferenceH hSRS,
601 double* pdfWestLongitudeDeg,
602 double* pdfSouthLatitudeDeg,
603 double* pdfEastLongitudeDeg,
604 double* pdfNorthLatitudeDeg,
605 const char **ppszAreaName );
606
607 OGRErr CPL_DLL OSRSetProjection( OGRSpatialReferenceH, const char * );
608 OGRErr CPL_DLL OSRSetProjParm( OGRSpatialReferenceH, const char *, double );
609 double CPL_DLL OSRGetProjParm( OGRSpatialReferenceH hSRS,
610 const char * pszParmName,
611 double dfDefault /* = 0.0 */,
612 OGRErr * /* = NULL */ );
613 OGRErr CPL_DLL OSRSetNormProjParm( OGRSpatialReferenceH, const char *, double);
614 double CPL_DLL OSRGetNormProjParm( OGRSpatialReferenceH hSRS,
615 const char * pszParmName,
616 double dfDefault /* = 0.0 */,
617 OGRErr * /* = NULL */ );
618
619 OGRErr CPL_DLL OSRSetUTM( OGRSpatialReferenceH hSRS, int nZone, int bNorth );
620 int CPL_DLL OSRGetUTMZone( OGRSpatialReferenceH hSRS, int *pbNorth );
621 OGRErr CPL_DLL OSRSetStatePlane( OGRSpatialReferenceH hSRS,
622 int nZone, int bNAD83 );
623 OGRErr CPL_DLL OSRSetStatePlaneWithUnits( OGRSpatialReferenceH hSRS,
624 int nZone, int bNAD83,
625 const char *pszOverrideUnitName,
626 double dfOverrideUnit );
627 OGRErr CPL_DLL OSRAutoIdentifyEPSG( OGRSpatialReferenceH hSRS );
628
629 OGRSpatialReferenceH CPL_DLL *OSRFindMatches( OGRSpatialReferenceH hSRS,
630 char** papszOptions,
631 int* pnEntries,
632 int** ppanMatchConfidence );
633 void CPL_DLL OSRFreeSRSArray(OGRSpatialReferenceH* pahSRS);
634
635 int CPL_DLL OSREPSGTreatsAsLatLong( OGRSpatialReferenceH hSRS );
636 int CPL_DLL OSREPSGTreatsAsNorthingEasting( OGRSpatialReferenceH hSRS );
637 const char CPL_DLL *OSRGetAxis( OGRSpatialReferenceH hSRS,
638 const char *pszTargetKey, int iAxis,
639 OGRAxisOrientation *peOrientation );
640 OGRErr CPL_DLL OSRSetAxes( OGRSpatialReferenceH hSRS,
641 const char *pszTargetKey,
642 const char *pszXAxisName,
643 OGRAxisOrientation eXAxisOrientation,
644 const char *pszYAxisName,
645 OGRAxisOrientation eYAxisOrientation );
646
648 typedef enum
649 {
650 OAMS_TRADITIONAL_GIS_ORDER,
651 OAMS_AUTHORITY_COMPLIANT,
652 OAMS_CUSTOM
653 } OSRAxisMappingStrategy;
654
655 OSRAxisMappingStrategy CPL_DLL OSRGetAxisMappingStrategy( OGRSpatialReferenceH hSRS );
656
657 void CPL_DLL OSRSetAxisMappingStrategy( OGRSpatialReferenceH hSRS,
658 OSRAxisMappingStrategy strategy );
659
660 const int CPL_DLL *OSRGetDataAxisToSRSAxisMapping( OGRSpatialReferenceH hSRS, int* pnCount );
661
663 OGRErr CPL_DLL OSRSetACEA( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
664 double dfCenterLat, double dfCenterLong,
665 double dfFalseEasting, double dfFalseNorthing );
666
668 OGRErr CPL_DLL OSRSetAE( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
669 double dfFalseEasting, double dfFalseNorthing );
670
672 OGRErr CPL_DLL OSRSetBonne(OGRSpatialReferenceH hSRS,
673 double dfStandardParallel, double dfCentralMeridian,
674 double dfFalseEasting, double dfFalseNorthing );
675
677 OGRErr CPL_DLL OSRSetCEA( OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian,
678 double dfFalseEasting, double dfFalseNorthing );
679
681 OGRErr CPL_DLL OSRSetCS( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
682 double dfFalseEasting, double dfFalseNorthing );
683
685 OGRErr CPL_DLL OSRSetEC( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
686 double dfCenterLat, double dfCenterLong,
687 double dfFalseEasting, double dfFalseNorthing );
688
690 OGRErr CPL_DLL OSRSetEckert( OGRSpatialReferenceH hSRS, int nVariation,
691 double dfCentralMeridian,
692 double dfFalseEasting, double dfFalseNorthing );
693
695 OGRErr CPL_DLL OSRSetEckertIV( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
696 double dfFalseEasting, double dfFalseNorthing );
697
699 OGRErr CPL_DLL OSRSetEckertVI( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
700 double dfFalseEasting, double dfFalseNorthing );
701
703 OGRErr CPL_DLL OSRSetEquirectangular(OGRSpatialReferenceH hSRS,
704 double dfCenterLat, double dfCenterLong,
705 double dfFalseEasting, double dfFalseNorthing );
706
708 OGRErr CPL_DLL OSRSetEquirectangular2( OGRSpatialReferenceH hSRS,
709 double dfCenterLat, double dfCenterLong,
710 double dfPseudoStdParallel1,
711 double dfFalseEasting,
712 double dfFalseNorthing );
713
715 OGRErr CPL_DLL OSRSetGS( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
716 double dfFalseEasting, double dfFalseNorthing );
717
719 OGRErr CPL_DLL OSRSetGH( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
720 double dfFalseEasting, double dfFalseNorthing );
721
723 OGRErr CPL_DLL OSRSetIGH( OGRSpatialReferenceH hSRS );
724
726 OGRErr CPL_DLL OSRSetGEOS( OGRSpatialReferenceH hSRS,
727 double dfCentralMeridian, double dfSatelliteHeight,
728 double dfFalseEasting, double dfFalseNorthing );
729
731 OGRErr CPL_DLL OSRSetGaussSchreiberTMercator( OGRSpatialReferenceH hSRS,
732 double dfCenterLat, double dfCenterLong,
733 double dfScale,
734 double dfFalseEasting,
735 double dfFalseNorthing );
737 OGRErr CPL_DLL OSRSetGnomonic(OGRSpatialReferenceH hSRS,
738 double dfCenterLat, double dfCenterLong,
739 double dfFalseEasting, double dfFalseNorthing );
740
741 #ifdef undef
742
743 OGRErr CPL_DLL OSRSetOM( OGRSpatialReferenceH hSRS,
744 double dfCenterLat, double dfCenterLong,
745 double dfAzimuth, double dfRectToSkew,
746 double dfScale,
747 double dfFalseEasting, double dfFalseNorthing );
748 #endif
749
751 OGRErr CPL_DLL OSRSetHOM( OGRSpatialReferenceH hSRS,
752 double dfCenterLat, double dfCenterLong,
753 double dfAzimuth, double dfRectToSkew,
754 double dfScale,
755 double dfFalseEasting, double dfFalseNorthing );
756
757 OGRErr CPL_DLL OSRSetHOMAC( OGRSpatialReferenceH hSRS,
758 double dfCenterLat, double dfCenterLong,
759 double dfAzimuth, double dfRectToSkew,
760 double dfScale,
761 double dfFalseEasting,
762 double dfFalseNorthing );
763
765 OGRErr CPL_DLL OSRSetHOM2PNO( OGRSpatialReferenceH hSRS, double dfCenterLat,
766 double dfLat1, double dfLong1,
767 double dfLat2, double dfLong2,
768 double dfScale,
769 double dfFalseEasting, double dfFalseNorthing );
770
772 OGRErr CPL_DLL OSRSetIWMPolyconic( OGRSpatialReferenceH hSRS,
773 double dfLat1, double dfLat2,
774 double dfCenterLong,
775 double dfFalseEasting,
776 double dfFalseNorthing );
777
779 OGRErr CPL_DLL OSRSetKrovak( OGRSpatialReferenceH hSRS,
780 double dfCenterLat, double dfCenterLong,
781 double dfAzimuth, double dfPseudoStdParallelLat,
782 double dfScale,
783 double dfFalseEasting, double dfFalseNorthing );
784
786 OGRErr CPL_DLL OSRSetLAEA( OGRSpatialReferenceH hSRS,
787 double dfCenterLat, double dfCenterLong,
788 double dfFalseEasting, double dfFalseNorthing );
789
791 OGRErr CPL_DLL OSRSetLCC( OGRSpatialReferenceH hSRS,
792 double dfStdP1, double dfStdP2,
793 double dfCenterLat, double dfCenterLong,
794 double dfFalseEasting, double dfFalseNorthing );
795
797 OGRErr CPL_DLL OSRSetLCC1SP( OGRSpatialReferenceH hSRS,
798 double dfCenterLat, double dfCenterLong,
799 double dfScale,
800 double dfFalseEasting, double dfFalseNorthing );
801
803 OGRErr CPL_DLL OSRSetLCCB( OGRSpatialReferenceH hSRS,
804 double dfStdP1, double dfStdP2,
805 double dfCenterLat, double dfCenterLong,
806 double dfFalseEasting, double dfFalseNorthing );
807
809 OGRErr CPL_DLL OSRSetMC( OGRSpatialReferenceH hSRS,
810 double dfCenterLat, double dfCenterLong,
811 double dfFalseEasting, double dfFalseNorthing );
812
814 OGRErr CPL_DLL OSRSetMercator( OGRSpatialReferenceH hSRS,
815 double dfCenterLat, double dfCenterLong,
816 double dfScale,
817 double dfFalseEasting, double dfFalseNorthing );
818
820 OGRErr CPL_DLL OSRSetMercator2SP( OGRSpatialReferenceH hSRS,
821 double dfStdP1,
822 double dfCenterLat, double dfCenterLong,
823 double dfFalseEasting, double dfFalseNorthing );
824
826 OGRErr CPL_DLL OSRSetMollweide( OGRSpatialReferenceH hSRS,
827 double dfCentralMeridian,
828 double dfFalseEasting,
829 double dfFalseNorthing );
830
832 OGRErr CPL_DLL OSRSetNZMG( OGRSpatialReferenceH hSRS,
833 double dfCenterLat, double dfCenterLong,
834 double dfFalseEasting, double dfFalseNorthing );
835
837 OGRErr CPL_DLL OSRSetOS( OGRSpatialReferenceH hSRS,
838 double dfOriginLat, double dfCMeridian,
839 double dfScale,
840 double dfFalseEasting,double dfFalseNorthing);
841
843 OGRErr CPL_DLL OSRSetOrthographic( OGRSpatialReferenceH hSRS,
844 double dfCenterLat, double dfCenterLong,
845 double dfFalseEasting,
846 double dfFalseNorthing);
847
849 OGRErr CPL_DLL OSRSetPolyconic( OGRSpatialReferenceH hSRS,
850 double dfCenterLat, double dfCenterLong,
851 double dfFalseEasting, double dfFalseNorthing );
852
854 OGRErr CPL_DLL OSRSetPS( OGRSpatialReferenceH hSRS,
855 double dfCenterLat, double dfCenterLong,
856 double dfScale,
857 double dfFalseEasting, double dfFalseNorthing);
858
860 OGRErr CPL_DLL OSRSetRobinson( OGRSpatialReferenceH hSRS,
861 double dfCenterLong,
862 double dfFalseEasting, double dfFalseNorthing );
863
865 OGRErr CPL_DLL OSRSetSinusoidal( OGRSpatialReferenceH hSRS,
866 double dfCenterLong,
867 double dfFalseEasting,
868 double dfFalseNorthing );
869
871 OGRErr CPL_DLL OSRSetStereographic( OGRSpatialReferenceH hSRS,
872 double dfCenterLat, double dfCenterLong,
873 double dfScale,
874 double dfFalseEasting,
875 double dfFalseNorthing);
876
878 OGRErr CPL_DLL OSRSetSOC( OGRSpatialReferenceH hSRS,
879 double dfLatitudeOfOrigin, double dfCentralMeridian,
880 double dfFalseEasting, double dfFalseNorthing );
881
888 OGRErr CPL_DLL OSRSetTM( OGRSpatialReferenceH hSRS,
889 double dfCenterLat, double dfCenterLong,
890 double dfScale,
891 double dfFalseEasting, double dfFalseNorthing );
892
894 OGRErr CPL_DLL OSRSetTMVariant(
895 OGRSpatialReferenceH hSRS, const char *pszVariantName,
896 double dfCenterLat, double dfCenterLong,
897 double dfScale,
898 double dfFalseEasting, double dfFalseNorthing );
899
901 OGRErr CPL_DLL OSRSetTMG( OGRSpatialReferenceH hSRS,
902 double dfCenterLat, double dfCenterLong,
903 double dfFalseEasting, double dfFalseNorthing );
904
906 OGRErr CPL_DLL OSRSetTMSO( OGRSpatialReferenceH hSRS,
907 double dfCenterLat, double dfCenterLong,
908 double dfScale,
909 double dfFalseEasting, double dfFalseNorthing );
910
912 OGRErr CPL_DLL OSRSetTPED( OGRSpatialReferenceH hSRS,
913 double dfLat1, double dfLong1,
914 double dfLat2, double dfLong2,
915 double dfFalseEasting, double dfFalseNorthing );
916
918 OGRErr CPL_DLL OSRSetVDG( OGRSpatialReferenceH hSRS,
919 double dfCenterLong,
920 double dfFalseEasting, double dfFalseNorthing );
921
923 OGRErr CPL_DLL OSRSetWagner( OGRSpatialReferenceH hSRS, int nVariation,
924 double dfCenterLat,
925 double dfFalseEasting,
926 double dfFalseNorthing );
927
929 OGRErr CPL_DLL OSRSetQSC( OGRSpatialReferenceH hSRS,
930 double dfCenterLat, double dfCenterLong );
931
933 OGRErr CPL_DLL OSRSetSCH( OGRSpatialReferenceH hSRS,
934 double dfPegLat, double dfPegLong,
935 double dfPegHeading, double dfPegHgt);
936
937 double CPL_DLL OSRCalcInvFlattening( double dfSemiMajor, double dfSemiMinor );
938 double CPL_DLL OSRCalcSemiMinorFromInvFlattening( double dfSemiMajor, double dfInvFlattening );
939
940 void CPL_DLL OSRCleanup( void );
941
943 typedef enum
944 {
946 OSR_CRS_TYPE_GEOGRAPHIC_2D,
948 OSR_CRS_TYPE_GEOGRAPHIC_3D,
950 OSR_CRS_TYPE_GEOCENTRIC,
952 OSR_CRS_TYPE_PROJECTED,
954 OSR_CRS_TYPE_VERTICAL,
956 OSR_CRS_TYPE_COMPOUND,
958 OSR_CRS_TYPE_OTHER,
959 } OSRCRSType;
960
966 typedef struct
967 {
969 char* pszAuthName;
971 char* pszCode;
973 char* pszName;
975 OSRCRSType eType;
977 int bDeprecated;
980 int bBboxValid;
982 double dfWestLongitudeDeg;
984 double dfSouthLatitudeDeg;
986 double dfEastLongitudeDeg;
988 double dfNorthLatitudeDeg;
990 char* pszAreaName;
993 char* pszProjectionMethod;
994 } OSRCRSInfo;
995
1000 typedef struct OSRCRSListParameters OSRCRSListParameters;
1001
1002 OSRCRSInfo CPL_DLL **OSRGetCRSInfoListFromDatabase(
1003 const char *pszAuthName,
1004 const OSRCRSListParameters* params,
1005 int *pnOutResultCount);
1006
1007 void CPL_DLL OSRDestroyCRSInfoList(OSRCRSInfo** list);
1008
1009
1010 /* -------------------------------------------------------------------- */
1011 /* OGRCoordinateTransform C API. */
1012 /* -------------------------------------------------------------------- */
1013 OGRCoordinateTransformationH CPL_DLL CPL_STDCALL
1014 OCTNewCoordinateTransformation( OGRSpatialReferenceH hSourceSRS,
1015 OGRSpatialReferenceH hTargetSRS );
1016
1018 typedef struct OGRCoordinateTransformationOptions *OGRCoordinateTransformationOptionsH;
1019
1020 OGRCoordinateTransformationOptionsH CPL_DLL OCTNewCoordinateTransformationOptions(void);
1021
1022 int CPL_DLL OCTCoordinateTransformationOptionsSetOperation(
1023 OGRCoordinateTransformationOptionsH hOptions,
1024 const char* pszCO, int bReverseCO);
1025
1026 int CPL_DLL OCTCoordinateTransformationOptionsSetAreaOfInterest(
1027 OGRCoordinateTransformationOptionsH hOptions,
1028 double dfWestLongitudeDeg,
1029 double dfSouthLatitudeDeg,
1030 double dfEastLongitudeDeg,
1031 double dfNorthLatitudeDeg);
1032
1033 void CPL_DLL OCTDestroyCoordinateTransformationOptions(OGRCoordinateTransformationOptionsH);
1034
1035 OGRCoordinateTransformationH CPL_DLL
1036 OCTNewCoordinateTransformationEx( OGRSpatialReferenceH hSourceSRS,
1037 OGRSpatialReferenceH hTargetSRS,
1038 OGRCoordinateTransformationOptionsH hOptions );
1039
1040 void CPL_DLL CPL_STDCALL
1041 OCTDestroyCoordinateTransformation( OGRCoordinateTransformationH );
1042
1043 int CPL_DLL CPL_STDCALL
1044 OCTTransform( OGRCoordinateTransformationH hCT,
1045 int nCount, double *x, double *y, double *z );
1046
1047 int CPL_DLL CPL_STDCALL
1048 OCTTransformEx( OGRCoordinateTransformationH hCT,
1049 int nCount, double *x, double *y, double *z,
1050 int *pabSuccess );
1051
1052 int CPL_DLL
1053 OCTTransform4D( OGRCoordinateTransformationH hCT,
1054 int nCount, double *x, double *y, double *z, double *t,
1055 int *pabSuccess );
1056
1057 CPL_C_END
1058
1059 #endif /* ndef SWIG */
1060
1061 #endif /* ndef OGR_SRS_API_H_INCLUDED */
OSRGetNormProjParm
double OSRGetNormProjParm(OGRSpatialReferenceH hSRS, const char *pszParmName, double dfDefault, OGRErr *)
This function is the same as OGRSpatialReference::
Definition: ogrspatialreference.cpp:4899
OSRDestroySpatialReference
void OSRDestroySpatialReference(OGRSpatialReferenceH)
OGRSpatialReference destructor.
Definition: ogrspatialreference.cpp:748
OSRGetAxisMappingStrategy
OSRAxisMappingStrategy OSRGetAxisMappingStrategy(OGRSpatialReferenceH hSRS)
Retun the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:10381
OSRSetMercator2SP
OGRErr OSRSetMercator2SP(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Mercator 2SP.
Definition: ogrspatialreference.cpp:6423
OCTTransformEx
int OCTTransformEx(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, int *pabSuccess)
Transform an array of points.
Definition: ogrct.cpp:1770
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:10544
OSRClone
OGRSpatialReferenceH OSRClone(OGRSpatialReferenceH)
Make a duplicate of this OGRSpatialReference.
Definition: ogrspatialreference.cpp:1188
OSRSetEquirectangular2
OGRErr OSRSetEquirectangular2(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfPseudoStdParallel1, double dfFalseEasting, double dfFalseNorthing)
Equirectangular generalized form.
Definition: ogrspatialreference.cpp:5610
OSRSetIWMPolyconic
OGRErr OSRSetIWMPolyconic(OGRSpatialReferenceH hSRS, double dfLat1, double dfLat2, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
International Map of the World Polyconic.
Definition: ogrspatialreference.cpp:6077
OSRGetCRSInfoListFromDatabase
OSRCRSInfo ** OSRGetCRSInfoListFromDatabase(const char *pszAuthName, const OSRCRSListParameters *params, int *pnOutResultCount)
Enumerate CRS objects from the database.
Definition: ogrspatialreference.cpp:10578
OSRSetLocalCS
OGRErr OSRSetLocalCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible LOCAL_CS name.
Definition: ogrspatialreference.cpp:4248
OSRMorphFromESRI
OGRErr OSRMorphFromESRI(OGRSpatialReferenceH)
Convert in place from ESRI WKT format.
Definition: ogrspatialreference.cpp:9750
OSR_CRS_TYPE_GEOGRAPHIC_2D
Geographic 2D CRS.
Definition: ogr_srs_api.h:946
OSRIsCompound
int OSRIsCompound(OGRSpatialReferenceH)
Check if the coordinate system is compound.
Definition: ogrspatialreference.cpp:7533
OSRGetName
const char * OSRGetName(OGRSpatialReferenceH hSRS)
Return the CRS name.
Definition: ogrspatialreference.cpp:1141
OSR_CRS_TYPE_PROJECTED
Projected CRS.
Definition: ogr_srs_api.h:952
OSRSetUTM
OGRErr OSRSetUTM(OGRSpatialReferenceH hSRS, int nZone, int bNorth)
Set UTM projection definition.
Definition: ogrspatialreference.cpp:6908
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:1797
CPL_C_START
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:337
OSR_CRS_TYPE_VERTICAL
Vertical CRS.
Definition: ogr_srs_api.h:954
OSRSetNZMG
OGRErr OSRSetNZMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
New Zealand Map Grid.
Definition: ogrspatialreference.cpp:6491
OSRDestroyCRSInfoList
void OSRDestroyCRSInfoList(OSRCRSInfo **list)
Destroy the result returned by OSRGetCRSInfoListFromDatabase().
Definition: ogrspatialreference.cpp:10648
OSRGetDataAxisToSRSAxisMapping
const int * OSRGetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int *pnCount)
Return the data axis to SRS axis mapping.
Definition: ogrspatialreference.cpp:10449
OCTCoordinateTransformationOptionsSetAreaOfInterest
int OCTCoordinateTransformationOptionsSetAreaOfInterest(OGRCoordinateTransformationOptionsH hOptions, double dfWestLongitudeDeg, double dfSouthLatitudeDeg, double dfEastLongitudeDeg, double dfNorthLatitudeDeg)
Sets an area of interest.
Definition: ogrct.cpp:186
OCTNewCoordinateTransformationOptions
OGRCoordinateTransformationOptionsH OCTNewCoordinateTransformationOptions(void)
Create coordinate transformation options.
Definition: ogrct.cpp:102
OSRSetMercator
OGRErr OSRSetMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Mercator.
Definition: ogrspatialreference.cpp:6372
OSR_CRS_TYPE_COMPOUND
Compound CRS.
Definition: ogr_srs_api.h:956
OSRImportFromEPSG
OGRErr OSRImportFromEPSG(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG GCS or PCS code.
Definition: ogrspatialreference.cpp:9998
OSRConvertToOtherProjection
OGRSpatialReferenceH OSRConvertToOtherProjection(OGRSpatialReferenceH hSRS, const char *pszTargetProjection, const char *const *papszOptions)
Convert to another equivalent projection.
Definition: ogrspatialreference.cpp:8308
OGRCoordinateTransformationOptionsH
struct OGRCoordinateTransformationOptions * OGRCoordinateTransformationOptionsH
Coordinate transformation options.
Definition: ogr_srs_api.h:1018
OSRImportFromEPSGA
OGRErr OSRImportFromEPSGA(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG CRS code.
Definition: ogrspatialreference.cpp:9938
OSRSetOrthographic
OGRErr OSRSetOrthographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Orthographic.
Definition: ogrspatialreference.cpp:6560
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:5128
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:980
OSRSetTMG
OGRErr OSRSetTMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Tunesia Mining Grid.
Definition: ogrspatialreference.cpp:5161
OSRSetLinearUnits
OGRErr OSRSetLinearUnits(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2184
OSRIsLocal
int OSRIsLocal(OGRSpatialReferenceH)
Check if local coordinate system.
Definition: ogrspatialreference.cpp:7751
OAO_South
South.
Definition: ogr_srs_api.h:51
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:6004
OCTNewCoordinateTransformationEx
OGRCoordinateTransformationH OCTNewCoordinateTransformationEx(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS, OGRCoordinateTransformationOptionsH hOptions)
Create transformation object.
Definition: ogrct.cpp:545
OSRReference
int OSRReference(OGRSpatialReferenceH)
Increments the reference count by one.
Definition: ogrspatialreference.cpp:834
OSRSetGaussSchreiberTMercator
OGRErr OSRSetGaussSchreiberTMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Gauss Schreiber Transverse Mercator.
Definition: ogrspatialreference.cpp:5778
OSRAxisMappingStrategy
OSRAxisMappingStrategy
Data axis to CRS axis mapping strategy.
Definition: ogr_srs_api.h:648
OSRSetProjCS
OGRErr OSRSetProjCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:4560
OSRImportFromPanorama
OGRErr OSRImportFromPanorama(OGRSpatialReferenceH, long, long, long, double *)
Import coordinate system from "Panorama" GIS projection definition.
Definition: ogr_srs_panorama.cpp:160
OSRAutoIdentifyEPSG
OGRErr OSRAutoIdentifyEPSG(OGRSpatialReferenceH hSRS)
Set EPSG authority info if possible.
Definition: ogr_fromepsg.cpp:514
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:5876
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Opaque type for a Spatial Reference object.
Definition: ogr_srs_api.h:459
OSRGetTargetLinearUnits
double OSRGetTargetLinearUnits(OGRSpatialReferenceH, const char *, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:2578
OSRSetLAEA
OGRErr OSRSetLAEA(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Azimuthal Equal-Area.
Definition: ogrspatialreference.cpp:6186
OSRGetAxis
const char * OSRGetAxis(OGRSpatialReferenceH hSRS, const char *pszTargetKey, int iAxis, OGRAxisOrientation *peOrientation)
Fetch the orientation of one axis.
Definition: ogrspatialreference.cpp:9066
OAO_West
West.
Definition: ogr_srs_api.h:53
OSR_CRS_TYPE_GEOCENTRIC
Geocentric CRS.
Definition: ogr_srs_api.h:950
OSRSetVDG
OGRErr OSRSetVDG(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
VanDerGrinten.
Definition: ogrspatialreference.cpp:6852
OSRSetProjection
OGRErr OSRSetProjection(OGRSpatialReferenceH, const char *)
Set a projection name.
Definition: ogrspatialreference.cpp:4618
OSRGetAuthorityName
const char * OSRGetAuthorityName(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority name for a node.
Definition: ogrspatialreference.cpp:7429
OSRSetLinearUnitsAndUpdateParameters
OGRErr OSRSetLinearUnitsAndUpdateParameters(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2133
OSRSetGnomonic
OGRErr OSRSetGnomonic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Gnomonic.
Definition: ogrspatialreference.cpp:5814
OSRSetGEOS
OGRErr OSRSetGEOS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfSatelliteHeight, double dfFalseEasting, double dfFalseNorthing)
GEOS - Geostationary Satellite View.
Definition: ogrspatialreference.cpp:5741
OSRImportFromProj4
OGRErr OSRImportFromProj4(OGRSpatialReferenceH, const char *)
Import PROJ coordinate string.
Definition: ogrspatialreference.cpp:9424
OSRSetPROJSearchPaths
void OSRSetPROJSearchPaths(const char *const *papszPaths)
Set the search path(s) for PROJ resource files.
Definition: ogr_proj_p.cpp:146
OSRSetEquirectangular
OGRErr OSRSetEquirectangular(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equirectangular.
Definition: ogrspatialreference.cpp:5560
OSRSetAuthority
OGRErr OSRSetAuthority(OGRSpatialReferenceH hSRS, const char *pszTargetKey, const char *pszAuthority, int nCode)
Set the authority for a node.
Definition: ogrspatialreference.cpp:7257
OSRSetTMSO
OGRErr OSRSetTMSO(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator (South Oriented)
Definition: ogrspatialreference.cpp:5092
OSRSetEckertIV
OGRErr OSRSetEckertIV(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert IV.
Definition: ogrspatialreference.cpp:5482
OSRSetMC
OGRErr OSRSetMC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Miller Cylindrical.
Definition: ogrspatialreference.cpp:6329
OSRExportToPCI
OGRErr OSRExportToPCI(OGRSpatialReferenceH, char **, char **, double **)
Export coordinate system in PCI projection definition.
Definition: ogr_srs_pci.cpp:729
OSRSetAngularUnits
OGRErr OSRSetAngularUnits(OGRSpatialReferenceH, const char *, double)
Set the angular units for the geographic coordinate system.
Definition: ogrspatialreference.cpp:1922
OSRNewSpatialReference
OGRSpatialReferenceH OSRNewSpatialReference(const char *)
Constructor.
Definition: ogrspatialreference.cpp:664
OSRImportFromPCI
OGRErr OSRImportFromPCI(OGRSpatialReferenceH hSRS, const char *, const char *, double *)
Import coordinate system from PCI projection definition.
Definition: ogr_srs_pci.cpp:147
OSRGetTOWGS84
OGRErr OSRGetTOWGS84(OGRSpatialReferenceH hSRS, double *, int)
Fetch TOWGS84 parameters, if available.
Definition: ogrspatialreference.cpp:8633
OSR_CRS_TYPE_OTHER
Other.
Definition: ogr_srs_api.h:958
OSRGetSemiMinor
double OSRGetSemiMinor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi minor axis.
Definition: ogrspatialreference.cpp:4193
OSRCleanup
void OSRCleanup(void)
Cleanup cached SRS related memory.
Definition: ogrspatialreference.cpp:8856
OSRGetLinearUnits
double OSRGetLinearUnits(OGRSpatialReferenceH, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:2383
OSR_CRS_TYPE_GEOGRAPHIC_3D
Geographic 3D CRS.
Definition: ogr_srs_api.h:948
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:6120
OAO_Down
Down (to Earth center)
Definition: ogr_srs_api.h:55
OSRCRSInfo::pszAuthName
char * pszAuthName
Authority name.
Definition: ogr_srs_api.h:969
OSRSetCompoundCS
OGRErr OSRSetCompoundCS(OGRSpatialReferenceH hSRS, const char *pszName, OGRSpatialReferenceH hHorizSRS, OGRSpatialReferenceH hVertSRS)
Setup a compound coordinate system.
Definition: ogrspatialreference.cpp:4492
OSRSetEckert
OGRErr OSRSetEckert(OGRSpatialReferenceH hSRS, int nVariation, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert I-VI.
Definition: ogrspatialreference.cpp:5450
OGRCoordinateTransformationH
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition: ogr_api.h:76
OSRCalcSemiMinorFromInvFlattening
double OSRCalcSemiMinorFromInvFlattening(double dfSemiMajor, double dfInvFlattening)
Compute semi-minor axis from semi-major axis and inverse flattening.
Definition: ogrspatialreference.cpp:9358
OSRSetTM
OGRErr OSRSetTM(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator.
Definition: ogrspatialreference.cpp:4989
OSRSetSOC
OGRErr OSRSetSOC(OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Swiss Oblique Cylindrical.
Definition: ogrspatialreference.cpp:6819
OSRCRSInfo::dfEastLongitudeDeg
double dfEastLongitudeDeg
Eastern-most longitude of the area of use, in degrees.
Definition: ogr_srs_api.h:986
OSRImportFromDict
OGRErr OSRImportFromDict(OGRSpatialReferenceH, const char *, const char *)
Read SRS from WKT dictionary.
Definition: ogr_srs_dict.cpp:175
OSRCRSListParameters
struct OSRCRSListParameters OSRCRSListParameters
Structure to describe optional parameters to OSRGetCRSInfoListFromDatabase()
Definition: ogr_srs_api.h:1000
OSRDereference
int OSRDereference(OGRSpatialReferenceH)
Decrements the reference count by one.
Definition: ogrspatialreference.cpp:874
OCTDestroyCoordinateTransformation
void OCTDestroyCoordinateTransformation(OGRCoordinateTransformationH)
OGRCoordinateTransformation destructor.
Definition: ogrct.cpp:351
OSRIsGeocentric
int OSRIsGeocentric(OGRSpatialReferenceH)
Check if geocentric coordinate system.
Definition: ogrspatialreference.cpp:7637
OAO_Up
Up (to space)
Definition: ogr_srs_api.h:54
OAO_North
North.
Definition: ogr_srs_api.h:50
OSRCRSInfo::dfWestLongitudeDeg
double dfWestLongitudeDeg
Western-most longitude of the area of use, in degrees.
Definition: ogr_srs_api.h:982
OSRCRSInfo::dfSouthLatitudeDeg
double dfSouthLatitudeDeg
Southern-most latitude of the area of use, in degrees.
Definition: ogr_srs_api.h:984
OSRIsSame
int OSRIsSame(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:8156
OSRSetTOWGS84
OGRErr OSRSetTOWGS84(OGRSpatialReferenceH hSRS, double, double, double, double, double, double, double)
Set the Bursa-Wolf conversion to WGS84.
Definition: ogrspatialreference.cpp:8576
OSRCloneGeogCS
OGRSpatialReferenceH OSRCloneGeogCS(OGRSpatialReferenceH)
Make a duplicate of the GEOGCS node of this OGRSpatialReference object.
Definition: ogrspatialreference.cpp:7899
OSRExportToWktEx
OGRErr OSRExportToWktEx(OGRSpatialReferenceH, char **ppszResult, const char *const *papszOptions)
Convert this SRS into WKT format.
Definition: ogrspatialreference.cpp:1481
OAMS_CUSTOM
Custom.
Definition: ogr_srs_api.h:652
OSRCRSInfo::pszProjectionMethod
char * pszProjectionMethod
Name of the projection method for a projected CRS.
Definition: ogr_srs_api.h:993
OGRSpatialReferenceH
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition: ogr_api.h:74
OSRSetPolyconic
OGRErr OSRSetPolyconic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Polyconic.
Definition: ogrspatialreference.cpp:6595
OCTDestroyCoordinateTransformationOptions
void OCTDestroyCoordinateTransformationOptions(OGRCoordinateTransformationOptionsH)
Destroy coordinate transformation options.
Definition: ogrct.cpp:115
OSRSetPS
OGRErr OSRSetPS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Polar Stereographic.
Definition: ogrspatialreference.cpp:6665
OSRSetMollweide
OGRErr OSRSetMollweide(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Mollweide.
Definition: ogrspatialreference.cpp:6458
OSRSetFromUserInput
OGRErr OSRSetFromUserInput(OGRSpatialReferenceH hSRS, const char *)
Set spatial reference from various text formats.
Definition: ogrspatialreference.cpp:3352
OSRSetGeocCS
OGRErr OSRSetGeocCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:4334
OSRAxisEnumToName
const char * OSRAxisEnumToName(OGRAxisOrientation eOrientation)
Return the string representation for the OGRAxisOrientation enumeration.
Definition: ogrspatialreference.cpp:9088
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 (currently EPSG only) ...
Definition: ogrspatialreference.cpp:8363
OSRExportToUSGS
OGRErr OSRExportToUSGS(OGRSpatialReferenceH, long *, long *, double **, long *)
Export coordinate system in USGS GCTP projection definition.
Definition: ogr_srs_usgs.cpp:798
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:5940
OSRSetIGH
OGRErr OSRSetIGH(OGRSpatialReferenceH hSRS)
Interrupted Goode Homolosine.
Definition: ogrspatialreference.cpp:5711
OSRGetAngularUnits
double OSRGetAngularUnits(OGRSpatialReferenceH, char **)
Fetch angular geographic coordinate system units.
Definition: ogrspatialreference.cpp:2057
ogr_core.h
Core portability services for cross-platform OGR code.
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:2821
OSRSetWagner
OGRErr OSRSetWagner(OGRSpatialReferenceH hSRS, int nVariation, double dfCenterLat, double dfFalseEasting, double dfFalseNorthing)
Wagner I – VII.
Definition: ogrspatialreference.cpp:7068
OSRCalcInvFlattening
double OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor)
Compute inverse flattening from semi-major and semi-minor axis.
Definition: ogrspatialreference.cpp:9330
OSRSetACEA
OGRErr OSRSetACEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Albers Conic Equal Area.
Definition: ogrspatialreference.cpp:5198
OSRValidate
OGRErr OSRValidate(OGRSpatialReferenceH)
Validate SRS tokens.
Definition: ogrspatialreference.cpp:1696
OSRExportToProj4
OGRErr OSRExportToProj4(OGRSpatialReferenceH, char **)
Export coordinate system in PROJ format.
Definition: ogrspatialreference.cpp:9564
OGRAxisOrientation
OGRAxisOrientation
Axis orientations (corresponds to CS_AxisOrientationEnum).
Definition: ogr_srs_api.h:48
OSRSetLCCB
OGRErr OSRSetLCCB(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic (Belgium)
Definition: ogrspatialreference.cpp:6292
OSRExportToXML
OGRErr OSRExportToXML(OGRSpatialReferenceH, char **, const char *)
Export coordinate system in XML format.
Definition: ogr_srs_xml.cpp:746
OSRIsSameVertCS
int OSRIsSameVertCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the VertCS'es match?
Definition: ogrspatialreference.cpp:8048
OSRImportFromOzi
OGRErr OSRImportFromOzi(OGRSpatialReferenceH, const char *const *)
Import coordinate system from OziExplorer projection definition.
Definition: ogr_srs_ozi.cpp:68
OAMS_TRADITIONAL_GIS_ORDER
Traditional GIS order.
Definition: ogr_srs_api.h:650
OSRIsGeographic
int OSRIsGeographic(OGRSpatialReferenceH)
Check if geographic coordinate system.
Definition: ogrspatialreference.cpp:7715
OSRCRSInfo::pszName
char * pszName
Object name.
Definition: ogr_srs_api.h:973
OSRExportToWkt
OGRErr OSRExportToWkt(OGRSpatialReferenceH, char **)
Convert this SRS into WKT 1 format.
Definition: ogrspatialreference.cpp:1458
OSRCRSInfo::pszAreaName
char * pszAreaName
Name of the area of use.
Definition: ogr_srs_api.h:990
OSRGetProjParm
double OSRGetProjParm(OGRSpatialReferenceH hSRS, const char *pszParmName, double dfDefault, OGRErr *)
Fetch a projection parameter value.
Definition: ogrspatialreference.cpp:4832
OSRExportToERM
OGRErr OSRExportToERM(OGRSpatialReferenceH, char *, char *, char *)
Convert coordinate system to ERMapper format.
Definition: ogr_srs_erm.cpp:163
OSRSetBonne
OGRErr OSRSetBonne(OGRSpatialReferenceH hSRS, double dfStandardParallel, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Bonne.
Definition: ogrspatialreference.cpp:5266
OSRExportToMICoordSys
OGRErr OSRExportToMICoordSys(OGRSpatialReferenceH, char **)
Export coordinate system in Mapinfo style CoordSys format.
Definition: ogrspatialreference.cpp:9214
OSRSetQSC
OGRErr OSRSetQSC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong)
Quadrilateralized Spherical Cube.
Definition: ogrspatialreference.cpp:7098
OSRImportFromESRI
OGRErr OSRImportFromESRI(OGRSpatialReferenceH, char **)
Import coordinate system from ESRI .prj format(s).
Definition: ogr_srs_esri.cpp:238
OSRCRSType
OSRCRSType
Type of Coordinate Reference System (CRS).
Definition: ogr_srs_api.h:943
OSRGetAuthorityCode
const char * OSRGetAuthorityCode(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority code for a node.
Definition: ogrspatialreference.cpp:7345
OAMS_AUTHORITY_COMPLIANT
Compliant with the order mandated by the CRS authority.
Definition: ogr_srs_api.h:651
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:9185
OSRImportFromERM
OGRErr OSRImportFromERM(OGRSpatialReferenceH, const char *, const char *, const char *)
Create OGR WKT from ERMapper projection definitions.
Definition: ogr_srs_erm.cpp:55
OCTCoordinateTransformationOptionsSetOperation
int OCTCoordinateTransformationOptionsSetOperation(OGRCoordinateTransformationOptionsH hOptions, const char *pszCO, int bReverseCO)
Sets a coordinate operation.
Definition: ogrct.cpp:236
OSRGetUTMZone
int OSRGetUTMZone(OGRSpatialReferenceH hSRS, int *pbNorth)
Get utm zone information.
Definition: ogrspatialreference.cpp:6986
OSRCopyGeogCSFrom
OGRErr OSRCopyGeogCSFrom(OGRSpatialReferenceH hSRS, const OGRSpatialReferenceH hSrcSRS)
Copy GEOGCS from another OGRSpatialReference.
Definition: ogrspatialreference.cpp:3077
OSRExportToPanorama
OGRErr OSRExportToPanorama(OGRSpatialReferenceH, long *, long *, long *, long *, double *)
Export coordinate system in "Panorama" GIS projection definition.
Definition: ogr_srs_panorama.cpp:502
OSREPSGTreatsAsLatLong
int OSREPSGTreatsAsLatLong(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as havin...
Definition: ogrspatialreference.cpp:10080
OSRSetNormProjParm
OGRErr OSRSetNormProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter with a normalized value.
Definition: ogrspatialreference.cpp:4959
OCTNewCoordinateTransformation
OGRCoordinateTransformationH OCTNewCoordinateTransformation(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS)
Create transformation object.
Definition: ogrct.cpp:495
OSRGetPrimeMeridian
double OSRGetPrimeMeridian(OGRSpatialReferenceH, char **)
Fetch prime meridian info.
Definition: ogrspatialreference.cpp:2693
OSRCRSInfo::dfNorthLatitudeDeg
double dfNorthLatitudeDeg
Northern-most latitude of the area of use, in degrees.
Definition: ogr_srs_api.h:988
OSRSetWellKnownGeogCS
OGRErr OSRSetWellKnownGeogCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set a GeogCS based on well known name.
Definition: ogrspatialreference.cpp:2969
OSRSetGH
OGRErr OSRSetGH(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Goode Homolosine.
Definition: ogrspatialreference.cpp:5680
OSRSetSCH
OGRErr OSRSetSCH(OGRSpatialReferenceH hSRS, double dfPegLat, double dfPegLong, double dfPegHeading, double dfPegHgt)
Spherical, Cross-track, Height.
Definition: ogrspatialreference.cpp:7128
OSRSetVertCS
OGRErr OSRSetVertCS(OGRSpatialReferenceH hSRS, const char *pszVertCSName, const char *pszVertDatumName, int nVertDatumType)
Setup the vertical coordinate system.
Definition: ogrspatialreference.cpp:4412
OSRIsSameGeogCS
int OSRIsSameGeogCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the GeogCS'es match?
Definition: ogrspatialreference.cpp:7985
OSREPSGTreatsAsNorthingEasting
int OSREPSGTreatsAsNorthingEasting(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as havin...
Definition: ogrspatialreference.cpp:10197
OSRSetTargetLinearUnits
OGRErr OSRSetTargetLinearUnits(OGRSpatialReferenceH, const char *, const char *, double)
Set the linear units for the target node.
Definition: ogrspatialreference.cpp:2309
OSRIsVertical
int OSRIsVertical(OGRSpatialReferenceH)
Check if vertical coordinate system.
Definition: ogrspatialreference.cpp:7816
CPL_C_END
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:339
OSRSetStatePlaneWithUnits
OGRErr OSRSetStatePlaneWithUnits(OGRSpatialReferenceH hSRS, int nZone, int bNAD83, const char *pszOverrideUnitName, double dfOverrideUnit)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:275
OSRSetEC
OGRErr OSRSetEC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equidistant Conic.
Definition: ogrspatialreference.cpp:5367
OSRSetSinusoidal
OGRErr OSRSetSinusoidal(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Sinusoidal.
Definition: ogrspatialreference.cpp:6733
OAO_East
East.
Definition: ogr_srs_api.h:52
OSRSetEckertVI
OGRErr OSRSetEckertVI(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert VI.
Definition: ogrspatialreference.cpp:5513
OSRRelease
void OSRRelease(OGRSpatialReferenceH)
Decrements the reference count by one, and destroy if zero.
Definition: ogrspatialreference.cpp:922
OSRCRSInfo::pszCode
char * pszCode
Object code.
Definition: ogr_srs_api.h:971
OSRSetRobinson
OGRErr OSRSetRobinson(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Robinson.
Definition: ogrspatialreference.cpp:6700
OSRIsSameEx
int OSRIsSameEx(OGRSpatialReferenceH, OGRSpatialReferenceH, const char *const *papszOptions)
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:8175
OSRSetAE
OGRErr OSRSetAE(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Azimuthal Equidistant.
Definition: ogrspatialreference.cpp:5233
OSRImportFromUrl
OGRErr OSRImportFromUrl(OGRSpatialReferenceH, const char *)
Set spatial reference from a URL.
Definition: ogrspatialreference.cpp:3460
OSRSetGS
OGRErr OSRSetGS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Gall Stereograpic.
Definition: ogrspatialreference.cpp:5646
OGRErr
int OGRErr
Simple container for a bounding region.
Definition: ogr_core.h:290
OSRSetStatePlane
OGRErr OSRSetStatePlane(OGRSpatialReferenceH hSRS, int nZone, int bNAD83)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:256
OSRImportFromXML
OGRErr OSRImportFromXML(OGRSpatialReferenceH, const char *)
Import coordinate system from XML format (GML only currently).
Definition: ogr_srs_xml.cpp:1310
OSRSetTMVariant
OGRErr OSRSetTMVariant(OGRSpatialReferenceH hSRS, const char *pszVariantName, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator variant.
Definition: ogrspatialreference.cpp:5030
OSRGetInvFlattening
double OSRGetInvFlattening(OGRSpatialReferenceH, OGRErr *)
Get spheroid inverse flattening.
Definition: ogrspatialreference.cpp:4096
OSRCRSInfo::bDeprecated
int bDeprecated
Whether the object is deprecated.
Definition: ogr_srs_api.h:977
OSRExportToPrettyWkt
OGRErr OSRExportToPrettyWkt(OGRSpatialReferenceH, char **, int)
Convert this SRS into a nicely formatted WKT 1 string for display to a person.
Definition: ogrspatialreference.cpp:1269
OSRCRSInfo
Structure given overall description of a CRS.
Definition: ogr_srs_api.h:966
OSRGetAttrValue
const char * OSRGetAttrValue(OGRSpatialReferenceH hSRS, const char *pszName, int iChild)
Fetch indicated attribute of named node.
Definition: ogrspatialreference.cpp:1097
OSRSetStereographic
OGRErr OSRSetStereographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Stereographic.
Definition: ogrspatialreference.cpp:6768
OSRSetAttrValue
OGRErr OSRSetAttrValue(OGRSpatialReferenceH hSRS, const char *pszNodePath, const char *pszNewNodeValue)
Set attribute value in spatial reference.
Definition: ogrspatialreference.cpp:1820
OGRCoordinateTransformationH
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition: ogr_srs_api.h:461
OCTTransform
int OCTTransform(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z)
Transform an array of points.
Definition: ogrct.cpp:1279
OSRSetCS
OGRErr OSRSetCS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Cassini-Soldner.
Definition: ogrspatialreference.cpp:5330
OSRCRSInfo::eType
OSRCRSType eType
Object type.
Definition: ogr_srs_api.h:975
OSRSetLCC
OGRErr OSRSetLCC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic.
Definition: ogrspatialreference.cpp:6220
OSRIsProjected
int OSRIsProjected(OGRSpatialReferenceH)
Check if projected coordinate system.
Definition: ogrspatialreference.cpp:7594
OSRSetOS
OGRErr OSRSetOS(OGRSpatialReferenceH hSRS, double dfOriginLat, double dfCMeridian, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Oblique Stereographic.
Definition: ogrspatialreference.cpp:6525
OSRMorphToESRI
OGRErr OSRMorphToESRI(OGRSpatialReferenceH)
Convert in place to ESRI WKT format.
Definition: ogrspatialreference.cpp:9700
OSRSetAxisMappingStrategy
void OSRSetAxisMappingStrategy(OGRSpatialReferenceH hSRS, OSRAxisMappingStrategy strategy)
Set the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:10412
OSRImportFromMICoordSys
OGRErr OSRImportFromMICoordSys(OGRSpatialReferenceH, const char *)
Import Mapinfo style CoordSys definition.
Definition: ogrspatialreference.cpp:9269
OSRImportFromWkt
OGRErr OSRImportFromWkt(OGRSpatialReferenceH, char **)
Import from WKT string.
Definition: ogrspatialreference.cpp:1717
OSRFreeSRSArray
void OSRFreeSRSArray(OGRSpatialReferenceH *pahSRS)
Free return of OSRIdentifyMatches()
Definition: ogrspatialreference.cpp:8389
OGRCoordinateTransformationOptions
Context for coordinate transformation.
Definition: ogr_spatialref.h:770
OSRImportFromUSGS
OGRErr OSRImportFromUSGS(OGRSpatialReferenceH, long, long, double *, long)
Import coordinate system from USGS projection definition.
Definition: ogr_srs_usgs.cpp:165
OSRSetCEA
OGRErr OSRSetCEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Cylindrical Equal Area.
Definition: ogrspatialreference.cpp:5298
OAO_Other
Other.
Definition: ogr_srs_api.h:49
OSRSetLCC1SP
OGRErr OSRSetLCC1SP(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic 1SP.
Definition: ogrspatialreference.cpp:6256
OSRSetProjParm
OGRErr OSRSetProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter value.
Definition: ogrspatialreference.cpp:4701
OSRGetSemiMajor
double OSRGetSemiMajor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi major axis.
Definition: ogrspatialreference.cpp:4035

Generated for GDAL by 1.8.8.