- Main Page
- Related Pages
- Classes
- Files
- Directories

# ogr_srs_api.h

Go to the documentation of this file.

    00001 /******************************************************************************
    00002  * $Id: ogr_srs_api.h 21005 2010-10-29 14:50:50Z dron $
    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_GNOMONIC         "Gnomonic"
    00119 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR                                  \
    00120                                 "Hotine_Oblique_Mercator"
    00121 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN         \
    00122                             "Hotine_Oblique_Mercator_Two_Point_Natural_Origin"
    00123 #define SRS_PT_LABORDE_OBLIQUE_MERCATOR                                 \
    00124                                 "Laborde_Oblique_Mercator"
    00125 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP                              \
    00126                                 "Lambert_Conformal_Conic_1SP"
    00127 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP                              \
    00128                                 "Lambert_Conformal_Conic_2SP"
    00129 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM                      \
    00130                                 "Lambert_Conformal_Conic_2SP_Belgium"
    00131 #define SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA                     \
    00132                                 "Lambert_Azimuthal_Equal_Area"
    00133 #define SRS_PT_MERCATOR_1SP     "Mercator_1SP"
    00134 #define SRS_PT_MERCATOR_2SP     "Mercator_2SP"
    00135 #define SRS_PT_MILLER_CYLINDRICAL "Miller_Cylindrical"
    00136 #define SRS_PT_MOLLWEIDE        "Mollweide"
    00137 #define SRS_PT_NEW_ZEALAND_MAP_GRID                                     \
    00138                                 "New_Zealand_Map_Grid"
    00139 #define SRS_PT_OBLIQUE_STEREOGRAPHIC                                    \
    00140                                 "Oblique_Stereographic"
    00141 #define SRS_PT_ORTHOGRAPHIC     "Orthographic"
    00142 #define SRS_PT_POLAR_STEREOGRAPHIC                                      \
    00143                                 "Polar_Stereographic"
    00144 #define SRS_PT_POLYCONIC        "Polyconic"
    00145 #define SRS_PT_ROBINSON         "Robinson"
    00146 #define SRS_PT_SINUSOIDAL       "Sinusoidal"
    00147 #define SRS_PT_STEREOGRAPHIC    "Stereographic"
    00148 #define SRS_PT_SWISS_OBLIQUE_CYLINDRICAL                                \
    00149                                 "Swiss_Oblique_Cylindrical"
    00150 #define SRS_PT_TRANSVERSE_MERCATOR                                      \
    00151                                 "Transverse_Mercator"
    00152 #define SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED                       \
    00153                                 "Transverse_Mercator_South_Orientated"
    00154
    00155 /* special mapinfo variants on Transverse Mercator */
    00156 #define SRS_PT_TRANSVERSE_MERCATOR_MI_21 \
    00157                                 "Transverse_Mercator_MapInfo_21"
    00158 #define SRS_PT_TRANSVERSE_MERCATOR_MI_22 \
    00159                                 "Transverse_Mercator_MapInfo_22"
    00160 #define SRS_PT_TRANSVERSE_MERCATOR_MI_23 \
    00161                                 "Transverse_Mercator_MapInfo_23"
    00162 #define SRS_PT_TRANSVERSE_MERCATOR_MI_24 \
    00163                                 "Transverse_Mercator_MapInfo_24"
    00164 #define SRS_PT_TRANSVERSE_MERCATOR_MI_25 \
    00165                                 "Transverse_Mercator_MapInfo_25"
    00166
    00167 #define SRS_PT_TUNISIA_MINING_GRID                                      \
    00168                                 "Tunisia_Mining_Grid"
    00169 #define SRS_PT_TWO_POINT_EQUIDISTANT                                    \
    00170                                 "Two_Point_Equidistant"
    00171 #define SRS_PT_VANDERGRINTEN    "VanDerGrinten"
    00172 #define SRS_PT_KROVAK           "Krovak"
    00173 #define SRS_PT_IMW_POLYCONIC    "International_Map_of_the_World_Polyconic"
    00174 #define SRS_PT_WAGNER_I         "Wagner_I"
    00175 #define SRS_PT_WAGNER_II        "Wagner_II"
    00176 #define SRS_PT_WAGNER_III       "Wagner_III"
    00177 #define SRS_PT_WAGNER_IV        "Wagner_IV"
    00178 #define SRS_PT_WAGNER_V         "Wagner_V"
    00179 #define SRS_PT_WAGNER_VI        "Wagner_VI"
    00180 #define SRS_PT_WAGNER_VII       "Wagner_VII"
    00181
    00182
    00183 #define SRS_PP_CENTRAL_MERIDIAN         "central_meridian"
    00184 #define SRS_PP_SCALE_FACTOR             "scale_factor"
    00185 #define SRS_PP_STANDARD_PARALLEL_1      "standard_parallel_1"
    00186 #define SRS_PP_STANDARD_PARALLEL_2      "standard_parallel_2"
    00187 #define SRS_PP_PSEUDO_STD_PARALLEL_1    "pseudo_standard_parallel_1"
    00188 #define SRS_PP_LONGITUDE_OF_CENTER      "longitude_of_center"
    00189 #define SRS_PP_LATITUDE_OF_CENTER       "latitude_of_center"
    00190 #define SRS_PP_LONGITUDE_OF_ORIGIN      "longitude_of_origin"
    00191 #define SRS_PP_LATITUDE_OF_ORIGIN       "latitude_of_origin"
    00192 #define SRS_PP_FALSE_EASTING            "false_easting"
    00193 #define SRS_PP_FALSE_NORTHING           "false_northing"
    00194 #define SRS_PP_AZIMUTH                  "azimuth"
    00195 #define SRS_PP_LONGITUDE_OF_POINT_1     "longitude_of_point_1"
    00196 #define SRS_PP_LATITUDE_OF_POINT_1      "latitude_of_point_1"
    00197 #define SRS_PP_LONGITUDE_OF_POINT_2     "longitude_of_point_2"
    00198 #define SRS_PP_LATITUDE_OF_POINT_2      "latitude_of_point_2"
    00199 #define SRS_PP_LONGITUDE_OF_POINT_3     "longitude_of_point_3"
    00200 #define SRS_PP_LATITUDE_OF_POINT_3      "latitude_of_point_3"
    00201 #define SRS_PP_RECTIFIED_GRID_ANGLE     "rectified_grid_angle"
    00202 #define SRS_PP_LANDSAT_NUMBER           "landsat_number"
    00203 #define SRS_PP_PATH_NUMBER              "path_number"
    00204 #define SRS_PP_PERSPECTIVE_POINT_HEIGHT "perspective_point_height"
    00205 #define SRS_PP_SATELLITE_HEIGHT         "satellite_height"
    00206 #define SRS_PP_FIPSZONE                 "fipszone"
    00207 #define SRS_PP_ZONE                     "zone"
    00208 #define SRS_PP_LATITUDE_OF_1ST_POINT    "Latitude_Of_1st_Point"
    00209 #define SRS_PP_LONGITUDE_OF_1ST_POINT   "Longitude_Of_1st_Point"
    00210 #define SRS_PP_LATITUDE_OF_2ND_POINT    "Latitude_Of_2nd_Point"
    00211 #define SRS_PP_LONGITUDE_OF_2ND_POINT   "Longitude_Of_2nd_Point"
    00212
    00213 #define SRS_UL_METER            "Meter"
    00214 #define SRS_UL_FOOT             "Foot (International)" /* or just "FOOT"? */
    00215 #define SRS_UL_FOOT_CONV                    "0.3048"
    00216 #define SRS_UL_US_FOOT          "Foot_US" /* or "US survey foot" from EPSG */
    00217 #define SRS_UL_US_FOOT_CONV                 "0.3048006096012192"
    00218 #define SRS_UL_NAUTICAL_MILE    "Nautical Mile"
    00219 #define SRS_UL_NAUTICAL_MILE_CONV           "1852.0"
    00220 #define SRS_UL_LINK             "Link"          /* Based on US Foot */
    00221 #define SRS_UL_LINK_CONV                    "0.20116684023368047"
    00222 #define SRS_UL_CHAIN            "Chain"         /* based on US Foot */
    00223 #define SRS_UL_CHAIN_CONV                   "20.116684023368047"
    00224 #define SRS_UL_ROD              "Rod"           /* based on US Foot */
    00225 #define SRS_UL_ROD_CONV                     "5.02921005842012"
    00226
    00227 #define SRS_UA_DEGREE           "degree"
    00228 #define SRS_UA_DEGREE_CONV                  "0.0174532925199433"
    00229 #define SRS_UA_RADIAN           "radian"
    00230
    00231 #define SRS_PM_GREENWICH        "Greenwich"
    00232
    00233 #define SRS_DN_NAD27            "North_American_Datum_1927"
    00234 #define SRS_DN_NAD83            "North_American_Datum_1983"
    00235 #define SRS_DN_WGS72            "WGS_1972"
    00236 #define SRS_DN_WGS84            "WGS_1984"
    00237
    00238 #define SRS_WGS84_SEMIMAJOR     6378137.0
    00239 #define SRS_WGS84_INVFLATTENING 298.257223563
    00240
    00241 #ifndef SWIG
    00242 /* -------------------------------------------------------------------- */
    00243 /*      C Wrappers for C++ objects and methods.                         */
    00244 /* -------------------------------------------------------------------- */
    00245 #ifndef _DEFINED_OGRSpatialReferenceH
    00246 #define _DEFINED_OGRSpatialReferenceH
    00247
    00248 #ifdef DEBUG
    00249 typedef struct OGRSpatialReferenceHS *OGRSpatialReferenceH;
    00250 typedef struct OGRCoordinateTransformationHS *OGRCoordinateTransformationH;
    00251 #else
    00252 typedef void *OGRSpatialReferenceH;
    00253 typedef void *OGRCoordinateTransformationH;
    00254 #endif
    00255
    00256 #endif
    00257
    00258
    00259 OGRSpatialReferenceH CPL_DLL CPL_STDCALL
    00260       OSRNewSpatialReference( const char * /* = NULL */);
    00261 OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRCloneGeogCS( OGRSpatialReferenceH );
    00262 OGRSpatialReferenceH CPL_DLL CPL_STDCALL OSRClone( OGRSpatialReferenceH );
    00263 void CPL_DLL CPL_STDCALL OSRDestroySpatialReference( OGRSpatialReferenceH );
    00264
    00265 int CPL_DLL OSRReference( OGRSpatialReferenceH );
    00266 int CPL_DLL OSRDereference( OGRSpatialReferenceH );
    00267 void CPL_DLL OSRRelease( OGRSpatialReferenceH );
    00268
    00269 OGRErr CPL_DLL OSRValidate( OGRSpatialReferenceH );
    00270 OGRErr CPL_DLL OSRFixupOrdering( OGRSpatialReferenceH );
    00271 OGRErr CPL_DLL OSRFixup( OGRSpatialReferenceH );
    00272 OGRErr CPL_DLL OSRStripCTParms( OGRSpatialReferenceH );
    00273
    00274 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSG( OGRSpatialReferenceH, int );
    00275 OGRErr CPL_DLL CPL_STDCALL OSRImportFromEPSGA( OGRSpatialReferenceH, int );
    00276 OGRErr CPL_DLL OSRImportFromWkt( OGRSpatialReferenceH, char ** );
    00277 OGRErr CPL_DLL OSRImportFromProj4( OGRSpatialReferenceH, const char *);
    00278 OGRErr CPL_DLL OSRImportFromESRI( OGRSpatialReferenceH, char **);
    00279 OGRErr CPL_DLL OSRImportFromPCI( OGRSpatialReferenceH hSRS, const char *,
    00280                                  const char *, double * );
    00281 OGRErr CPL_DLL OSRImportFromUSGS( OGRSpatialReferenceH,
    00282                                   long, long, double *, long);
    00283 OGRErr CPL_DLL OSRImportFromXML( OGRSpatialReferenceH, const char * );
    00284 OGRErr CPL_DLL OSRImportFromDict( OGRSpatialReferenceH, const char *,
    00285                                   const char * );
    00286 OGRErr CPL_DLL OSRImportFromPanorama( OGRSpatialReferenceH, long, long, long,
    00287                                       double * );
    00288 OGRErr CPL_DLL OSRImportFromOzi( OGRSpatialReferenceH , const char *, const char *,
    00289                                  const char * );
    00290 OGRErr CPL_DLL OSRImportFromMICoordSys( OGRSpatialReferenceH, const char *);
    00291 OGRErr CPL_DLL OSRImportFromERM( OGRSpatialReferenceH,
    00292                                  const char *, const char *, const char * );
    00293 OGRErr CPL_DLL OSRImportFromUrl( OGRSpatialReferenceH, const char * );
    00294
    00295 OGRErr CPL_DLL CPL_STDCALL OSRExportToWkt( OGRSpatialReferenceH, char ** );
    00296 OGRErr CPL_DLL CPL_STDCALL OSRExportToPrettyWkt( OGRSpatialReferenceH, char **, int);
    00297 OGRErr CPL_DLL CPL_STDCALL OSRExportToProj4( OGRSpatialReferenceH, char **);
    00298 OGRErr CPL_DLL OSRExportToPCI( OGRSpatialReferenceH, char **, char **,
    00299                                double ** );
    00300 OGRErr CPL_DLL OSRExportToUSGS( OGRSpatialReferenceH, long *, long *,
    00301                                 double **, long * );
    00302 OGRErr CPL_DLL OSRExportToXML( OGRSpatialReferenceH, char **, const char * );
    00303 OGRErr CPL_DLL OSRExportToPanorama( OGRSpatialReferenceH, long *, long *,
    00304                                     long *, long *, double * );
    00305 OGRErr CPL_DLL OSRExportToMICoordSys( OGRSpatialReferenceH, char ** );
    00306 OGRErr CPL_DLL OSRExportToERM( OGRSpatialReferenceH, char *, char *, char * );
    00307
    00308 OGRErr CPL_DLL OSRMorphToESRI( OGRSpatialReferenceH );
    00309 OGRErr CPL_DLL OSRMorphFromESRI( OGRSpatialReferenceH );
    00310
    00311 OGRErr CPL_DLL CPL_STDCALL OSRSetAttrValue( OGRSpatialReferenceH hSRS,
    00312                                 const char * pszNodePath,
    00313                                 const char * pszNewNodeValue );
    00314 const char CPL_DLL * CPL_STDCALL OSRGetAttrValue( OGRSpatialReferenceH hSRS,
    00315                            const char * pszName, int iChild /* = 0 */ );
    00316
    00317 OGRErr CPL_DLL OSRSetAngularUnits( OGRSpatialReferenceH, const char *, double );
    00318 double CPL_DLL OSRGetAngularUnits( OGRSpatialReferenceH, char ** );
    00319 OGRErr CPL_DLL OSRSetLinearUnits( OGRSpatialReferenceH, const char *, double );
    00320 OGRErr CPL_DLL OSRSetLinearUnitsAndUpdateParameters(
    00321     OGRSpatialReferenceH, const char *, double );
    00322 double CPL_DLL OSRGetLinearUnits( OGRSpatialReferenceH, char ** );
    00323
    00324 double CPL_DLL OSRGetPrimeMeridian( OGRSpatialReferenceH, char ** );
    00325
    00326 int CPL_DLL OSRIsGeographic( OGRSpatialReferenceH );
    00327 int CPL_DLL OSRIsLocal( OGRSpatialReferenceH );
    00328 int CPL_DLL OSRIsProjected( OGRSpatialReferenceH );
    00329 int CPL_DLL OSRIsVertical( OGRSpatialReferenceH );
    00330 int CPL_DLL OSRIsSameGeogCS( OGRSpatialReferenceH, OGRSpatialReferenceH );
    00331 int CPL_DLL OSRIsVertCS( OGRSpatialReferenceH, OGRSpatialReferenceH );
    00332 int CPL_DLL OSRIsSame( OGRSpatialReferenceH, OGRSpatialReferenceH );
    00333
    00334 OGRErr CPL_DLL OSRSetLocalCS( OGRSpatialReferenceH hSRS, const char *pszName );
    00335 OGRErr CPL_DLL OSRSetProjCS( OGRSpatialReferenceH hSRS, const char * pszName );
    00336 OGRErr CPL_DLL OSRSetWellKnownGeogCS( OGRSpatialReferenceH hSRS,
    00337                                       const char * pszName );
    00338 OGRErr CPL_DLL CPL_STDCALL OSRSetFromUserInput( OGRSpatialReferenceH hSRS,
    00339                                     const char * );
    00340 OGRErr CPL_DLL OSRCopyGeogCSFrom( OGRSpatialReferenceH hSRS,
    00341                                   OGRSpatialReferenceH hSrcSRS );
    00342 OGRErr CPL_DLL OSRSetTOWGS84( OGRSpatialReferenceH hSRS,
    00343                               double, double, double,
    00344                               double, double, double, double );
    00345 OGRErr CPL_DLL OSRGetTOWGS84( OGRSpatialReferenceH hSRS, double *, int );
    00346
    00347
    00348 OGRErr CPL_DLL OSRSetGeogCS( OGRSpatialReferenceH hSRS,
    00349                       const char * pszGeogName,
    00350                       const char * pszDatumName,
    00351                       const char * pszEllipsoidName,
    00352                       double dfSemiMajor, double dfInvFlattening,
    00353                       const char * pszPMName /* = NULL */,
    00354                       double dfPMOffset /* = 0.0 */,
    00355                       const char * pszUnits /* = NULL */,
    00356                       double dfConvertToRadians /* = 0.0 */ );
    00357
    00358 double CPL_DLL OSRGetSemiMajor( OGRSpatialReferenceH, OGRErr * /* = NULL */ );
    00359 double CPL_DLL OSRGetSemiMinor( OGRSpatialReferenceH, OGRErr * /* = NULL */ );
    00360 double CPL_DLL OSRGetInvFlattening( OGRSpatialReferenceH, OGRErr * /*=NULL*/);
    00361
    00362 OGRErr CPL_DLL OSRSetAuthority( OGRSpatialReferenceH hSRS,
    00363                          const char * pszTargetKey,
    00364                          const char * pszAuthority,
    00365                          int nCode );
    00366 const char CPL_DLL *OSRGetAuthorityCode( OGRSpatialReferenceH hSRS,
    00367                                          const char * pszTargetKey );
    00368 const char CPL_DLL *OSRGetAuthorityName( OGRSpatialReferenceH hSRS,
    00369                                          const char * pszTargetKey );
    00370 OGRErr CPL_DLL OSRSetProjection( OGRSpatialReferenceH, const char * );
    00371 OGRErr CPL_DLL OSRSetProjParm( OGRSpatialReferenceH, const char *, double );
    00372 double CPL_DLL OSRGetProjParm( OGRSpatialReferenceH hSRS,
    00373                         const char * pszParmName,
    00374                         double dfDefault /* = 0.0 */,
    00375                         OGRErr * /* = NULL */ );
    00376 OGRErr CPL_DLL OSRSetNormProjParm( OGRSpatialReferenceH, const char *, double);
    00377 double CPL_DLL OSRGetNormProjParm( OGRSpatialReferenceH hSRS,
    00378                                    const char * pszParmName,
    00379                                    double dfDefault /* = 0.0 */,
    00380                                    OGRErr * /* = NULL */ );
    00381
    00382 OGRErr CPL_DLL OSRSetUTM( OGRSpatialReferenceH hSRS, int nZone, int bNorth );
    00383 int    CPL_DLL OSRGetUTMZone( OGRSpatialReferenceH hSRS, int *pbNorth );
    00384 OGRErr CPL_DLL OSRSetStatePlane( OGRSpatialReferenceH hSRS,
    00385                                  int nZone, int bNAD83 );
    00386 OGRErr CPL_DLL OSRSetStatePlaneWithUnits( OGRSpatialReferenceH hSRS,
    00387                                           int nZone, int bNAD83,
    00388                                           const char *pszOverrideUnitName,
    00389                                           double dfOverrideUnit );
    00390 OGRErr CPL_DLL OSRAutoIdentifyEPSG( OGRSpatialReferenceH hSRS );
    00391
    00392 int    CPL_DLL OSREPSGTreatsAsLatLong( OGRSpatialReferenceH hSRS );
    00393 const char CPL_DLL *OSRGetAxis( OGRSpatialReferenceH hSRS,
    00394                                 const char *pszTargetKey, int iAxis,
    00395                                 OGRAxisOrientation *peOrientation );
    00396 OGRErr CPL_DLL OSRSetAxes( const char *pszTargetKey,
    00397                            const char *pszXAxisName,
    00398                            OGRAxisOrientation eXAxisOrientation,
    00399                            const char *pszYAxisName,
    00400                            OGRAxisOrientation eYAxisOrientation );
    00402 OGRErr CPL_DLL OSRSetACEA( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
    00403                          double dfCenterLat, double dfCenterLong,
    00404                          double dfFalseEasting, double dfFalseNorthing );
    00405
    00407 OGRErr CPL_DLL  OSRSetAE( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
    00408                        double dfFalseEasting, double dfFalseNorthing );
    00409
    00411 OGRErr CPL_DLL OSRSetBonne(OGRSpatialReferenceH hSRS,
    00412                            double dfStandardParallel, double dfCentralMeridian,
    00413                            double dfFalseEasting, double dfFalseNorthing );
    00414
    00416 OGRErr CPL_DLL OSRSetCEA( OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian,
    00417                         double dfFalseEasting, double dfFalseNorthing );
    00418
    00420 OGRErr CPL_DLL OSRSetCS( OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong,
    00421                        double dfFalseEasting, double dfFalseNorthing );
    00422
    00424 OGRErr CPL_DLL OSRSetEC( OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2,
    00425                        double dfCenterLat, double dfCenterLong,
    00426                        double dfFalseEasting, double dfFalseNorthing );
    00427
    00429 OGRErr CPL_DLL OSRSetEckert( OGRSpatialReferenceH hSRS,  int nVariation,
    00430                              double dfCentralMeridian,
    00431                              double dfFalseEasting, double dfFalseNorthing );
    00432
    00434 OGRErr CPL_DLL OSRSetEckertIV( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
    00435                              double dfFalseEasting, double dfFalseNorthing );
    00436
    00438 OGRErr CPL_DLL OSRSetEckertVI( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
    00439                              double dfFalseEasting, double dfFalseNorthing );
    00440
    00442 OGRErr CPL_DLL OSRSetEquirectangular(OGRSpatialReferenceH hSRS,
    00443                               double dfCenterLat, double dfCenterLong,
    00444                               double dfFalseEasting, double dfFalseNorthing );
    00445
    00447 OGRErr CPL_DLL OSRSetEquirectangular2( OGRSpatialReferenceH hSRS,
    00448                               double dfCenterLat, double dfCenterLong,
    00449                               double dfPseudoStdParallel1,
    00450                               double dfFalseEasting,
    00451                               double dfFalseNorthing );
    00452
    00454 OGRErr CPL_DLL OSRSetGS( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
    00455                        double dfFalseEasting, double dfFalseNorthing );
    00456
    00458 OGRErr CPL_DLL OSRSetGH( OGRSpatialReferenceH hSRS, double dfCentralMeridian,
    00459                          double dfFalseEasting, double dfFalseNorthing );
    00460
    00462 OGRErr CPL_DLL OSRSetGEOS( OGRSpatialReferenceH hSRS,
    00463                            double dfCentralMeridian, double dfSatelliteHeight,
    00464                            double dfFalseEasting, double dfFalseNorthing );
    00465
    00467 OGRErr CPL_DLL OSRSetGaussSchreiberTMercator( OGRSpatialReferenceH hSRS,
    00468                                   double dfCenterLat, double dfCenterLong,
    00469                                   double dfScale,
    00470                                   double dfFalseEasting,
    00471                                   double dfFalseNorthing );
    00473 OGRErr CPL_DLL OSRSetGnomonic(OGRSpatialReferenceH hSRS,
    00474                               double dfCenterLat, double dfCenterLong,
    00475                             double dfFalseEasting, double dfFalseNorthing );
    00476
    00478 OGRErr CPL_DLL OSRSetHOM( OGRSpatialReferenceH hSRS,
    00479                           double dfCenterLat, double dfCenterLong,
    00480                           double dfAzimuth, double dfRectToSkew,
    00481                           double dfScale,
    00482                           double dfFalseEasting, double dfFalseNorthing );
    00483
    00485 OGRErr CPL_DLL OSRSetHOM2PNO( OGRSpatialReferenceH hSRS, double dfCenterLat,
    00486                               double dfLat1, double dfLong1,
    00487                               double dfLat2, double dfLong2,
    00488                               double dfScale,
    00489                               double dfFalseEasting, double dfFalseNorthing );
    00490
    00492 OGRErr CPL_DLL OSRSetIWMPolyconic( OGRSpatialReferenceH hSRS,
    00493                                    double dfLat1, double dfLat2,
    00494                                    double dfCenterLong,
    00495                                    double dfFalseEasting,
    00496                                    double dfFalseNorthing );
    00497
    00499 OGRErr CPL_DLL OSRSetKrovak( OGRSpatialReferenceH hSRS,
    00500                              double dfCenterLat, double dfCenterLong,
    00501                              double dfAzimuth, double dfPseudoStdParallelLat,
    00502                              double dfScale,
    00503                              double dfFalseEasting, double dfFalseNorthing );
    00504
    00506 OGRErr CPL_DLL OSRSetLAEA( OGRSpatialReferenceH hSRS,
    00507                            double dfCenterLat, double dfCenterLong,
    00508                            double dfFalseEasting, double dfFalseNorthing );
    00509
    00511 OGRErr CPL_DLL OSRSetLCC( OGRSpatialReferenceH hSRS,
    00512                           double dfStdP1, double dfStdP2,
    00513                           double dfCenterLat, double dfCenterLong,
    00514                           double dfFalseEasting, double dfFalseNorthing );
    00515
    00517 OGRErr CPL_DLL OSRSetLCC1SP( OGRSpatialReferenceH hSRS,
    00518                              double dfCenterLat, double dfCenterLong,
    00519                              double dfScale,
    00520                              double dfFalseEasting, double dfFalseNorthing );
    00521
    00523 OGRErr CPL_DLL OSRSetLCCB( OGRSpatialReferenceH hSRS,
    00524                            double dfStdP1, double dfStdP2,
    00525                            double dfCenterLat, double dfCenterLong,
    00526                            double dfFalseEasting, double dfFalseNorthing );
    00527
    00529 OGRErr CPL_DLL OSRSetMC( OGRSpatialReferenceH hSRS,
    00530                          double dfCenterLat, double dfCenterLong,
    00531                          double dfFalseEasting, double dfFalseNorthing );
    00532
    00534 OGRErr CPL_DLL OSRSetMercator( OGRSpatialReferenceH hSRS,
    00535                                double dfCenterLat, double dfCenterLong,
    00536                                double dfScale,
    00537                                double dfFalseEasting, double dfFalseNorthing );
    00538
    00540 OGRErr CPL_DLL  OSRSetMollweide( OGRSpatialReferenceH hSRS,
    00541                                  double dfCentralMeridian,
    00542                                  double dfFalseEasting,
    00543                                  double dfFalseNorthing );
    00544
    00546 OGRErr CPL_DLL OSRSetNZMG( OGRSpatialReferenceH hSRS,
    00547                            double dfCenterLat, double dfCenterLong,
    00548                            double dfFalseEasting, double dfFalseNorthing );
    00549
    00551 OGRErr CPL_DLL OSRSetOS( OGRSpatialReferenceH hSRS,
    00552                          double dfOriginLat, double dfCMeridian,
    00553                          double dfScale,
    00554                          double dfFalseEasting,double dfFalseNorthing);
    00555
    00557 OGRErr CPL_DLL OSRSetOrthographic( OGRSpatialReferenceH hSRS,
    00558                                    double dfCenterLat, double dfCenterLong,
    00559                                    double dfFalseEasting,
    00560                                    double dfFalseNorthing);
    00561
    00563 OGRErr CPL_DLL OSRSetPolyconic( OGRSpatialReferenceH hSRS,
    00564                                 double dfCenterLat, double dfCenterLong,
    00565                                 double dfFalseEasting, double dfFalseNorthing );
    00566
    00568 OGRErr CPL_DLL OSRSetPS( OGRSpatialReferenceH hSRS,
    00569                          double dfCenterLat, double dfCenterLong,
    00570                          double dfScale,
    00571                          double dfFalseEasting, double dfFalseNorthing);
    00572
    00574 OGRErr CPL_DLL OSRSetRobinson( OGRSpatialReferenceH hSRS,
    00575                                double dfCenterLong,
    00576                                double dfFalseEasting, double dfFalseNorthing );
    00577
    00579 OGRErr CPL_DLL OSRSetSinusoidal( OGRSpatialReferenceH hSRS,
    00580                                  double dfCenterLong,
    00581                                  double dfFalseEasting,
    00582                                  double dfFalseNorthing );
    00583
    00585 OGRErr CPL_DLL OSRSetStereographic( OGRSpatialReferenceH hSRS,
    00586                                     double dfCenterLat, double dfCenterLong,
    00587                                     double dfScale,
    00588                                     double dfFalseEasting,
    00589                                     double dfFalseNorthing);
    00590
    00592 OGRErr CPL_DLL OSRSetSOC( OGRSpatialReferenceH hSRS,
    00593                           double dfLatitudeOfOrigin, double dfCentralMeridian,
    00594                           double dfFalseEasting, double dfFalseNorthing );
    00595
    00597 OGRErr CPL_DLL OSRSetTM( OGRSpatialReferenceH hSRS,
    00598                          double dfCenterLat, double dfCenterLong,
    00599                          double dfScale,
    00600                          double dfFalseEasting, double dfFalseNorthing );
    00601
    00603 OGRErr CPL_DLL OSRSetTMVariant(
    00604     OGRSpatialReferenceH hSRS, const char *pszVariantName,
    00605     double dfCenterLat, double dfCenterLong,
    00606     double dfScale,
    00607     double dfFalseEasting, double dfFalseNorthing );
    00608
    00610 OGRErr CPL_DLL OSRSetTMG( OGRSpatialReferenceH hSRS,
    00611                           double dfCenterLat, double dfCenterLong,
    00612                          double dfFalseEasting, double dfFalseNorthing );
    00613
    00615 OGRErr CPL_DLL OSRSetTMSO( OGRSpatialReferenceH hSRS,
    00616                            double dfCenterLat, double dfCenterLong,
    00617                            double dfScale,
    00618                            double dfFalseEasting, double dfFalseNorthing );
    00619
    00621 OGRErr CPL_DLL OSRSetVDG( OGRSpatialReferenceH hSRS,
    00622                           double dfCenterLong,
    00623                           double dfFalseEasting, double dfFalseNorthing );
    00624
    00626 OGRErr CPL_DLL OSRSetWagner( OGRSpatialReferenceH hSRS, int nVariation,
    00627                              double dfFalseEasting,
    00628                              double dfFalseNorthing );
    00629
    00630 void CPL_DLL OSRCleanup( void );
    00631
    00632 /* -------------------------------------------------------------------- */
    00633 /*      OGRCoordinateTransform C API.                                   */
    00634 /* -------------------------------------------------------------------- */
    00635 OGRCoordinateTransformationH CPL_DLL CPL_STDCALL
    00636 OCTNewCoordinateTransformation( OGRSpatialReferenceH hSourceSRS,
    00637                                 OGRSpatialReferenceH hTargetSRS );
    00638 void CPL_DLL CPL_STDCALL
    00639       OCTDestroyCoordinateTransformation( OGRCoordinateTransformationH );
    00640
    00641 int CPL_DLL CPL_STDCALL
    00642 OCTTransform( OGRCoordinateTransformationH hCT,
    00643               int nCount, double *x, double *y, double *z );
    00644
    00645 int CPL_DLL CPL_STDCALL
    00646 OCTTransformEx( OGRCoordinateTransformationH hCT,
    00647                 int nCount, double *x, double *y, double *z,
    00648                 int *pabSuccess );
    00649
    00650 /* this is really private to OGR. */
    00651 char *OCTProj4Normalize( const char *pszProj4Src );
    00652
    00653 /* -------------------------------------------------------------------- */
    00654 /*      Projection transform dictionary query.                          */
    00655 /* -------------------------------------------------------------------- */
    00656
    00657 char CPL_DLL ** OPTGetProjectionMethods();
    00658 char CPL_DLL ** OPTGetParameterList( const char * pszProjectionMethod,
    00659                              char ** ppszUserName );
    00660 int CPL_DLL OPTGetParameterInfo( const char * pszProjectionMethod,
    00661                                  const char * pszParameterName,
    00662                                  char ** ppszUserName,
    00663                                  char ** ppszType,
    00664                                  double *pdfDefaultValue );
    00665
    00666 CPL_C_END
    00667
    00668 #endif /* ndef SWIG */
    00669
    00670 #endif /* ndef _OGR_SRS_API_H_INCLUDED */

Generated for GDAL by 1.5.6.