31 #ifndef OGR_SRS_API_H_INCLUDED 32 #define OGR_SRS_API_H_INCLUDED 66 #ifdef USE_DEPRECATED_SRS_WKT_WGS84 67 #define SRS_WKT_WGS84 "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]]" 71 #define SRS_WKT_WGS84_LAT_LONG "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[\"Latitude\",NORTH],AXIS[\"Longitude\",EAST],AUTHORITY[\"EPSG\",\"4326\"]]" 78 #define SRS_PT_ALBERS_CONIC_EQUAL_AREA \ 79 "Albers_Conic_Equal_Area" 81 #define SRS_PT_AZIMUTHAL_EQUIDISTANT "Azimuthal_Equidistant" 83 #define SRS_PT_CASSINI_SOLDNER "Cassini_Soldner" 85 #define SRS_PT_CYLINDRICAL_EQUAL_AREA "Cylindrical_Equal_Area" 87 #define SRS_PT_BONNE "Bonne" 89 #define SRS_PT_ECKERT_I "Eckert_I" 91 #define SRS_PT_ECKERT_II "Eckert_II" 93 #define SRS_PT_ECKERT_III "Eckert_III" 95 #define SRS_PT_ECKERT_IV "Eckert_IV" 97 #define SRS_PT_ECKERT_V "Eckert_V" 99 #define SRS_PT_ECKERT_VI "Eckert_VI" 101 #define SRS_PT_EQUIDISTANT_CONIC \ 104 #define SRS_PT_EQUIRECTANGULAR "Equirectangular" 106 #define SRS_PT_GALL_STEREOGRAPHIC \ 109 #define SRS_PT_GAUSSSCHREIBERTMERCATOR \ 110 "Gauss_Schreiber_Transverse_Mercator" 112 #define SRS_PT_GEOSTATIONARY_SATELLITE \ 113 "Geostationary_Satellite" 115 #define SRS_PT_GOODE_HOMOLOSINE "Goode_Homolosine" 117 #define SRS_PT_IGH "Interrupted_Goode_Homolosine" 119 #define SRS_PT_GNOMONIC "Gnomonic" 121 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER \ 122 "Hotine_Oblique_Mercator_Azimuth_Center" 124 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR \ 125 "Hotine_Oblique_Mercator" 127 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN \ 128 "Hotine_Oblique_Mercator_Two_Point_Natural_Origin" 130 #define SRS_PT_LABORDE_OBLIQUE_MERCATOR \ 131 "Laborde_Oblique_Mercator" 133 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP \ 134 "Lambert_Conformal_Conic_1SP" 136 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP \ 137 "Lambert_Conformal_Conic_2SP" 139 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM \ 140 "Lambert_Conformal_Conic_2SP_Belgium" 142 #define SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA \ 143 "Lambert_Azimuthal_Equal_Area" 145 #define SRS_PT_MERCATOR_1SP "Mercator_1SP" 147 #define SRS_PT_MERCATOR_2SP "Mercator_2SP" 149 #define SRS_PT_MERCATOR_AUXILIARY_SPHERE \ 150 "Mercator_Auxiliary_Sphere" 152 #define SRS_PT_MILLER_CYLINDRICAL "Miller_Cylindrical" 154 #define SRS_PT_MOLLWEIDE "Mollweide" 156 #define SRS_PT_NEW_ZEALAND_MAP_GRID \ 157 "New_Zealand_Map_Grid" 159 #define SRS_PT_OBLIQUE_STEREOGRAPHIC \ 160 "Oblique_Stereographic" 162 #define SRS_PT_ORTHOGRAPHIC "Orthographic" 164 #define SRS_PT_POLAR_STEREOGRAPHIC \ 165 "Polar_Stereographic" 167 #define SRS_PT_POLYCONIC "Polyconic" 169 #define SRS_PT_ROBINSON "Robinson" 171 #define SRS_PT_SINUSOIDAL "Sinusoidal" 173 #define SRS_PT_STEREOGRAPHIC "Stereographic" 175 #define SRS_PT_SWISS_OBLIQUE_CYLINDRICAL \ 176 "Swiss_Oblique_Cylindrical" 178 #define SRS_PT_TRANSVERSE_MERCATOR \ 179 "Transverse_Mercator" 181 #define SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED \ 182 "Transverse_Mercator_South_Orientated" 186 #define SRS_PT_TRANSVERSE_MERCATOR_MI_21 \ 187 "Transverse_Mercator_MapInfo_21" 189 #define SRS_PT_TRANSVERSE_MERCATOR_MI_22 \ 190 "Transverse_Mercator_MapInfo_22" 192 #define SRS_PT_TRANSVERSE_MERCATOR_MI_23 \ 193 "Transverse_Mercator_MapInfo_23" 195 #define SRS_PT_TRANSVERSE_MERCATOR_MI_24 \ 196 "Transverse_Mercator_MapInfo_24" 198 #define SRS_PT_TRANSVERSE_MERCATOR_MI_25 \ 199 "Transverse_Mercator_MapInfo_25" 202 #define SRS_PT_TUNISIA_MINING_GRID \ 203 "Tunisia_Mining_Grid" 205 #define SRS_PT_TWO_POINT_EQUIDISTANT \ 206 "Two_Point_Equidistant" 208 #define SRS_PT_VANDERGRINTEN "VanDerGrinten" 210 #define SRS_PT_KROVAK "Krovak" 212 #define SRS_PT_IMW_POLYCONIC "International_Map_of_the_World_Polyconic" 214 #define SRS_PT_WAGNER_I "Wagner_I" 216 #define SRS_PT_WAGNER_II "Wagner_II" 218 #define SRS_PT_WAGNER_III "Wagner_III" 220 #define SRS_PT_WAGNER_IV "Wagner_IV" 222 #define SRS_PT_WAGNER_V "Wagner_V" 224 #define SRS_PT_WAGNER_VI "Wagner_VI" 226 #define SRS_PT_WAGNER_VII "Wagner_VII" 228 #define SRS_PT_QSC "Quadrilateralized_Spherical_Cube" 230 #define SRS_PT_AITOFF "Aitoff" 232 #define SRS_PT_WINKEL_I "Winkel_I" 234 #define SRS_PT_WINKEL_II "Winkel_II" 236 #define SRS_PT_WINKEL_TRIPEL "Winkel_Tripel" 238 #define SRS_PT_CRASTER_PARABOLIC "Craster_Parabolic" 240 #define SRS_PT_LOXIMUTHAL "Loximuthal" 242 #define SRS_PT_QUARTIC_AUTHALIC "Quartic_Authalic" 244 #define SRS_PT_SCH "Spherical_Cross_Track_Height" 247 #define SRS_PP_CENTRAL_MERIDIAN "central_meridian" 249 #define SRS_PP_SCALE_FACTOR "scale_factor" 251 #define SRS_PP_STANDARD_PARALLEL_1 "standard_parallel_1" 253 #define SRS_PP_STANDARD_PARALLEL_2 "standard_parallel_2" 255 #define SRS_PP_PSEUDO_STD_PARALLEL_1 "pseudo_standard_parallel_1" 257 #define SRS_PP_LONGITUDE_OF_CENTER "longitude_of_center" 259 #define SRS_PP_LATITUDE_OF_CENTER "latitude_of_center" 261 #define SRS_PP_LONGITUDE_OF_ORIGIN "longitude_of_origin" 263 #define SRS_PP_LATITUDE_OF_ORIGIN "latitude_of_origin" 265 #define SRS_PP_FALSE_EASTING "false_easting" 267 #define SRS_PP_FALSE_NORTHING "false_northing" 269 #define SRS_PP_AZIMUTH "azimuth" 271 #define SRS_PP_LONGITUDE_OF_POINT_1 "longitude_of_point_1" 273 #define SRS_PP_LATITUDE_OF_POINT_1 "latitude_of_point_1" 275 #define SRS_PP_LONGITUDE_OF_POINT_2 "longitude_of_point_2" 277 #define SRS_PP_LATITUDE_OF_POINT_2 "latitude_of_point_2" 279 #define SRS_PP_LONGITUDE_OF_POINT_3 "longitude_of_point_3" 281 #define SRS_PP_LATITUDE_OF_POINT_3 "latitude_of_point_3" 283 #define SRS_PP_RECTIFIED_GRID_ANGLE "rectified_grid_angle" 285 #define SRS_PP_LANDSAT_NUMBER "landsat_number" 287 #define SRS_PP_PATH_NUMBER "path_number" 289 #define SRS_PP_PERSPECTIVE_POINT_HEIGHT "perspective_point_height" 291 #define SRS_PP_SATELLITE_HEIGHT "satellite_height" 293 #define SRS_PP_FIPSZONE "fipszone" 295 #define SRS_PP_ZONE "zone" 297 #define SRS_PP_LATITUDE_OF_1ST_POINT "Latitude_Of_1st_Point" 299 #define SRS_PP_LONGITUDE_OF_1ST_POINT "Longitude_Of_1st_Point" 301 #define SRS_PP_LATITUDE_OF_2ND_POINT "Latitude_Of_2nd_Point" 303 #define SRS_PP_LONGITUDE_OF_2ND_POINT "Longitude_Of_2nd_Point" 305 #define SRS_PP_PEG_POINT_LATITUDE "peg_point_latitude" 307 #define SRS_PP_PEG_POINT_LONGITUDE "peg_point_longitude" 309 #define SRS_PP_PEG_POINT_HEADING "peg_point_heading" 311 #define SRS_PP_PEG_POINT_HEIGHT "peg_point_height" 314 #define SRS_UL_METER "Meter" 316 #define SRS_UL_FOOT "Foot (International)" 318 #define SRS_UL_FOOT_CONV "0.3048" 320 #define SRS_UL_US_FOOT "Foot_US" 322 #define SRS_UL_US_FOOT_CONV "0.3048006096012192" 324 #define SRS_UL_NAUTICAL_MILE "Nautical Mile" 326 #define SRS_UL_NAUTICAL_MILE_CONV "1852.0" 328 #define SRS_UL_LINK "Link" 330 #define SRS_UL_LINK_CONV "0.20116684023368047" 332 #define SRS_UL_CHAIN "Chain" 334 #define SRS_UL_CHAIN_CONV "20.116684023368047" 336 #define SRS_UL_ROD "Rod" 338 #define SRS_UL_ROD_CONV "5.02921005842012" 340 #define SRS_UL_LINK_Clarke "Link_Clarke" 342 #define SRS_UL_LINK_Clarke_CONV "0.2011661949" 345 #define SRS_UL_KILOMETER "Kilometer" 347 #define SRS_UL_KILOMETER_CONV "1000." 349 #define SRS_UL_DECIMETER "Decimeter" 351 #define SRS_UL_DECIMETER_CONV "0.1" 353 #define SRS_UL_CENTIMETER "Centimeter" 355 #define SRS_UL_CENTIMETER_CONV "0.01" 357 #define SRS_UL_MILLIMETER "Millimeter" 359 #define SRS_UL_MILLIMETER_CONV "0.001" 361 #define SRS_UL_INTL_NAUT_MILE "Nautical_Mile_International" 363 #define SRS_UL_INTL_NAUT_MILE_CONV "1852.0" 365 #define SRS_UL_INTL_INCH "Inch_International" 367 #define SRS_UL_INTL_INCH_CONV "0.0254" 369 #define SRS_UL_INTL_FOOT "Foot_International" 371 #define SRS_UL_INTL_FOOT_CONV "0.3048" 373 #define SRS_UL_INTL_YARD "Yard_International" 375 #define SRS_UL_INTL_YARD_CONV "0.9144" 377 #define SRS_UL_INTL_STAT_MILE "Statute_Mile_International" 379 #define SRS_UL_INTL_STAT_MILE_CONV "1609.344" 381 #define SRS_UL_INTL_FATHOM "Fathom_International" 383 #define SRS_UL_INTL_FATHOM_CONV "1.8288" 385 #define SRS_UL_INTL_CHAIN "Chain_International" 387 #define SRS_UL_INTL_CHAIN_CONV "20.1168" 389 #define SRS_UL_INTL_LINK "Link_International" 391 #define SRS_UL_INTL_LINK_CONV "0.201168" 393 #define SRS_UL_US_INCH "Inch_US_Surveyor" 395 #define SRS_UL_US_INCH_CONV "0.025400050800101603" 397 #define SRS_UL_US_YARD "Yard_US_Surveyor" 399 #define SRS_UL_US_YARD_CONV "0.914401828803658" 401 #define SRS_UL_US_CHAIN "Chain_US_Surveyor" 403 #define SRS_UL_US_CHAIN_CONV "20.11684023368047" 405 #define SRS_UL_US_STAT_MILE "Statute_Mile_US_Surveyor" 407 #define SRS_UL_US_STAT_MILE_CONV "1609.347218694437" 409 #define SRS_UL_INDIAN_YARD "Yard_Indian" 411 #define SRS_UL_INDIAN_YARD_CONV "0.91439523" 413 #define SRS_UL_INDIAN_FOOT "Foot_Indian" 415 #define SRS_UL_INDIAN_FOOT_CONV "0.30479841" 417 #define SRS_UL_INDIAN_CHAIN "Chain_Indian" 419 #define SRS_UL_INDIAN_CHAIN_CONV "20.11669506" 422 #define SRS_UA_DEGREE "degree" 424 #define SRS_UA_DEGREE_CONV "0.0174532925199433" 426 #define SRS_UA_RADIAN "radian" 429 #define SRS_PM_GREENWICH "Greenwich" 432 #define SRS_DN_NAD27 "North_American_Datum_1927" 434 #define SRS_DN_NAD83 "North_American_Datum_1983" 436 #define SRS_DN_WGS72 "WGS_1972" 438 #define SRS_DN_WGS84 "WGS_1984" 441 #define SRS_WGS84_SEMIMAJOR 6378137.0 443 #define SRS_WGS84_INVFLATTENING 298.257223563 449 #ifndef DEFINED_OGRSpatialReferenceH 451 #define DEFINED_OGRSpatialReferenceH 488 const char *,
double * );
490 long,
long,
double *,
long);
499 const char *,
const char *,
const char * );
504 const char*
const* papszOptions );
508 const char*
const* papszOptions );
516 long *,
long *,
double * );
525 const char* pszTargetProjection,
526 const char*
const* papszOptions );
531 const char * pszNodePath,
532 const char * pszNewNodeValue );
534 const char * pszName,
int iChild );
558 const char*
const *papszOptions );
564 const char * pszName );
570 double,
double,
double,
571 double,
double,
double,
double );
582 const char * pszGeogName,
583 const char * pszDatumName,
584 const char * pszEllipsoidName,
585 double dfSemiMajor,
double dfInvFlattening,
586 const char * pszPMName ,
588 const char * pszUnits ,
589 double dfConvertToRadians );
592 const char * pszVertCSName,
593 const char * pszVertDatumName,
594 int nVertDatumType );
601 const char * pszTargetKey,
602 const char * pszAuthority,
605 const char * pszTargetKey );
607 const char * pszTargetKey );
610 double* pdfWestLongitudeDeg,
611 double* pdfSouthLatitudeDeg,
612 double* pdfEastLongitudeDeg,
613 double* pdfNorthLatitudeDeg,
614 const char **ppszAreaName );
619 const char * pszParmName,
624 const char * pszParmName,
631 int nZone,
int bNAD83 );
633 int nZone,
int bNAD83,
634 const char *pszOverrideUnitName,
635 double dfOverrideUnit );
641 int** ppanMatchConfidence );
647 const char *pszTargetKey,
int iAxis,
651 const char *pszTargetKey,
652 const char *pszXAxisName,
654 const char *pszYAxisName,
674 const int* panMapping );
678 double dfCenterLat,
double dfCenterLong,
679 double dfFalseEasting,
double dfFalseNorthing );
683 double dfFalseEasting,
double dfFalseNorthing );
687 double dfStandardParallel,
double dfCentralMeridian,
688 double dfFalseEasting,
double dfFalseNorthing );
692 double dfFalseEasting,
double dfFalseNorthing );
696 double dfFalseEasting,
double dfFalseNorthing );
700 double dfCenterLat,
double dfCenterLong,
701 double dfFalseEasting,
double dfFalseNorthing );
705 double dfCentralMeridian,
706 double dfFalseEasting,
double dfFalseNorthing );
710 double dfFalseEasting,
double dfFalseNorthing );
714 double dfFalseEasting,
double dfFalseNorthing );
718 double dfCenterLat,
double dfCenterLong,
719 double dfFalseEasting,
double dfFalseNorthing );
723 double dfCenterLat,
double dfCenterLong,
724 double dfPseudoStdParallel1,
725 double dfFalseEasting,
726 double dfFalseNorthing );
730 double dfFalseEasting,
double dfFalseNorthing );
734 double dfFalseEasting,
double dfFalseNorthing );
741 double dfCentralMeridian,
double dfSatelliteHeight,
742 double dfFalseEasting,
double dfFalseNorthing );
746 double dfCenterLat,
double dfCenterLong,
748 double dfFalseEasting,
749 double dfFalseNorthing );
752 double dfCenterLat,
double dfCenterLong,
753 double dfFalseEasting,
double dfFalseNorthing );
758 double dfCenterLat,
double dfCenterLong,
759 double dfAzimuth,
double dfRectToSkew,
761 double dfFalseEasting,
double dfFalseNorthing );
766 double dfCenterLat,
double dfCenterLong,
767 double dfAzimuth,
double dfRectToSkew,
769 double dfFalseEasting,
double dfFalseNorthing );
772 double dfCenterLat,
double dfCenterLong,
773 double dfAzimuth,
double dfRectToSkew,
775 double dfFalseEasting,
776 double dfFalseNorthing );
780 double dfLat1,
double dfLong1,
781 double dfLat2,
double dfLong2,
783 double dfFalseEasting,
double dfFalseNorthing );
787 double dfLat1,
double dfLat2,
789 double dfFalseEasting,
790 double dfFalseNorthing );
794 double dfCenterLat,
double dfCenterLong,
795 double dfAzimuth,
double dfPseudoStdParallelLat,
797 double dfFalseEasting,
double dfFalseNorthing );
801 double dfCenterLat,
double dfCenterLong,
802 double dfFalseEasting,
double dfFalseNorthing );
806 double dfStdP1,
double dfStdP2,
807 double dfCenterLat,
double dfCenterLong,
808 double dfFalseEasting,
double dfFalseNorthing );
812 double dfCenterLat,
double dfCenterLong,
814 double dfFalseEasting,
double dfFalseNorthing );
818 double dfStdP1,
double dfStdP2,
819 double dfCenterLat,
double dfCenterLong,
820 double dfFalseEasting,
double dfFalseNorthing );
824 double dfCenterLat,
double dfCenterLong,
825 double dfFalseEasting,
double dfFalseNorthing );
829 double dfCenterLat,
double dfCenterLong,
831 double dfFalseEasting,
double dfFalseNorthing );
836 double dfCenterLat,
double dfCenterLong,
837 double dfFalseEasting,
double dfFalseNorthing );
841 double dfCentralMeridian,
842 double dfFalseEasting,
843 double dfFalseNorthing );
847 double dfCenterLat,
double dfCenterLong,
848 double dfFalseEasting,
double dfFalseNorthing );
852 double dfOriginLat,
double dfCMeridian,
854 double dfFalseEasting,
double dfFalseNorthing);
858 double dfCenterLat,
double dfCenterLong,
859 double dfFalseEasting,
860 double dfFalseNorthing);
864 double dfCenterLat,
double dfCenterLong,
865 double dfFalseEasting,
double dfFalseNorthing );
869 double dfCenterLat,
double dfCenterLong,
871 double dfFalseEasting,
double dfFalseNorthing);
876 double dfFalseEasting,
double dfFalseNorthing );
881 double dfFalseEasting,
882 double dfFalseNorthing );
886 double dfCenterLat,
double dfCenterLong,
888 double dfFalseEasting,
889 double dfFalseNorthing);
893 double dfLatitudeOfOrigin,
double dfCentralMeridian,
894 double dfFalseEasting,
double dfFalseNorthing );
903 double dfCenterLat,
double dfCenterLong,
905 double dfFalseEasting,
double dfFalseNorthing );
910 double dfCenterLat,
double dfCenterLong,
912 double dfFalseEasting,
double dfFalseNorthing );
916 double dfCenterLat,
double dfCenterLong,
917 double dfFalseEasting,
double dfFalseNorthing );
921 double dfCenterLat,
double dfCenterLong,
923 double dfFalseEasting,
double dfFalseNorthing );
927 double dfLat1,
double dfLong1,
928 double dfLat2,
double dfLong2,
929 double dfFalseEasting,
double dfFalseNorthing );
934 double dfFalseEasting,
double dfFalseNorthing );
939 double dfFalseEasting,
940 double dfFalseNorthing );
944 double dfCenterLat,
double dfCenterLong );
948 double dfPegLat,
double dfPegLong,
949 double dfPegHeading,
double dfPegHgt);
953 double dfTopoOriginLat,
954 double dfTopoOriginLon,
955 double dfTopoOriginHeight,
956 double dfViewPointHeight,
957 double dfFalseEasting,
958 double dfFalseNorthing);
1026 const char *pszAuthName,
1028 int *pnOutResultCount);
1046 OGRCoordinateTransformationOptionsH hOptions,
1047 const char* pszCO,
int bReverseCO);
1050 OGRCoordinateTransformationOptionsH hOptions,
1051 double dfWestLongitudeDeg,
1052 double dfSouthLatitudeDeg,
1053 double dfEastLongitudeDeg,
1054 double dfNorthLatitudeDeg);
1061 OGRCoordinateTransformationOptionsH hOptions );
1063 void CPL_DLL CPL_STDCALL
1066 int CPL_DLL CPL_STDCALL
1068 int nCount,
double *x,
double *y,
double *z );
1070 int CPL_DLL CPL_STDCALL
1072 int nCount,
double *x,
double *y,
double *z,
1077 int nCount,
double *x,
double *y,
double *z,
double *t,
double OSRGetNormProjParm(OGRSpatialReferenceH hSRS, const char *pszParmName, double dfDefault, OGRErr *)
This function is the same as OGRSpatialReference::
Definition: ogrspatialreference.cpp:5138
void OSRDestroySpatialReference(OGRSpatialReferenceH)
OGRSpatialReference destructor.
Definition: ogrspatialreference.cpp:786
OSRAxisMappingStrategy OSRGetAxisMappingStrategy(OGRSpatialReferenceH hSRS)
Retun the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:11013
OGRErr OSRSetMercator2SP(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Mercator 2SP.
Definition: ogrspatialreference.cpp:6662
int OCTTransformEx(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, int *pabSuccess)
Transform an array of points.
Definition: ogrct.cpp:2096
int OSRGetAreaOfUse(OGRSpatialReferenceH hSRS, double *pdfWestLongitudeDeg, double *pdfSouthLatitudeDeg, double *pdfEastLongitudeDeg, double *pdfNorthLatitudeDeg, const char **ppszAreaName)
Return the area of use of the CRS.
Definition: ogrspatialreference.cpp:11204
OGRSpatialReferenceH OSRClone(OGRSpatialReferenceH)
Make a duplicate of this OGRSpatialReference.
Definition: ogrspatialreference.cpp:1232
OGRErr OSRSetEquirectangular2(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfPseudoStdParallel1, double dfFalseEasting, double dfFalseNorthing)
Equirectangular generalized form.
Definition: ogrspatialreference.cpp:5849
OGRErr OSRSetIWMPolyconic(OGRSpatialReferenceH hSRS, double dfLat1, double dfLat2, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
International Map of the World Polyconic.
Definition: ogrspatialreference.cpp:6316
OSRCRSInfo ** OSRGetCRSInfoListFromDatabase(const char *pszAuthName, const OSRCRSListParameters *params, int *pnOutResultCount)
Enumerate CRS objects from the database.
Definition: ogrspatialreference.cpp:11238
OGRErr OSRSetLocalCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible LOCAL_CS name.
Definition: ogrspatialreference.cpp:4487
OGRErr OSRMorphFromESRI(OGRSpatialReferenceH)
Convert in place from ESRI WKT format.
Definition: ogrspatialreference.cpp:10314
Geographic 2D CRS.
Definition: ogr_srs_api.h:969
int OSRIsCompound(OGRSpatialReferenceH)
Check if the coordinate system is compound.
Definition: ogrspatialreference.cpp:7994
const char * OSRGetName(OGRSpatialReferenceH hSRS)
Return the CRS name.
Definition: ogrspatialreference.cpp:1185
Projected CRS.
Definition: ogr_srs_api.h:975
OGRErr OSRSetUTM(OGRSpatialReferenceH hSRS, int nZone, int bNorth)
Set UTM projection definition.
Definition: ogrspatialreference.cpp:7147
OGRErr OSRAddGuessedTOWGS84(OGRSpatialReferenceH hSRS)
Try to add a a 3-parameter or 7-parameter Helmert transformation to WGS84.
Definition: ogrspatialreference.cpp:10564
int OCTTransform4D(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, double *t, int *pabSuccess)
Transform an array of points.
Definition: ogrct.cpp:2123
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:337
Vertical CRS.
Definition: ogr_srs_api.h:977
OGRErr OSRSetNZMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
New Zealand Map Grid.
Definition: ogrspatialreference.cpp:6730
void OSRDestroyCRSInfoList(OSRCRSInfo **list)
Destroy the result returned by OSRGetCRSInfoListFromDatabase().
Definition: ogrspatialreference.cpp:11308
const int * OSRGetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int *pnCount)
Return the data axis to SRS axis mapping.
Definition: ogrspatialreference.cpp:11081
int OCTCoordinateTransformationOptionsSetAreaOfInterest(OGRCoordinateTransformationOptionsH hOptions, double dfWestLongitudeDeg, double dfSouthLatitudeDeg, double dfEastLongitudeDeg, double dfNorthLatitudeDeg)
Sets an area of interest.
Definition: ogrct.cpp:224
OGRCoordinateTransformationOptionsH OCTNewCoordinateTransformationOptions(void)
Create coordinate transformation options.
Definition: ogrct.cpp:140
OGRErr OSRSetMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Mercator.
Definition: ogrspatialreference.cpp:6611
Compound CRS.
Definition: ogr_srs_api.h:979
OGRErr OSRImportFromEPSG(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition: ogrspatialreference.cpp:10630
OGRSpatialReferenceH OSRConvertToOtherProjection(OGRSpatialReferenceH hSRS, const char *pszTargetProjection, const char *const *papszOptions)
Convert to another equivalent projection.
Definition: ogrspatialreference.cpp:8817
struct OGRCoordinateTransformationOptions * OGRCoordinateTransformationOptionsH
Coordinate transformation options.
Definition: ogr_srs_api.h:1041
OGRErr OSRImportFromEPSGA(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition: ogrspatialreference.cpp:10582
OGRErr OSRSetOrthographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Orthographic.
Definition: ogrspatialreference.cpp:6799
int OSRIsDerivedGeographic(OGRSpatialReferenceH)
Check if derived geographic coordinate system.
Definition: ogrspatialreference.cpp:8224
OGRErr OSRSetTPED(OGRSpatialReferenceH hSRS, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfFalseEasting, double dfFalseNorthing)
TPED (Two Point Equi Distant)
Definition: ogrspatialreference.cpp:5367
int bBboxValid
Whereas the west_lon_degree, south_lat_degree, east_lon_degree and north_lat_degree fields are valid...
Definition: ogr_srs_api.h:1003
OGRErr OSRSetTMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Tunesia Mining Grid.
Definition: ogrspatialreference.cpp:5400
OGRErr OSRSetLinearUnits(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2404
int OSRIsLocal(OGRSpatialReferenceH)
Check if local coordinate system.
Definition: ogrspatialreference.cpp:8260
South.
Definition: ogr_srs_api.h:51
OGRErr OSRExportToPROJJSON(OGRSpatialReferenceH hSRS, char **ppszReturn, const char *const *papszOptions)
Convert this SRS into PROJJSON format.
Definition: ogrspatialreference.cpp:1667
OGRErr OSRSetHOM2PNO(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Hotine Oblique Mercator using two points on centerline.
Definition: ogrspatialreference.cpp:6243
OGRCoordinateTransformationH OCTNewCoordinateTransformationEx(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS, OGRCoordinateTransformationOptionsH hOptions)
Create transformation object.
Definition: ogrct.cpp:663
int OSRReference(OGRSpatialReferenceH)
Increments the reference count by one.
Definition: ogrspatialreference.cpp:872
OGRErr OSRSetGaussSchreiberTMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Gauss Schreiber Transverse Mercator.
Definition: ogrspatialreference.cpp:6017
OSRAxisMappingStrategy
Data axis to CRS axis mapping strategy.
Definition: ogr_srs_api.h:658
OGRErr OSRSetProjCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:4799
OGRErr OSRImportFromPanorama(OGRSpatialReferenceH, long, long, long, double *)
Import coordinate system from "Panorama" GIS projection definition.
Definition: ogr_srs_panorama.cpp:200
OGRErr OSRAutoIdentifyEPSG(OGRSpatialReferenceH hSRS)
Set EPSG authority info if possible.
Definition: ogr_fromepsg.cpp:514
OGRErr OSRSetHOMAC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfRectToSkew, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Set an Oblique Mercator projection using azimuth angle.
Definition: ogrspatialreference.cpp:6115
void * OGRSpatialReferenceH
Opaque type for a Spatial Reference object.
Definition: ogr_srs_api.h:459
double OSRGetTargetLinearUnits(OGRSpatialReferenceH, const char *, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:2798
OGRErr OSRSetLAEA(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Azimuthal Equal-Area.
Definition: ogrspatialreference.cpp:6425
const char * OSRGetAxis(OGRSpatialReferenceH hSRS, const char *pszTargetKey, int iAxis, OGRAxisOrientation *peOrientation)
Fetch the orientation of one axis.
Definition: ogrspatialreference.cpp:9651
West.
Definition: ogr_srs_api.h:53
Geocentric CRS.
Definition: ogr_srs_api.h:973
OGRErr OSRSetVDG(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
VanDerGrinten.
Definition: ogrspatialreference.cpp:7091
OGRErr OSRSetProjection(OGRSpatialReferenceH, const char *)
Set a projection name.
Definition: ogrspatialreference.cpp:4857
const char * OSRGetAuthorityName(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority name for a node.
Definition: ogrspatialreference.cpp:7773
OGRErr OSRSetLinearUnitsAndUpdateParameters(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2353
OGRErr OSRSetGnomonic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Gnomonic.
Definition: ogrspatialreference.cpp:6053
OGRErr OSRSetGEOS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfSatelliteHeight, double dfFalseEasting, double dfFalseNorthing)
GEOS - Geostationary Satellite View.
Definition: ogrspatialreference.cpp:5980
OGRErr OSRImportFromProj4(OGRSpatialReferenceH, const char *)
Import PROJ coordinate string.
Definition: ogrspatialreference.cpp:10009
void OSRSetPROJSearchPaths(const char *const *papszPaths)
Set the search path(s) for PROJ resource files.
Definition: ogr_proj_p.cpp:291
OGRErr OSRSetEquirectangular(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equirectangular.
Definition: ogrspatialreference.cpp:5799
OGRErr OSRSetAuthority(OGRSpatialReferenceH hSRS, const char *pszTargetKey, const char *pszAuthority, int nCode)
Set the authority for a node.
Definition: ogrspatialreference.cpp:7601
OGRErr OSRSetTMSO(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator (South Oriented)
Definition: ogrspatialreference.cpp:5331
OGRErr OSRSetEckertIV(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert IV.
Definition: ogrspatialreference.cpp:5721
OGRErr OSRSetVerticalPerspective(OGRSpatialReferenceH hSRS, double dfTopoOriginLat, double dfTopoOriginLon, double dfTopoOriginHeight, double dfViewPointHeight, double dfFalseEasting, double dfFalseNorthing)
Vertical Perspective / Near-sided Perspective.
Definition: ogrspatialreference.cpp:7417
OGRErr OSRSetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int nMappingSize, const int *panMapping)
Set a custom data axis to CRS axis mapping.
Definition: ogrspatialreference.cpp:11124
OGRErr OSRSetMC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Miller Cylindrical.
Definition: ogrspatialreference.cpp:6568
OGRErr OSRExportToPCI(OGRSpatialReferenceH, char **, char **, double **)
Export coordinate system in PCI projection definition.
Definition: ogr_srs_pci.cpp:729
OGRErr OSRSetAngularUnits(OGRSpatialReferenceH, const char *, double)
Set the angular units for the geographic coordinate system.
Definition: ogrspatialreference.cpp:2142
OGRSpatialReferenceH OSRNewSpatialReference(const char *)
Constructor.
Definition: ogrspatialreference.cpp:702
OGRErr OSRImportFromPCI(OGRSpatialReferenceH hSRS, const char *, const char *, double *)
Import coordinate system from PCI projection definition.
Definition: ogr_srs_pci.cpp:147
OGRErr OSRGetTOWGS84(OGRSpatialReferenceH hSRS, double *, int)
Fetch TOWGS84 parameters, if available.
Definition: ogrspatialreference.cpp:9142
Other.
Definition: ogr_srs_api.h:981
double OSRGetSemiMinor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi minor axis.
Definition: ogrspatialreference.cpp:4432
void OSRCleanup(void)
Cleanup cached SRS related memory.
Definition: ogrspatialreference.cpp:9365
double OSRGetLinearUnits(OGRSpatialReferenceH, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:2603
Geographic 3D CRS.
Definition: ogr_srs_api.h:971
OGRErr OSRSetKrovak(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfPseudoStdParallelLat, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Krovak Oblique Conic Conformal.
Definition: ogrspatialreference.cpp:6359
Down (to Earth center)
Definition: ogr_srs_api.h:55
char * pszAuthName
Authority name.
Definition: ogr_srs_api.h:992
OGRErr OSRSetCompoundCS(OGRSpatialReferenceH hSRS, const char *pszName, OGRSpatialReferenceH hHorizSRS, OGRSpatialReferenceH hVertSRS)
Setup a compound coordinate system.
Definition: ogrspatialreference.cpp:4731
OGRErr OSRSetEckert(OGRSpatialReferenceH hSRS, int nVariation, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert I-VI.
Definition: ogrspatialreference.cpp:5689
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition: ogr_api.h:77
double OSRCalcSemiMinorFromInvFlattening(double dfSemiMajor, double dfInvFlattening)
Compute semi-minor axis from semi-major axis and inverse flattening.
Definition: ogrspatialreference.cpp:9943
OGRErr OSRSetTM(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator.
Definition: ogrspatialreference.cpp:5228
OGRErr OSRSetSOC(OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Swiss Oblique Cylindrical.
Definition: ogrspatialreference.cpp:7058
double dfEastLongitudeDeg
Eastern-most longitude of the area of use, in degrees.
Definition: ogr_srs_api.h:1009
OGRErr OSRImportFromDict(OGRSpatialReferenceH, const char *, const char *)
Read SRS from WKT dictionary.
Definition: ogr_srs_dict.cpp:175
struct OSRCRSListParameters OSRCRSListParameters
Structure to describe optional parameters to OSRGetCRSInfoListFromDatabase()
Definition: ogr_srs_api.h:1023
int OSRDereference(OGRSpatialReferenceH)
Decrements the reference count by one.
Definition: ogrspatialreference.cpp:912
void OCTDestroyCoordinateTransformation(OGRCoordinateTransformationH)
OGRCoordinateTransformation destructor.
Definition: ogrct.cpp:450
int OSRIsGeocentric(OGRSpatialReferenceH)
Check if geocentric coordinate system.
Definition: ogrspatialreference.cpp:8098
Up (to space)
Definition: ogr_srs_api.h:54
char ** OSRGetPROJSearchPaths(void)
Get the search path(s) for PROJ resource files.
Definition: ogr_proj_p.cpp:307
North.
Definition: ogr_srs_api.h:50
double dfWestLongitudeDeg
Western-most longitude of the area of use, in degrees.
Definition: ogr_srs_api.h:1005
double dfSouthLatitudeDeg
Southern-most latitude of the area of use, in degrees.
Definition: ogr_srs_api.h:1007
int OSRIsSame(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:8665
OGRErr OSRSetTOWGS84(OGRSpatialReferenceH hSRS, double, double, double, double, double, double, double)
Set the Bursa-Wolf conversion to WGS84.
Definition: ogrspatialreference.cpp:9085
OGRSpatialReferenceH OSRCloneGeogCS(OGRSpatialReferenceH)
Make a duplicate of the GEOGCS node of this OGRSpatialReference object.
Definition: ogrspatialreference.cpp:8408
OGRErr OSRExportToWktEx(OGRSpatialReferenceH, char **ppszResult, const char *const *papszOptions)
Convert this SRS into WKT format.
Definition: ogrspatialreference.cpp:1588
Custom.
Definition: ogr_srs_api.h:662
char * pszProjectionMethod
Name of the projection method for a projected CRS.
Definition: ogr_srs_api.h:1016
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition: ogr_api.h:75
OGRErr OSRSetPolyconic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Polyconic.
Definition: ogrspatialreference.cpp:6834
void OCTDestroyCoordinateTransformationOptions(OGRCoordinateTransformationOptionsH)
Destroy coordinate transformation options.
Definition: ogrct.cpp:153
OGRErr OSRSetPS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Polar Stereographic.
Definition: ogrspatialreference.cpp:6904
OGRErr OSRSetMollweide(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Mollweide.
Definition: ogrspatialreference.cpp:6697
int OSRGetAxesCount(OGRSpatialReferenceH hSRS)
Return the number of axis of the coordinate system of the CRS.
Definition: ogrspatialreference.cpp:9431
OGRErr OSRSetFromUserInput(OGRSpatialReferenceH hSRS, const char *)
Set spatial reference from various text formats.
Definition: ogrspatialreference.cpp:3591
OGRErr OSRSetGeocCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:4573
const char * OSRAxisEnumToName(OGRAxisOrientation eOrientation)
Return the string representation for the OGRAxisOrientation enumeration.
Definition: ogrspatialreference.cpp:9673
OGRSpatialReferenceH * OSRFindMatches(OGRSpatialReferenceH hSRS, char **papszOptions, int *pnEntries, int **ppanMatchConfidence)
Try to identify a match between the passed SRS and a related SRS in a catalog (currently EPSG only) ...
Definition: ogrspatialreference.cpp:8872
OGRErr OSRExportToUSGS(OGRSpatialReferenceH, long *, long *, double **, long *)
Export coordinate system in USGS GCTP projection definition.
Definition: ogr_srs_usgs.cpp:798
OGRErr OSRSetHOM(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfRectToSkew, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Hotine Oblique Mercator using azimuth angle.
Definition: ogrspatialreference.cpp:6179
OGRErr OSRSetIGH(OGRSpatialReferenceH hSRS)
Interrupted Goode Homolosine.
Definition: ogrspatialreference.cpp:5950
double OSRGetAngularUnits(OGRSpatialReferenceH, char **)
Fetch angular geographic coordinate system units.
Definition: ogrspatialreference.cpp:2277
Core portability services for cross-platform OGR code.
OGRErr OSRSetGeogCS(OGRSpatialReferenceH hSRS, const char *pszGeogName, const char *pszDatumName, const char *pszEllipsoidName, double dfSemiMajor, double dfInvFlattening, const char *pszPMName, double dfPMOffset, const char *pszUnits, double dfConvertToRadians)
Set geographic coordinate system.
Definition: ogrspatialreference.cpp:3041
OGRErr OSRSetWagner(OGRSpatialReferenceH hSRS, int nVariation, double dfCenterLat, double dfFalseEasting, double dfFalseNorthing)
Wagner I – VII.
Definition: ogrspatialreference.cpp:7307
double OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor)
Compute inverse flattening from semi-major and semi-minor axis.
Definition: ogrspatialreference.cpp:9915
OGRErr OSRSetACEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Albers Conic Equal Area.
Definition: ogrspatialreference.cpp:5437
OGRErr OSRValidate(OGRSpatialReferenceH)
Validate SRS tokens.
Definition: ogrspatialreference.cpp:1916
OGRErr OSRExportToProj4(OGRSpatialReferenceH, char **)
Export coordinate system in PROJ.4 legacy format.
Definition: ogrspatialreference.cpp:10096
OGRAxisOrientation
Axis orientations (corresponds to CS_AxisOrientationEnum).
Definition: ogr_srs_api.h:48
OGRErr OSRSetLCCB(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic (Belgium)
Definition: ogrspatialreference.cpp:6531
OGRErr OSRExportToXML(OGRSpatialReferenceH, char **, const char *)
Export coordinate system in XML format.
Definition: ogr_srs_xml.cpp:746
int OSRIsSameVertCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the VertCS'es match?
Definition: ogrspatialreference.cpp:8557
OGRErr OSRPromoteTo3D(OGRSpatialReferenceH hSRS, const char *pszName)
"Promotes" a 2D CRS to a 3D CRS one.
Definition: ogrspatialreference.cpp:11461
OGRErr OSRImportFromOzi(OGRSpatialReferenceH, const char *const *)
Import coordinate system from OziExplorer projection definition.
Definition: ogr_srs_ozi.cpp:68
Traditional GIS order.
Definition: ogr_srs_api.h:660
int OSRIsGeographic(OGRSpatialReferenceH)
Check if geographic coordinate system.
Definition: ogrspatialreference.cpp:8176
char * pszName
Object name.
Definition: ogr_srs_api.h:996
OGRErr OSRExportToWkt(OGRSpatialReferenceH, char **)
Convert this SRS into WKT 1 format.
Definition: ogrspatialreference.cpp:1565
char * pszAreaName
Name of the area of use.
Definition: ogr_srs_api.h:1013
double OSRGetProjParm(OGRSpatialReferenceH hSRS, const char *pszParmName, double dfDefault, OGRErr *)
Fetch a projection parameter value.
Definition: ogrspatialreference.cpp:5071
OGRErr OSRExportToERM(OGRSpatialReferenceH, char *, char *, char *)
Convert coordinate system to ERMapper format.
Definition: ogr_srs_erm.cpp:163
OGRErr OSRSetBonne(OGRSpatialReferenceH hSRS, double dfStandardParallel, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Bonne.
Definition: ogrspatialreference.cpp:5505
OGRErr OSRExportToMICoordSys(OGRSpatialReferenceH, char **)
Export coordinate system in Mapinfo style CoordSys format.
Definition: ogrspatialreference.cpp:9799
OGRErr OSRSetQSC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong)
Quadrilateralized Spherical Cube.
Definition: ogrspatialreference.cpp:7337
OGRErr OSRImportFromESRI(OGRSpatialReferenceH, char **)
Import coordinate system from ESRI .prj format(s).
Definition: ogr_srs_esri.cpp:238
OSRCRSType
Type of Coordinate Reference System (CRS).
Definition: ogr_srs_api.h:966
const char * OSRGetAuthorityCode(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority code for a node.
Definition: ogrspatialreference.cpp:7689
Compliant with the order mandated by the CRS authority.
Definition: ogr_srs_api.h:661
OGRErr OSRSetAxes(OGRSpatialReferenceH hSRS, const char *pszTargetKey, const char *pszXAxisName, OGRAxisOrientation eXAxisOrientation, const char *pszYAxisName, OGRAxisOrientation eYAxisOrientation)
Set the axes for a coordinate system.
Definition: ogrspatialreference.cpp:9770
OGRErr OSRImportFromERM(OGRSpatialReferenceH, const char *, const char *, const char *)
Create OGR WKT from ERMapper projection definitions.
Definition: ogr_srs_erm.cpp:55
int OCTCoordinateTransformationOptionsSetOperation(OGRCoordinateTransformationOptionsH hOptions, const char *pszCO, int bReverseCO)
Sets a coordinate operation.
Definition: ogrct.cpp:298
int OSRGetUTMZone(OGRSpatialReferenceH hSRS, int *pbNorth)
Get utm zone information.
Definition: ogrspatialreference.cpp:7225
OGRErr OSRCopyGeogCSFrom(OGRSpatialReferenceH hSRS, const OGRSpatialReferenceH hSrcSRS)
Copy GEOGCS from another OGRSpatialReference.
Definition: ogrspatialreference.cpp:3297
OGRErr OSRExportToPanorama(OGRSpatialReferenceH, long *, long *, long *, long *, double *)
Export coordinate system in "Panorama" GIS projection definition.
Definition: ogr_srs_panorama.cpp:624
int OSREPSGTreatsAsLatLong(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as havin...
Definition: ogrspatialreference.cpp:10712
OGRErr OSRSetNormProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter with a normalized value.
Definition: ogrspatialreference.cpp:5198
OGRCoordinateTransformationH OCTNewCoordinateTransformation(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS)
Create transformation object.
Definition: ogrct.cpp:613
double OSRGetPrimeMeridian(OGRSpatialReferenceH, char **)
Fetch prime meridian info.
Definition: ogrspatialreference.cpp:2913
double dfNorthLatitudeDeg
Northern-most latitude of the area of use, in degrees.
Definition: ogr_srs_api.h:1011
OGRErr OSRSetWellKnownGeogCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set a GeogCS based on well known name.
Definition: ogrspatialreference.cpp:3189
OGRErr OSRSetGH(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Goode Homolosine.
Definition: ogrspatialreference.cpp:5919
OGRErr OSRSetSCH(OGRSpatialReferenceH hSRS, double dfPegLat, double dfPegLong, double dfPegHeading, double dfPegHgt)
Spherical, Cross-track, Height.
Definition: ogrspatialreference.cpp:7367
OGRErr OSRSetVertCS(OGRSpatialReferenceH hSRS, const char *pszVertCSName, const char *pszVertDatumName, int nVertDatumType)
Setup the vertical coordinate system.
Definition: ogrspatialreference.cpp:4651
int OSRIsSameGeogCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the GeogCS'es match?
Definition: ogrspatialreference.cpp:8494
int OSREPSGTreatsAsNorthingEasting(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as havin...
Definition: ogrspatialreference.cpp:10829
OGRErr OSRSetTargetLinearUnits(OGRSpatialReferenceH, const char *, const char *, double)
Set the linear units for the target node.
Definition: ogrspatialreference.cpp:2529
int OSRIsVertical(OGRSpatialReferenceH)
Check if vertical coordinate system.
Definition: ogrspatialreference.cpp:8325
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:339
OGRErr OSRSetStatePlaneWithUnits(OGRSpatialReferenceH hSRS, int nZone, int bNAD83, const char *pszOverrideUnitName, double dfOverrideUnit)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:275
OGRErr OSRSetEC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equidistant Conic.
Definition: ogrspatialreference.cpp:5606
OGRErr OSRSetSinusoidal(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Sinusoidal.
Definition: ogrspatialreference.cpp:6972
East.
Definition: ogr_srs_api.h:52
OGRErr OSRSetEckertVI(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert VI.
Definition: ogrspatialreference.cpp:5752
void OSRRelease(OGRSpatialReferenceH)
Decrements the reference count by one, and destroy if zero.
Definition: ogrspatialreference.cpp:960
char * pszCode
Object code.
Definition: ogr_srs_api.h:994
OGRErr OSRSetRobinson(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Robinson.
Definition: ogrspatialreference.cpp:6939
int OSRIsSameEx(OGRSpatialReferenceH, OGRSpatialReferenceH, const char *const *papszOptions)
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:8684
OGRErr OSRSetAE(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Azimuthal Equidistant.
Definition: ogrspatialreference.cpp:5472
OGRErr OSRImportFromUrl(OGRSpatialReferenceH, const char *)
Set spatial reference from a URL.
Definition: ogrspatialreference.cpp:3699
OGRErr OSRSetGS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Gall Stereograpic.
Definition: ogrspatialreference.cpp:5885
void OSRGetPROJVersion(int *pnMajor, int *pnMinor, int *pnPatch)
Get the PROJ version.
Definition: ogr_proj_p.cpp:331
int OGRErr
Type for a OGR error.
Definition: ogr_core.h:318
OGRErr OSRSetStatePlane(OGRSpatialReferenceH hSRS, int nZone, int bNAD83)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:256
OGRErr OSRImportFromXML(OGRSpatialReferenceH, const char *)
Import coordinate system from XML format (GML only currently).
Definition: ogr_srs_xml.cpp:1310
OGRErr OSRSetTMVariant(OGRSpatialReferenceH hSRS, const char *pszVariantName, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator variant.
Definition: ogrspatialreference.cpp:5269
double OSRGetInvFlattening(OGRSpatialReferenceH, OGRErr *)
Get spheroid inverse flattening.
Definition: ogrspatialreference.cpp:4335
int bDeprecated
Whether the object is deprecated.
Definition: ogr_srs_api.h:1000
OGRErr OSRExportToPrettyWkt(OGRSpatialReferenceH, char **, int)
Convert this SRS into a nicely formatted WKT 1 string for display to a person.
Definition: ogrspatialreference.cpp:1313
Structure given overall description of a CRS.
Definition: ogr_srs_api.h:989
const char * OSRGetAttrValue(OGRSpatialReferenceH hSRS, const char *pszName, int iChild)
Fetch indicated attribute of named node.
Definition: ogrspatialreference.cpp:1141
OGRErr OSRSetStereographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Stereographic.
Definition: ogrspatialreference.cpp:7007
OGRErr OSRSetAttrValue(OGRSpatialReferenceH hSRS, const char *pszNodePath, const char *pszNewNodeValue)
Set attribute value in spatial reference.
Definition: ogrspatialreference.cpp:2040
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition: ogr_srs_api.h:461
int OCTTransform(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z)
Transform an array of points.
Definition: ogrct.cpp:2072
OGRErr OSRSetCS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Cassini-Soldner.
Definition: ogrspatialreference.cpp:5569
OSRCRSType eType
Object type.
Definition: ogr_srs_api.h:998
OGRErr OSRSetLCC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic.
Definition: ogrspatialreference.cpp:6459
int OSRIsProjected(OGRSpatialReferenceH)
Check if projected coordinate system.
Definition: ogrspatialreference.cpp:8055
OGRErr OSRSetOS(OGRSpatialReferenceH hSRS, double dfOriginLat, double dfCMeridian, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Oblique Stereographic.
Definition: ogrspatialreference.cpp:6764
OGRErr OSRMorphToESRI(OGRSpatialReferenceH)
Convert in place to ESRI WKT format.
Definition: ogrspatialreference.cpp:10264
void OSRSetAxisMappingStrategy(OGRSpatialReferenceH hSRS, OSRAxisMappingStrategy strategy)
Set the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:11044
OGRErr OSRImportFromMICoordSys(OGRSpatialReferenceH, const char *)
Import Mapinfo style CoordSys definition.
Definition: ogrspatialreference.cpp:9854
OGRErr OSRImportFromWkt(OGRSpatialReferenceH, char **)
Import from WKT string.
Definition: ogrspatialreference.cpp:1937
void OSRFreeSRSArray(OGRSpatialReferenceH *pahSRS)
Free return of OSRIdentifyMatches()
Definition: ogrspatialreference.cpp:8898
OGRErr OSRImportFromUSGS(OGRSpatialReferenceH, long, long, double *, long)
Import coordinate system from USGS projection definition.
Definition: ogr_srs_usgs.cpp:165
OGRErr OSRSetCEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Cylindrical Equal Area.
Definition: ogrspatialreference.cpp:5537
Other.
Definition: ogr_srs_api.h:49
OGRErr OSRSetLCC1SP(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic 1SP.
Definition: ogrspatialreference.cpp:6495
OGRErr OSRSetProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter value.
Definition: ogrspatialreference.cpp:4940
double OSRGetSemiMajor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi major axis.
Definition: ogrspatialreference.cpp:4274