Go to the documentation of this file.
31 #ifndef OGR_SRS_API_H_INCLUDED
32 #define OGR_SRS_API_H_INCLUDED
69 #ifdef USE_DEPRECATED_SRS_WKT_WGS84
70 #define SRS_WKT_WGS84 \
71 "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS " \
72 "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" \
73 "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]" \
74 ",UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]]," \
75 "AUTHORITY[\"EPSG\",\"4326\"]]"
79 #define SRS_WKT_WGS84_LAT_LONG \
80 "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS " \
81 "84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[" \
82 "\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]]" \
83 ",UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AXIS[" \
84 "\"Latitude\",NORTH],AXIS[\"Longitude\",EAST],AUTHORITY[\"EPSG\"," \
92 #define SRS_PT_ALBERS_CONIC_EQUAL_AREA "Albers_Conic_Equal_Area"
94 #define SRS_PT_AZIMUTHAL_EQUIDISTANT "Azimuthal_Equidistant"
96 #define SRS_PT_CASSINI_SOLDNER "Cassini_Soldner"
98 #define SRS_PT_CYLINDRICAL_EQUAL_AREA "Cylindrical_Equal_Area"
100 #define SRS_PT_BONNE "Bonne"
102 #define SRS_PT_ECKERT_I "Eckert_I"
104 #define SRS_PT_ECKERT_II "Eckert_II"
106 #define SRS_PT_ECKERT_III "Eckert_III"
108 #define SRS_PT_ECKERT_IV "Eckert_IV"
110 #define SRS_PT_ECKERT_V "Eckert_V"
112 #define SRS_PT_ECKERT_VI "Eckert_VI"
114 #define SRS_PT_EQUIDISTANT_CONIC "Equidistant_Conic"
116 #define SRS_PT_EQUIRECTANGULAR "Equirectangular"
118 #define SRS_PT_GALL_STEREOGRAPHIC "Gall_Stereographic"
120 #define SRS_PT_GAUSSSCHREIBERTMERCATOR "Gauss_Schreiber_Transverse_Mercator"
122 #define SRS_PT_GEOSTATIONARY_SATELLITE "Geostationary_Satellite"
124 #define SRS_PT_GOODE_HOMOLOSINE "Goode_Homolosine"
126 #define SRS_PT_IGH "Interrupted_Goode_Homolosine"
128 #define SRS_PT_GNOMONIC "Gnomonic"
130 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_AZIMUTH_CENTER \
131 "Hotine_Oblique_Mercator_Azimuth_Center"
133 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR "Hotine_Oblique_Mercator"
135 #define SRS_PT_HOTINE_OBLIQUE_MERCATOR_TWO_POINT_NATURAL_ORIGIN \
136 "Hotine_Oblique_Mercator_Two_Point_Natural_Origin"
138 #define SRS_PT_LABORDE_OBLIQUE_MERCATOR "Laborde_Oblique_Mercator"
140 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_1SP "Lambert_Conformal_Conic_1SP"
142 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP "Lambert_Conformal_Conic_2SP"
144 #define SRS_PT_LAMBERT_CONFORMAL_CONIC_2SP_BELGIUM \
145 "Lambert_Conformal_Conic_2SP_Belgium"
147 #define SRS_PT_LAMBERT_AZIMUTHAL_EQUAL_AREA "Lambert_Azimuthal_Equal_Area"
149 #define SRS_PT_MERCATOR_1SP "Mercator_1SP"
151 #define SRS_PT_MERCATOR_2SP "Mercator_2SP"
153 #define SRS_PT_MERCATOR_AUXILIARY_SPHERE "Mercator_Auxiliary_Sphere"
155 #define SRS_PT_MILLER_CYLINDRICAL "Miller_Cylindrical"
157 #define SRS_PT_MOLLWEIDE "Mollweide"
159 #define SRS_PT_NEW_ZEALAND_MAP_GRID "New_Zealand_Map_Grid"
161 #define SRS_PT_OBLIQUE_STEREOGRAPHIC "Oblique_Stereographic"
163 #define SRS_PT_ORTHOGRAPHIC "Orthographic"
165 #define SRS_PT_POLAR_STEREOGRAPHIC "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 "Swiss_Oblique_Cylindrical"
177 #define SRS_PT_TRANSVERSE_MERCATOR "Transverse_Mercator"
179 #define SRS_PT_TRANSVERSE_MERCATOR_SOUTH_ORIENTED \
180 "Transverse_Mercator_South_Orientated"
184 #define SRS_PT_TRANSVERSE_MERCATOR_MI_21 "Transverse_Mercator_MapInfo_21"
186 #define SRS_PT_TRANSVERSE_MERCATOR_MI_22 "Transverse_Mercator_MapInfo_22"
188 #define SRS_PT_TRANSVERSE_MERCATOR_MI_23 "Transverse_Mercator_MapInfo_23"
190 #define SRS_PT_TRANSVERSE_MERCATOR_MI_24 "Transverse_Mercator_MapInfo_24"
192 #define SRS_PT_TRANSVERSE_MERCATOR_MI_25 "Transverse_Mercator_MapInfo_25"
195 #define SRS_PT_TUNISIA_MINING_GRID "Tunisia_Mining_Grid"
197 #define SRS_PT_TWO_POINT_EQUIDISTANT "Two_Point_Equidistant"
199 #define SRS_PT_VANDERGRINTEN "VanDerGrinten"
201 #define SRS_PT_KROVAK "Krovak"
203 #define SRS_PT_IMW_POLYCONIC "International_Map_of_the_World_Polyconic"
205 #define SRS_PT_WAGNER_I "Wagner_I"
207 #define SRS_PT_WAGNER_II "Wagner_II"
209 #define SRS_PT_WAGNER_III "Wagner_III"
211 #define SRS_PT_WAGNER_IV "Wagner_IV"
213 #define SRS_PT_WAGNER_V "Wagner_V"
215 #define SRS_PT_WAGNER_VI "Wagner_VI"
217 #define SRS_PT_WAGNER_VII "Wagner_VII"
219 #define SRS_PT_QSC "Quadrilateralized_Spherical_Cube"
221 #define SRS_PT_AITOFF "Aitoff"
223 #define SRS_PT_WINKEL_I "Winkel_I"
225 #define SRS_PT_WINKEL_II "Winkel_II"
227 #define SRS_PT_WINKEL_TRIPEL "Winkel_Tripel"
229 #define SRS_PT_CRASTER_PARABOLIC "Craster_Parabolic"
231 #define SRS_PT_LOXIMUTHAL "Loximuthal"
233 #define SRS_PT_QUARTIC_AUTHALIC "Quartic_Authalic"
235 #define SRS_PT_SCH "Spherical_Cross_Track_Height"
238 #define SRS_PP_CENTRAL_MERIDIAN "central_meridian"
240 #define SRS_PP_SCALE_FACTOR "scale_factor"
242 #define SRS_PP_STANDARD_PARALLEL_1 "standard_parallel_1"
244 #define SRS_PP_STANDARD_PARALLEL_2 "standard_parallel_2"
246 #define SRS_PP_PSEUDO_STD_PARALLEL_1 "pseudo_standard_parallel_1"
248 #define SRS_PP_LONGITUDE_OF_CENTER "longitude_of_center"
250 #define SRS_PP_LATITUDE_OF_CENTER "latitude_of_center"
252 #define SRS_PP_LONGITUDE_OF_ORIGIN "longitude_of_origin"
254 #define SRS_PP_LATITUDE_OF_ORIGIN "latitude_of_origin"
256 #define SRS_PP_FALSE_EASTING "false_easting"
258 #define SRS_PP_FALSE_NORTHING "false_northing"
260 #define SRS_PP_AZIMUTH "azimuth"
262 #define SRS_PP_LONGITUDE_OF_POINT_1 "longitude_of_point_1"
264 #define SRS_PP_LATITUDE_OF_POINT_1 "latitude_of_point_1"
266 #define SRS_PP_LONGITUDE_OF_POINT_2 "longitude_of_point_2"
268 #define SRS_PP_LATITUDE_OF_POINT_2 "latitude_of_point_2"
270 #define SRS_PP_LONGITUDE_OF_POINT_3 "longitude_of_point_3"
272 #define SRS_PP_LATITUDE_OF_POINT_3 "latitude_of_point_3"
274 #define SRS_PP_RECTIFIED_GRID_ANGLE "rectified_grid_angle"
276 #define SRS_PP_LANDSAT_NUMBER "landsat_number"
278 #define SRS_PP_PATH_NUMBER "path_number"
280 #define SRS_PP_PERSPECTIVE_POINT_HEIGHT "perspective_point_height"
282 #define SRS_PP_SATELLITE_HEIGHT "satellite_height"
284 #define SRS_PP_FIPSZONE "fipszone"
286 #define SRS_PP_ZONE "zone"
288 #define SRS_PP_LATITUDE_OF_1ST_POINT "Latitude_Of_1st_Point"
290 #define SRS_PP_LONGITUDE_OF_1ST_POINT "Longitude_Of_1st_Point"
292 #define SRS_PP_LATITUDE_OF_2ND_POINT "Latitude_Of_2nd_Point"
294 #define SRS_PP_LONGITUDE_OF_2ND_POINT "Longitude_Of_2nd_Point"
296 #define SRS_PP_PEG_POINT_LATITUDE "peg_point_latitude"
298 #define SRS_PP_PEG_POINT_LONGITUDE "peg_point_longitude"
300 #define SRS_PP_PEG_POINT_HEADING "peg_point_heading"
302 #define SRS_PP_PEG_POINT_HEIGHT "peg_point_height"
305 #define SRS_UL_METER "Meter"
307 #define SRS_UL_FOOT "Foot (International)"
309 #define SRS_UL_FOOT_CONV "0.3048"
311 #define SRS_UL_US_FOOT "Foot_US"
313 #define SRS_UL_US_FOOT_CONV "0.3048006096012192"
315 #define SRS_UL_NAUTICAL_MILE "Nautical Mile"
317 #define SRS_UL_NAUTICAL_MILE_CONV "1852.0"
319 #define SRS_UL_LINK "Link"
321 #define SRS_UL_LINK_CONV "0.20116684023368047"
323 #define SRS_UL_CHAIN "Chain"
325 #define SRS_UL_CHAIN_CONV "20.116684023368047"
327 #define SRS_UL_ROD "Rod"
329 #define SRS_UL_ROD_CONV "5.02921005842012"
331 #define SRS_UL_LINK_Clarke "Link_Clarke"
333 #define SRS_UL_LINK_Clarke_CONV "0.2011661949"
336 #define SRS_UL_KILOMETER "Kilometer"
338 #define SRS_UL_KILOMETER_CONV "1000."
340 #define SRS_UL_DECIMETER "Decimeter"
342 #define SRS_UL_DECIMETER_CONV "0.1"
344 #define SRS_UL_CENTIMETER "Centimeter"
346 #define SRS_UL_CENTIMETER_CONV "0.01"
348 #define SRS_UL_MILLIMETER "Millimeter"
350 #define SRS_UL_MILLIMETER_CONV "0.001"
352 #define SRS_UL_INTL_NAUT_MILE "Nautical_Mile_International"
354 #define SRS_UL_INTL_NAUT_MILE_CONV "1852.0"
356 #define SRS_UL_INTL_INCH "Inch_International"
358 #define SRS_UL_INTL_INCH_CONV "0.0254"
360 #define SRS_UL_INTL_FOOT "Foot_International"
362 #define SRS_UL_INTL_FOOT_CONV "0.3048"
364 #define SRS_UL_INTL_YARD "Yard_International"
366 #define SRS_UL_INTL_YARD_CONV "0.9144"
368 #define SRS_UL_INTL_STAT_MILE "Statute_Mile_International"
370 #define SRS_UL_INTL_STAT_MILE_CONV "1609.344"
372 #define SRS_UL_INTL_FATHOM "Fathom_International"
374 #define SRS_UL_INTL_FATHOM_CONV "1.8288"
376 #define SRS_UL_INTL_CHAIN "Chain_International"
378 #define SRS_UL_INTL_CHAIN_CONV "20.1168"
380 #define SRS_UL_INTL_LINK "Link_International"
382 #define SRS_UL_INTL_LINK_CONV "0.201168"
384 #define SRS_UL_US_INCH "Inch_US_Surveyor"
386 #define SRS_UL_US_INCH_CONV "0.025400050800101603"
388 #define SRS_UL_US_YARD "Yard_US_Surveyor"
390 #define SRS_UL_US_YARD_CONV "0.914401828803658"
392 #define SRS_UL_US_CHAIN "Chain_US_Surveyor"
394 #define SRS_UL_US_CHAIN_CONV "20.11684023368047"
396 #define SRS_UL_US_STAT_MILE "Statute_Mile_US_Surveyor"
398 #define SRS_UL_US_STAT_MILE_CONV "1609.347218694437"
400 #define SRS_UL_INDIAN_YARD "Yard_Indian"
402 #define SRS_UL_INDIAN_YARD_CONV "0.91439523"
404 #define SRS_UL_INDIAN_FOOT "Foot_Indian"
406 #define SRS_UL_INDIAN_FOOT_CONV "0.30479841"
408 #define SRS_UL_INDIAN_CHAIN "Chain_Indian"
410 #define SRS_UL_INDIAN_CHAIN_CONV "20.11669506"
413 #define SRS_UA_DEGREE "degree"
415 #define SRS_UA_DEGREE_CONV "0.0174532925199433"
417 #define SRS_UA_RADIAN "radian"
420 #define SRS_PM_GREENWICH "Greenwich"
423 #define SRS_DN_NAD27 "North_American_Datum_1927"
425 #define SRS_DN_NAD83 "North_American_Datum_1983"
427 #define SRS_DN_WGS72 "WGS_1972"
429 #define SRS_DN_WGS84 "WGS_1984"
432 #define SRS_WGS84_SEMIMAJOR 6378137.0
434 #define SRS_WGS84_INVFLATTENING 298.257223563
440 #ifndef DEFINED_OGRSpatialReferenceH
442 #define DEFINED_OGRSpatialReferenceH
483 const char *,
double *);
494 const char *,
const char *);
499 const char *
const *papszOptions);
503 const char *
const *papszOptions);
522 const char *
const *papszOptions);
527 const char *pszNodePath,
528 const char *pszNewNodeValue);
537 const char *,
double);
539 const char *,
double);
559 const char *
const *papszOptions);
562 double dfCoordinateEpoch);
569 const char *pszName);
575 double,
double,
double,
double);
586 const char *pszDatumName,
587 const char *pszEllipsoidName,
double dfSemiMajor,
588 double dfInvFlattening,
589 const char *pszPMName ,
591 const char *pszUnits ,
592 double dfConvertToRadians );
595 const char *pszVertCSName,
596 const char *pszVertDatumName,
int nVertDatumType);
603 const char *pszTargetKey,
604 const char *pszAuthority,
int nCode);
606 const char *pszTargetKey);
608 const char *pszTargetKey);
611 double *pdfWestLongitudeDeg,
612 double *pdfSouthLatitudeDeg,
613 double *pdfEastLongitudeDeg,
614 double *pdfNorthLatitudeDeg,
615 const char **ppszAreaName);
620 const char *pszParamName,
625 const char *pszParamName,
635 const char *pszOverrideUnitName,
636 double dfOverrideUnit);
642 int **ppanMatchConfidence);
648 const char *pszTargetKey,
int iAxis,
652 const char *pszXAxisName,
654 const char *pszYAxisName,
677 const int *panMapping);
681 double dfStdP2,
double dfCenterLat,
682 double dfCenterLong,
double dfFalseEasting,
683 double dfFalseNorthing);
687 double dfCenterLong,
double dfFalseEasting,
688 double dfFalseNorthing);
692 double dfCentralMeridian,
double dfFalseEasting,
693 double dfFalseNorthing);
697 double dfCentralMeridian,
double dfFalseEasting,
698 double dfFalseNorthing);
702 double dfCenterLong,
double dfFalseEasting,
703 double dfFalseNorthing);
707 double dfStdP2,
double dfCenterLat,
double dfCenterLong,
708 double dfFalseEasting,
double dfFalseNorthing);
712 double dfCentralMeridian,
double dfFalseEasting,
713 double dfFalseNorthing);
717 double dfCentralMeridian,
double dfFalseEasting,
718 double dfFalseNorthing);
722 double dfCentralMeridian,
double dfFalseEasting,
723 double dfFalseNorthing);
727 double dfCenterLat,
double dfCenterLong,
728 double dfFalseEasting,
729 double dfFalseNorthing);
733 double dfCenterLat,
double dfCenterLong,
734 double dfPseudoStdParallel1,
735 double dfFalseEasting,
736 double dfFalseNorthing);
740 double dfFalseEasting,
double dfFalseNorthing);
744 double dfFalseEasting,
double dfFalseNorthing);
751 double dfSatelliteHeight,
double dfFalseEasting,
752 double dfFalseNorthing);
757 double dfScale,
double dfFalseEasting,
double dfFalseNorthing);
760 double dfCenterLong,
double dfFalseEasting,
761 double dfFalseNorthing);
766 double dfCenterLong,
double dfAzimuth,
767 double dfRectToSkew,
double dfScale,
768 double dfFalseEasting,
double dfFalseNorthing);
773 double dfCenterLong,
double dfAzimuth,
774 double dfRectToSkew,
double dfScale,
775 double dfFalseEasting,
double dfFalseNorthing);
778 double dfCenterLong,
double dfAzimuth,
779 double dfRectToSkew,
double dfScale,
780 double dfFalseEasting,
double dfFalseNorthing);
784 double dfLat1,
double dfLong1,
double dfLat2,
785 double dfLong2,
double dfScale,
786 double dfFalseEasting,
double dfFalseNorthing);
790 double dfLat2,
double dfCenterLong,
791 double dfFalseEasting,
792 double dfFalseNorthing);
796 double dfCenterLong,
double dfAzimuth,
797 double dfPseudoStdParallelLat,
double dfScale,
798 double dfFalseEasting,
double dfFalseNorthing);
802 double dfCenterLong,
double dfFalseEasting,
803 double dfFalseNorthing);
807 double dfStdP2,
double dfCenterLat,
808 double dfCenterLong,
double dfFalseEasting,
809 double dfFalseNorthing);
813 double dfCenterLong,
double dfScale,
814 double dfFalseEasting,
double dfFalseNorthing);
818 double dfStdP2,
double dfCenterLat,
819 double dfCenterLong,
double dfFalseEasting,
820 double dfFalseNorthing);
824 double dfCenterLong,
double dfFalseEasting,
825 double dfFalseNorthing);
829 double dfCenterLong,
double dfScale,
830 double dfFalseEasting,
double dfFalseNorthing);
834 double dfCenterLat,
double dfCenterLong,
835 double dfFalseEasting,
double dfFalseNorthing);
839 double dfCentralMeridian,
double dfFalseEasting,
840 double dfFalseNorthing);
844 double dfCenterLong,
double dfFalseEasting,
845 double dfFalseNorthing);
849 double dfCMeridian,
double dfScale,
850 double dfFalseEasting,
double dfFalseNorthing);
854 double dfCenterLong,
double dfFalseEasting,
855 double dfFalseNorthing);
859 double dfCenterLong,
double dfFalseEasting,
860 double dfFalseNorthing);
864 double dfCenterLong,
double dfScale,
865 double dfFalseEasting,
double dfFalseNorthing);
869 double dfFalseEasting,
double dfFalseNorthing);
873 double dfFalseEasting,
double dfFalseNorthing);
877 double dfCenterLat,
double dfCenterLong,
878 double dfScale,
double dfFalseEasting,
879 double dfFalseNorthing);
883 double dfCentralMeridian,
double dfFalseEasting,
884 double dfFalseNorthing);
893 double dfCenterLong,
double dfScale,
894 double dfFalseEasting,
double dfFalseNorthing);
898 const char *pszVariantName,
double dfCenterLat,
899 double dfCenterLong,
double dfScale,
900 double dfFalseEasting,
double dfFalseNorthing);
904 double dfCenterLong,
double dfFalseEasting,
905 double dfFalseNorthing);
909 double dfCenterLong,
double dfScale,
910 double dfFalseEasting,
double dfFalseNorthing);
914 double dfLong1,
double dfLat2,
double dfLong2,
915 double dfFalseEasting,
double dfFalseNorthing);
919 double dfFalseEasting,
double dfFalseNorthing);
923 double dfCenterLat,
double dfFalseEasting,
924 double dfFalseNorthing);
928 double dfCenterLong);
932 double dfPegLong,
double dfPegHeading,
938 double dfTopoOriginHeight,
double dfViewPointHeight,
double dfFalseEasting,
939 double dfFalseNorthing);
943 double dfInvFlattening);
1011 int *pnOutResultCount);
1034 double dfSouthLatitudeDeg,
double dfEastLongitudeDeg,
1035 double dfNorthLatitudeDeg);
1062 void CPL_DLL CPL_STDCALL
1066 int nCount,
double *x,
double *y,
1070 int nCount,
double *x,
double *y,
1071 double *z,
int *pabSuccess);
1074 double *x,
double *y,
double *z,
double *t,
1078 int nCount,
double *x,
double *y,
1079 double *z,
double *t,
1080 int *panErrorCodes);
1083 const double xmin,
const double ymin,
1084 const double xmax,
const double ymax,
1085 double *out_xmin,
double *out_ymin,
1086 double *out_xmax,
double *out_ymax,
1087 const int densify_pts);
OSRCRSType eType
Object type.
Definition: ogr_srs_api.h:980
OGRErr OSRImportFromEPSGA(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition: ogrspatialreference.cpp:11527
OGRErr OSRSetEC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equidistant Conic.
Definition: ogrspatialreference.cpp:6227
char ** OSRGetPROJAuxDbPaths(void)
Get PROJ auxiliary database filenames.
Definition: ogr_proj_p.cpp:494
OGRErr OSRSetMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Mercator.
Definition: ogrspatialreference.cpp:7111
OGRErr OSRSetUTM(OGRSpatialReferenceH hSRS, int nZone, int bNorth)
Set UTM projection definition.
Definition: ogrspatialreference.cpp:7594
char * pszCode
Object code.
Definition: ogr_srs_api.h:976
@ OAO_North
North.
Definition: ogr_srs_api.h:53
@ OAMS_CUSTOM
Custom.
Definition: ogr_srs_api.h:663
OGRErr OSRSetStereographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Stereographic.
Definition: ogrspatialreference.cpp:7465
@ OSR_CRS_TYPE_PROJECTED
Projected CRS.
Definition: ogr_srs_api.h:957
double OSRGetInvFlattening(OGRSpatialReferenceH, OGRErr *)
Get spheroid inverse flattening.
Definition: ogrspatialreference.cpp:4917
OGRErr OSRSetMercator2SP(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Mercator 2SP.
Definition: ogrspatialreference.cpp:7155
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:6789
Structure given overall description of a CRS.
Definition: ogr_srs_api.h:971
const char * OSRGetAttrValue(OGRSpatialReferenceH hSRS, const char *pszName, int iChild)
Fetch indicated attribute of named node.
Definition: ogrspatialreference.cpp:1299
OGRErr OSRSetTMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Tunesia Mining Grid
Definition: ogrspatialreference.cpp:6047
OGRErr OSRSetAttrValue(OGRSpatialReferenceH hSRS, const char *pszNodePath, const char *pszNewNodeValue)
Set attribute value in spatial reference.
Definition: ogrspatialreference.cpp:2272
void OSRSetAxisMappingStrategy(OGRSpatialReferenceH hSRS, OSRAxisMappingStrategy strategy)
Set the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:12005
@ OAO_Down
Down (to Earth center)
Definition: ogr_srs_api.h:58
const int * OSRGetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int *pnCount)
Return the data axis to SRS axis mapping.
Definition: ogrspatialreference.cpp:12042
OGRErr OSRMorphToESRI(OGRSpatialReferenceH)
Convert in place to ESRI WKT format.
Definition: ogrspatialreference.cpp:11201
OGRSpatialReferenceH OSRClone(OGRSpatialReferenceH)
Make a duplicate of this OGRSpatialReference.
Definition: ogrspatialreference.cpp:1403
OGRErr OSRImportFromMICoordSys(OGRSpatialReferenceH, const char *)
Import Mapinfo style CoordSys definition.
Definition: ogrspatialreference.cpp:10787
void OSRSetPROJEnableNetwork(int enabled)
Enable or disable PROJ networking capabilities.
Definition: ogr_proj_p.cpp:513
OGRSpatialReferenceH OSRConvertToOtherProjection(OGRSpatialReferenceH hSRS, const char *pszTargetProjection, const char *const *papszOptions)
Convert to another equivalent projection.
Definition: ogrspatialreference.cpp:9621
OGRErr OSRSetIWMPolyconic(OGRSpatialReferenceH hSRS, double dfLat1, double dfLat2, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
International Map of the World Polyconic.
Definition: ogrspatialreference.cpp:6852
OGRErr OSRSetProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter value.
Definition: ogrspatialreference.cpp:5573
const char * OSRGetName(OGRSpatialReferenceH hSRS)
Return the CRS name.
Definition: ogrspatialreference.cpp:1356
@ OAO_West
West.
Definition: ogr_srs_api.h:56
OSRCRSInfo ** OSRGetCRSInfoListFromDatabase(const char *pszAuthName, const OSRCRSListParameters *params, int *pnOutResultCount)
Enumerate CRS objects from the database.
Definition: ogrspatialreference.cpp:12195
struct OGRCoordinateTransformationOptions * OGRCoordinateTransformationOptionsH
Coordinate transformation options.
Definition: ogr_srs_api.h:1022
OGRErr OSRAddGuessedTOWGS84(OGRSpatialReferenceH hSRS)
Try to add a a 3-parameter or 7-parameter Helmert transformation to WGS84.
Definition: ogrspatialreference.cpp:11508
@ OSR_CRS_TYPE_GEOGRAPHIC_3D
Geographic 3D CRS.
Definition: ogr_srs_api.h:953
void OSRDestroySpatialReference(OGRSpatialReferenceH)
OGRSpatialReference destructor.
Definition: ogrspatialreference.cpp:915
OGRErr OSRSetOrthographic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Orthographic.
Definition: ogrspatialreference.cpp:7273
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:12164
int OCTTransformEx(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, int *pabSuccess)
Transform an array of points.
Definition: ogrct.cpp:3655
@ OSR_CRS_TYPE_GEOCENTRIC
Geocentric CRS.
Definition: ogr_srs_api.h:955
OGRErr OSRSetEquirectangular2(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfPseudoStdParallel1, double dfFalseEasting, double dfFalseNorthing)
Equirectangular generalized form.
Definition: ogrspatialreference.cpp:6444
OGRCoordinateTransformationH OCTNewCoordinateTransformationEx(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS, OGRCoordinateTransformationOptionsH hOptions)
Create transformation object.
Definition: ogrct.cpp:1113
void OSRDestroyCRSInfoList(OSRCRSInfo **list)
Destroy the result returned by OSRGetCRSInfoListFromDatabase().
Definition: ogrspatialreference.cpp:12271
OGRErr OSRSetGnomonic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Gnomonic.
Definition: ogrspatialreference.cpp:6616
OGRErr OSRAutoIdentifyEPSG(OGRSpatialReferenceH hSRS)
Set EPSG authority info if possible.
Definition: ogr_fromepsg.cpp:426
OGRErr OSRImportFromProj4(OGRSpatialReferenceH, const char *)
Import PROJ coordinate string.
Definition: ogrspatialreference.cpp:10946
OGRErr OSRImportFromPanorama(OGRSpatialReferenceH, long, long, long, double *)
Import coordinate system from "Panorama" GIS projection definition.
Definition: ogr_srs_panorama.cpp:233
double OSRGetProjParm(OGRSpatialReferenceH hSRS, const char *pszParamName, double dfDefault, OGRErr *)
Fetch a projection parameter value.
Definition: ogrspatialreference.cpp:5745
int OCTTransformBounds(OGRCoordinateTransformationH hCT, const double xmin, const double ymin, const double xmax, const double ymax, double *out_xmin, double *out_ymin, double *out_xmax, double *out_ymax, const int densify_pts)
Transform boundary.
Definition: ogrct.cpp:3756
OGRErr OSRMorphFromESRI(OGRSpatialReferenceH)
Convert in place from ESRI WKT format.
Definition: ogrspatialreference.cpp:11251
void OSRSetCoordinateEpoch(OGRSpatialReferenceH hSRS, double dfCoordinateEpoch)
Set the coordinate epoch, as decimal year.
Definition: ogrspatialreference.cpp:12658
@ OSR_CRS_TYPE_VERTICAL
Vertical CRS.
Definition: ogr_srs_api.h:959
OGRErr OSRSetTPED(OGRSpatialReferenceH hSRS, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfFalseEasting, double dfFalseNorthing)
TPED (Two Point Equi Distant)
Definition: ogrspatialreference.cpp:6017
int OCTTransform4D(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, double *t, int *pabSuccess)
Transform an array of points.
Definition: ogrct.cpp:3683
OGRErr OSRSetAuthority(OGRSpatialReferenceH hSRS, const char *pszTargetKey, const char *pszAuthority, int nCode)
Set the authority for a node.
Definition: ogrspatialreference.cpp:8063
OGRErr OSRDemoteTo2D(OGRSpatialReferenceH hSRS, const char *pszName)
"Demote" a 3D CRS to a 2D CRS one.
Definition: ogrspatialreference.cpp:12465
void OSRCleanup(void)
Cleanup cached SRS related memory.
Definition: ogrspatialreference.cpp:10275
OGRErr OSRSetLinearUnits(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2631
OGRErr OSRExportToPROJJSON(OGRSpatialReferenceH hSRS, char **ppszReturn, const char *const *papszOptions)
Convert this SRS into PROJJSON format.
Definition: ogrspatialreference.cpp:1875
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:985
OSRAxisMappingStrategy
Data axis to CRS axis mapping strategy.
Definition: ogr_srs_api.h:658
@ OAO_East
East.
Definition: ogr_srs_api.h:55
struct OSRCRSListParameters OSRCRSListParameters
Structure to describe optional parameters to OSRGetCRSInfoListFromDatabase()
Definition: ogr_srs_api.h:1006
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:6674
OGRErr OSRSetLinearUnitsAndUpdateParameters(OGRSpatialReferenceH, const char *, double)
Set the linear units for the projection.
Definition: ogrspatialreference.cpp:2579
OGRErr OSRSetGEOS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfSatelliteHeight, double dfFalseEasting, double dfFalseNorthing)
GEOS - Geostationary Satellite View.
Definition: ogrspatialreference.cpp:6554
OGRErr OSRSetSOC(OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Swiss Oblique Cylindrical.
Definition: ogrspatialreference.cpp:7512
double OSRGetNormProjParm(OGRSpatialReferenceH hSRS, const char *pszParamName, double dfDefault, OGRErr *)
This function is the same as OGRSpatialReference::
Definition: ogrspatialreference.cpp:5811
int OSRDereference(OGRSpatialReferenceH)
Decrements the reference count by one.
Definition: ogrspatialreference.cpp:1062
OGRSpatialReferenceH OCTGetSourceCS(OGRCoordinateTransformationH hTransform)
Transformation's source coordinate system reference.
Definition: ogrct.cpp:1167
OGRErr OSRSetEckertIV(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert IV.
Definition: ogrspatialreference.cpp:6328
int OSRIsDerivedGeographic(OGRSpatialReferenceH)
Check if derived geographic coordinate system.
Definition: ogrspatialreference.cpp:8848
OGRErr OSRSetVDG(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
VanDerGrinten.
Definition: ogrspatialreference.cpp:7540
#define CPL_C_START
Macro to start a block of C symbols.
Definition: cpl_port.h:306
int OSRIsLocal(OGRSpatialReferenceH)
Check if local coordinate system.
Definition: ogrspatialreference.cpp:8884
int OCTTransform4DWithErrorCodes(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, double *t, int *panErrorCodes)
Transform an array of points.
Definition: ogrct.cpp:3711
OGRErr OSRSetGaussSchreiberTMercator(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Gauss Schreiber Transverse Mercator.
Definition: ogrspatialreference.cpp:6586
int OSRIsDynamic(OGRSpatialReferenceH)
Check if a CRS is a dynamic CRS.
Definition: ogrspatialreference.cpp:9056
const char * OSRGetAxis(OGRSpatialReferenceH hSRS, const char *pszTargetKey, int iAxis, OGRAxisOrientation *peOrientation)
Fetch the orientation of one axis.
Definition: ogrspatialreference.cpp:10587
void * OGRSpatialReferenceH
Opaque type for a spatial reference system.
Definition: ogr_api.h:81
int OSRReference(OGRSpatialReferenceH)
Increments the reference count by one.
Definition: ogrspatialreference.cpp:1022
OGRErr OSRSetProjCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:5382
OGRErr OSRSetPS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Polar Stereographic.
Definition: ogrspatialreference.cpp:7379
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition: ogr_api.h:83
double OSRGetTargetLinearUnits(OGRSpatialReferenceH, const char *, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:3056
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.
Definition: ogrspatialreference.cpp:9660
void OSRSetPROJSearchPaths(const char *const *papszPaths)
Set the search path(s) for PROJ resource files.
Definition: ogr_proj_p.cpp:428
double dfWestLongitudeDeg
Western-most longitude of the area of use, in degrees.
Definition: ogr_srs_api.h:987
@ OAMS_TRADITIONAL_GIS_ORDER
Traditional GIS order.
Definition: ogr_srs_api.h:660
OGRSpatialReferenceH OSRCloneGeogCS(OGRSpatialReferenceH)
Make a duplicate of the GEOGCS node of this OGRSpatialReference object.
Definition: ogrspatialreference.cpp:9209
double dfEastLongitudeDeg
Eastern-most longitude of the area of use, in degrees.
Definition: ogr_srs_api.h:991
OGRErr OSRSetIGH(OGRSpatialReferenceH hSRS)
Interrupted Goode Homolosine.
Definition: ogrspatialreference.cpp:6526
OGRErr OSRSetMC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Miller Cylindrical.
Definition: ogrspatialreference.cpp:7072
void * OGRSpatialReferenceH
Opaque type for a Spatial Reference object.
Definition: ogr_srs_api.h:450
OGRErr OSRImportFromPCI(OGRSpatialReferenceH hSRS, const char *, const char *, double *)
Import coordinate system from PCI projection definition.
Definition: ogr_srs_pci.cpp:142
@ OAMS_AUTHORITY_COMPLIANT
Compliant with the order mandated by the CRS authority.
Definition: ogr_srs_api.h:661
OGRErr OSRSetLAEA(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Azimuthal Equal-Area.
Definition: ogrspatialreference.cpp:6949
@ OAO_Other
Other.
Definition: ogr_srs_api.h:52
OGRSpatialReferenceH OSRNewSpatialReference(const char *)
Constructor.
Definition: ogrspatialreference.cpp:819
OGRErr OSRExportToProj4(OGRSpatialReferenceH, char **)
Export coordinate system in PROJ.4 legacy format.
Definition: ogrspatialreference.cpp:11032
OGRErr OSRSetDataAxisToSRSAxisMapping(OGRSpatialReferenceH hSRS, int nMappingSize, const int *panMapping)
Set a custom data axis to CRS axis mapping.
Definition: ogrspatialreference.cpp:12087
const char * OSRGetAuthorityName(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority name for a node.
Definition: ogrspatialreference.cpp:8332
OGRErr OSRSetProjection(OGRSpatialReferenceH, const char *)
Set a projection name.
Definition: ogrspatialreference.cpp:5440
@ OSR_CRS_TYPE_COMPOUND
Compound CRS.
Definition: ogr_srs_api.h:961
OGRErr OSRSetPolyconic(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Polyconic.
Definition: ogrspatialreference.cpp:7306
#define CPL_C_END
Macro to end a block of C symbols.
Definition: cpl_port.h:310
OGRErr OSRSetGeocCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible PROJCS name.
Definition: ogrspatialreference.cpp:5163
OGRErr OSRPromoteTo3D(OGRSpatialReferenceH hSRS, const char *pszName)
"Promotes" a 2D CRS to a 3D CRS one.
Definition: ogrspatialreference.cpp:12418
double OSRGetCoordinateEpoch(OGRSpatialReferenceH hSRS)
Get the coordinate epoch, as decimal year.
Definition: ogrspatialreference.cpp:12704
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:6890
OGRErr OSRExportToUSGS(OGRSpatialReferenceH, long *, long *, double **, long *)
Export coordinate system in USGS GCTP projection definition.
Definition: ogr_srs_usgs.cpp:786
OGRErr OSRSetMollweide(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Mollweide.
Definition: ogrspatialreference.cpp:7184
OGRErr OSRSetEquirectangular(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Equirectangular.
Definition: ogrspatialreference.cpp:6398
int OSRIsGeocentric(OGRSpatialReferenceH)
Check if geocentric coordinate system.
Definition: ogrspatialreference.cpp:8722
@ OAO_Up
Up (to space)
Definition: ogr_srs_api.h:57
OGRErr OSRSetVerticalPerspective(OGRSpatialReferenceH hSRS, double dfTopoOriginLat, double dfTopoOriginLon, double dfTopoOriginHeight, double dfViewPointHeight, double dfFalseEasting, double dfFalseNorthing)
Vertical Perspective / Near-sided Perspective.
Definition: ogrspatialreference.cpp:7851
OGRErr OSRGetTOWGS84(OGRSpatialReferenceH hSRS, double *, int)
Fetch TOWGS84 parameters, if available.
Definition: ogrspatialreference.cpp:10048
double OSRGetSemiMinor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi minor axis.
Definition: ogrspatialreference.cpp:5013
OGRErr OSRSetAngularUnits(OGRSpatialReferenceH, const char *, double)
Set the angular units for the geographic coordinate system.
Definition: ogrspatialreference.cpp:2371
@ OSR_CRS_TYPE_OTHER
Other.
Definition: ogr_srs_api.h:963
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:10704
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:3291
OGRErr OSRSetTMSO(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator (South Oriented)
Definition: ogrspatialreference.cpp:5986
int OSRHasPointMotionOperation(OGRSpatialReferenceH)
Check if a CRS has at least an associated point motion operation.
Definition: ogrspatialreference.cpp:9114
OGRErr OSRExportToWktEx(OGRSpatialReferenceH, char **ppszResult, const char *const *papszOptions)
Convert this SRS into WKT format.
Definition: ogrspatialreference.cpp:1798
OGRErr OSRExportToPCI(OGRSpatialReferenceH, char **, char **, double **)
Export coordinate system in PCI projection definition.
Definition: ogr_srs_pci.cpp:710
void OCTDestroyCoordinateTransformationOptions(OGRCoordinateTransformationOptionsH)
Destroy coordinate transformation options.
Definition: ogrct.cpp:359
int OCTCoordinateTransformationOptionsSetOperation(OGRCoordinateTransformationOptionsH hOptions, const char *pszCO, int bReverseCO)
Sets a coordinate operation.
Definition: ogrct.cpp:505
double OSRGetLinearUnits(OGRSpatialReferenceH, char **)
Fetch linear projection units.
Definition: ogrspatialreference.cpp:2829
OGRErr OSRSetEckert(OGRSpatialReferenceH hSRS, int nVariation, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert I-VI.
Definition: ogrspatialreference.cpp:6299
OGRErr OSRValidate(OGRSpatialReferenceH)
Validate SRS tokens.
Definition: ogrspatialreference.cpp:2148
OGRErr OSRSetTM(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator.
Definition: ogrspatialreference.cpp:5897
double OSRCalcInvFlattening(double dfSemiMajor, double dfSemiMinor)
Compute inverse flattening from semi-major and semi-minor axis.
Definition: ogrspatialreference.cpp:10849
OGRErr OSRSetCompoundCS(OGRSpatialReferenceH hSRS, const char *pszName, OGRSpatialReferenceH hHorizSRS, OGRSpatialReferenceH hVertSRS)
Setup a compound coordinate system.
Definition: ogrspatialreference.cpp:5314
OGRAxisOrientation
Axis orientations (corresponds to CS_AxisOrientationEnum).
Definition: ogr_srs_api.h:50
int OSRIsGeographic(OGRSpatialReferenceH)
Check if geographic coordinate system.
Definition: ogrspatialreference.cpp:8800
OGRErr OSRImportFromDict(OGRSpatialReferenceH, const char *, const char *)
Read SRS from WKT dictionary.
Definition: ogr_srs_dict.cpp:173
OGRSpatialReferenceH OCTGetTargetCS(OGRCoordinateTransformationH hTransform)
Transformation's target coordinate system reference.
Definition: ogrct.cpp:1194
OGRErr OSRExportToXML(OGRSpatialReferenceH, char **, const char *)
Export coordinate system in XML format.
Definition: ogr_srs_xml.cpp:711
int OCTCoordinateTransformationOptionsSetOnlyBest(OGRCoordinateTransformationOptionsH hOptions, bool bOnlyBest)
Sets whether only the "best" operation(s) should be used.
Definition: ogrct.cpp:646
int OSREPSGTreatsAsNorthingEasting(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this projected coordinate system should be treated as having...
Definition: ogrspatialreference.cpp:11780
OGRErr OSRSetSCH(OGRSpatialReferenceH hSRS, double dfPegLat, double dfPegLong, double dfPegHeading, double dfPegHgt)
Spherical, Cross-track, Height.
Definition: ogrspatialreference.cpp:7809
double dfSouthLatitudeDeg
Southern-most latitude of the area of use, in degrees.
Definition: ogr_srs_api.h:989
double OSRCalcSemiMinorFromInvFlattening(double dfSemiMajor, double dfInvFlattening)
Compute semi-minor axis from semi-major axis and inverse flattening.
Definition: ogrspatialreference.cpp:10877
OGRCoordinateTransformationH OCTGetInverse(OGRCoordinateTransformationH hTransform)
Inverse transformation object.
Definition: ogrct.cpp:1219
char * pszAuthName
Authority name.
Definition: ogr_srs_api.h:974
void OCTDestroyCoordinateTransformation(OGRCoordinateTransformationH)
OGRCoordinateTransformation destructor.
Definition: ogrct.cpp:868
OGRErr OSRSetVertCS(OGRSpatialReferenceH hSRS, const char *pszVertCSName, const char *pszVertDatumName, int nVertDatumType)
Setup the vertical coordinate system.
Definition: ogrspatialreference.cpp:5238
@ OSR_CRS_TYPE_GEOGRAPHIC_2D
Geographic 2D CRS.
Definition: ogr_srs_api.h:951
const char * OSRGetAuthorityCode(OGRSpatialReferenceH hSRS, const char *pszTargetKey)
Get the authority code for a node.
Definition: ogrspatialreference.cpp:8198
char ** OSRGetPROJSearchPaths(void)
Get the search path(s) for PROJ resource files.
Definition: ogr_proj_p.cpp:446
OGRErr OSRSetTOWGS84(OGRSpatialReferenceH hSRS, double, double, double, double, double, double, double)
Set the Bursa-Wolf conversion to WGS84.
Definition: ogrspatialreference.cpp:9994
int OCTCoordinateTransformationOptionsSetBallparkAllowed(OGRCoordinateTransformationOptionsH hOptions, int bAllowBallpark)
Sets whether ballpark transformations are allowed.
Definition: ogrct.cpp:592
int OSREPSGTreatsAsLatLong(OGRSpatialReferenceH hSRS)
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as havin...
Definition: ogrspatialreference.cpp:11686
OSRCRSType
Type of Coordinate Reference System (CRS).
Definition: ogr_srs_api.h:948
int OSRIsSame(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:9469
int OGRErr
Type for a OGR error.
Definition: ogr_core.h:378
void OSRRelease(OGRSpatialReferenceH)
Decrements the reference count by one, and destroy if zero.
Definition: ogrspatialreference.cpp:1110
OGRErr OSRSetWagner(OGRSpatialReferenceH hSRS, int nVariation, double dfCenterLat, double dfFalseEasting, double dfFalseNorthing)
Wagner I – VII.
Definition: ogrspatialreference.cpp:7755
OGRErr OSRCopyGeogCSFrom(OGRSpatialReferenceH hSRS, const OGRSpatialReferenceH hSrcSRS)
Copy GEOGCS from another OGRSpatialReference.
Definition: ogrspatialreference.cpp:3571
OGRErr OSRSetNormProjParm(OGRSpatialReferenceH, const char *, double)
Set a projection parameter with a normalized value.
Definition: ogrspatialreference.cpp:5869
char * pszProjectionMethod
Name of the projection method for a projected CRS.
Definition: ogr_srs_api.h:998
OGRErr OSRSetRobinson(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Robinson.
Definition: ogrspatialreference.cpp:7408
OGRErr OSRSetWellKnownGeogCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set a GeogCS based on well known name.
Definition: ogrspatialreference.cpp:3455
char * pszName
Object name.
Definition: ogr_srs_api.h:978
OGRErr OSRExportToPanorama(OGRSpatialReferenceH, long *, long *, long *, long *, double *)
Export coordinate system in "Panorama" GIS projection definition.
Definition: ogr_srs_panorama.cpp:809
void OSRGetPROJVersion(int *pnMajor, int *pnMinor, int *pnPatch)
Get the PROJ version.
Definition: ogr_proj_p.cpp:570
OGRCoordinateTransformationH OCTNewCoordinateTransformation(OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS)
Create transformation object.
Definition: ogrct.cpp:1060
OGRErr OSRImportFromOzi(OGRSpatialReferenceH, const char *const *)
Import coordinate system from OziExplorer projection definition.
Definition: ogr_srs_ozi.cpp:66
OGRErr OSRSetFromUserInput(OGRSpatialReferenceH hSRS, const char *)
Set spatial reference from various text formats.
Definition: ogrspatialreference.cpp:4078
int OSRGetAxesCount(OGRSpatialReferenceH hSRS)
Return the number of axis of the coordinate system of the CRS.
Definition: ogrspatialreference.cpp:10354
OGRErr OSRSetLCCB(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic (Belgium)
Definition: ogrspatialreference.cpp:7041
double OSRGetPrimeMeridian(OGRSpatialReferenceH, char **)
Fetch prime meridian info.
Definition: ogrspatialreference.cpp:3170
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:6732
double OSRGetAngularUnits(OGRSpatialReferenceH, char **)
Fetch angular geographic coordinate system units.
Definition: ogrspatialreference.cpp:2503
OGRErr OSRImportFromESRI(OGRSpatialReferenceH, char **)
Import coordinate system from ESRI .prj format(s).
Definition: ogr_srs_esri.cpp:118
OGRErr OSRStripVertical(OGRSpatialReferenceH)
Convert a compound cs into a horizontal CS.
Definition: ogrspatialreference.cpp:8460
const char * OSRAxisEnumToName(OGRAxisOrientation eOrientation)
Return the string representation for the OGRAxisOrientation enumeration.
Definition: ogrspatialreference.cpp:10608
int OSRIsSameGeogCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the GeogCS'es match?
Definition: ogrspatialreference.cpp:9293
OGRErr OSRExportToMICoordSys(OGRSpatialReferenceH, char **)
Export coordinate system in Mapinfo style CoordSys format.
Definition: ogrspatialreference.cpp:10731
OGRErr OSRSetQSC(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong)
Quadrilateralized Spherical Cube.
Definition: ogrspatialreference.cpp:7782
OGRErr OSRExportToPrettyWkt(OGRSpatialReferenceH, char **, int)
Convert this SRS into a nicely formatted WKT 1 string for display to a person.
Definition: ogrspatialreference.cpp:1483
OGRErr OSRSetTargetLinearUnits(OGRSpatialReferenceH, const char *, const char *, double)
Set the linear units for the target node.
Definition: ogrspatialreference.cpp:2754
OGRErr OSRSetLCC(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic.
Definition: ogrspatialreference.cpp:6980
OGRErr OSRSetACEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Albers Conic Equal Area.
Definition: ogrspatialreference.cpp:6080
OGRErr OSRSetSinusoidal(OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Sinusoidal.
Definition: ogrspatialreference.cpp:7436
int OSRIsVertical(OGRSpatialReferenceH)
Check if vertical coordinate system.
Definition: ogrspatialreference.cpp:8948
OGRErr OSRSetAE(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Azimuthal Equidistant.
Definition: ogrspatialreference.cpp:6109
int OSRGetUTMZone(OGRSpatialReferenceH hSRS, int *pbNorth)
Get utm zone information.
Definition: ogrspatialreference.cpp:7681
OGRErr OSRSetEckertVI(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Eckert VI.
Definition: ogrspatialreference.cpp:6356
int OSRGetPROJEnableNetwork(void)
Get whether PROJ networking capabilities are enabled.
Definition: ogr_proj_p.cpp:542
int OCTCoordinateTransformationOptionsSetDesiredAccuracy(OGRCoordinateTransformationOptionsH hOptions, double dfAccuracy)
Sets the desired accuracy for coordinate operations.
Definition: ogrct.cpp:551
int OSRIsSameEx(OGRSpatialReferenceH, OGRSpatialReferenceH, const char *const *papszOptions)
Do these two spatial references describe the same system ?
Definition: ogrspatialreference.cpp:9487
OGRErr OSRSetGH(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Goode Homolosine.
Definition: ogrspatialreference.cpp:6500
int OSRIsSameVertCS(OGRSpatialReferenceH, OGRSpatialReferenceH)
Do the VertCS'es match?
Definition: ogrspatialreference.cpp:9355
OGRCoordinateTransformationH OCTClone(OGRCoordinateTransformationH hTransform)
Clone transformation object.
Definition: ogrct.cpp:1140
OGRErr OSRImportFromUSGS(OGRSpatialReferenceH, long, long, double *, long)
Import coordinate system from USGS projection definition.
Definition: ogr_srs_usgs.cpp:162
OGRErr OSRSetBonne(OGRSpatialReferenceH hSRS, double dfStandardParallel, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Bonne.
Definition: ogrspatialreference.cpp:6138
OGRErr OSRExportToWkt(OGRSpatialReferenceH, char **)
Convert this SRS into WKT 1 format.
Definition: ogrspatialreference.cpp:1775
OGRErr OSRImportFromUrl(OGRSpatialReferenceH, const char *)
Set spatial reference from a URL.
Definition: ogrspatialreference.cpp:4186
void OSRSetPROJAuxDbPaths(const char *const *papszPaths)
Set list of PROJ auxiliary database filenames.
Definition: ogr_proj_p.cpp:475
OGRErr OSRExportToERM(OGRSpatialReferenceH, char *, char *, char *)
Convert coordinate system to ERMapper format.
Definition: ogr_srs_erm.cpp:161
OGRErr OSRSetLCC1SP(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Lambert Conformal Conic 1SP.
Definition: ogrspatialreference.cpp:7010
OGRErr OSRSetGS(OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Gall Stereograpic.
Definition: ogrspatialreference.cpp:6473
char * pszAreaName
Name of the area of use.
Definition: ogr_srs_api.h:995
void * OGRCoordinateTransformationH
Opaque type for a coordinate transformation object.
Definition: ogr_srs_api.h:452
OGRErr OSRSetLocalCS(OGRSpatialReferenceH hSRS, const char *pszName)
Set the user visible LOCAL_CS name.
Definition: ogrspatialreference.cpp:5067
OGRErr OSRSetStatePlaneWithUnits(OGRSpatialReferenceH hSRS, int nZone, int bNAD83, const char *pszOverrideUnitName, double dfOverrideUnit)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:264
OGRErr OSRSetCS(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
Cassini-Soldner.
Definition: ogrspatialreference.cpp:6196
OGRErr OSRImportFromERM(OGRSpatialReferenceH, const char *, const char *, const char *)
Create OGR WKT from ERMapper projection definitions.
Definition: ogr_srs_erm.cpp:53
double dfNorthLatitudeDeg
Northern-most latitude of the area of use, in degrees.
Definition: ogr_srs_api.h:993
OGRErr OSRImportFromWkt(OGRSpatialReferenceH, char **)
Import from WKT string.
Definition: ogrspatialreference.cpp:2169
double OSRGetSemiMajor(OGRSpatialReferenceH, OGRErr *)
Get spheroid semi major axis.
Definition: ogrspatialreference.cpp:4856
void OSRFreeSRSArray(OGRSpatialReferenceH *pahSRS)
Free return of OSRIdentifyMatches()
Definition: ogrspatialreference.cpp:9684
OGRErr OSRSetStatePlane(OGRSpatialReferenceH hSRS, int nZone, int bNAD83)
Set State Plane projection definition.
Definition: ogr_fromepsg.cpp:245
int OSRIsCompound(OGRSpatialReferenceH)
Check if the coordinate system is compound.
Definition: ogrspatialreference.cpp:8619
OGRErr OSRSetTMVariant(OGRSpatialReferenceH hSRS, const char *pszVariantName, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Transverse Mercator variant.
Definition: ogrspatialreference.cpp:5933
OSRAxisMappingStrategy OSRGetAxisMappingStrategy(OGRSpatialReferenceH hSRS)
Return the data axis to CRS axis mapping strategy.
Definition: ogrspatialreference.cpp:11966
int OCTCoordinateTransformationOptionsSetAreaOfInterest(OGRCoordinateTransformationOptionsH hOptions, double dfWestLongitudeDeg, double dfSouthLatitudeDeg, double dfEastLongitudeDeg, double dfNorthLatitudeDeg)
Sets an area of interest.
Definition: ogrct.cpp:430
OGRErr OSRImportFromXML(OGRSpatialReferenceH, const char *)
Import coordinate system from XML format (GML only currently).
Definition: ogr_srs_xml.cpp:1257
@ OAO_South
South.
Definition: ogr_srs_api.h:54
OGRCoordinateTransformationOptionsH OCTNewCoordinateTransformationOptions(void)
Create coordinate transformation options.
Definition: ogrct.cpp:346
int OSRIsProjected(OGRSpatialReferenceH)
Check if projected coordinate system.
Definition: ogrspatialreference.cpp:8679
int OCTTransform(OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z)
Transform an array of points.
Definition: ogrct.cpp:3631
OGRErr OSRSetOS(OGRSpatialReferenceH hSRS, double dfOriginLat, double dfCMeridian, double dfScale, double dfFalseEasting, double dfFalseNorthing)
Oblique Stereographic.
Definition: ogrspatialreference.cpp:7243
int bDeprecated
Whether the object is deprecated.
Definition: ogr_srs_api.h:982
OGRErr OSRImportFromEPSG(OGRSpatialReferenceH, int)
Initialize SRS based on EPSG geographic, projected or vertical CRS code.
Definition: ogrspatialreference.cpp:11576
OGRErr OSRSetCEA(OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing)
Cylindrical Equal Area.
Definition: ogrspatialreference.cpp:6168
OGRErr OSRSetNZMG(OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing)
New Zealand Map Grid.
Definition: ogrspatialreference.cpp:7213