OGR
ogr_srs_api.h
Go to the documentation of this file.
00001 /******************************************************************************
00002  * $Id: ogr_srs_api.h 25727 2013-03-10 14:56:33Z rouault $
00003  *
00004  * Project:  OpenGIS Simple Features Reference Implementation
00005  * Purpose:  C API and constant declarations for OGR Spatial References.
00006  * Author:   Frank Warmerdam, warmerdam@pobox.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 #ifndef _OGR_SRS_API_H_INCLUDED
00031 #define _OGR_SRS_API_H_INCLUDED
00032 
00033 #ifndef SWIG
00034 #include "ogr_core.h"
00035 
00036 CPL_C_START
00037 
00046 /* -------------------------------------------------------------------- */
00047 /*      Axis orientations (corresponds to CS_AxisOrientationEnum).      */
00048 /* -------------------------------------------------------------------- */
00049 typedef enum {
00050     OAO_Other=0,
00051     OAO_North=1,
00052     OAO_South=2,
00053     OAO_East=3,
00054     OAO_West=4,
00055     OAO_Up=5,
00056     OAO_Down=6
00057 } OGRAxisOrientation;
00058     
00059 const char CPL_DLL *OSRAxisEnumToName( OGRAxisOrientation eOrientation );
00060 
00061 /* -------------------------------------------------------------------- */
00062 /*      Datum types (corresponds to CS_DatumType).                      */
00063 /* -------------------------------------------------------------------- */
00064 
00065 typedef enum {
00066     ODT_HD_Min=1000,
00067     ODT_HD_Other=1000,
00068     ODT_HD_Classic=1001,
00069     ODT_HD_Geocentric=1002,
00070     ODT_HD_Max=1999,
00071     ODT_VD_Min=2000,
00072     ODT_VD_Other=2000,
00073     ODT_VD_Orthometric=2001,
00074     ODT_VD_Ellipsoidal=2002,
00075     ODT_VD_AltitudeBarometric=2003,
00076     ODT_VD_Normal=2004,
00077     ODT_VD_GeoidModelDerived=2005,
00078     ODT_VD_Depth=2006,
00079     ODT_VD_Max=2999,
00080     ODT_LD_Min=10000,
00081     ODT_LD_Max=32767
00082 } OGRDatumType; 
00083 
00084 #endif // ndef SWIG
00085 
00086 /* ==================================================================== */
00087 /*      Some standard WKT geographic coordinate systems.                */
00088 /* ==================================================================== */
00089 
00090 #define SRS_WKT_WGS84 "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],TOWGS84[0,0,0,0,0,0,0],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9108\"]],AUTHORITY[\"EPSG\",\"4326\"]]"
00091 
00092 /* ==================================================================== */
00093 /*      Some "standard" strings.                                        */
00094 /* ==================================================================== */
00095 
00096 #define SRS_PT_ALBERS_CONIC_EQUAL_AREA                                  \
00097                                 "Albers_Conic_Equal_Area"
00098 #define SRS_PT_AZIMUTHAL_EQUIDISTANT "Azimuthal_Equidistant"
00099 #define SRS_PT_CASSINI_SOLDNER  "Cassini_Soldner"
00100 #define SRS_PT_CYLINDRICAL_EQUAL_AREA "Cylindrical_Equal_Area"
00101 #define SRS_PT_BONNE            "Bonne"
00102 #define SRS_PT_ECKERT_I         "Eckert_I"
00103 #define SRS_PT_ECKERT_II        "Eckert_II"
00104 #define SRS_PT_ECKERT_III       "Eckert_III"
00105 #define SRS_PT_ECKERT_IV        "Eckert_IV"
00106 #define SRS_PT_ECKERT_V         "Eckert_V"
00107 #define SRS_PT_ECKERT_VI        "Eckert_VI"
00108 #define SRS_PT_EQUIDISTANT_CONIC                                        \
00109                                 "Equidistant_Conic"
00110 #define SRS_PT_EQUIRECTANGULAR  "Equirectangular"
00111 #define SRS_PT_GALL_STEREOGRAPHIC                                       \
00112                                 "Gall_Stereographic"
00113 #define SRS_PT_GAUSSSCHREIBERTMERCATOR                                      \
00114                                 "Gauss_Schreiber_Transverse_Mercator"
00115 #define SRS_PT_GEOSTATIONARY_SATELLITE                                  \
00116                                 "Geostationary_Satellite"
00117 #define SRS_PT_GOODE_HOMOLOSINE "Goode_Homolosine"
00118 #define SRS_PT_IGH              "Interrupted_Goode_Homolosine"
00119 #define SRS_PT_GNOMONIC         "Gnomonic"
00120 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER                   \
00121                                 "Hotine_Oblique_Mercator_Azimuth_Center"
00122 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR                                  \
00123                                 "Hotine_Oblique_Mercator"
00124 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN         \
00125                             "Hotine_Oblique_Mercator_Two_Point_Natural_Origin"
00126 #define SRS_PT_LABORDE_OBLIQUE_MERCATOR                                 \
00127                                 "Laborde_Oblique_Mercator"
00128 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP                              \
00129                                 "Lambert_Conformal_Conic_1SP"
00130 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP                              \
00131                                 "Lambert_Conformal_Conic_2SP"
00132 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM                      \
00133                                 "Lambert_Conformal_Conic_2SP_Belgium"
00134 #define SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA                     \
00135                                 "Lambert_Azimuthal_Equal_Area"
00136 #define SRS_PT_MERCATOR_1SP     "Mercator_1SP"
00137 #define SRS_PT_MERCATOR_2SP     "Mercator_2SP"
00138 #define SRS_PT_MILLER_CYLINDRICAL "Miller_Cylindrical"
00139 #define SRS_PT_MOLLWEIDE        "Mollweide"
00140 #define SRS_PT_NEW_ZEALAND_MAP_GRID                                     \
00141                                 "New_Zealand_Map_Grid"
00142 #define SRS_PT_OBLIQUE_STEREOGRAPHIC                                    \
00143                                 "Oblique_Stereographic"
00144 #define SRS_PT_ORTHOGRAPHIC     "Orthographic"
00145 #define SRS_PT_POLAR_STEREOGRAPHIC                                      \
00146                                 "Polar_Stereographic"
00147 #define SRS_PT_POLYCONIC        "Polyconic"
00148 #define SRS_PT_ROBINSON         "Robinson"
00149 #define SRS_PT_SINUSOIDAL       "Sinusoidal"
00150 #define SRS_PT_STEREOGRAPHIC    "Stereographic"
00151 #define SRS_PT_SWISS_OBLIQUE_CYLINDRICAL                                \
00152                                 "Swiss_Oblique_Cylindrical"
00153 #define SRS_PT_TRANSVERSE_MERCATOR                                      \
00154                                 "Transverse_Mercator"
00155 #define SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED                       \
00156                                 "Transverse_Mercator_South_Orientated"
00157 
00158 /* special mapinfo variants on Transverse Mercator */
00159 #define SRS_PT_TRANSVERSE_MERCATOR_MI_21 \
00160                                 "Transverse_Mercator_MapInfo_21"
00161 #define SRS_PT_TRANSVERSE_MERCATOR_MI_22 \
00162                                 "Transverse_Mercator_MapInfo_22"
00163 #define SRS_PT_TRANSVERSE_MERCATOR_MI_23 \
00164                                 "Transverse_Mercator_MapInfo_23"
00165 #define SRS_PT_TRANSVERSE_MERCATOR_MI_24 \
00166                                 "Transverse_Mercator_MapInfo_24"
00167 #define SRS_PT_TRANSVERSE_MERCATOR_MI_25 \
00168                                 "Transverse_Mercator_MapInfo_25"
00169 
00170 #define SRS_PT_TUNISIA_MINING_GRID                                      \
00171                                 "Tunisia_Mining_Grid"
00172 #define SRS_PT_TWO_POINT_EQUIDISTANT                                    \
00173                                 "Two_Point_Equidistant"
00174 #define SRS_PT_VANDERGRINTEN    "VanDerGrinten"
00175 #define SRS_PT_KROVAK           "Krovak"
00176 #define SRS_PT_IMW_POLYCONIC    "International_Map_of_the_World_Polyconic"
00177 #define SRS_PT_WAGNER_I         "Wagner_I"
00178 #define SRS_PT_WAGNER_II        "Wagner_II"
00179 #define SRS_PT_WAGNER_III       "Wagner_III"
00180 #define SRS_PT_WAGNER_IV        "Wagner_IV"
00181 #define SRS_PT_WAGNER_V         "Wagner_V"
00182 #define SRS_PT_WAGNER_VI        "Wagner_VI"
00183 #define SRS_PT_WAGNER_VII       "Wagner_VII"
00184                                 
00185 
00186 #define SRS_PP_CENTRAL_MERIDIAN         "central_meridian"
00187 #define SRS_PP_SCALE_FACTOR             "scale_factor"
00188 #define SRS_PP_STANDARD_PARALLEL_1      "standard_parallel_1"
00189 #define SRS_PP_STANDARD_PARALLEL_2      "standard_parallel_2"
00190 #define SRS_PP_PSEUDO_STD_PARALLEL_1    "pseudo_standard_parallel_1"
00191 #define SRS_PP_LONGITUDE_OF_CENTER      "longitude_of_center"
00192 #define SRS_PP_LATITUDE_OF_CENTER       "latitude_of_center"
00193 #define SRS_PP_LONGITUDE_OF_ORIGIN      "longitude_of_origin"
00194 #define SRS_PP_LATITUDE_OF_ORIGIN       "latitude_of_origin"
00195 #define SRS_PP_FALSE_EASTING            "false_easting"
00196 #define SRS_PP_FALSE_NORTHING           "false_northing"
00197 #define SRS_PP_AZIMUTH                  "azimuth"
00198 #define SRS_PP_LONGITUDE_OF_POINT_1     "longitude_of_point_1"
00199 #define SRS_PP_LATITUDE_OF_POINT_1      "latitude_of_point_1"
00200 #define SRS_PP_LONGITUDE_OF_POINT_2     "longitude_of_point_2"
00201 #define SRS_PP_LATITUDE_OF_POINT_2      "latitude_of_point_2"
00202 #define SRS_PP_LONGITUDE_OF_POINT_3     "longitude_of_point_3"
00203 #define SRS_PP_LATITUDE_OF_POINT_3      "latitude_of_point_3"
00204 #define SRS_PP_RECTIFIED_GRID_ANGLE     "rectified_grid_angle"
00205 #define SRS_PP_LANDSAT_NUMBER           "landsat_number"
00206 #define SRS_PP_PATH_NUMBER              "path_number"
00207 #define SRS_PP_PERSPECTIVE_POINT_HEIGHT "perspective_point_height"
00208 #define SRS_PP_SATELLITE_HEIGHT         "satellite_height"
00209 #define SRS_PP_FIPSZONE                 "fipszone"
00210 #define SRS_PP_ZONE                     "zone"
00211 #define SRS_PP_LATITUDE_OF_1ST_POINT    "Latitude_Of_1st_Point"
00212 #define SRS_PP_LONGITUDE_OF_1ST_POINT   "Longitude_Of_1st_Point"
00213 #define SRS_PP_LATITUDE_OF_2ND_POINT    "Latitude_Of_2nd_Point"
00214 #define SRS_PP_LONGITUDE_OF_2ND_POINT   "Longitude_Of_2nd_Point"
00215 
00216 #define SRS_UL_METER            "Meter"
00217 #define SRS_UL_FOOT             "Foot (International)" /* or just "FOOT"? */
00218 #define SRS_UL_FOOT_CONV                    "0.3048"
00219 #define SRS_UL_US_FOOT          "Foot_US" /* or "US survey foot" from EPSG */
00220 #define SRS_UL_US_FOOT_CONV                 "0.3048006096012192"
00221 #define SRS_UL_NAUTICAL_MILE    "Nautical Mile"
00222 #define SRS_UL_NAUTICAL_MILE_CONV           "1852.0"
00223 #define SRS_UL_LINK             "Link"          /* Based on US Foot */
00224 #define SRS_UL_LINK_CONV                    "0.20116684023368047"
00225 #define SRS_UL_CHAIN            "Chain"         /* based on US Foot */
00226 #define SRS_UL_CHAIN_CONV                   "20.116684023368047"
00227 #define SRS_UL_ROD              "Rod"           /* based on US Foot */
00228 #define SRS_UL_ROD_CONV                     "5.02921005842012"
00229 #define SRS_UL_LINK_Clarke      "Link_Clarke"          
00230 #define SRS_UL_LINK_Clarke_CONV              "0.2011661949"
00231 
00232 #define SRS_UA_DEGREE           "degree"
00233 #define SRS_UA_DEGREE_CONV                  "0.0174532925199433"
00234 #define SRS_UA_RADIAN           "radian"
00235 
00236 #define SRS_PM_GREENWICH        "Greenwich"
00237 
00238 #define SRS_DN_NAD27            "North_American_Datum_1927"
00239 #define SRS_DN_NAD83            "North_American_Datum_1983"
00240 #define SRS_DN_WGS72            "WGS_1972"
00241 #define SRS_DN_WGS84            "WGS_1984"
00242 
00243 #define SRS_WGS84_SEMIMAJOR     6378137.0                                
00244 #define SRS_WGS84_INVFLATTENING 298.257223563
00245 
00246 #ifndef SWIG
00247 /* -------------------------------------------------------------------- */
00248 /*      C Wrappers for C++ objects and methods.                         */
00249 /* -------------------------------------------------------------------- */
00250 #ifndef _DEFINED_OGRSpatialReferenceH
00251 #define _DEFINED_OGRSpatialReferenceH
00252 
00253 #ifdef DEBUG
00254 typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
00255 typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
00256 #else
00257 typedef void *OGRSpatialReferenceH;                               
00258 typedef void *OGRCoordinateTransformationH;
00259 #endif
00260 
00261 #endif
00262 
00263 
00264 OGRSpatialReferenceH CPL_DLL CPL_STDCALL
00265       OSRNewSpatialReference( const char * /* = NULL */);
00266 OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRCloneGeogCS( OGRSpatialReferenceH );
00267 OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRClone( OGRSpatialReferenceH );
00268 void CPL_DLL CPL_STDCALL OSRDestroySpatialReference( OGRSpatialReferenceH );
00269 
00270 int CPL_DLL OSRReference( OGRSpatialReferenceH );
00271 int CPL_DLL OSRDereference( OGRSpatialReferenceH );
00272 void CPL_DLL OSRRelease( OGRSpatialReferenceH );
00273 
00274 OGRErr CPL_DLL OSRValidate( OGRSpatialReferenceH );
00275 OGRErr CPL_DLL OSRFixupOrdering( OGRSpatialReferenceH );
00276 OGRErr CPL_DLL OSRFixup( OGRSpatialReferenceH );
00277 OGRErr CPL_DLL OSRStripCTParms( OGRSpatialReferenceH );
00278 
00279 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSG( OGRSpatialReferenceH, int );
00280 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSGA( OGRSpatialReferenceH, int );
00281 OGRErr CPL_DLL OSRImportFromWkt( OGRSpatialReferenceH, char ** );
00282 OGRErr CPL_DLL OSRImportFromProj4( OGRSpatialReferenceH, const char *);
00283 OGRErr CPL_DLL OSRImportFromESRI( OGRSpatialReferenceH, char **);
00284 OGRErr CPL_DLL OSRImportFromPCI( OGRSpatialReferenceH hSRS, const char *,
00285                                  const char *, double * );
00286 OGRErr CPL_DLL OSRImportFromUSGS( OGRSpatialReferenceH,
00287                                   long, long, double *, long);
00288 OGRErr CPL_DLL OSRImportFromXML( OGRSpatialReferenceH, const char * );
00289 OGRErr CPL_DLL OSRImportFromDict( OGRSpatialReferenceH, const char *, 
00290                                   const char * );
00291 OGRErr CPL_DLL OSRImportFromPanorama( OGRSpatialReferenceH, long, long, long,
00292                                       double * );
00293 OGRErr CPL_DLL OSRImportFromOzi( OGRSpatialReferenceH , const char *, const char *,
00294                                  const char * );
00295 OGRErr CPL_DLL OSRImportFromMICoordSys( OGRSpatialReferenceH, const char *);
00296 OGRErr CPL_DLL OSRImportFromERM( OGRSpatialReferenceH,
00297                                  const char *, const char *, const char * );
00298 OGRErr CPL_DLL OSRImportFromUrl( OGRSpatialReferenceH, const char * );
00299 
00300 OGRErr CPL_DLL CPL_STDCALL OSRExportToWkt( OGRSpatialReferenceH, char ** );
00301 OGRErr CPL_DLL CPL_STDCALL OSRExportToPrettyWkt( OGRSpatialReferenceH, char **, int);
00302 OGRErr CPL_DLL CPL_STDCALL OSRExportToProj4( OGRSpatialReferenceH, char **);
00303 OGRErr CPL_DLL OSRExportToPCI( OGRSpatialReferenceH, char **, char **,
00304                                double ** );
00305 OGRErr CPL_DLL OSRExportToUSGS( OGRSpatialReferenceH, long *, long *,
00306                                 double **, long * );
00307 OGRErr CPL_DLL OSRExportToXML( OGRSpatialReferenceH, char **, const char * );
00308 OGRErr CPL_DLL OSRExportToPanorama( OGRSpatialReferenceH, long *, long *,
00309                                     long *, long *, double * );
00310 OGRErr CPL_DLL OSRExportToMICoordSys( OGRSpatialReferenceH, char ** );
00311 OGRErr CPL_DLL OSRExportToERM( OGRSpatialReferenceH, char *, char *, char * );
00312 
00313 OGRErr CPL_DLL OSRMorphToESRI( OGRSpatialReferenceH );
00314 OGRErr CPL_DLL OSRMorphFromESRI( OGRSpatialReferenceH );
00315 
00316 OGRErr CPL_DLL CPL_STDCALL OSRSetAttrValue( OGRSpatialReferenceH hSRS,
00317                                 const char * pszNodePath,
00318                                 const char * pszNewNodeValue );
00319 const char CPL_DLL * CPL_STDCALL OSRGetAttrValue( OGRSpatialReferenceH hSRS,
00320                            const char * pszName, int iChild /* = 0 */ );
00321 
00322 OGRErr CPL_DLL OSRSetAngularUnits( OGRSpatialReferenceH, const char *, double );
00323 double CPL_DLL OSRGetAngularUnits( OGRSpatialReferenceH, char ** );
00324 OGRErr CPL_DLL OSRSetLinearUnits( OGRSpatialReferenceH, const char *, double );
00325 OGRErr CPL_DLL OSRSetTargetLinearUnits( OGRSpatialReferenceH, const char *, const char *, double );
00326 OGRErr CPL_DLL OSRSetLinearUnitsAndUpdateParameters( 
00327     OGRSpatialReferenceH, const char *, double );
00328 double CPL_DLL OSRGetLinearUnits( OGRSpatialReferenceH, char ** );
00329 double CPL_DLL OSRGetTargetLinearUnits( OGRSpatialReferenceH, const char *, char ** );
00330 
00331 double CPL_DLL OSRGetPrimeMeridian( OGRSpatialReferenceH, char ** );
00332 
00333 int CPL_DLL OSRIsGeographic( OGRSpatialReferenceH );
00334 int CPL_DLL OSRIsLocal( OGRSpatialReferenceH );
00335 int CPL_DLL OSRIsProjected( OGRSpatialReferenceH );
00336 int CPL_DLL OSRIsCompound( OGRSpatialReferenceH );
00337 int CPL_DLL OSRIsGeocentric( OGRSpatialReferenceH );
00338 int CPL_DLL OSRIsVertical( OGRSpatialReferenceH );
00339 int CPL_DLL OSRIsSameGeogCS( OGRSpatialReferenceH, OGRSpatialReferenceH );
00340 int CPL_DLL OSRIsSameVertCS( OGRSpatialReferenceH, OGRSpatialReferenceH );
00341 int CPL_DLL OSRIsSame( OGRSpatialReferenceH, OGRSpatialReferenceH );
00342 
00343 OGRErr CPL_DLL OSRSetLocalCS( OGRSpatialReferenceH hSRS, const char *pszName );
00344 OGRErr CPL_DLL OSRSetProjCS( OGRSpatialReferenceH hSRS, const char * pszName );
00345 OGRErr CPL_DLL OSRSetGeocCS( OGRSpatialReferenceH hSRS, const char * pszName );
00346 OGRErr CPL_DLL OSRSetWellKnownGeogCS( OGRSpatialReferenceH hSRS,
00347                                       const char * pszName );
00348 OGRErr CPL_DLL CPL_STDCALL OSRSetFromUserInput( OGRSpatialReferenceH hSRS, 
00349                                     const char * );
00350 OGRErr CPL_DLL OSRCopyGeogCSFrom( OGRSpatialReferenceH hSRS, 
00351                                   OGRSpatialReferenceH hSrcSRS );
00352 OGRErr CPL_DLL OSRSetTOWGS84( OGRSpatialReferenceH hSRS, 
00353                               double, double, double, 
00354                               double, double, double, double );
00355 OGRErr CPL_DLL OSRGetTOWGS84( OGRSpatialReferenceH hSRS, double *, int );
00356                         
00357 
00358 OGRErr CPL_DLL OSRSetCompoundCS( OGRSpatialReferenceH hSRS,
00359                                  const char *pszName,
00360                                  OGRSpatialReferenceH hHorizSRS,
00361                                  OGRSpatialReferenceH hVertSRS );
00362 OGRErr CPL_DLL OSRSetGeogCS( OGRSpatialReferenceH hSRS,
00363                       const char * pszGeogName,
00364                       const char * pszDatumName,
00365                       const char * pszEllipsoidName,
00366                       double dfSemiMajor, double dfInvFlattening,
00367                       const char * pszPMName /* = NULL */,
00368                       double dfPMOffset /* = 0.0 */,
00369                       const char * pszUnits /* = NULL */,
00370                       double dfConvertToRadians /* = 0.0 */ );
00371 
00372 OGRErr CPL_DLL OSRSetVertCS( OGRSpatialReferenceH hSRS,
00373                       const char * pszVertCSName,
00374                       const char * pszVertDatumName,
00375                       int nVertDatumType );
00376 
00377 double CPL_DLL OSRGetSemiMajor( OGRSpatialReferenceH, OGRErr * /* = NULL */ );
00378 double CPL_DLL OSRGetSemiMinor( OGRSpatialReferenceH, OGRErr * /* = NULL */ );
00379 double CPL_DLL OSRGetInvFlattening( OGRSpatialReferenceH, OGRErr * /*=NULL*/);
00380 
00381 OGRErr CPL_DLL OSRSetAuthority( OGRSpatialReferenceH hSRS,
00382                          const char * pszTargetKey,
00383                          const char * pszAuthority,
00384                          int nCode );
00385 const char CPL_DLL *OSRGetAuthorityCode( OGRSpatialReferenceH hSRS,
00386                                          const char * pszTargetKey );
00387 const char CPL_DLL *OSRGetAuthorityName( OGRSpatialReferenceH hSRS,
00388                                          const char * pszTargetKey );
00389 OGRErr CPL_DLL OSRSetProjection( OGRSpatialReferenceH, const char * );
00390 OGRErr CPL_DLL OSRSetProjParm( OGRSpatialReferenceH, const char *, double );
00391 double CPL_DLL OSRGetProjParm( OGRSpatialReferenceH hSRS,
00392                         const char * pszParmName, 
00393                         double dfDefault /* = 0.0 */,
00394                         OGRErr * /* = NULL */ );
00395 OGRErr CPL_DLL OSRSetNormProjParm( OGRSpatialReferenceH, const char *, double);
00396 double CPL_DLL OSRGetNormProjParm( OGRSpatialReferenceH hSRS,
00397                                    const char * pszParmName, 
00398                                    double dfDefault /* = 0.0 */,
00399                                    OGRErr * /* = NULL */ );
00400 
00401 OGRErr CPL_DLL OSRSetUTM( OGRSpatialReferenceH hSRS, int nZone, int bNorth );
00402 int    CPL_DLL OSRGetUTMZone( OGRSpatialReferenceH hSRS, int *pbNorth );
00403 OGRErr CPL_DLL OSRSetStatePlane( OGRSpatialReferenceH hSRS, 
00404                                  int nZone, int bNAD83 );
00405 OGRErr CPL_DLL OSRSetStatePlaneWithUnits( OGRSpatialReferenceH hSRS, 
00406                                           int nZone, int bNAD83,
00407                                           const char *pszOverrideUnitName,
00408                                           double dfOverrideUnit );
00409 OGRErr CPL_DLL OSRAutoIdentifyEPSG( OGRSpatialReferenceH hSRS );
00410 
00411 int    CPL_DLL OSREPSGTreatsAsLatLong( OGRSpatialReferenceH hSRS );
00412 int    CPL_DLL OSREPSGTreatsAsNorthingEasting( OGRSpatialReferenceH hSRS );
00413 const char CPL_DLL *OSRGetAxis( OGRSpatialReferenceH hSRS,
00414                                 const char *pszTargetKey, int iAxis, 
00415                                 OGRAxisOrientation *peOrientation );
00416 OGRErr CPL_DLL OSRSetAxes( const char *pszTargetKey,
00417                            const char *pszXAxisName,
00418                            OGRAxisOrientation eXAxisOrientation,
00419                            const char *pszYAxisName, 
00420                            OGRAxisOrientation eYAxisOrientation );
00422 OGRErr CPL_DLL OSRSetACEA( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
00423                          double dfCenterLat, double dfCenterLong,
00424                          double dfFalseEasting, double dfFalseNorthing );
00425     
00427 OGRErr CPL_DLL  OSRSetAE( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00428                        double dfFalseEasting, double dfFalseNorthing );
00429 
00431 OGRErr CPL_DLL OSRSetBonne(OGRSpatialReferenceH hSRS, 
00432                            double dfStandardParallel, double dfCentralMeridian,
00433                            double dfFalseEasting, double dfFalseNorthing );
00434 
00436 OGRErr CPL_DLL OSRSetCEA( OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian,
00437                         double dfFalseEasting, double dfFalseNorthing );
00438 
00440 OGRErr CPL_DLL OSRSetCS( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
00441                        double dfFalseEasting, double dfFalseNorthing );
00442 
00444 OGRErr CPL_DLL OSRSetEC( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
00445                        double dfCenterLat, double dfCenterLong,
00446                        double dfFalseEasting, double dfFalseNorthing );
00447 
00449 OGRErr CPL_DLL OSRSetEckert( OGRSpatialReferenceH hSRS,  int nVariation,
00450                              double dfCentralMeridian,
00451                              double dfFalseEasting, double dfFalseNorthing );
00452 
00454 OGRErr CPL_DLL OSRSetEckertIV( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
00455                              double dfFalseEasting, double dfFalseNorthing );
00456 
00458 OGRErr CPL_DLL OSRSetEckertVI( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
00459                              double dfFalseEasting, double dfFalseNorthing );
00460 
00462 OGRErr CPL_DLL OSRSetEquirectangular(OGRSpatialReferenceH hSRS,
00463                               double dfCenterLat, double dfCenterLong,
00464                               double dfFalseEasting, double dfFalseNorthing );
00465 
00467 OGRErr CPL_DLL OSRSetEquirectangular2( OGRSpatialReferenceH hSRS,
00468                               double dfCenterLat, double dfCenterLong,
00469                               double dfPseudoStdParallel1,
00470                               double dfFalseEasting,
00471                               double dfFalseNorthing );
00472 
00474 OGRErr CPL_DLL OSRSetGS( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
00475                        double dfFalseEasting, double dfFalseNorthing );
00476     
00478 OGRErr CPL_DLL OSRSetGH( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
00479                          double dfFalseEasting, double dfFalseNorthing );
00480 
00482 OGRErr CPL_DLL OSRSetIGH( OGRSpatialReferenceH hSRS );
00483     
00485 OGRErr CPL_DLL OSRSetGEOS( OGRSpatialReferenceH hSRS, 
00486                            double dfCentralMeridian, double dfSatelliteHeight,
00487                            double dfFalseEasting, double dfFalseNorthing );
00488 
00490 OGRErr CPL_DLL OSRSetGaussSchreiberTMercator( OGRSpatialReferenceH hSRS,
00491                                   double dfCenterLat, double dfCenterLong,
00492                                   double dfScale,
00493                                   double dfFalseEasting,
00494                                   double dfFalseNorthing );
00496 OGRErr CPL_DLL OSRSetGnomonic(OGRSpatialReferenceH hSRS,
00497                               double dfCenterLat, double dfCenterLong,
00498                             double dfFalseEasting, double dfFalseNorthing );
00499 
00501 OGRErr CPL_DLL OSRSetOM( OGRSpatialReferenceH hSRS,
00502                          double dfCenterLat, double dfCenterLong,
00503                          double dfAzimuth, double dfRectToSkew,
00504                          double dfScale,
00505                          double dfFalseEasting, double dfFalseNorthing );
00506 
00508 OGRErr CPL_DLL OSRSetHOM( OGRSpatialReferenceH hSRS,
00509                           double dfCenterLat, double dfCenterLong,
00510                           double dfAzimuth, double dfRectToSkew,
00511                           double dfScale,
00512                           double dfFalseEasting, double dfFalseNorthing );
00513 
00515 OGRErr CPL_DLL OSRSetHOM2PNO( OGRSpatialReferenceH hSRS, double dfCenterLat,
00516                               double dfLat1, double dfLong1,
00517                               double dfLat2, double dfLong2,
00518                               double dfScale,
00519                               double dfFalseEasting, double dfFalseNorthing );
00520 
00522 OGRErr CPL_DLL OSRSetIWMPolyconic( OGRSpatialReferenceH hSRS,
00523                                    double dfLat1, double dfLat2,
00524                                    double dfCenterLong,
00525                                    double dfFalseEasting,
00526                                    double dfFalseNorthing );
00527 
00529 OGRErr CPL_DLL OSRSetKrovak( OGRSpatialReferenceH hSRS,
00530                              double dfCenterLat, double dfCenterLong,
00531                              double dfAzimuth, double dfPseudoStdParallelLat,
00532                              double dfScale, 
00533                              double dfFalseEasting, double dfFalseNorthing );
00534 
00536 OGRErr CPL_DLL OSRSetLAEA( OGRSpatialReferenceH hSRS,
00537                            double dfCenterLat, double dfCenterLong,
00538                            double dfFalseEasting, double dfFalseNorthing );
00539 
00541 OGRErr CPL_DLL OSRSetLCC( OGRSpatialReferenceH hSRS,
00542                           double dfStdP1, double dfStdP2,
00543                           double dfCenterLat, double dfCenterLong,
00544                           double dfFalseEasting, double dfFalseNorthing );
00545 
00547 OGRErr CPL_DLL OSRSetLCC1SP( OGRSpatialReferenceH hSRS,
00548                              double dfCenterLat, double dfCenterLong,
00549                              double dfScale,
00550                              double dfFalseEasting, double dfFalseNorthing );
00551 
00553 OGRErr CPL_DLL OSRSetLCCB( OGRSpatialReferenceH hSRS,
00554                            double dfStdP1, double dfStdP2,
00555                            double dfCenterLat, double dfCenterLong,
00556                            double dfFalseEasting, double dfFalseNorthing );
00557     
00559 OGRErr CPL_DLL OSRSetMC( OGRSpatialReferenceH hSRS,
00560                          double dfCenterLat, double dfCenterLong,
00561                          double dfFalseEasting, double dfFalseNorthing );
00562 
00564 OGRErr CPL_DLL OSRSetMercator( OGRSpatialReferenceH hSRS,
00565                                double dfCenterLat, double dfCenterLong,
00566                                double dfScale, 
00567                                double dfFalseEasting, double dfFalseNorthing );
00568 
00570 OGRErr CPL_DLL  OSRSetMollweide( OGRSpatialReferenceH hSRS,
00571                                  double dfCentralMeridian,
00572                                  double dfFalseEasting,
00573                                  double dfFalseNorthing );
00574 
00576 OGRErr CPL_DLL OSRSetNZMG( OGRSpatialReferenceH hSRS,
00577                            double dfCenterLat, double dfCenterLong,
00578                            double dfFalseEasting, double dfFalseNorthing );
00579 
00581 OGRErr CPL_DLL OSRSetOS( OGRSpatialReferenceH hSRS,
00582                          double dfOriginLat, double dfCMeridian,
00583                          double dfScale,
00584                          double dfFalseEasting,double dfFalseNorthing);
00585     
00587 OGRErr CPL_DLL OSRSetOrthographic( OGRSpatialReferenceH hSRS,
00588                                    double dfCenterLat, double dfCenterLong,
00589                                    double dfFalseEasting,
00590                                    double dfFalseNorthing);
00591 
00593 OGRErr CPL_DLL OSRSetPolyconic( OGRSpatialReferenceH hSRS,
00594                                 double dfCenterLat, double dfCenterLong,
00595                                 double dfFalseEasting, double dfFalseNorthing );
00596 
00598 OGRErr CPL_DLL OSRSetPS( OGRSpatialReferenceH hSRS,
00599                          double dfCenterLat, double dfCenterLong,
00600                          double dfScale,
00601                          double dfFalseEasting, double dfFalseNorthing);
00602     
00604 OGRErr CPL_DLL OSRSetRobinson( OGRSpatialReferenceH hSRS,
00605                                double dfCenterLong, 
00606                                double dfFalseEasting, double dfFalseNorthing );
00607     
00609 OGRErr CPL_DLL OSRSetSinusoidal( OGRSpatialReferenceH hSRS,
00610                                  double dfCenterLong, 
00611                                  double dfFalseEasting,
00612                                  double dfFalseNorthing );
00613     
00615 OGRErr CPL_DLL OSRSetStereographic( OGRSpatialReferenceH hSRS,
00616                                     double dfCenterLat, double dfCenterLong,
00617                                     double dfScale,
00618                                     double dfFalseEasting,
00619                                     double dfFalseNorthing);
00620     
00622 OGRErr CPL_DLL OSRSetSOC( OGRSpatialReferenceH hSRS,
00623                           double dfLatitudeOfOrigin, double dfCentralMeridian,
00624                           double dfFalseEasting, double dfFalseNorthing );
00625     
00632 OGRErr CPL_DLL OSRSetTM( OGRSpatialReferenceH hSRS,
00633                          double dfCenterLat, double dfCenterLong,
00634                          double dfScale,
00635                          double dfFalseEasting, double dfFalseNorthing );
00636 
00638 OGRErr CPL_DLL OSRSetTMVariant( 
00639     OGRSpatialReferenceH hSRS, const char *pszVariantName,
00640     double dfCenterLat, double dfCenterLong,
00641     double dfScale,
00642     double dfFalseEasting, double dfFalseNorthing );
00643 
00645 OGRErr CPL_DLL OSRSetTMG( OGRSpatialReferenceH hSRS,
00646                           double dfCenterLat, double dfCenterLong, 
00647                          double dfFalseEasting, double dfFalseNorthing );
00648 
00650 OGRErr CPL_DLL OSRSetTMSO( OGRSpatialReferenceH hSRS,
00651                            double dfCenterLat, double dfCenterLong,
00652                            double dfScale,
00653                            double dfFalseEasting, double dfFalseNorthing );
00654 
00656 OGRErr CPL_DLL OSRSetVDG( OGRSpatialReferenceH hSRS,
00657                           double dfCenterLong,
00658                           double dfFalseEasting, double dfFalseNorthing );
00659 
00661 OGRErr CPL_DLL OSRSetWagner( OGRSpatialReferenceH hSRS, int nVariation,
00662                              double dfFalseEasting,
00663                              double dfFalseNorthing );
00664 
00665 void CPL_DLL OSRCleanup( void );
00666 
00667 /* -------------------------------------------------------------------- */
00668 /*      OGRCoordinateTransform C API.                                   */
00669 /* -------------------------------------------------------------------- */
00670 OGRCoordinateTransformationH CPL_DLL CPL_STDCALL
00671 OCTNewCoordinateTransformation( OGRSpatialReferenceH hSourceSRS,
00672                                 OGRSpatialReferenceH hTargetSRS );
00673 void CPL_DLL CPL_STDCALL 
00674       OCTDestroyCoordinateTransformation( OGRCoordinateTransformationH );
00675 
00676 int CPL_DLL CPL_STDCALL
00677 OCTTransform( OGRCoordinateTransformationH hCT,
00678               int nCount, double *x, double *y, double *z );
00679 
00680 int CPL_DLL CPL_STDCALL
00681 OCTTransformEx( OGRCoordinateTransformationH hCT,
00682                 int nCount, double *x, double *y, double *z,
00683                 int *pabSuccess );
00684 
00685 /* this is really private to OGR. */
00686 char *OCTProj4Normalize( const char *pszProj4Src );
00687 
00688 void OCTCleanupProjMutex();
00689 
00690 /* -------------------------------------------------------------------- */
00691 /*      Projection transform dictionary query.                          */
00692 /* -------------------------------------------------------------------- */
00693 
00694 char CPL_DLL ** OPTGetProjectionMethods();
00695 char CPL_DLL ** OPTGetParameterList( const char * pszProjectionMethod,
00696                              char ** ppszUserName );
00697 int CPL_DLL OPTGetParameterInfo( const char * pszProjectionMethod,
00698                                  const char * pszParameterName,
00699                                  char ** ppszUserName,
00700                                  char ** ppszType,
00701                                  double *pdfDefaultValue );
00702 
00703 CPL_C_END
00704 
00705 #endif /* ndef SWIG */
00706 
00707 #endif /* ndef _OGR_SRS_API_H_INCLUDED */

Generated for GDAL by doxygen 1.7.6.1.