Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

ogr_srs_api.h

Go to the documentation of this file.
00001 /******************************************************************************
00002  * $Id: ogr_srs_api.h,v 1.47 2004/11/11 18:28:45 fwarmerdam Exp $
00003  *
00004  * Project:  OpenGIS Simple Features Reference Implementation
00005  * Purpose:  C API and constant declarations for OGR Spatial References.
00006  * Author:   Frank Warmerdam, warmerda@home.com
00007  *
00008  ******************************************************************************
00009  * Copyright (c) 2000, Frank Warmerdam
00010  *
00011  * Permission is hereby granted, free of charge, to any person obtaining a
00012  * copy of this software and associated documentation files (the "Software"),
00013  * to deal in the Software without restriction, including without limitation
00014  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
00015  * and/or sell copies of the Software, and to permit persons to whom the
00016  * Software is furnished to do so, subject to the following conditions:
00017  *
00018  * The above copyright notice and this permission notice shall be included
00019  * in all copies or substantial portions of the Software.
00020  *
00021  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00022  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00023  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00024  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00025  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00026  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00027  * DEALINGS IN THE SOFTWARE.
00028  ******************************************************************************
00029  *
00030  * $Log: ogr_srs_api.h,v $
00031  * Revision 1.47  2004/11/11 18:28:45  fwarmerdam
00032  * added Bonne projection support
00033  *
00034  * Revision 1.46  2004/09/23 16:20:13  fwarmerdam
00035  * added OSRCleanup
00036  *
00037  * Revision 1.45  2004/05/12 19:25:54  dron
00038  * SRS_DN_WGS72 constant added.
00039  *
00040  * Revision 1.44  2004/05/10 17:05:14  warmerda
00041  * added AutoIdentifyEPSG()
00042  *
00043  * Revision 1.43  2004/05/06 19:26:04  dron
00044  * Added OSRSetProjection() function.
00045  *
00046  * Revision 1.42  2004/03/04 18:04:45  warmerda
00047  * added importFromDict() support
00048  *
00049  * Revision 1.41  2004/02/07 17:31:21  dron
00050  * Added OSRExportToUSGS() method.
00051  *
00052  * Revision 1.40  2004/02/05 17:07:59  dron
00053  * Support for HOM projection, specified by two points on centerline.
00054  *
00055  * Revision 1.39  2004/02/01 14:23:29  dron
00056  * Added OSRImportFromUSGS().
00057  *
00058  * Revision 1.38  2004/01/24 09:35:00  warmerda
00059  * added TransformEx support to capture per point reprojection failure
00060  *
00061  * Revision 1.37  2003/09/09 07:49:52  dron
00062  * Added OSRExportToPCI().
00063  *
00064  * Revision 1.36  2003/08/31 14:51:01  dron
00065  * Added OSRImportFromPCI().
00066  *
00067  * Revision 1.35  2003/08/18 13:26:01  warmerda
00068  * added SetTMVariant() and related definitions
00069  *
00070  * Revision 1.34  2003/06/21 23:24:36  warmerda
00071  * added Set/Get TOWGS84 calls
00072  *
00073  * Revision 1.33  2003/06/19 17:10:26  warmerda
00074  * a couple fixes in last commit
00075  *
00076  * Revision 1.32  2003/06/18 18:24:17  warmerda
00077  * added projection specific set methods to C API
00078  *
00079  * Revision 1.31  2003/06/10 09:31:12  dron
00080  * Added OSRSetAngularUnits() and OSRGetAngularUnits().
00081  *
00082  * Revision 1.30  2003/05/30 15:39:53  warmerda
00083  * Added override units capability for SetStatePlane()
00084  *
00085  * Revision 1.29  2003/03/21 22:15:11  warmerda
00086  * added C XML import/export entry points
00087  *
00088  * Revision 1.28  2003/03/12 14:29:34  warmerda
00089  * Rename OGRAxisOrientation and OGRDatumType values to avoid conflicts with
00090  * the real OGC definitions in applications such as Cadcorps.
00091  *
00092  * Revision 1.27  2003/02/25 04:53:38  warmerda
00093  * added OSRCopyGeogCSFrom
00094  *
00095  * Revision 1.26  2003/02/06 04:53:12  warmerda
00096  * added Fixup() method
00097  *
00098  * Revision 1.25  2003/01/08 18:14:28  warmerda
00099  * added FixupOrdering()
00100  *
00101  * Revision 1.24  2002/12/16 17:07:13  warmerda
00102  * added NormProjParm functions, and OSRGetPrimeMeridian
00103  *
00104  * Revision 1.23  2002/12/14 22:59:14  warmerda
00105  * added Krovak in ESRI compatible way
00106  *
00107  * Revision 1.22  2002/12/09 18:55:07  warmerda
00108  * moved DMS stuff to gdal/port
00109  *
00110  * Revision 1.21  2002/12/09 16:11:53  warmerda
00111  * added DMS translation
00112  *
00113  * Revision 1.20  2002/11/25 16:12:54  warmerda
00114  * added GetAuthorityCode/Name
00115  *
00116  * Revision 1.19  2002/09/26 18:13:25  warmerda
00117  * avoid double def
00118  *
00119  * Revision 1.18  2002/06/11 18:02:03  warmerda
00120  * add PROJ.4 normalization and EPSG support
00121  *
00122  * Revision 1.17  2001/10/11 19:27:12  warmerda
00123  * upgraded validation infrastructure
00124  *
00125  * Revision 1.16  2001/10/10 20:42:43  warmerda
00126  * added ESRI WKT morphing support
00127  *
00128  * Revision 1.15  2001/09/21 16:21:02  warmerda
00129  * added Clear(), and SetFromUserInput() methods
00130  *
00131  * Revision 1.14  2000/11/09 06:21:32  warmerda
00132  * added limited ESRI prj support
00133  *
00134  * Revision 1.13  2000/10/20 04:19:38  warmerda
00135  * added setstateplane
00136  *
00137  * Revision 1.12  2000/10/16 21:26:07  warmerda
00138  * added some level of LOCAL_CS support
00139  *
00140  * Revision 1.11  2000/09/01 20:58:01  warmerda
00141  * added CPL_DLL for entry points
00142  *
00143  * Revision 1.10  2000/08/30 20:06:14  warmerda
00144  * added projection method list functions
00145  *
00146  * Revision 1.9  2000/08/28 20:13:23  warmerda
00147  * added importFromProj4
00148  *
00149  * Revision 1.8  2000/07/11 01:02:06  warmerda
00150  * added ExportToProj4()
00151  *
00152  * Revision 1.7  2000/07/09 20:48:02  warmerda
00153  * added exportToPrettyWkt
00154  *
00155  * Revision 1.6  2000/05/30 22:45:44  warmerda
00156  * added OSRCloneGeogCS()
00157  *
00158  * Revision 1.5  2000/04/26 18:25:56  warmerda
00159  * added missing CPL_DLL attributes
00160  *
00161  * Revision 1.4  2000/03/22 01:09:43  warmerda
00162  * added SetProjCS and SetWellKnownTextCS
00163  *
00164  * Revision 1.3  2000/03/20 23:33:51  warmerda
00165  * updated docs a bit
00166  *
00167  * Revision 1.2  2000/03/20 22:39:31  warmerda
00168  * Added C API.
00169  *
00170  * Revision 1.1  2000/03/16 19:04:14  warmerda
00171  * New
00172  *
00173  */
00174 
00175 #ifndef _OGR_SRS_API_H_INCLUDED
00176 #define _OGR_SRS_API_H_INCLUDED
00177 
00178 #include "ogr_core.h"
00179 
00180 CPL_C_START
00181 
00190 /* -------------------------------------------------------------------- */
00191 /*      Axis orientations (corresponds to CS_AxisOrientationEnum).      */
00192 /* -------------------------------------------------------------------- */
00193 typedef enum {
00194     OAO_Other=0,
00195     OAO_North=1,
00196     OAO_South=2,
00197     OAO_East=3,
00198     OAO_West=4,
00199     OAO_Up=5,
00200     OAO_Down=6
00201 } OGRAxisOrientation;
00202     
00203 /* -------------------------------------------------------------------- */
00204 /*      Datum types (corresponds to CS_DatumType).                      */
00205 /* -------------------------------------------------------------------- */
00206 
00207 typedef enum {
00208     ODT_HD_Min=1000,
00209     ODT_HD_Other=1000,
00210     ODT_HD_Classic=1001,
00211     ODT_HD_Geocentric=1002,
00212     ODT_HD_Max=1999,
00213     ODT_VD_Min=2000,
00214     ODT_VD_Other=2000,
00215     ODT_VD_Orthometric=2001,
00216     ODT_VD_Ellipsoidal=2002,
00217     ODT_VD_AltitudeBarometric=2003,
00218     ODT_VD_Normal=2004,
00219     ODT_VD_GeoidModelDerived=2005,
00220     ODT_VD_Depth=2006,
00221     ODT_VD_Max=2999,
00222     ODT_LD_Min=10000,
00223     ODT_LD_Max=32767
00224 } OGRDatumType; 
00225 
00226 /* ==================================================================== */
00227 /*      Some "standard" strings.                                        */
00228 /* ==================================================================== */
00229 
00230 #define SRS_PT_ALBERS_CONIC_EQUAL_AREA                                  \
00231                                 "Albers_Conic_Equal_Area"
00232 #define SRS_PT_AZIMUTHAL_EQUIDISTANT "Azimuthal_Equidistant"
00233 #define SRS_PT_CASSINI_SOLDNER  "Cassini_Soldner"
00234 #define SRS_PT_CYLINDRICAL_EQUAL_AREA "Cylindrical_Equal_Area"
00235 #define SRS_PT_BONNE            "Bonne"
00236 #define SRS_PT_ECKERT_IV        "Eckert_IV"
00237 #define SRS_PT_ECKERT_VI        "Eckert_VI"
00238 #define SRS_PT_EQUIDISTANT_CONIC "Equidistant_Conic"
00239 #define SRS_PT_EQUIRECTANGULAR  "Equirectangular"
00240 #define SRS_PT_GALL_STEREOGRAPHIC "Gall_Stereographic"
00241 #define SRS_PT_GNOMONIC         "Gnomonic"
00242 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR                                  \
00243                                 "Hotine_Oblique_Mercator"
00244 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN         \
00245                             "Hotine_Oblique_Mercator_Two_Point_Natural_Origin"
00246 #define SRS_PT_LABORDE_OBLIQUE_MERCATOR                                 \
00247                                 "Laborde_Oblique_Mercator"
00248 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP                              \
00249                                 "Lambert_Conformal_Conic_1SP"
00250 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP                              \
00251                                 "Lambert_Conformal_Conic_2SP"
00252 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM                      \
00253                                 "Lambert_Conformal_Conic_2SP_Belgium)"
00254 #define SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA                     \
00255                                 "Lambert_Azimuthal_Equal_Area"
00256 #define SRS_PT_MERCATOR_1SP     "Mercator_1SP"
00257 #define SRS_PT_MERCATOR_2SP     "Mercator_2SP"
00258 #define SRS_PT_MILLER_CYLINDRICAL "Miller_Cylindrical"
00259 #define SRS_PT_MOLLWEIDE        "Mollweide"
00260 #define SRS_PT_NEW_ZEALAND_MAP_GRID                                     \
00261                                 "New_Zealand_Map_Grid"
00262 #define SRS_PT_OBLIQUE_STEREOGRAPHIC                                    \
00263                                 "Oblique_Stereographic"
00264 #define SRS_PT_ORTHOGRAPHIC     "Orthographic"
00265 #define SRS_PT_POLAR_STEREOGRAPHIC                                      \
00266                                 "Polar_Stereographic"
00267 #define SRS_PT_POLYCONIC        "Polyconic"
00268 #define SRS_PT_ROBINSON         "Robinson"
00269 #define SRS_PT_SINUSOIDAL       "Sinusoidal"
00270 #define SRS_PT_STEREOGRAPHIC    "Stereographic"
00271 #define SRS_PT_SWISS_OBLIQUE_CYLINDRICAL                                \
00272                                 "Swiss_Oblique_Cylindrical"
00273 #define SRS_PT_TRANSVERSE_MERCATOR                                      \
00274                                 "Transverse_Mercator"
00275 #define SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED                       \
00276                                 "Transverse_Mercator_South_Orientated"
00277 
00278 /* special mapinfo variants on Transverse Mercator */
00279 #define SRS_PT_TRANSVERSE_MERCATOR_MI_22 \
00280                                 "Transverse_Mercator_MapInfo_22"
00281 #define SRS_PT_TRANSVERSE_MERCATOR_MI_23 \
00282                                 "Transverse_Mercator_MapInfo_23"
00283 #define SRS_PT_TRANSVERSE_MERCATOR_MI_24 \
00284                                 "Transverse_Mercator_MapInfo_24"
00285 #define SRS_PT_TRANSVERSE_MERCATOR_MI_25 \
00286                                 "Transverse_Mercator_MapInfo_25"
00287 
00288 #define SRS_PT_TUNISIA_MINING_GRID                                      \
00289                                 "Tunisia_Mining_Grid"
00290 #define SRS_PT_VANDERGRINTEN    "VanDerGrinten"
00291 #define SRS_PT_KROVAK           "Krovak"
00292 
00293                                 
00294 
00295 #define SRS_PP_CENTRAL_MERIDIAN         "central_meridian"
00296 #define SRS_PP_SCALE_FACTOR             "scale_factor"
00297 #define SRS_PP_STANDARD_PARALLEL_1      "standard_parallel_1"
00298 #define SRS_PP_STANDARD_PARALLEL_2      "standard_parallel_2"
00299 #define SRS_PP_PSEUDO_STD_PARALLEL_1    "pseudo_standard_parallel_1"
00300 #define SRS_PP_LONGITUDE_OF_CENTER      "longitude_of_center"
00301 #define SRS_PP_LATITUDE_OF_CENTER       "latitude_of_center"
00302 #define SRS_PP_LONGITUDE_OF_ORIGIN      "longitude_of_origin"
00303 #define SRS_PP_LATITUDE_OF_ORIGIN       "latitude_of_origin"
00304 #define SRS_PP_FALSE_EASTING            "false_easting"
00305 #define SRS_PP_FALSE_NORTHING           "false_northing"
00306 #define SRS_PP_AZIMUTH                  "azimuth"
00307 #define SRS_PP_LONGITUDE_OF_POINT_1     "longitude_of_point_1"
00308 #define SRS_PP_LATITUDE_OF_POINT_1      "latitude_of_point_1"
00309 #define SRS_PP_LONGITUDE_OF_POINT_2     "longitude_of_point_2"
00310 #define SRS_PP_LATITUDE_OF_POINT_2      "latitude_of_point_2"
00311 #define SRS_PP_LONGITUDE_OF_POINT_3     "longitude_of_point_3"
00312 #define SRS_PP_LATITUDE_OF_POINT_3      "latitude_of_point_3"
00313 #define SRS_PP_RECTIFIED_GRID_ANGLE     "rectified_grid_angle"
00314 #define SRS_PP_LANDSAT_NUMBER           "landsat_number"
00315 #define SRS_PP_PATH_NUMBER              "path_number"
00316 #define SRS_PP_PERSPECTIVE_POINT_HEIGHT "perspective_point_height"
00317 #define SRS_PP_FIPSZONE                 "fipszone"
00318 #define SRS_PP_ZONE                     "zone"
00319 
00320 #define SRS_UL_METER            "Meter"
00321 #define SRS_UL_FOOT             "Foot (International)" /* or just "FOOT"? */
00322 #define SRS_UL_FOOT_CONV                    "0.3048"
00323 #define SRS_UL_US_FOOT          "U.S. Foot" /* or "US survey foot" */
00324 #define SRS_UL_US_FOOT_CONV                 "0.3048006"
00325 #define SRS_UL_NAUTICAL_MILE    "Nautical Mile"
00326 #define SRS_UL_NAUTICAL_MILE_CONV           "1852.0"
00327 #define SRS_UL_LINK             "Link"          /* Based on US Foot */
00328 #define SRS_UL_LINK_CONV                    "0.20116684023368047"
00329 #define SRS_UL_CHAIN            "Chain"         /* based on US Foot */
00330 #define SRS_UL_CHAIN_CONV                   "2.0116684023368047"
00331 #define SRS_UL_ROD              "Rod"           /* based on US Foot */
00332 #define SRS_UL_ROD_CONV                     "5.02921005842012"
00333 
00334 #define SRS_UA_DEGREE           "degree"
00335 #define SRS_UA_DEGREE_CONV                  "0.0174532925199433"
00336 #define SRS_UA_RADIAN           "radian"
00337 
00338 #define SRS_PM_GREENWICH        "Greenwich"
00339 
00340 #define SRS_DN_NAD27            "North_American_Datum_1927"
00341 #define SRS_DN_NAD83            "North_American_Datum_1983"
00342 #define SRS_DN_WGS72            "WGS_1972"
00343 #define SRS_DN_WGS84            "WGS_1984"
00344 
00345 #define SRS_WGS84_SEMIMAJOR     6378137.0                                
00346 #define SRS_WGS84_INVFLATTENING 298.257223563
00347 
00348 /* -------------------------------------------------------------------- */
00349 /*      C Wrappers for C++ objects and methods.                         */
00350 /* -------------------------------------------------------------------- */
00351 #ifndef _DEFINED_OGRSpatialReferenceH
00352 #define _DEFINED_OGRSpatialReferenceH
00353 
00354 typedef void *OGRSpatialReferenceH;                               
00355 typedef void *OGRCoordinateTransformationH;
00356 
00357 #endif
00358 
00359 
00360 OGRSpatialReferenceH CPL_DLL
00361       OSRNewSpatialReference( const char * /* = NULL */);
00362 OGRSpatialReferenceH CPL_DLL OSRCloneGeogCS( OGRSpatialReferenceH );
00363 OGRSpatialReferenceH CPL_DLL OSRCloneCS( OGRSpatialReferenceH );
00364 void CPL_DLL OSRDestroySpatialReference( OGRSpatialReferenceH );
00365 
00366 int CPL_DLL OSRReference( OGRSpatialReferenceH );
00367 int CPL_DLL OSRDereference( OGRSpatialReferenceH );
00368 
00369 OGRErr CPL_DLL OSRValidate( OGRSpatialReferenceH );
00370 OGRErr CPL_DLL OSRFixupOrdering( OGRSpatialReferenceH );
00371 OGRErr CPL_DLL OSRFixup( OGRSpatialReferenceH );
00372 OGRErr CPL_DLL OSRStripCTParms( OGRSpatialReferenceH );
00373 
00374 OGRErr CPL_DLL OSRImportFromEPSG( OGRSpatialReferenceH, int );
00375 OGRErr CPL_DLL OSRImportFromWkt( OGRSpatialReferenceH, char ** );
00376 OGRErr CPL_DLL OSRImportFromProj4( OGRSpatialReferenceH, const char *);
00377 OGRErr CPL_DLL OSRImportFromESRI( OGRSpatialReferenceH, char **);
00378 OGRErr CPL_DLL OSRImportFromPCI( OGRSpatialReferenceH hSRS, const char *,
00379                                  const char *, double * );
00380 OGRErr CPL_DLL OSRImportFromUSGS( OGRSpatialReferenceH,
00381                                   long, long, double *, long);
00382 OGRErr CPL_DLL OSRImportFromXML( OGRSpatialReferenceH, const char * );
00383 OGRErr CPL_DLL OSRImportFromDict( OGRSpatialReferenceH, const char *, 
00384                                   const char * );
00385 OGRErr CPL_DLL OSRExportToWkt( OGRSpatialReferenceH, char ** );
00386 OGRErr CPL_DLL OSRExportToPrettyWkt( OGRSpatialReferenceH, char **, int);
00387 OGRErr CPL_DLL OSRExportToProj4( OGRSpatialReferenceH, char **);
00388 OGRErr CPL_DLL OSRExportToPCI( OGRSpatialReferenceH, char **, char **,
00389                                double ** );
00390 OGRErr CPL_DLL OSRExportToUSGS( OGRSpatialReferenceH, long *, long *,
00391                                 double **, long * );
00392 OGRErr CPL_DLL OSRExportToXML( OGRSpatialReferenceH, char **, const char * );
00393 
00394 OGRErr CPL_DLL OSRMorphToESRI( OGRSpatialReferenceH );
00395 OGRErr CPL_DLL OSRMorphFromESRI( OGRSpatialReferenceH );
00396 
00397 OGRErr CPL_DLL OSRSetAttrValue( OGRSpatialReferenceH hSRS,
00398                                 const char * pszNodePath,
00399                                 const char * pszNewNodeValue );
00400 const char CPL_DLL * OSRGetAttrValue( OGRSpatialReferenceH hSRS,
00401                            const char * pszName, int iChild /* = 0 */ );
00402 
00403 OGRErr CPL_DLL OSRSetAngularUnits( OGRSpatialReferenceH, const char *, double );
00404 double CPL_DLL OSRGetAngularUnits( OGRSpatialReferenceH, char ** );
00405 OGRErr CPL_DLL OSRSetLinearUnits( OGRSpatialReferenceH, const char *, double );
00406 double CPL_DLL OSRGetLinearUnits( OGRSpatialReferenceH, char ** );
00407 
00408 double CPL_DLL OSRGetPrimeMeridian( OGRSpatialReferenceH, char ** );
00409 
00410 int CPL_DLL OSRIsGeographic( OGRSpatialReferenceH );
00411 int CPL_DLL OSRIsLocal( OGRSpatialReferenceH );
00412 int CPL_DLL OSRIsProjected( OGRSpatialReferenceH );
00413 int CPL_DLL OSRIsSameGeogCS( OGRSpatialReferenceH, OGRSpatialReferenceH );
00414 int CPL_DLL OSRIsSame( OGRSpatialReferenceH, OGRSpatialReferenceH );
00415 
00416 OGRErr CPL_DLL OSRSetLocalCS( OGRSpatialReferenceH hSRS, const char *pszName );
00417 OGRErr CPL_DLL OSRSetProjCS( OGRSpatialReferenceH hSRS, const char * pszName );
00418 OGRErr CPL_DLL OSRSetWellKnownGeogCS( OGRSpatialReferenceH hSRS,
00419                                       const char * pszName );
00420 OGRErr CPL_DLL OSRSetFromUserInput( OGRSpatialReferenceH hSRS, 
00421                                     const char * );
00422 OGRErr CPL_DLL OSRCopyGeogCSFrom( OGRSpatialReferenceH hSRS, 
00423                                   OGRSpatialReferenceH hSrcSRS );
00424 OGRErr CPL_DLL OSRSetTOWGS84( OGRSpatialReferenceH hSRS, 
00425                               double, double, double, 
00426                               double, double, double, double );
00427 OGRErr CPL_DLL OSRGetTOWGS84( OGRSpatialReferenceH hSRS, double *, int );
00428                         
00429 
00430 OGRErr CPL_DLL OSRSetGeogCS( OGRSpatialReferenceH hSRS,
00431                       const char * pszGeogName,
00432                       const char * pszDatumName,
00433                       const char * pszEllipsoidName,
00434                       double dfSemiMajor, double dfInvFlattening,
00435                       const char * pszPMName /* = NULL */,
00436                       double dfPMOffset /* = 0.0 */,
00437                       const char * pszUnits /* = NULL */,
00438                       double dfConvertToRadians /* = 0.0 */ );
00439 
00440 double CPL_DLL OSRGetSemiMajor( OGRSpatialReferenceH, OGRErr * /* = NULL */ );
00441 double CPL_DLL OSRGetSemiMinor( OGRSpatialReferenceH, OGRErr * /* = NULL */ );
00442 double CPL_DLL OSRGetInvFlattening( OGRSpatialReferenceH, OGRErr * /*=NULL*/);
00443 
00444 OGRErr CPL_DLL OSRSetAuthority( OGRSpatialReferenceH hSRS,
00445                          const char * pszTargetKey,
00446                          const char * pszAuthority,
00447                          int nCode );
00448 const char CPL_DLL *OSRGetAuthorityCode( OGRSpatialReferenceH hSRS,
00449                                          const char * pszTargetKey );
00450 const char CPL_DLL *OSRGetAuthorityName( OGRSpatialReferenceH hSRS,
00451                                          const char * pszTargetKey );
00452 OGRErr CPL_DLL OSRSetProjection( OGRSpatialReferenceH, const char * );
00453 OGRErr CPL_DLL OSRSetProjParm( OGRSpatialReferenceH, const char *, double );
00454 double CPL_DLL OSRGetProjParm( OGRSpatialReferenceH hSRS,
00455                         const char * pszParmName, 
00456                         double dfDefault /* = 0.0 */,
00457                         OGRErr * /* = NULL */ );
00458 OGRErr CPL_DLL OSRSetNormProjParm( OGRSpatialReferenceH, const char *, double);
00459 double CPL_DLL OSRGetNormProjParm( OGRSpatialReferenceH hSRS,
00460                                    const char * pszParmName, 
00461                                    double dfDefault /* = 0.0 */,
00462                                    OGRErr * /* = NULL */ );
00463 
00464 OGRErr CPL_DLL OSRSetUTM( OGRSpatialReferenceH hSRS, int nZone, int bNorth );
00465 int    CPL_DLL OSRGetUTMZone( OGRSpatialReferenceH hSRS, int *pbNorth );
00466 OGRErr CPL_DLL OSRSetStatePlane( OGRSpatialReferenceH hSRS, 
00467                                  int nZone, int bNAD83 );
00468 OGRErr CPL_DLL OSRSetStatePlaneWithUnits( OGRSpatialReferenceH hSRS, 
00469                                           int nZone, int bNAD83,
00470                                           const char *pszOverrideUnitName,
00471                                           double dfOverrideUnit );
00472 OGRErr CPL_DLL OSRAutoIdentifyEPSG( OGRSpatialReferenceH hSRS );
00473 
00475 OGRErr CPL_DLL OSRSetACEA( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
00476                          double dfCenterLat, double dfCenterLong,
00477                          double dfFalseEasting, double dfFalseNorthing );
00478     
00480 OGRErr CPL_DLL  OSRSetAE( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00481                        double dfFalseEasting, double dfFalseNorthing );
00482 
00484 OGRErr CPL_DLL OSRSetBonne(OGRSpatialReferenceH hSRS, 
00485                            double dfStandardParallel, double dfCentralMeridian,
00486                            double dfFalseEasting, double dfFalseNorthing );
00487 
00489 OGRErr CPL_DLL OSRSetCEA( OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian,
00490                         double dfFalseEasting, double dfFalseNorthing );
00491 
00493 OGRErr CPL_DLL OSRSetCS( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00494                        double dfFalseEasting, double dfFalseNorthing );
00495 
00497 OGRErr CPL_DLL OSRSetEC( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
00498                        double dfCenterLat, double dfCenterLong,
00499                        double dfFalseEasting, double dfFalseNorthing );
00500 
00502 OGRErr CPL_DLL OSRSetEckertIV( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
00503                              double dfFalseEasting, double dfFalseNorthing );
00504 
00506 OGRErr CPL_DLL OSRSetEckertVI( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
00507                              double dfFalseEasting, double dfFalseNorthing );
00508 
00510 OGRErr CPL_DLL OSRSetEquirectangular(OGRSpatialReferenceH hSRS,
00511                               double dfCenterLat, double dfCenterLong,
00512                               double dfFalseEasting, double dfFalseNorthing );
00513 
00515 OGRErr CPL_DLL OSRSetGS( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
00516                        double dfFalseEasting, double dfFalseNorthing );
00517     
00519 OGRErr CPL_DLL OSRSetGnomonic(OGRSpatialReferenceH hSRS,
00520                               double dfCenterLat, double dfCenterLong,
00521                             double dfFalseEasting, double dfFalseNorthing );
00522 
00524 OGRErr CPL_DLL OSRSetHOM( OGRSpatialReferenceH hSRS,
00525                           double dfCenterLat, double dfCenterLong,
00526                           double dfAzimuth, double dfRectToSkew,
00527                           double dfScale,
00528                           double dfFalseEasting, double dfFalseNorthing );
00529 
00531 OGRErr CPL_DLL OSRSetHOM2PNO( OGRSpatialReferenceH hSRS, double dfCenterLat,
00532                               double dfLat1, double dfLong1,
00533                               double dfLat2, double dfLong2,
00534                               double dfScale,
00535                               double dfFalseEasting, double dfFalseNorthing );
00536 
00538 OGRErr CPL_DLL OSRSetKrovak( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00539                            double dfAzimuth, double dfPseudoStdParallelLat,
00540                            double dfScale, 
00541                            double dfFalseEasting, double dfFalseNorthing );
00542 
00544 OGRErr CPL_DLL OSRSetLAEA( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00545                          double dfFalseEasting, double dfFalseNorthing );
00546 
00548 OGRErr CPL_DLL OSRSetLCC( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
00549                         double dfCenterLat, double dfCenterLong,
00550                         double dfFalseEasting, double dfFalseNorthing );
00551 
00553 OGRErr CPL_DLL OSRSetLCC1SP( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00554                            double dfScale,
00555                            double dfFalseEasting, double dfFalseNorthing );
00556 
00558 OGRErr CPL_DLL OSRSetLCCB( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
00559                          double dfCenterLat, double dfCenterLong,
00560                          double dfFalseEasting, double dfFalseNorthing );
00561     
00563 OGRErr CPL_DLL OSRSetMC( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00564                        double dfFalseEasting, double dfFalseNorthing );
00565 
00567 OGRErr CPL_DLL OSRSetMercator( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00568                              double dfScale, 
00569                              double dfFalseEasting, double dfFalseNorthing );
00570 
00572 OGRErr CPL_DLL  OSRSetMollweide( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
00573                               double dfFalseEasting, double dfFalseNorthing );
00574 
00576 OGRErr CPL_DLL OSRSetNZMG( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00577                          double dfFalseEasting, double dfFalseNorthing );
00578 
00580 OGRErr CPL_DLL OSRSetOS( OGRSpatialReferenceH hSRS, double dfOriginLat, double dfCMeridian,
00581                        double dfScale,
00582                        double dfFalseEasting,double dfFalseNorthing);
00583     
00585 OGRErr CPL_DLL OSRSetOrthographic( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00586                                  double dfFalseEasting,double dfFalseNorthing);
00587 
00589 OGRErr CPL_DLL OSRSetPolyconic( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00590                               double dfFalseEasting, double dfFalseNorthing );
00591 
00593 OGRErr CPL_DLL OSRSetPS( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00594                        double dfScale,
00595                        double dfFalseEasting, double dfFalseNorthing);
00596     
00598 OGRErr CPL_DLL OSRSetRobinson( OGRSpatialReferenceH hSRS, double dfCenterLong, 
00599                              double dfFalseEasting, double dfFalseNorthing );
00600     
00602 OGRErr CPL_DLL OSRSetSinusoidal( OGRSpatialReferenceH hSRS, double dfCenterLong, 
00603                                double dfFalseEasting, double dfFalseNorthing );
00604     
00606 OGRErr CPL_DLL OSRSetStereographic( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00607                                   double dfScale,
00608                                  double dfFalseEasting,double dfFalseNorthing);
00609     
00611 OGRErr CPL_DLL OSRSetSOC( OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin, double dfCentralMeridian,
00612                         double dfFalseEasting, double dfFalseNorthing );
00613     
00615 OGRErr CPL_DLL OSRSetTM( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00616                        double dfScale,
00617                        double dfFalseEasting, double dfFalseNorthing );
00618 
00620 OGRErr CPL_DLL OSRSetTMVariant( 
00621     OGRSpatialReferenceH hSRS, const char *pszVariantName,
00622     double dfCenterLat, double dfCenterLong,
00623     double dfScale,
00624     double dfFalseEasting, double dfFalseNorthing );
00625 
00627 OGRErr CPL_DLL OSRSetTMG( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, 
00628                         double dfFalseEasting, double dfFalseNorthing );
00629 
00631 OGRErr CPL_DLL OSRSetTMSO( OGRSpatialReferenceH hSRS,
00632                            double dfCenterLat, double dfCenterLong,
00633                            double dfScale,
00634                            double dfFalseEasting, double dfFalseNorthing );
00635 
00637 OGRErr CPL_DLL OSRSetVDG( OGRSpatialReferenceH hSRS,
00638                           double dfCenterLong,
00639                           double dfFalseEasting, double dfFalseNorthing );
00640 
00641 void CPL_DLL OSRCleanup( void );
00642 
00643 /* -------------------------------------------------------------------- */
00644 /*      OGRCoordinateTransform C API.                                   */
00645 /* -------------------------------------------------------------------- */
00646 OGRCoordinateTransformationH CPL_DLL
00647 OCTNewCoordinateTransformation( OGRSpatialReferenceH hSourceSRS,
00648                                 OGRSpatialReferenceH hTargetSRS );
00649 void CPL_DLL
00650       OCTDestroyCoordinateTransformation( OGRCoordinateTransformationH );
00651 
00652 int CPL_DLL OCTTransform( OGRCoordinateTransformationH hCT,
00653                   int nCount, double *x, double *y, double *z );
00654 int CPL_DLL OCTTransformEx( OGRCoordinateTransformationH hCT,
00655                             int nCount, double *x, double *y, double *z,
00656                             int *pabSuccess );
00657 
00658 /* this is really private to OGR. */
00659 char *OCTProj4Normalize( const char *pszProj4Src );
00660 
00661 /* -------------------------------------------------------------------- */
00662 /*      Projection transform dictionary query.                          */
00663 /* -------------------------------------------------------------------- */
00664 
00665 char CPL_DLL ** OPTGetProjectionMethods();
00666 char CPL_DLL ** OPTGetParameterList( const char * pszProjectionMethod,
00667                              char ** ppszUserName );
00668 int CPL_DLL OPTGetParameterInfo( const char * pszProjectionMethod,
00669                                  const char * pszParameterName,
00670                                  char ** ppszUserName,
00671                                  char ** ppszType,
00672                                  double *pdfDefaultValue );
00673 
00674 CPL_C_END
00675 
00676 #endif /* ndef _OGR_SRS_API_H_INCLUDED */

Generated on Tue Mar 15 07:12:56 2005 for OGR by  doxygen 1.4.0