Main Page | Class Hierarchy | Class List | 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.52 2005/05/09 15:39:44 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.52  2005/05/09 15:39:44  fwarmerdam
00032  * Added TM_MI_21 as per email from Safe.
00033  *
00034  * Revision 1.51  2005/04/06 00:02:05  fwarmerdam
00035  * various osr and oct functions now stdcall
00036  *
00037  * Revision 1.50  2005/02/17 16:34:17  fwarmerdam
00038  * OSRCloneCS() should be OSRClone().
00039  *
00040  * Revision 1.49  2005/02/11 14:21:28  fwarmerdam
00041  * added GEOS projection support
00042  *
00043  * Revision 1.48  2005/01/05 21:02:33  fwarmerdam
00044  * added Goode Homolosine
00045  *
00046  * Revision 1.47  2004/11/11 18:28:45  fwarmerdam
00047  * added Bonne projection support
00048  *
00049  * Revision 1.46  2004/09/23 16:20:13  fwarmerdam
00050  * added OSRCleanup
00051  *
00052  * Revision 1.45  2004/05/12 19:25:54  dron
00053  * SRS_DN_WGS72 constant added.
00054  *
00055  * Revision 1.44  2004/05/10 17:05:14  warmerda
00056  * added AutoIdentifyEPSG()
00057  *
00058  * Revision 1.43  2004/05/06 19:26:04  dron
00059  * Added OSRSetProjection() function.
00060  *
00061  * Revision 1.42  2004/03/04 18:04:45  warmerda
00062  * added importFromDict() support
00063  *
00064  * Revision 1.41  2004/02/07 17:31:21  dron
00065  * Added OSRExportToUSGS() method.
00066  *
00067  * Revision 1.40  2004/02/05 17:07:59  dron
00068  * Support for HOM projection, specified by two points on centerline.
00069  *
00070  * Revision 1.39  2004/02/01 14:23:29  dron
00071  * Added OSRImportFromUSGS().
00072  *
00073  * Revision 1.38  2004/01/24 09:35:00  warmerda
00074  * added TransformEx support to capture per point reprojection failure
00075  *
00076  * Revision 1.37  2003/09/09 07:49:52  dron
00077  * Added OSRExportToPCI().
00078  *
00079  * Revision 1.36  2003/08/31 14:51:01  dron
00080  * Added OSRImportFromPCI().
00081  *
00082  * Revision 1.35  2003/08/18 13:26:01  warmerda
00083  * added SetTMVariant() and related definitions
00084  *
00085  * Revision 1.34  2003/06/21 23:24:36  warmerda
00086  * added Set/Get TOWGS84 calls
00087  *
00088  * Revision 1.33  2003/06/19 17:10:26  warmerda
00089  * a couple fixes in last commit
00090  *
00091  * Revision 1.32  2003/06/18 18:24:17  warmerda
00092  * added projection specific set methods to C API
00093  *
00094  * Revision 1.31  2003/06/10 09:31:12  dron
00095  * Added OSRSetAngularUnits() and OSRGetAngularUnits().
00096  *
00097  * Revision 1.30  2003/05/30 15:39:53  warmerda
00098  * Added override units capability for SetStatePlane()
00099  *
00100  * Revision 1.29  2003/03/21 22:15:11  warmerda
00101  * added C XML import/export entry points
00102  *
00103  * Revision 1.28  2003/03/12 14:29:34  warmerda
00104  * Rename OGRAxisOrientation and OGRDatumType values to avoid conflicts with
00105  * the real OGC definitions in applications such as Cadcorps.
00106  *
00107  * Revision 1.27  2003/02/25 04:53:38  warmerda
00108  * added OSRCopyGeogCSFrom
00109  *
00110  * Revision 1.26  2003/02/06 04:53:12  warmerda
00111  * added Fixup() method
00112  *
00113  * Revision 1.25  2003/01/08 18:14:28  warmerda
00114  * added FixupOrdering()
00115  *
00116  * Revision 1.24  2002/12/16 17:07:13  warmerda
00117  * added NormProjParm functions, and OSRGetPrimeMeridian
00118  *
00119  * Revision 1.23  2002/12/14 22:59:14  warmerda
00120  * added Krovak in ESRI compatible way
00121  *
00122  * Revision 1.22  2002/12/09 18:55:07  warmerda
00123  * moved DMS stuff to gdal/port
00124  *
00125  * Revision 1.21  2002/12/09 16:11:53  warmerda
00126  * added DMS translation
00127  *
00128  * Revision 1.20  2002/11/25 16:12:54  warmerda
00129  * added GetAuthorityCode/Name
00130  *
00131  * Revision 1.19  2002/09/26 18:13:25  warmerda
00132  * avoid double def
00133  *
00134  * Revision 1.18  2002/06/11 18:02:03  warmerda
00135  * add PROJ.4 normalization and EPSG support
00136  *
00137  * Revision 1.17  2001/10/11 19:27:12  warmerda
00138  * upgraded validation infrastructure
00139  *
00140  * Revision 1.16  2001/10/10 20:42:43  warmerda
00141  * added ESRI WKT morphing support
00142  *
00143  * Revision 1.15  2001/09/21 16:21:02  warmerda
00144  * added Clear(), and SetFromUserInput() methods
00145  *
00146  * Revision 1.14  2000/11/09 06:21:32  warmerda
00147  * added limited ESRI prj support
00148  *
00149  * Revision 1.13  2000/10/20 04:19:38  warmerda
00150  * added setstateplane
00151  *
00152  * Revision 1.12  2000/10/16 21:26:07  warmerda
00153  * added some level of LOCAL_CS support
00154  *
00155  * Revision 1.11  2000/09/01 20:58:01  warmerda
00156  * added CPL_DLL for entry points
00157  *
00158  * Revision 1.10  2000/08/30 20:06:14  warmerda
00159  * added projection method list functions
00160  *
00161  * Revision 1.9  2000/08/28 20:13:23  warmerda
00162  * added importFromProj4
00163  *
00164  * Revision 1.8  2000/07/11 01:02:06  warmerda
00165  * added ExportToProj4()
00166  *
00167  * Revision 1.7  2000/07/09 20:48:02  warmerda
00168  * added exportToPrettyWkt
00169  *
00170  * Revision 1.6  2000/05/30 22:45:44  warmerda
00171  * added OSRCloneGeogCS()
00172  *
00173  * Revision 1.5  2000/04/26 18:25:56  warmerda
00174  * added missing CPL_DLL attributes
00175  *
00176  * Revision 1.4  2000/03/22 01:09:43  warmerda
00177  * added SetProjCS and SetWellKnownTextCS
00178  *
00179  * Revision 1.3  2000/03/20 23:33:51  warmerda
00180  * updated docs a bit
00181  *
00182  * Revision 1.2  2000/03/20 22:39:31  warmerda
00183  * Added C API.
00184  *
00185  * Revision 1.1  2000/03/16 19:04:14  warmerda
00186  * New
00187  *
00188  */
00189 
00190 #ifndef _OGR_SRS_API_H_INCLUDED
00191 #define _OGR_SRS_API_H_INCLUDED
00192 
00193 #include "ogr_core.h"
00194 
00195 CPL_C_START
00196 
00205 /* -------------------------------------------------------------------- */
00206 /*      Axis orientations (corresponds to CS_AxisOrientationEnum).      */
00207 /* -------------------------------------------------------------------- */
00208 typedef enum {
00209     OAO_Other=0,
00210     OAO_North=1,
00211     OAO_South=2,
00212     OAO_East=3,
00213     OAO_West=4,
00214     OAO_Up=5,
00215     OAO_Down=6
00216 } OGRAxisOrientation;
00217     
00218 /* -------------------------------------------------------------------- */
00219 /*      Datum types (corresponds to CS_DatumType).                      */
00220 /* -------------------------------------------------------------------- */
00221 
00222 typedef enum {
00223     ODT_HD_Min=1000,
00224     ODT_HD_Other=1000,
00225     ODT_HD_Classic=1001,
00226     ODT_HD_Geocentric=1002,
00227     ODT_HD_Max=1999,
00228     ODT_VD_Min=2000,
00229     ODT_VD_Other=2000,
00230     ODT_VD_Orthometric=2001,
00231     ODT_VD_Ellipsoidal=2002,
00232     ODT_VD_AltitudeBarometric=2003,
00233     ODT_VD_Normal=2004,
00234     ODT_VD_GeoidModelDerived=2005,
00235     ODT_VD_Depth=2006,
00236     ODT_VD_Max=2999,
00237     ODT_LD_Min=10000,
00238     ODT_LD_Max=32767
00239 } OGRDatumType; 
00240 
00241 /* ==================================================================== */
00242 /*      Some "standard" strings.                                        */
00243 /* ==================================================================== */
00244 
00245 #define SRS_PT_ALBERS_CONIC_EQUAL_AREA                                  \
00246                                 "Albers_Conic_Equal_Area"
00247 #define SRS_PT_AZIMUTHAL_EQUIDISTANT "Azimuthal_Equidistant"
00248 #define SRS_PT_CASSINI_SOLDNER  "Cassini_Soldner"
00249 #define SRS_PT_CYLINDRICAL_EQUAL_AREA "Cylindrical_Equal_Area"
00250 #define SRS_PT_BONNE            "Bonne"
00251 #define SRS_PT_ECKERT_IV        "Eckert_IV"
00252 #define SRS_PT_ECKERT_VI        "Eckert_VI"
00253 #define SRS_PT_EQUIDISTANT_CONIC "Equidistant_Conic"
00254 #define SRS_PT_EQUIRECTANGULAR  "Equirectangular"
00255 #define SRS_PT_GALL_STEREOGRAPHIC "Gall_Stereographic"
00256 #define SRS_PT_GEOSTATIONARY_SATELLITE "Geostationary_Satellite"
00257 #define SRS_PT_GOODE_HOMOLOSINE "Goode_Homolosine"
00258 #define SRS_PT_GNOMONIC         "Gnomonic"
00259 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR                                  \
00260                                 "Hotine_Oblique_Mercator"
00261 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN         \
00262                             "Hotine_Oblique_Mercator_Two_Point_Natural_Origin"
00263 #define SRS_PT_LABORDE_OBLIQUE_MERCATOR                                 \
00264                                 "Laborde_Oblique_Mercator"
00265 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP                              \
00266                                 "Lambert_Conformal_Conic_1SP"
00267 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP                              \
00268                                 "Lambert_Conformal_Conic_2SP"
00269 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM                      \
00270                                 "Lambert_Conformal_Conic_2SP_Belgium)"
00271 #define SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA                     \
00272                                 "Lambert_Azimuthal_Equal_Area"
00273 #define SRS_PT_MERCATOR_1SP     "Mercator_1SP"
00274 #define SRS_PT_MERCATOR_2SP     "Mercator_2SP"
00275 #define SRS_PT_MILLER_CYLINDRICAL "Miller_Cylindrical"
00276 #define SRS_PT_MOLLWEIDE        "Mollweide"
00277 #define SRS_PT_NEW_ZEALAND_MAP_GRID                                     \
00278                                 "New_Zealand_Map_Grid"
00279 #define SRS_PT_OBLIQUE_STEREOGRAPHIC                                    \
00280                                 "Oblique_Stereographic"
00281 #define SRS_PT_ORTHOGRAPHIC     "Orthographic"
00282 #define SRS_PT_POLAR_STEREOGRAPHIC                                      \
00283                                 "Polar_Stereographic"
00284 #define SRS_PT_POLYCONIC        "Polyconic"
00285 #define SRS_PT_ROBINSON         "Robinson"
00286 #define SRS_PT_SINUSOIDAL       "Sinusoidal"
00287 #define SRS_PT_STEREOGRAPHIC    "Stereographic"
00288 #define SRS_PT_SWISS_OBLIQUE_CYLINDRICAL                                \
00289                                 "Swiss_Oblique_Cylindrical"
00290 #define SRS_PT_TRANSVERSE_MERCATOR                                      \
00291                                 "Transverse_Mercator"
00292 #define SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED                       \
00293                                 "Transverse_Mercator_South_Orientated"
00294 
00295 /* special mapinfo variants on Transverse Mercator */
00296 #define SRS_PT_TRANSVERSE_MERCATOR_MI_21 \
00297                                 "Transverse_Mercator_MapInfo_21"
00298 #define SRS_PT_TRANSVERSE_MERCATOR_MI_22 \
00299                                 "Transverse_Mercator_MapInfo_22"
00300 #define SRS_PT_TRANSVERSE_MERCATOR_MI_23 \
00301                                 "Transverse_Mercator_MapInfo_23"
00302 #define SRS_PT_TRANSVERSE_MERCATOR_MI_24 \
00303                                 "Transverse_Mercator_MapInfo_24"
00304 #define SRS_PT_TRANSVERSE_MERCATOR_MI_25 \
00305                                 "Transverse_Mercator_MapInfo_25"
00306 
00307 #define SRS_PT_TUNISIA_MINING_GRID                                      \
00308                                 "Tunisia_Mining_Grid"
00309 #define SRS_PT_VANDERGRINTEN    "VanDerGrinten"
00310 #define SRS_PT_KROVAK           "Krovak"
00311 
00312                                 
00313 
00314 #define SRS_PP_CENTRAL_MERIDIAN         "central_meridian"
00315 #define SRS_PP_SCALE_FACTOR             "scale_factor"
00316 #define SRS_PP_STANDARD_PARALLEL_1      "standard_parallel_1"
00317 #define SRS_PP_STANDARD_PARALLEL_2      "standard_parallel_2"
00318 #define SRS_PP_PSEUDO_STD_PARALLEL_1    "pseudo_standard_parallel_1"
00319 #define SRS_PP_LONGITUDE_OF_CENTER      "longitude_of_center"
00320 #define SRS_PP_LATITUDE_OF_CENTER       "latitude_of_center"
00321 #define SRS_PP_LONGITUDE_OF_ORIGIN      "longitude_of_origin"
00322 #define SRS_PP_LATITUDE_OF_ORIGIN       "latitude_of_origin"
00323 #define SRS_PP_FALSE_EASTING            "false_easting"
00324 #define SRS_PP_FALSE_NORTHING           "false_northing"
00325 #define SRS_PP_AZIMUTH                  "azimuth"
00326 #define SRS_PP_LONGITUDE_OF_POINT_1     "longitude_of_point_1"
00327 #define SRS_PP_LATITUDE_OF_POINT_1      "latitude_of_point_1"
00328 #define SRS_PP_LONGITUDE_OF_POINT_2     "longitude_of_point_2"
00329 #define SRS_PP_LATITUDE_OF_POINT_2      "latitude_of_point_2"
00330 #define SRS_PP_LONGITUDE_OF_POINT_3     "longitude_of_point_3"
00331 #define SRS_PP_LATITUDE_OF_POINT_3      "latitude_of_point_3"
00332 #define SRS_PP_RECTIFIED_GRID_ANGLE     "rectified_grid_angle"
00333 #define SRS_PP_LANDSAT_NUMBER           "landsat_number"
00334 #define SRS_PP_PATH_NUMBER              "path_number"
00335 #define SRS_PP_PERSPECTIVE_POINT_HEIGHT "perspective_point_height"
00336 #define SRS_PP_SATELLITE_HEIGHT         "satellite_height"
00337 #define SRS_PP_FIPSZONE                 "fipszone"
00338 #define SRS_PP_ZONE                     "zone"
00339 
00340 #define SRS_UL_METER            "Meter"
00341 #define SRS_UL_FOOT             "Foot (International)" /* or just "FOOT"? */
00342 #define SRS_UL_FOOT_CONV                    "0.3048"
00343 #define SRS_UL_US_FOOT          "U.S. Foot" /* or "US survey foot" */
00344 #define SRS_UL_US_FOOT_CONV                 "0.3048006"
00345 #define SRS_UL_NAUTICAL_MILE    "Nautical Mile"
00346 #define SRS_UL_NAUTICAL_MILE_CONV           "1852.0"
00347 #define SRS_UL_LINK             "Link"          /* Based on US Foot */
00348 #define SRS_UL_LINK_CONV                    "0.20116684023368047"
00349 #define SRS_UL_CHAIN            "Chain"         /* based on US Foot */
00350 #define SRS_UL_CHAIN_CONV                   "2.0116684023368047"
00351 #define SRS_UL_ROD              "Rod"           /* based on US Foot */
00352 #define SRS_UL_ROD_CONV                     "5.02921005842012"
00353 
00354 #define SRS_UA_DEGREE           "degree"
00355 #define SRS_UA_DEGREE_CONV                  "0.0174532925199433"
00356 #define SRS_UA_RADIAN           "radian"
00357 
00358 #define SRS_PM_GREENWICH        "Greenwich"
00359 
00360 #define SRS_DN_NAD27            "North_American_Datum_1927"
00361 #define SRS_DN_NAD83            "North_American_Datum_1983"
00362 #define SRS_DN_WGS72            "WGS_1972"
00363 #define SRS_DN_WGS84            "WGS_1984"
00364 
00365 #define SRS_WGS84_SEMIMAJOR     6378137.0                                
00366 #define SRS_WGS84_INVFLATTENING 298.257223563
00367 
00368 /* -------------------------------------------------------------------- */
00369 /*      C Wrappers for C++ objects and methods.                         */
00370 /* -------------------------------------------------------------------- */
00371 #ifndef _DEFINED_OGRSpatialReferenceH
00372 #define _DEFINED_OGRSpatialReferenceH
00373 
00374 typedef void *OGRSpatialReferenceH;                               
00375 typedef void *OGRCoordinateTransformationH;
00376 
00377 #endif
00378 
00379 
00380 OGRSpatialReferenceH CPL_DLL CPL_STDCALL
00381       OSRNewSpatialReference( const char * /* = NULL */);
00382 OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRCloneGeogCS( OGRSpatialReferenceH );
00383 OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRClone( OGRSpatialReferenceH );
00384 void CPL_DLL CPL_STDCALL OSRDestroySpatialReference( OGRSpatialReferenceH );
00385 
00386 int CPL_DLL OSRReference( OGRSpatialReferenceH );
00387 int CPL_DLL OSRDereference( OGRSpatialReferenceH );
00388 
00389 OGRErr CPL_DLL OSRValidate( OGRSpatialReferenceH );
00390 OGRErr CPL_DLL OSRFixupOrdering( OGRSpatialReferenceH );
00391 OGRErr CPL_DLL OSRFixup( OGRSpatialReferenceH );
00392 OGRErr CPL_DLL OSRStripCTParms( OGRSpatialReferenceH );
00393 
00394 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSG( OGRSpatialReferenceH, int );
00395 OGRErr CPL_DLL OSRImportFromWkt( OGRSpatialReferenceH, char ** );
00396 OGRErr CPL_DLL OSRImportFromProj4( OGRSpatialReferenceH, const char *);
00397 OGRErr CPL_DLL OSRImportFromESRI( OGRSpatialReferenceH, char **);
00398 OGRErr CPL_DLL OSRImportFromPCI( OGRSpatialReferenceH hSRS, const char *,
00399                                  const char *, double * );
00400 OGRErr CPL_DLL OSRImportFromUSGS( OGRSpatialReferenceH,
00401                                   long, long, double *, long);
00402 OGRErr CPL_DLL OSRImportFromXML( OGRSpatialReferenceH, const char * );
00403 OGRErr CPL_DLL OSRImportFromDict( OGRSpatialReferenceH, const char *, 
00404                                   const char * );
00405 OGRErr CPL_DLL CPL_STDCALL OSRExportToWkt( OGRSpatialReferenceH, char ** );
00406 OGRErr CPL_DLL CPL_STDCALL OSRExportToPrettyWkt( OGRSpatialReferenceH, char **, int);
00407 OGRErr CPL_DLL CPL_STDCALL OSRExportToProj4( OGRSpatialReferenceH, char **);
00408 OGRErr CPL_DLL OSRExportToPCI( OGRSpatialReferenceH, char **, char **,
00409                                double ** );
00410 OGRErr CPL_DLL OSRExportToUSGS( OGRSpatialReferenceH, long *, long *,
00411                                 double **, long * );
00412 OGRErr CPL_DLL OSRExportToXML( OGRSpatialReferenceH, char **, const char * );
00413 
00414 OGRErr CPL_DLL OSRMorphToESRI( OGRSpatialReferenceH );
00415 OGRErr CPL_DLL OSRMorphFromESRI( OGRSpatialReferenceH );
00416 
00417 OGRErr CPL_DLL CPL_STDCALL OSRSetAttrValue( OGRSpatialReferenceH hSRS,
00418                                 const char * pszNodePath,
00419                                 const char * pszNewNodeValue );
00420 const char CPL_DLL * CPL_STDCALL OSRGetAttrValue( OGRSpatialReferenceH hSRS,
00421                            const char * pszName, int iChild /* = 0 */ );
00422 
00423 OGRErr CPL_DLL OSRSetAngularUnits( OGRSpatialReferenceH, const char *, double );
00424 double CPL_DLL OSRGetAngularUnits( OGRSpatialReferenceH, char ** );
00425 OGRErr CPL_DLL OSRSetLinearUnits( OGRSpatialReferenceH, const char *, double );
00426 double CPL_DLL OSRGetLinearUnits( OGRSpatialReferenceH, char ** );
00427 
00428 double CPL_DLL OSRGetPrimeMeridian( OGRSpatialReferenceH, char ** );
00429 
00430 int CPL_DLL OSRIsGeographic( OGRSpatialReferenceH );
00431 int CPL_DLL OSRIsLocal( OGRSpatialReferenceH );
00432 int CPL_DLL OSRIsProjected( OGRSpatialReferenceH );
00433 int CPL_DLL OSRIsSameGeogCS( OGRSpatialReferenceH, OGRSpatialReferenceH );
00434 int CPL_DLL OSRIsSame( OGRSpatialReferenceH, OGRSpatialReferenceH );
00435 
00436 OGRErr CPL_DLL OSRSetLocalCS( OGRSpatialReferenceH hSRS, const char *pszName );
00437 OGRErr CPL_DLL OSRSetProjCS( OGRSpatialReferenceH hSRS, const char * pszName );
00438 OGRErr CPL_DLL OSRSetWellKnownGeogCS( OGRSpatialReferenceH hSRS,
00439                                       const char * pszName );
00440 OGRErr CPL_DLL CPL_STDCALL OSRSetFromUserInput( OGRSpatialReferenceH hSRS, 
00441                                     const char * );
00442 OGRErr CPL_DLL OSRCopyGeogCSFrom( OGRSpatialReferenceH hSRS, 
00443                                   OGRSpatialReferenceH hSrcSRS );
00444 OGRErr CPL_DLL OSRSetTOWGS84( OGRSpatialReferenceH hSRS, 
00445                               double, double, double, 
00446                               double, double, double, double );
00447 OGRErr CPL_DLL OSRGetTOWGS84( OGRSpatialReferenceH hSRS, double *, int );
00448                         
00449 
00450 OGRErr CPL_DLL OSRSetGeogCS( OGRSpatialReferenceH hSRS,
00451                       const char * pszGeogName,
00452                       const char * pszDatumName,
00453                       const char * pszEllipsoidName,
00454                       double dfSemiMajor, double dfInvFlattening,
00455                       const char * pszPMName /* = NULL */,
00456                       double dfPMOffset /* = 0.0 */,
00457                       const char * pszUnits /* = NULL */,
00458                       double dfConvertToRadians /* = 0.0 */ );
00459 
00460 double CPL_DLL OSRGetSemiMajor( OGRSpatialReferenceH, OGRErr * /* = NULL */ );
00461 double CPL_DLL OSRGetSemiMinor( OGRSpatialReferenceH, OGRErr * /* = NULL */ );
00462 double CPL_DLL OSRGetInvFlattening( OGRSpatialReferenceH, OGRErr * /*=NULL*/);
00463 
00464 OGRErr CPL_DLL OSRSetAuthority( OGRSpatialReferenceH hSRS,
00465                          const char * pszTargetKey,
00466                          const char * pszAuthority,
00467                          int nCode );
00468 const char CPL_DLL *OSRGetAuthorityCode( OGRSpatialReferenceH hSRS,
00469                                          const char * pszTargetKey );
00470 const char CPL_DLL *OSRGetAuthorityName( OGRSpatialReferenceH hSRS,
00471                                          const char * pszTargetKey );
00472 OGRErr CPL_DLL OSRSetProjection( OGRSpatialReferenceH, const char * );
00473 OGRErr CPL_DLL OSRSetProjParm( OGRSpatialReferenceH, const char *, double );
00474 double CPL_DLL OSRGetProjParm( OGRSpatialReferenceH hSRS,
00475                         const char * pszParmName, 
00476                         double dfDefault /* = 0.0 */,
00477                         OGRErr * /* = NULL */ );
00478 OGRErr CPL_DLL OSRSetNormProjParm( OGRSpatialReferenceH, const char *, double);
00479 double CPL_DLL OSRGetNormProjParm( OGRSpatialReferenceH hSRS,
00480                                    const char * pszParmName, 
00481                                    double dfDefault /* = 0.0 */,
00482                                    OGRErr * /* = NULL */ );
00483 
00484 OGRErr CPL_DLL OSRSetUTM( OGRSpatialReferenceH hSRS, int nZone, int bNorth );
00485 int    CPL_DLL OSRGetUTMZone( OGRSpatialReferenceH hSRS, int *pbNorth );
00486 OGRErr CPL_DLL OSRSetStatePlane( OGRSpatialReferenceH hSRS, 
00487                                  int nZone, int bNAD83 );
00488 OGRErr CPL_DLL OSRSetStatePlaneWithUnits( OGRSpatialReferenceH hSRS, 
00489                                           int nZone, int bNAD83,
00490                                           const char *pszOverrideUnitName,
00491                                           double dfOverrideUnit );
00492 OGRErr CPL_DLL OSRAutoIdentifyEPSG( OGRSpatialReferenceH hSRS );
00493 
00495 OGRErr CPL_DLL OSRSetACEA( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
00496                          double dfCenterLat, double dfCenterLong,
00497                          double dfFalseEasting, double dfFalseNorthing );
00498     
00500 OGRErr CPL_DLL  OSRSetAE( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00501                        double dfFalseEasting, double dfFalseNorthing );
00502 
00504 OGRErr CPL_DLL OSRSetBonne(OGRSpatialReferenceH hSRS, 
00505                            double dfStandardParallel, double dfCentralMeridian,
00506                            double dfFalseEasting, double dfFalseNorthing );
00507 
00509 OGRErr CPL_DLL OSRSetCEA( OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian,
00510                         double dfFalseEasting, double dfFalseNorthing );
00511 
00513 OGRErr CPL_DLL OSRSetCS( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00514                        double dfFalseEasting, double dfFalseNorthing );
00515 
00517 OGRErr CPL_DLL OSRSetEC( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
00518                        double dfCenterLat, double dfCenterLong,
00519                        double dfFalseEasting, double dfFalseNorthing );
00520 
00522 OGRErr CPL_DLL OSRSetEckertIV( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
00523                              double dfFalseEasting, double dfFalseNorthing );
00524 
00526 OGRErr CPL_DLL OSRSetEckertVI( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
00527                              double dfFalseEasting, double dfFalseNorthing );
00528 
00530 OGRErr CPL_DLL OSRSetEquirectangular(OGRSpatialReferenceH hSRS,
00531                               double dfCenterLat, double dfCenterLong,
00532                               double dfFalseEasting, double dfFalseNorthing );
00533 
00535 OGRErr CPL_DLL OSRSetGS( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
00536                        double dfFalseEasting, double dfFalseNorthing );
00537     
00539 OGRErr CPL_DLL OSRSetGH( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
00540                          double dfFalseEasting, double dfFalseNorthing );
00541     
00543 OGRErr CPL_DLL OSRSetGEOS( OGRSpatialReferenceH hSRS, double dfSatelliteHeight,
00544                          double dfFalseEasting, double dfFalseNorthing );
00545     
00547 OGRErr CPL_DLL OSRSetGnomonic(OGRSpatialReferenceH hSRS,
00548                               double dfCenterLat, double dfCenterLong,
00549                             double dfFalseEasting, double dfFalseNorthing );
00550 
00552 OGRErr CPL_DLL OSRSetHOM( OGRSpatialReferenceH hSRS,
00553                           double dfCenterLat, double dfCenterLong,
00554                           double dfAzimuth, double dfRectToSkew,
00555                           double dfScale,
00556                           double dfFalseEasting, double dfFalseNorthing );
00557 
00559 OGRErr CPL_DLL OSRSetHOM2PNO( OGRSpatialReferenceH hSRS, double dfCenterLat,
00560                               double dfLat1, double dfLong1,
00561                               double dfLat2, double dfLong2,
00562                               double dfScale,
00563                               double dfFalseEasting, double dfFalseNorthing );
00564 
00566 OGRErr CPL_DLL OSRSetKrovak( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00567                            double dfAzimuth, double dfPseudoStdParallelLat,
00568                            double dfScale, 
00569                            double dfFalseEasting, double dfFalseNorthing );
00570 
00572 OGRErr CPL_DLL OSRSetLAEA( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00573                          double dfFalseEasting, double dfFalseNorthing );
00574 
00576 OGRErr CPL_DLL OSRSetLCC( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
00577                         double dfCenterLat, double dfCenterLong,
00578                         double dfFalseEasting, double dfFalseNorthing );
00579 
00581 OGRErr CPL_DLL OSRSetLCC1SP( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00582                            double dfScale,
00583                            double dfFalseEasting, double dfFalseNorthing );
00584 
00586 OGRErr CPL_DLL OSRSetLCCB( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
00587                          double dfCenterLat, double dfCenterLong,
00588                          double dfFalseEasting, double dfFalseNorthing );
00589     
00591 OGRErr CPL_DLL OSRSetMC( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00592                        double dfFalseEasting, double dfFalseNorthing );
00593 
00595 OGRErr CPL_DLL OSRSetMercator( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00596                              double dfScale, 
00597                              double dfFalseEasting, double dfFalseNorthing );
00598 
00600 OGRErr CPL_DLL  OSRSetMollweide( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
00601                               double dfFalseEasting, double dfFalseNorthing );
00602 
00604 OGRErr CPL_DLL OSRSetNZMG( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00605                          double dfFalseEasting, double dfFalseNorthing );
00606 
00608 OGRErr CPL_DLL OSRSetOS( OGRSpatialReferenceH hSRS, double dfOriginLat, double dfCMeridian,
00609                        double dfScale,
00610                        double dfFalseEasting,double dfFalseNorthing);
00611     
00613 OGRErr CPL_DLL OSRSetOrthographic( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00614                                  double dfFalseEasting,double dfFalseNorthing);
00615 
00617 OGRErr CPL_DLL OSRSetPolyconic( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00618                               double dfFalseEasting, double dfFalseNorthing );
00619 
00621 OGRErr CPL_DLL OSRSetPS( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00622                        double dfScale,
00623                        double dfFalseEasting, double dfFalseNorthing);
00624     
00626 OGRErr CPL_DLL OSRSetRobinson( OGRSpatialReferenceH hSRS, double dfCenterLong, 
00627                              double dfFalseEasting, double dfFalseNorthing );
00628     
00630 OGRErr CPL_DLL OSRSetSinusoidal( OGRSpatialReferenceH hSRS, double dfCenterLong, 
00631                                double dfFalseEasting, double dfFalseNorthing );
00632     
00634 OGRErr CPL_DLL OSRSetStereographic( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00635                                   double dfScale,
00636                                  double dfFalseEasting,double dfFalseNorthing);
00637     
00639 OGRErr CPL_DLL OSRSetSOC( OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin, double dfCentralMeridian,
00640                         double dfFalseEasting, double dfFalseNorthing );
00641     
00643 OGRErr CPL_DLL OSRSetTM( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00644                        double dfScale,
00645                        double dfFalseEasting, double dfFalseNorthing );
00646 
00648 OGRErr CPL_DLL OSRSetTMVariant( 
00649     OGRSpatialReferenceH hSRS, const char *pszVariantName,
00650     double dfCenterLat, double dfCenterLong,
00651     double dfScale,
00652     double dfFalseEasting, double dfFalseNorthing );
00653 
00655 OGRErr CPL_DLL OSRSetTMG( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, 
00656                         double dfFalseEasting, double dfFalseNorthing );
00657 
00659 OGRErr CPL_DLL OSRSetTMSO( OGRSpatialReferenceH hSRS,
00660                            double dfCenterLat, double dfCenterLong,
00661                            double dfScale,
00662                            double dfFalseEasting, double dfFalseNorthing );
00663 
00665 OGRErr CPL_DLL OSRSetVDG( OGRSpatialReferenceH hSRS,
00666                           double dfCenterLong,
00667                           double dfFalseEasting, double dfFalseNorthing );
00668 
00669 void CPL_DLL OSRCleanup( void );
00670 
00671 /* -------------------------------------------------------------------- */
00672 /*      OGRCoordinateTransform C API.                                   */
00673 /* -------------------------------------------------------------------- */
00674 OGRCoordinateTransformationH CPL_DLL CPL_STDCALL
00675 OCTNewCoordinateTransformation( OGRSpatialReferenceH hSourceSRS,
00676                                 OGRSpatialReferenceH hTargetSRS );
00677 void CPL_DLL CPL_STDCALL 
00678       OCTDestroyCoordinateTransformation( OGRCoordinateTransformationH );
00679 
00680 int CPL_DLL CPL_STDCALL
00681 OCTTransform( OGRCoordinateTransformationH hCT,
00682               int nCount, double *x, double *y, double *z );
00683 
00684 int CPL_DLL CPL_STDCALL
00685 OCTTransformEx( OGRCoordinateTransformationH hCT,
00686                 int nCount, double *x, double *y, double *z,
00687                 int *pabSuccess );
00688 
00689 /* this is really private to OGR. */
00690 char *OCTProj4Normalize( const char *pszProj4Src );
00691 
00692 /* -------------------------------------------------------------------- */
00693 /*      Projection transform dictionary query.                          */
00694 /* -------------------------------------------------------------------- */
00695 
00696 char CPL_DLL ** OPTGetProjectionMethods();
00697 char CPL_DLL ** OPTGetParameterList( const char * pszProjectionMethod,
00698                              char ** ppszUserName );
00699 int CPL_DLL OPTGetParameterInfo( const char * pszProjectionMethod,
00700                                  const char * pszParameterName,
00701                                  char ** ppszUserName,
00702                                  char ** ppszType,
00703                                  double *pdfDefaultValue );
00704 
00705 CPL_C_END
00706 
00707 #endif /* ndef _OGR_SRS_API_H_INCLUDED */

Generated on Mon Aug 29 04:05:42 2005 for OGR by doxygen 1.3.6