GDAL
|
C spatial reference system services and defines. More...
#include "ogr_core.h"
Go to the source code of this file.
Typedefs | |
typedef void * | OGRSpatialReferenceH |
typedef void * | OGRCoordinateTransformationH |
Functions | |
const char * | OSRAxisEnumToName (OGRAxisOrientation eOrientation) |
Return the string representation for the OGRAxisOrientation enumeration. More... | |
OGRSpatialReferenceH | OSRNewSpatialReference (const char *) |
Constructor. More... | |
OGRSpatialReferenceH | OSRCloneGeogCS (OGRSpatialReferenceH) |
Make a duplicate of the GEOGCS node of this OGRSpatialReference object. More... | |
OGRSpatialReferenceH | OSRClone (OGRSpatialReferenceH) |
Make a duplicate of this OGRSpatialReference. More... | |
void | OSRDestroySpatialReference (OGRSpatialReferenceH) |
OGRSpatialReference destructor. More... | |
int | OSRReference (OGRSpatialReferenceH) |
Increments the reference count by one. More... | |
int | OSRDereference (OGRSpatialReferenceH) |
Decrements the reference count by one. More... | |
void | OSRRelease (OGRSpatialReferenceH) |
Decrements the reference count by one, and destroy if zero. More... | |
OGRErr | OSRValidate (OGRSpatialReferenceH) |
Validate SRS tokens. More... | |
OGRErr | OSRFixupOrdering (OGRSpatialReferenceH) |
Correct parameter ordering to match CT Specification. More... | |
OGRErr | OSRFixup (OGRSpatialReferenceH) |
Fixup as needed. More... | |
OGRErr | OSRStripCTParms (OGRSpatialReferenceH) |
Strip OGC CT Parameters. More... | |
OGRErr | OSRImportFromEPSG (OGRSpatialReferenceH, int) |
Initialize SRS based on EPSG GCS or PCS code. More... | |
OGRErr | OSRImportFromEPSGA (OGRSpatialReferenceH, int) |
Initialize SRS based on EPSG GCS or PCS code. More... | |
OGRErr | OSRImportFromWkt (OGRSpatialReferenceH, char **) |
Import from WKT string. More... | |
OGRErr | OSRImportFromProj4 (OGRSpatialReferenceH, const char *) |
Import PROJ.4 coordinate string. More... | |
OGRErr | OSRImportFromESRI (OGRSpatialReferenceH, char **) |
Import coordinate system from ESRI .prj format(s). More... | |
OGRErr | OSRImportFromPCI (OGRSpatialReferenceH hSRS, const char *, const char *, double *) |
Import coordinate system from PCI projection definition. More... | |
OGRErr | OSRImportFromUSGS (OGRSpatialReferenceH, long, long, double *, long) |
Import coordinate system from USGS projection definition. More... | |
OGRErr | OSRImportFromXML (OGRSpatialReferenceH, const char *) |
Import coordinate system from XML format (GML only currently). More... | |
OGRErr | OSRImportFromDict (OGRSpatialReferenceH, const char *, const char *) |
OGRErr | OSRImportFromPanorama (OGRSpatialReferenceH, long, long, long, double *) |
OGRErr | OSRImportFromOzi (OGRSpatialReferenceH, const char *const *) |
Import coordinate system from OziExplorer projection definition. More... | |
OGRErr | OSRImportFromMICoordSys (OGRSpatialReferenceH, const char *) |
Import Mapinfo style CoordSys definition. More... | |
OGRErr | OSRImportFromERM (OGRSpatialReferenceH, const char *, const char *, const char *) |
Create OGR WKT from ERMapper projection definitions. More... | |
OGRErr | OSRImportFromUrl (OGRSpatialReferenceH, const char *) |
Set spatial reference from a URL. More... | |
OGRErr | OSRExportToWkt (OGRSpatialReferenceH, char **) |
Convert this SRS into WKT format. More... | |
OGRErr | OSRExportToPrettyWkt (OGRSpatialReferenceH, char **, int) |
Convert this SRS into a nicely formatted WKT string for display to a person. More... | |
OGRErr | OSRExportToProj4 (OGRSpatialReferenceH, char **) |
Export coordinate system in PROJ.4 format. More... | |
OGRErr | OSRExportToPCI (OGRSpatialReferenceH, char **, char **, double **) |
Export coordinate system in PCI projection definition. More... | |
OGRErr | OSRExportToUSGS (OGRSpatialReferenceH, long *, long *, double **, long *) |
Export coordinate system in USGS GCTP projection definition. More... | |
OGRErr | OSRExportToXML (OGRSpatialReferenceH, char **, const char *) |
Export coordinate system in XML format. More... | |
OGRErr | OSRExportToPanorama (OGRSpatialReferenceH, long *, long *, long *, long *, double *) |
OGRErr | OSRExportToMICoordSys (OGRSpatialReferenceH, char **) |
Export coordinate system in Mapinfo style CoordSys format. More... | |
OGRErr | OSRExportToERM (OGRSpatialReferenceH, char *, char *, char *) |
Convert coordinate system to ERMapper format. More... | |
OGRErr | OSRMorphToESRI (OGRSpatialReferenceH) |
Convert in place to ESRI WKT format. More... | |
OGRErr | OSRMorphFromESRI (OGRSpatialReferenceH) |
Convert in place from ESRI WKT format. More... | |
OGRErr | OSRSetAttrValue (OGRSpatialReferenceH hSRS, const char *pszNodePath, const char *pszNewNodeValue) |
Set attribute value in spatial reference. More... | |
const char * | OSRGetAttrValue (OGRSpatialReferenceH hSRS, const char *pszName, int iChild) |
Fetch indicated attribute of named node. More... | |
OGRErr | OSRSetAngularUnits (OGRSpatialReferenceH, const char *, double) |
Set the angular units for the geographic coordinate system. More... | |
double | OSRGetAngularUnits (OGRSpatialReferenceH, char **) |
Fetch angular geographic coordinate system units. More... | |
OGRErr | OSRSetLinearUnits (OGRSpatialReferenceH, const char *, double) |
Set the linear units for the projection. More... | |
OGRErr | OSRSetTargetLinearUnits (OGRSpatialReferenceH, const char *, const char *, double) |
Set the linear units for the target node. More... | |
OGRErr | OSRSetLinearUnitsAndUpdateParameters (OGRSpatialReferenceH, const char *, double) |
Set the linear units for the projection. More... | |
double | OSRGetLinearUnits (OGRSpatialReferenceH, char **) |
Fetch linear projection units. More... | |
double | OSRGetTargetLinearUnits (OGRSpatialReferenceH, const char *, char **) |
Fetch linear projection units. More... | |
double | OSRGetPrimeMeridian (OGRSpatialReferenceH, char **) |
Fetch prime meridian info. More... | |
int | OSRIsGeographic (OGRSpatialReferenceH) |
Check if geographic coordinate system. More... | |
int | OSRIsLocal (OGRSpatialReferenceH) |
Check if local coordinate system. More... | |
int | OSRIsProjected (OGRSpatialReferenceH) |
Check if projected coordinate system. More... | |
int | OSRIsCompound (OGRSpatialReferenceH) |
Check if the coordinate system is compound. More... | |
int | OSRIsGeocentric (OGRSpatialReferenceH) |
Check if geocentric coordinate system. More... | |
int | OSRIsVertical (OGRSpatialReferenceH) |
Check if vertical coordinate system. More... | |
int | OSRIsSameGeogCS (OGRSpatialReferenceH, OGRSpatialReferenceH) |
Do the GeogCS'es match? More... | |
int | OSRIsSameVertCS (OGRSpatialReferenceH, OGRSpatialReferenceH) |
Do the VertCS'es match? More... | |
int | OSRIsSame (OGRSpatialReferenceH, OGRSpatialReferenceH) |
Do these two spatial references describe the same system ? More... | |
OGRErr | OSRSetLocalCS (OGRSpatialReferenceH hSRS, const char *pszName) |
Set the user visible LOCAL_CS name. More... | |
OGRErr | OSRSetProjCS (OGRSpatialReferenceH hSRS, const char *pszName) |
Set the user visible PROJCS name. More... | |
OGRErr | OSRSetGeocCS (OGRSpatialReferenceH hSRS, const char *pszName) |
Set the user visible PROJCS name. More... | |
OGRErr | OSRSetWellKnownGeogCS (OGRSpatialReferenceH hSRS, const char *pszName) |
Set a GeogCS based on well known name. More... | |
OGRErr | OSRSetFromUserInput (OGRSpatialReferenceH hSRS, const char *) |
Set spatial reference from various text formats. More... | |
OGRErr | OSRCopyGeogCSFrom (OGRSpatialReferenceH hSRS, const OGRSpatialReferenceH hSrcSRS) |
Copy GEOGCS from another OGRSpatialReference. More... | |
OGRErr | OSRSetTOWGS84 (OGRSpatialReferenceH hSRS, double, double, double, double, double, double, double) |
Set the Bursa-Wolf conversion to WGS84. More... | |
OGRErr | OSRGetTOWGS84 (OGRSpatialReferenceH hSRS, double *, int) |
Fetch TOWGS84 parameters, if available. More... | |
OGRErr | OSRSetCompoundCS (OGRSpatialReferenceH hSRS, const char *pszName, OGRSpatialReferenceH hHorizSRS, OGRSpatialReferenceH hVertSRS) |
Setup a compound coordinate system. More... | |
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. More... | |
OGRErr | OSRSetVertCS (OGRSpatialReferenceH hSRS, const char *pszVertCSName, const char *pszVertDatumName, int nVertDatumType) |
Setup the vertical coordinate system. More... | |
double | OSRGetSemiMajor (OGRSpatialReferenceH, OGRErr *) |
Get spheroid semi major axis. More... | |
double | OSRGetSemiMinor (OGRSpatialReferenceH, OGRErr *) |
Get spheroid semi minor axis. More... | |
double | OSRGetInvFlattening (OGRSpatialReferenceH, OGRErr *) |
Get spheroid inverse flattening. More... | |
OGRErr | OSRSetAuthority (OGRSpatialReferenceH hSRS, const char *pszTargetKey, const char *pszAuthority, int nCode) |
Set the authority for a node. More... | |
const char * | OSRGetAuthorityCode (OGRSpatialReferenceH hSRS, const char *pszTargetKey) |
Get the authority code for a node. More... | |
const char * | OSRGetAuthorityName (OGRSpatialReferenceH hSRS, const char *pszTargetKey) |
Get the authority name for a node. More... | |
OGRErr | OSRSetProjection (OGRSpatialReferenceH, const char *) |
Set a projection name. More... | |
OGRErr | OSRSetProjParm (OGRSpatialReferenceH, const char *, double) |
Set a projection parameter value. More... | |
double | OSRGetProjParm (OGRSpatialReferenceH hSRS, const char *pszParmName, double dfDefault, OGRErr *) |
Fetch a projection parameter value. More... | |
OGRErr | OSRSetNormProjParm (OGRSpatialReferenceH, const char *, double) |
Set a projection parameter with a normalized value. More... | |
double | OSRGetNormProjParm (OGRSpatialReferenceH hSRS, const char *pszParmName, double dfDefault, OGRErr *) |
This function is the same as OGRSpatialReference:: More... | |
OGRErr | OSRSetUTM (OGRSpatialReferenceH hSRS, int nZone, int bNorth) |
Set UTM projection definition. More... | |
int | OSRGetUTMZone (OGRSpatialReferenceH hSRS, int *pbNorth) |
Get utm zone information. More... | |
OGRErr | OSRSetStatePlane (OGRSpatialReferenceH hSRS, int nZone, int bNAD83) |
Set State Plane projection definition. More... | |
OGRErr | OSRSetStatePlaneWithUnits (OGRSpatialReferenceH hSRS, int nZone, int bNAD83, const char *pszOverrideUnitName, double dfOverrideUnit) |
Set State Plane projection definition. More... | |
OGRErr | OSRAutoIdentifyEPSG (OGRSpatialReferenceH hSRS) |
Set EPSG authority info if possible. More... | |
int | OSREPSGTreatsAsLatLong (OGRSpatialReferenceH hSRS) |
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as having lat/long coordinate ordering. More... | |
int | OSREPSGTreatsAsNorthingEasting (OGRSpatialReferenceH hSRS) |
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as having northing/easting coordinate ordering. More... | |
const char * | OSRGetAxis (OGRSpatialReferenceH hSRS, const char *pszTargetKey, int iAxis, OGRAxisOrientation *peOrientation) |
Fetch the orientation of one axis. More... | |
OGRErr | OSRSetAxes (OGRSpatialReferenceH hSRS, const char *pszTargetKey, const char *pszXAxisName, OGRAxisOrientation eXAxisOrientation, const char *pszYAxisName, OGRAxisOrientation eYAxisOrientation) |
Set the axes for a coordinate system. More... | |
OGRErr | OSRSetACEA (OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Albers Conic Equal Area. | |
OGRErr | OSRSetAE (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Azimuthal Equidistant. | |
OGRErr | OSRSetBonne (OGRSpatialReferenceH hSRS, double dfStandardParallel, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
Bonne. | |
OGRErr | OSRSetCEA (OGRSpatialReferenceH hSRS, double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
Cylindrical Equal Area. | |
OGRErr | OSRSetCS (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Cassini-Soldner. | |
OGRErr | OSRSetEC (OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Equidistant Conic. | |
OGRErr | OSRSetEckert (OGRSpatialReferenceH hSRS, int nVariation, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
Eckert I-VI. | |
OGRErr | OSRSetEckertIV (OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
Eckert IV. | |
OGRErr | OSRSetEckertVI (OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
Eckert VI. | |
OGRErr | OSRSetEquirectangular (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Equirectangular. | |
OGRErr | OSRSetEquirectangular2 (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfPseudoStdParallel1, double dfFalseEasting, double dfFalseNorthing) |
Equirectangular generalized form. | |
OGRErr | OSRSetGS (OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
Gall Stereograpic. | |
OGRErr | OSRSetGH (OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
Goode Homolosine. | |
OGRErr | OSRSetIGH (OGRSpatialReferenceH hSRS) |
Interrupted Goode Homolosine. | |
OGRErr | OSRSetGEOS (OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfSatelliteHeight, double dfFalseEasting, double dfFalseNorthing) |
GEOS - Geostationary Satellite View. | |
OGRErr | OSRSetGaussSchreiberTMercator (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
Gauss Schreiber Transverse Mercator. | |
OGRErr | OSRSetGnomonic (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Gnomonic. | |
OGRErr | OSRSetOM (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfRectToSkew, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
Oblique Mercator (aka HOM (variant B) | |
OGRErr | OSRSetHOM (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfRectToSkew, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
Hotine Oblique Mercator using azimuth angle. More... | |
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. More... | |
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. More... | |
OGRErr | OSRSetIWMPolyconic (OGRSpatialReferenceH hSRS, double dfLat1, double dfLat2, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
International Map of the World Polyconic. | |
OGRErr | OSRSetKrovak (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfPseudoStdParallelLat, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
Krovak Oblique Conic Conformal. | |
OGRErr | OSRSetLAEA (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Lambert Azimuthal Equal-Area. | |
OGRErr | OSRSetLCC (OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Lambert Conformal Conic. | |
OGRErr | OSRSetLCC1SP (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
Lambert Conformal Conic 1SP. | |
OGRErr | OSRSetLCCB (OGRSpatialReferenceH hSRS, double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Lambert Conformal Conic (Belgium) | |
OGRErr | OSRSetMC (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Miller Cylindrical. | |
OGRErr | OSRSetMercator (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
Mercator. | |
OGRErr | OSRSetMercator2SP (OGRSpatialReferenceH hSRS, double dfStdP1, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | OSRSetMollweide (OGRSpatialReferenceH hSRS, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
Mollweide. | |
OGRErr | OSRSetNZMG (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
New Zealand Map Grid. | |
OGRErr | OSRSetOS (OGRSpatialReferenceH hSRS, double dfOriginLat, double dfCMeridian, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
Oblique Stereographic. | |
OGRErr | OSRSetOrthographic (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Orthographic. | |
OGRErr | OSRSetPolyconic (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Polyconic. | |
OGRErr | OSRSetPS (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
Polar Stereographic. | |
OGRErr | OSRSetRobinson (OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Robinson. | |
OGRErr | OSRSetSinusoidal (OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Sinusoidal. | |
OGRErr | OSRSetStereographic (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
Stereographic. | |
OGRErr | OSRSetSOC (OGRSpatialReferenceH hSRS, double dfLatitudeOfOrigin, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
Swiss Oblique Cylindrical. | |
OGRErr | OSRSetTM (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
Transverse Mercator. More... | |
OGRErr | OSRSetTMVariant (OGRSpatialReferenceH hSRS, const char *pszVariantName, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
Transverse Mercator variant. | |
OGRErr | OSRSetTMG (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
Tunesia Mining Grid. | |
OGRErr | OSRSetTMSO (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
Transverse Mercator (South Oriented) | |
OGRErr | OSRSetTPED (OGRSpatialReferenceH hSRS, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | OSRSetVDG (OGRSpatialReferenceH hSRS, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
VanDerGrinten. | |
OGRErr | OSRSetWagner (OGRSpatialReferenceH hSRS, int nVariation, double dfCenterLat, double dfFalseEasting, double dfFalseNorthing) |
Wagner I – VII. | |
OGRErr | OSRSetQSC (OGRSpatialReferenceH hSRS, double dfCenterLat, double dfCenterLong) |
Quadrilateralized Spherical Cube. | |
OGRErr | OSRSetSCH (OGRSpatialReferenceH hSRS, double dfPegLat, double dfPegLong, double dfPegHeading, double dfPegHgt) |
Spherical, Cross-track, Height. | |
double | OSRCalcInvFlattening (double dfSemiMajor, double dfSemiMinor) |
Compute inverse flattening from semi-major and semi-minor axis. More... | |
double | OSRCalcSemiMinorFromInvFlattening (double dfSemiMajor, double dfInvFlattening) |
Compute semi-minor axis from semi-major axis and inverse flattening. More... | |
void | OSRCleanup (void) |
Cleanup cached SRS related memory. More... | |
OGRCoordinateTransformationH | OCTNewCoordinateTransformation (OGRSpatialReferenceH hSourceSRS, OGRSpatialReferenceH hTargetSRS) |
Create transformation object. More... | |
void | OCTDestroyCoordinateTransformation (OGRCoordinateTransformationH) |
OGRCoordinateTransformation destructor. More... | |
int | OCTTransform (OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z) |
int | OCTTransformEx (OGRCoordinateTransformationH hCT, int nCount, double *x, double *y, double *z, int *pabSuccess) |
char * | OCTProj4Normalize (const char *pszProj4Src) |
void | OCTCleanupProjMutex (void) |
char ** | OPTGetProjectionMethods (void) |
Fetch list of possible projection methods. More... | |
char ** | OPTGetParameterList (const char *pszProjectionMethod, char **ppszUserName) |
Fetch the parameters for a given projection method. More... | |
int | OPTGetParameterInfo (const char *pszProjectionMethod, const char *pszParameterName, char **ppszUserName, char **ppszType, double *pdfDefaultValue) |
Fetch information about a single parameter of a projection method. More... | |
C spatial reference system services and defines.
See also: ogr_spatialref.h
void OCTDestroyCoordinateTransformation | ( | OGRCoordinateTransformationH | hCT | ) |
OGRCoordinateTransformation destructor.
This function is the same as OGRCoordinateTransformation::DestroyCT()
hCT | the object to delete |
OGRCoordinateTransformationH OCTNewCoordinateTransformation | ( | OGRSpatialReferenceH | hSourceSRS, |
OGRSpatialReferenceH | hTargetSRS | ||
) |
Create transformation object.
This is the same as the C++ function OGRCreateCoordinateTransformation().
Input spatial reference system objects are assigned by copy (calling clone() method) and no ownership transfer occurs.
OCTDestroyCoordinateTransformation() should be used to destroy transformation objects.
The PROJ.4 library must be available at run-time.
hSourceSRS | source spatial reference system. |
hTargetSRS | target spatial reference system. |
int OPTGetParameterInfo | ( | const char * | pszProjectionMethod, |
const char * | pszParameterName, | ||
char ** | ppszUserName, | ||
char ** | ppszType, | ||
double * | pdfDefaultValue | ||
) |
Fetch information about a single parameter of a projection method.
pszProjectionMethod | name of projection method for which the parameter applies. Not currently used, but in the future this could affect defaults. This is the internal projection method name, such as "Tranverse_Mercator". |
pszParameterName | name of the parameter to fetch information about. This is the internal name such as "central_meridian" (SRS_PP_CENTRAL_MERIDIAN). |
ppszUserName | location at which to return the user visible name for the parameter. This pointer may be NULL to skip the user name. The returned name should not be modified or freed. |
ppszType | location at which to return the parameter type for the parameter. This pointer may be NULL to skip. The returned type should not be modified or freed. The type values are described above. |
pdfDefaultValue | location at which to put the default value for this parameter. The pointer may be NULL. |
char** OPTGetParameterList | ( | const char * | pszProjectionMethod, |
char ** | ppszUserName | ||
) |
Fetch the parameters for a given projection method.
pszProjectionMethod | internal name of projection methods to fetch the parameters for, such as "Transverse_Mercator" (SRS_PT_TRANSVERSE_MERCATOR). |
ppszUserName | pointer in which to return a user visible name for the projection name. The returned string should not be modified or freed by the caller. Legal to pass in NULL if user name not required. |
char** OPTGetProjectionMethods | ( | void | ) |
Fetch list of possible projection methods.
OGRErr OSRAutoIdentifyEPSG | ( | OGRSpatialReferenceH | hSRS | ) |
Set EPSG authority info if possible.
This function is the same as OGRSpatialReference::AutoIdentifyEPSG().
const char* OSRAxisEnumToName | ( | OGRAxisOrientation | eOrientation | ) |
Return the string representation for the OGRAxisOrientation enumeration.
For example "NORTH" for OAO_North.
double OSRCalcInvFlattening | ( | double | dfSemiMajor, |
double | dfSemiMinor | ||
) |
Compute inverse flattening from semi-major and semi-minor axis.
dfSemiMajor | Semi-major axis length. |
dfSemiMinor | Semi-minor axis length. |
double OSRCalcSemiMinorFromInvFlattening | ( | double | dfSemiMajor, |
double | dfInvFlattening | ||
) |
Compute semi-minor axis from semi-major axis and inverse flattening.
dfSemiMajor | Semi-major axis length. |
dfInvFlattening | Inverse flattening or 0 for sphere. |
void OSRCleanup | ( | void | ) |
Cleanup cached SRS related memory.
This function will attempt to cleanup any cache spatial reference related information, such as cached tables of coordinate systems.
OGRSpatialReferenceH OSRClone | ( | OGRSpatialReferenceH | hSRS | ) |
Make a duplicate of this OGRSpatialReference.
This function is the same as OGRSpatialReference::Clone()
OGRSpatialReferenceH OSRCloneGeogCS | ( | OGRSpatialReferenceH | hSource | ) |
Make a duplicate of the GEOGCS node of this OGRSpatialReference object.
This function is the same as OGRSpatialReference::CloneGeogCS().
OGRErr OSRCopyGeogCSFrom | ( | OGRSpatialReferenceH | hSRS, |
const OGRSpatialReferenceH | hSrcSRS | ||
) |
Copy GEOGCS from another OGRSpatialReference.
This function is the same as OGRSpatialReference::CopyGeogCSFrom()
int OSRDereference | ( | OGRSpatialReferenceH | hSRS | ) |
Decrements the reference count by one.
This function is the same as OGRSpatialReference::Dereference()
void OSRDestroySpatialReference | ( | OGRSpatialReferenceH | hSRS | ) |
OGRSpatialReference destructor.
This function is the same as OGRSpatialReference::~OGRSpatialReference() and OGRSpatialReference::DestroySpatialReference()
hSRS | the object to delete |
int OSREPSGTreatsAsLatLong | ( | OGRSpatialReferenceH | hSRS | ) |
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as having lat/long coordinate ordering.
This function is the same as OGRSpatialReference::OSREPSGTreatsAsLatLong().
int OSREPSGTreatsAsNorthingEasting | ( | OGRSpatialReferenceH | hSRS | ) |
This function returns TRUE if EPSG feels this geographic coordinate system should be treated as having northing/easting coordinate ordering.
This function is the same as OGRSpatialReference::EPSGTreatsAsNorthingEasting().
OGRErr OSRExportToERM | ( | OGRSpatialReferenceH | hSRS, |
char * | pszProj, | ||
char * | pszDatum, | ||
char * | pszUnits | ||
) |
Convert coordinate system to ERMapper format.
This function is the same as OGRSpatialReference::exportToERM().
OGRErr OSRExportToMICoordSys | ( | OGRSpatialReferenceH | hSRS, |
char ** | ppszReturn | ||
) |
Export coordinate system in Mapinfo style CoordSys format.
This method is the equivalent of the C++ method OGRSpatialReference::exportToMICoordSys
OGRErr OSRExportToPCI | ( | OGRSpatialReferenceH | hSRS, |
char ** | ppszProj, | ||
char ** | ppszUnits, | ||
double ** | ppadfPrjParams | ||
) |
Export coordinate system in PCI projection definition.
This function is the same as OGRSpatialReference::exportToPCI().
OGRErr OSRExportToPrettyWkt | ( | OGRSpatialReferenceH | hSRS, |
char ** | ppszReturn, | ||
int | bSimplify | ||
) |
Convert this SRS into a nicely formatted WKT string for display to a person.
This function is the same as OGRSpatialReference::exportToPrettyWkt().
OGRErr OSRExportToProj4 | ( | OGRSpatialReferenceH | hSRS, |
char ** | ppszReturn | ||
) |
Export coordinate system in PROJ.4 format.
This function is the same as OGRSpatialReference::exportToProj4().
OGRErr OSRExportToUSGS | ( | OGRSpatialReferenceH | hSRS, |
long * | piProjSys, | ||
long * | piZone, | ||
double ** | ppadfPrjParams, | ||
long * | piDatum | ||
) |
Export coordinate system in USGS GCTP projection definition.
This function is the same as OGRSpatialReference::exportToUSGS().
OGRErr OSRExportToWkt | ( | OGRSpatialReferenceH | hSRS, |
char ** | ppszReturn | ||
) |
Convert this SRS into WKT format.
This function is the same as OGRSpatialReference::exportToWkt().
OGRErr OSRExportToXML | ( | OGRSpatialReferenceH | hSRS, |
char ** | ppszRawXML, | ||
const char * | pszDialect | ||
) |
Export coordinate system in XML format.
This function is the same as OGRSpatialReference::exportToXML().
OGRErr OSRFixup | ( | OGRSpatialReferenceH | hSRS | ) |
Fixup as needed.
This function is the same as OGRSpatialReference::Fixup().
OGRErr OSRFixupOrdering | ( | OGRSpatialReferenceH | hSRS | ) |
Correct parameter ordering to match CT Specification.
This function is the same as OGRSpatialReference::FixupOrdering().
double OSRGetAngularUnits | ( | OGRSpatialReferenceH | hSRS, |
char ** | ppszName | ||
) |
Fetch angular geographic coordinate system units.
This function is the same as OGRSpatialReference::GetAngularUnits()
const char* OSRGetAttrValue | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszKey, | ||
int | iChild | ||
) |
Fetch indicated attribute of named node.
This function is the same as OGRSpatialReference::GetAttrValue()
const char* OSRGetAuthorityCode | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszTargetKey | ||
) |
Get the authority code for a node.
This function is the same as OGRSpatialReference::GetAuthorityCode().
const char* OSRGetAuthorityName | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszTargetKey | ||
) |
Get the authority name for a node.
This function is the same as OGRSpatialReference::GetAuthorityName().
const char* OSRGetAxis | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszTargetKey, | ||
int | iAxis, | ||
OGRAxisOrientation * | peOrientation | ||
) |
Fetch the orientation of one axis.
This method is the equivalent of the C++ method OGRSpatialReference::GetAxis
double OSRGetInvFlattening | ( | OGRSpatialReferenceH | hSRS, |
OGRErr * | pnErr | ||
) |
Get spheroid inverse flattening.
This function is the same as OGRSpatialReference::GetInvFlattening()
double OSRGetLinearUnits | ( | OGRSpatialReferenceH | hSRS, |
char ** | ppszName | ||
) |
Fetch linear projection units.
This function is the same as OGRSpatialReference::GetLinearUnits()
double OSRGetNormProjParm | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszName, | ||
double | dfDefaultValue, | ||
OGRErr * | pnErr | ||
) |
This function is the same as OGRSpatialReference::
This function is the same as OGRSpatialReference::GetNormProjParm()
double OSRGetPrimeMeridian | ( | OGRSpatialReferenceH | hSRS, |
char ** | ppszName | ||
) |
Fetch prime meridian info.
This function is the same as OGRSpatialReference::GetPrimeMeridian()
double OSRGetProjParm | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszName, | ||
double | dfDefaultValue, | ||
OGRErr * | pnErr | ||
) |
Fetch a projection parameter value.
This function is the same as OGRSpatialReference::GetProjParm()
double OSRGetSemiMajor | ( | OGRSpatialReferenceH | hSRS, |
OGRErr * | pnErr | ||
) |
Get spheroid semi major axis.
This function is the same as OGRSpatialReference::GetSemiMajor()
double OSRGetSemiMinor | ( | OGRSpatialReferenceH | hSRS, |
OGRErr * | pnErr | ||
) |
Get spheroid semi minor axis.
This function is the same as OGRSpatialReference::GetSemiMinor()
double OSRGetTargetLinearUnits | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszTargetKey, | ||
char ** | ppszName | ||
) |
Fetch linear projection units.
This function is the same as OGRSpatialReference::GetTargetLinearUnits()
OGRErr OSRGetTOWGS84 | ( | OGRSpatialReferenceH | hSRS, |
double * | padfCoeff, | ||
int | nCoeffCount | ||
) |
Fetch TOWGS84 parameters, if available.
This function is the same as OGRSpatialReference::GetTOWGS84().
int OSRGetUTMZone | ( | OGRSpatialReferenceH | hSRS, |
int * | pbNorth | ||
) |
Get utm zone information.
This is the same as the C++ method OGRSpatialReference::GetUTMZone()
OGRErr OSRImportFromEPSG | ( | OGRSpatialReferenceH | hSRS, |
int | nCode | ||
) |
Initialize SRS based on EPSG GCS or PCS code.
This function is the same as OGRSpatialReference::importFromEPSG().
OGRErr OSRImportFromEPSGA | ( | OGRSpatialReferenceH | hSRS, |
int | nCode | ||
) |
Initialize SRS based on EPSG GCS or PCS code.
This function is the same as OGRSpatialReference::importFromEPSGA().
OGRErr OSRImportFromERM | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszProj, | ||
const char * | pszDatum, | ||
const char * | pszUnits | ||
) |
Create OGR WKT from ERMapper projection definitions.
This function is the same as OGRSpatialReference::importFromERM().
OGRErr OSRImportFromESRI | ( | OGRSpatialReferenceH | hSRS, |
char ** | papszPrj | ||
) |
Import coordinate system from ESRI .prj format(s).
This function is the same as the C++ method OGRSpatialReference::importFromESRI()
OGRErr OSRImportFromMICoordSys | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszCoordSys | ||
) |
Import Mapinfo style CoordSys definition.
This method is the equivalent of the C++ method OGRSpatialReference::importFromMICoordSys
OGRErr OSRImportFromOzi | ( | OGRSpatialReferenceH | hSRS, |
const char *const * | papszLines | ||
) |
Import coordinate system from OziExplorer projection definition.
This function will import projection definition in style, used by OziExplorer software.
Note: another version of this function with a different signature existed in GDAL 1.X.
hSRS | spatial reference object. |
papszLines | Map file lines. This is an array of strings containing the whole OziExplorer .MAP file. The array is terminated by a NULL pointer. |
OGRErr OSRImportFromPCI | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszProj, | ||
const char * | pszUnits, | ||
double * | padfPrjParams | ||
) |
Import coordinate system from PCI projection definition.
This function is the same as OGRSpatialReference::importFromPCI().
OGRErr OSRImportFromProj4 | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszProj4 | ||
) |
Import PROJ.4 coordinate string.
This function is the same as OGRSpatialReference::importFromProj4().
OGRErr OSRImportFromUrl | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszUrl | ||
) |
Set spatial reference from a URL.
This function is the same as OGRSpatialReference::importFromUrl()
OGRErr OSRImportFromUSGS | ( | OGRSpatialReferenceH | hSRS, |
long | iProjsys, | ||
long | iZone, | ||
double * | padfPrjParams, | ||
long | iDatum | ||
) |
Import coordinate system from USGS projection definition.
This function is the same as OGRSpatialReference::importFromUSGS().
OGRErr OSRImportFromWkt | ( | OGRSpatialReferenceH | hSRS, |
char ** | ppszInput | ||
) |
Import from WKT string.
This function is the same as OGRSpatialReference::importFromWkt().
OGRErr OSRImportFromXML | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszXML | ||
) |
Import coordinate system from XML format (GML only currently).
This function is the same as OGRSpatialReference::importFromXML().
int OSRIsCompound | ( | OGRSpatialReferenceH | hSRS | ) |
Check if the coordinate system is compound.
This function is the same as OGRSpatialReference::IsCompound().
int OSRIsGeocentric | ( | OGRSpatialReferenceH | hSRS | ) |
Check if geocentric coordinate system.
This function is the same as OGRSpatialReference::IsGeocentric().
int OSRIsGeographic | ( | OGRSpatialReferenceH | hSRS | ) |
Check if geographic coordinate system.
This function is the same as OGRSpatialReference::IsGeographic().
int OSRIsLocal | ( | OGRSpatialReferenceH | hSRS | ) |
Check if local coordinate system.
This function is the same as OGRSpatialReference::IsLocal().
int OSRIsProjected | ( | OGRSpatialReferenceH | hSRS | ) |
Check if projected coordinate system.
This function is the same as OGRSpatialReference::IsProjected().
int OSRIsSame | ( | OGRSpatialReferenceH | hSRS1, |
OGRSpatialReferenceH | hSRS2 | ||
) |
Do these two spatial references describe the same system ?
This function is the same as OGRSpatialReference::IsSame().
int OSRIsSameGeogCS | ( | OGRSpatialReferenceH | hSRS1, |
OGRSpatialReferenceH | hSRS2 | ||
) |
Do the GeogCS'es match?
This function is the same as OGRSpatialReference::IsSameGeogCS().
int OSRIsSameVertCS | ( | OGRSpatialReferenceH | hSRS1, |
OGRSpatialReferenceH | hSRS2 | ||
) |
Do the VertCS'es match?
This function is the same as OGRSpatialReference::IsSameVertCS().
int OSRIsVertical | ( | OGRSpatialReferenceH | hSRS | ) |
Check if vertical coordinate system.
This function is the same as OGRSpatialReference::IsVertical().
OGRErr OSRMorphFromESRI | ( | OGRSpatialReferenceH | hSRS | ) |
Convert in place from ESRI WKT format.
This function is the same as the C++ method OGRSpatialReference::morphFromESRI()
OGRErr OSRMorphToESRI | ( | OGRSpatialReferenceH | hSRS | ) |
Convert in place to ESRI WKT format.
This function is the same as the C++ method OGRSpatialReference::morphToESRI()
OGRSpatialReferenceH OSRNewSpatialReference | ( | const char * | pszWKT | ) |
Constructor.
This function is the same as OGRSpatialReference::OGRSpatialReference()
int OSRReference | ( | OGRSpatialReferenceH | hSRS | ) |
Increments the reference count by one.
This function is the same as OGRSpatialReference::Reference()
void OSRRelease | ( | OGRSpatialReferenceH | hSRS | ) |
Decrements the reference count by one, and destroy if zero.
This function is the same as OGRSpatialReference::Release()
OGRErr OSRSetAngularUnits | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszUnits, | ||
double | dfInRadians | ||
) |
Set the angular units for the geographic coordinate system.
This function is the same as OGRSpatialReference::SetAngularUnits()
OGRErr OSRSetAttrValue | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszPath, | ||
const char * | pszValue | ||
) |
Set attribute value in spatial reference.
This function is the same as OGRSpatialReference::SetNode()
OGRErr OSRSetAuthority | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszTargetKey, | ||
const char * | pszAuthority, | ||
int | nCode | ||
) |
Set the authority for a node.
This function is the same as OGRSpatialReference::SetAuthority().
OGRErr OSRSetAxes | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszTargetKey, | ||
const char * | pszXAxisName, | ||
OGRAxisOrientation | eXAxisOrientation, | ||
const char * | pszYAxisName, | ||
OGRAxisOrientation | eYAxisOrientation | ||
) |
Set the axes for a coordinate system.
This method is the equivalent of the C++ method OGRSpatialReference::SetAxes
OGRErr OSRSetCompoundCS | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszName, | ||
OGRSpatialReferenceH | hHorizSRS, | ||
OGRSpatialReferenceH | hVertSRS | ||
) |
Setup a compound coordinate system.
This function is the same as OGRSpatialReference::SetCompoundCS()
OGRErr OSRSetFromUserInput | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszDef | ||
) |
Set spatial reference from various text formats.
This function is the same as OGRSpatialReference::SetFromUserInput()
OGRErr OSRSetGeocCS | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszName | ||
) |
Set the user visible PROJCS name.
This function is the same as OGRSpatialReference::SetGeocCS()
OGRErr OSRSetGeogCS | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszGeogName, | ||
const char * | pszDatumName, | ||
const char * | pszSpheroidName, | ||
double | dfSemiMajor, | ||
double | dfInvFlattening, | ||
const char * | pszPMName, | ||
double | dfPMOffset, | ||
const char * | pszAngularUnits, | ||
double | dfConvertToRadians | ||
) |
Set geographic coordinate system.
This function is the same as OGRSpatialReference::SetGeogCS()
OGRErr OSRSetHOM | ( | OGRSpatialReferenceH | hSRS, |
double | dfCenterLat, | ||
double | dfCenterLong, | ||
double | dfAzimuth, | ||
double | dfRectToSkew, | ||
double | dfScale, | ||
double | dfFalseEasting, | ||
double | dfFalseNorthing | ||
) |
Hotine Oblique Mercator using azimuth angle.
Hotine Oblique Mercator using azimuth angle.
This is the same as the C++ method OGRSpatialReference::SetHOM()
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.
Hotine Oblique Mercator using two points on centerline.
This is the same as the C++ method OGRSpatialReference::SetHOM2PNO()
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.
This is the same as the C++ method OGRSpatialReference::SetHOMAC()
OGRErr OSRSetLinearUnits | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszUnits, | ||
double | dfInMeters | ||
) |
Set the linear units for the projection.
This function is the same as OGRSpatialReference::SetLinearUnits()
OGRErr OSRSetLinearUnitsAndUpdateParameters | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszUnits, | ||
double | dfInMeters | ||
) |
Set the linear units for the projection.
This function is the same as OGRSpatialReference::SetLinearUnitsAndUpdateParameters()
OGRErr OSRSetLocalCS | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszName | ||
) |
Set the user visible LOCAL_CS name.
This function is the same as OGRSpatialReference::SetLocalCS()
OGRErr OSRSetNormProjParm | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszParmName, | ||
double | dfValue | ||
) |
Set a projection parameter with a normalized value.
This function is the same as OGRSpatialReference::SetNormProjParm()
OGRErr OSRSetProjCS | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszName | ||
) |
Set the user visible PROJCS name.
This function is the same as OGRSpatialReference::SetProjCS()
OGRErr OSRSetProjection | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszProjection | ||
) |
Set a projection name.
This function is the same as OGRSpatialReference::SetProjection()
OGRErr OSRSetProjParm | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszParmName, | ||
double | dfValue | ||
) |
Set a projection parameter value.
This function is the same as OGRSpatialReference::SetProjParm()
OGRErr OSRSetStatePlane | ( | OGRSpatialReferenceH | hSRS, |
int | nZone, | ||
int | bNAD83 | ||
) |
Set State Plane projection definition.
This function is the same as OGRSpatialReference::SetStatePlane().
OGRErr OSRSetStatePlaneWithUnits | ( | OGRSpatialReferenceH | hSRS, |
int | nZone, | ||
int | bNAD83, | ||
const char * | pszOverrideUnitName, | ||
double | dfOverrideUnit | ||
) |
Set State Plane projection definition.
This function is the same as OGRSpatialReference::SetStatePlane().
OGRErr OSRSetTargetLinearUnits | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszTargetKey, | ||
const char * | pszUnits, | ||
double | dfInMeters | ||
) |
Set the linear units for the target node.
This function is the same as OGRSpatialReference::SetTargetLinearUnits()
OGRErr OSRSetTM | ( | OGRSpatialReferenceH | hSRS, |
double | dfCenterLat, | ||
double | dfCenterLong, | ||
double | dfScale, | ||
double | dfFalseEasting, | ||
double | dfFalseNorthing | ||
) |
Transverse Mercator.
Special processing available for Transverse Mercator with GDAL >= 1.10 and PROJ >= 4.8 : see OGRSpatialReference::exportToProj4().
OGRErr OSRSetTOWGS84 | ( | OGRSpatialReferenceH | hSRS, |
double | dfDX, | ||
double | dfDY, | ||
double | dfDZ, | ||
double | dfEX, | ||
double | dfEY, | ||
double | dfEZ, | ||
double | dfPPM | ||
) |
Set the Bursa-Wolf conversion to WGS84.
This function is the same as OGRSpatialReference::SetTOWGS84().
OGRErr OSRSetUTM | ( | OGRSpatialReferenceH | hSRS, |
int | nZone, | ||
int | bNorth | ||
) |
Set UTM projection definition.
This is the same as the C++ method OGRSpatialReference::SetUTM()
OGRErr OSRSetVertCS | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszVertCSName, | ||
const char * | pszVertDatumName, | ||
int | nVertDatumType | ||
) |
Setup the vertical coordinate system.
This function is the same as OGRSpatialReference::SetVertCS()
OGRErr OSRSetWellKnownGeogCS | ( | OGRSpatialReferenceH | hSRS, |
const char * | pszName | ||
) |
Set a GeogCS based on well known name.
This function is the same as OGRSpatialReference::SetWellKnownGeogCS()
OGRErr OSRStripCTParms | ( | OGRSpatialReferenceH | hSRS | ) |
Strip OGC CT Parameters.
This function is the same as OGRSpatialReference::StripCTParms().
OGRErr OSRValidate | ( | OGRSpatialReferenceH | hSRS | ) |
Validate SRS tokens.
This function is the same as the C++ method OGRSpatialReference::Validate().