#include <ogr_spatialref.h>
Public Member Functions | |
OGRSpatialReference (const char *=NULL) | |
virtual | ~OGRSpatialReference () |
int | Reference () |
int | Dereference () |
int | GetReferenceCount () const |
OGRSpatialReference * | Clone () const |
OGRErr | exportToWkt (char **) const |
OGRErr | exportToProj4 (char **) const |
OGRErr | exportToPCI (char **, char **, double **) const |
OGRErr | exportToUSGS (long *, long *, double **, long *) const |
OGRErr | importFromWkt (char **) |
OGRErr | importFromProj4 (const char *) |
OGRErr | importFromEPSG (int) |
OGRErr | importFromESRI (char **) |
OGRErr | importFromPCI (const char *pszProj, const char *pszUnits=NULL, double *padfPrjParams=NULL) |
OGRErr | importFromUSGS (long iProjsys, long iZone, double *padfPrjParams, long iDatum) |
OGRErr | importFromDict (const char *pszDict, const char *pszCode) |
OGRErr | morphToESRI () |
OGRErr | morphFromESRI () |
OGRErr | Validate () |
OGRErr | StripCTParms (OGR_SRSNode *=NULL) |
OGRErr | FixupOrdering () |
OGRErr | Fixup () |
void | SetRoot (OGR_SRSNode *) |
OGR_SRSNode * | GetAttrNode (const char *) |
const char * | GetAttrValue (const char *, int=0) const |
OGRErr | SetNode (const char *, const char *) |
OGRErr | SetLinearUnitsAndUpdateParameters (const char *pszName, double dfInMeters) |
OGRErr | SetLinearUnits (const char *pszName, double dfInMeters) |
double | GetLinearUnits (char **=NULL) const |
OGRErr | SetAngularUnits (const char *pszName, double dfInRadians) |
double | GetAngularUnits (char **=NULL) const |
double | GetPrimeMeridian (char **=NULL) const |
int | IsGeographic () const |
int | IsProjected () const |
int | IsLocal () const |
int | IsSameGeogCS (const OGRSpatialReference *) const |
int | IsSame (const OGRSpatialReference *) const |
void | Clear () |
OGRErr | SetLocalCS (const char *) |
OGRErr | SetProjCS (const char *) |
OGRErr | SetProjection (const char *) |
OGRErr | SetGeogCS (const char *pszGeogName, const char *pszDatumName, const char *pszEllipsoidName, double dfSemiMajor, double dfInvFlattening, const char *pszPMName=NULL, double dfPMOffset=0.0, const char *pszUnits=NULL, double dfConvertToRadians=0.0) |
OGRErr | SetWellKnownGeogCS (const char *) |
OGRErr | CopyGeogCSFrom (const OGRSpatialReference *poSrcSRS) |
OGRErr | SetFromUserInput (const char *) |
OGRErr | SetTOWGS84 (double, double, double, double=0.0, double=0.0, double=0.0, double=0.0) |
OGRErr | GetTOWGS84 (double *padfCoef, int nCoeff=7) const |
double | GetSemiMajor (OGRErr *=NULL) const |
double | GetSemiMinor (OGRErr *=NULL) const |
double | GetInvFlattening (OGRErr *=NULL) const |
OGRErr | SetAuthority (const char *pszTargetKey, const char *pszAuthority, int nCode) |
OGRErr | AutoIdentifyEPSG () |
const char * | GetAuthorityCode (const char *pszTargetKey) const |
const char * | GetAuthorityName (const char *pszTargetKey) const |
OGRErr | SetProjParm (const char *, double) |
double | GetProjParm (const char *, double=0.0, OGRErr *=NULL) const |
OGRErr | SetNormProjParm (const char *, double) |
double | GetNormProjParm (const char *, double=0.0, OGRErr *=NULL) const |
OGRErr | SetACEA (double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetAE (double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetBonne (double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetCEA (double dfStdP1, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetCS (double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetEC (double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetEckertIV (double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetEckertVI (double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetEquirectangular (double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetGEOS (double dfCentralMeridian, double dfSatelliteHeight, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetGH (double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetGS (double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetGnomonic (double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetHOM (double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfRectToSkew, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetHOM2PNO (double dfCenterLat, double dfLat1, double dfLong1, double dfLat2, double dfLong2, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetKrovak (double dfCenterLat, double dfCenterLong, double dfAzimuth, double dfPseudoStdParallelLat, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetLAEA (double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetLCC (double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetLCC1SP (double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetLCCB (double dfStdP1, double dfStdP2, double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetMC (double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetMercator (double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetMollweide (double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetNZMG (double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetOS (double dfOriginLat, double dfCMeridian, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetOrthographic (double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetPolyconic (double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetPS (double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetRobinson (double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetSinusoidal (double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetStereographic (double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetSOC (double dfLatitudeOfOrigin, double dfCentralMeridian, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetTM (double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetTMVariant (const char *pszVariantName, double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetTMG (double dfCenterLat, double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetTMSO (double dfCenterLat, double dfCenterLong, double dfScale, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetVDG (double dfCenterLong, double dfFalseEasting, double dfFalseNorthing) |
OGRErr | SetUTM (int nZone, int bNorth=TRUE) |
int | GetUTMZone (int *pbNorth=NULL) const |
OGRErr | SetStatePlane (int nZone, int bNAD83=TRUE, const char *pszOverrideUnitName=NULL, double dfOverrideUnit=0.0) |
Normally application code can fetch needed parameter values for this SRS using GetAttrValue(), but in special cases the underlying parse tree (or OGR_SRSNode objects) can be accessed more directly.
See the tutorial for more information on how to use this class.
|
Constructor. This constructor takes an optional string argument which if passed should be a WKT representation of an SRS. Passing this is equivelent to not passing it, and then calling importFromWkt() with the WKT string. Note that newly created objects are given a reference count of one. The C function OSRNewSpatialReference() does the same thing as this constructor.
|
|
OGRSpatialReference destructor. The C function OSRDestroySpatialReference() does the same thing as this method. |
|
Set EPSG authority info if possible. This method inspects a WKT definition, and adds EPSG authority nodes where an aspect of the coordinate system can be easily and safely corresponded with an EPSG identifier. In practice, this method will evolve over time. In theory it can add authority nodes for any object (ie. spheroid, datum, GEOGCS, units, and PROJCS) that could have an authority node. Mostly this is useful to inserting appropriate PROJCS codes for common formulations (like UTM n WGS84). If it success the OGRSpatialReference is updated in place, and the method return OGRERR_NONE. If the method fails to identify the general coordinate system OGRERR_UNSUPPORTED_SRS is returned but no error message is posted via CPLError(). This method is the same as the C function OSRAutoIdentifyEPSG().
|
|
Wipe current definition. Returns OGRSpatialReference to a state with no definition, as it exists when first created. It does not affect reference counts. |
|
Make a duplicate of this OGRSpatialReference. This method is the same as the C function OSRClone().
|
|
Copy GEOGCS from another OGRSpatialReference. The GEOGCS information is copied into this OGRSpatialReference from another. If this object has a PROJCS root already, the GEOGCS is installed within it, otherwise it is installed as the root.
|
|
Decrements the reference count by one. The method does the same thing as the C function OSRDereference().
|
|
Export coordinate system in PCI projection definition. Converts the loaded coordinate reference system into PCI projection definition to the extent possible. The strings returned in ppszProj, ppszUnits and ppadfPrjParams array should be deallocated by the caller with CPLFree() when no longer needed. LOCAL_CS coordinate systems are not translatable. An empty string will be returned along with OGRERR_NONE. This method is the equivelent of the C function OSRExportToPCI().
|
|
Export coordinate system in PROJ.4 format. Converts the loaded coordinate reference system into PROJ.4 format to the extent possible. The string returned in ppszProj4 should be deallocated by the caller with CPLFree() when no longer needed. LOCAL_CS coordinate systems are not translatable. An empty string will be returned along with OGRERR_NONE. This method is the equivelent of the C function OSRExportToProj4().
|
|
Export coordinate system in USGS GCTP projection definition. This method is the equivalent of the C function OSRExportToUSGS().
|
|
Convert this SRS into WKT format. Note that the returned WKT string should be freed with OGRFree() or CPLFree() when no longer needed. It is the responsibility of the caller. This method is the same as the C function OSRExportToWkt().
|
|
Fixup as needed. Some mechanisms to create WKT using OGRSpatialReference, and some imported WKT, are not valid according to the OGC CT specification. This method attempts to fill in any missing defaults that are required, and fixup ordering problems (using OSRFixupOrdering()) so that the resulting WKT is valid. This method should be expected to evolve over time to as problems are discovered. The following are amoung the fixup actions this method will take:
This method is the same as the C function OSRFixup().
|
|
Correct parameter ordering to match CT Specification. Some mechanisms to create WKT using OGRSpatialReference, and some imported WKT fail to maintain the order of parameters required according to the BNF definitions in the OpenGIS SF-SQL and CT Specifications. This method attempts to massage things back into the required order. This method is the same as the C function OSRFixupOrdering().
|
|
Fetch angular geographic coordinate system units. If no units are available, a value of "degree" and SRS_UA_DEGREE_CONV will be assumed. This method only checks directly under the GEOGCS node for units. This method does the same thing as the C function OSRGetAngularUnits().
|
|
Find named node in tree. This method does a pre-order traversal of the node tree searching for a node with this exact value (case insensitive), and returns it. Leaf nodes are not considered, under the assumption that they are just attribute value nodes. If a node appears more than once in the tree (such as UNIT for instance), the first encountered will be returned. Use GetNode() on a subtree to be more specific.
|
|
Fetch indicated attribute of named node. This method uses GetAttrNode() to find the named node, and then extracts the value of the indicated child. Thus a call to GetAttrValue("UNIT",1) would return the second child of the UNIT node, which is normally the length of the linear unit in meters. This method does the same thing as the C function OSRGetAttrValue().
|
|
Get the authority code for a node. This method is used to query an AUTHORITY[] node from within the WKT tree, and fetch the code value. While in theory values may be non-numeric, for the EPSG authority all code values should be integral. This method is the same as the C function OSRGetAuthorityCode().
|
|
Get the authority name for a node. This method is used to query an AUTHORITY[] node from within the WKT tree, and fetch the authority name value. The most common authority is "EPSG". This method is the same as the C function OSRGetAuthorityName().
|
|
Get spheroid inverse flattening. This method does the same thing as the C function OSRGetInvFlattening().
|
|
Fetch linear projection units. If no units are available, a value of "Meters" and 1.0 will be assumed. This method only checks directly under the PROJCS or LOCAL_CS node for units. This method does the same thing as the C function OSRGetLinearUnits()/
|
|
Fetch a normalized projection parameter value. This method is the same as GetProjParm() except that the value of the parameter is "normalized" into degrees or meters depending on whether it is linear or angular. This method is the same as the C function OSRGetNormProjParm().
|
|
Fetch prime meridian info. Returns the offset of the prime meridian from greenwich in degrees, and the prime meridian name (if requested). If no PRIMEM value exists in the coordinate system definition a value of "Greenwich" and an offset of 0.0 is assumed. If the prime meridian name is returned, the pointer is to an internal copy of the name. It should not be freed, altered or depended on after the next OGR call. This method is the same as the C function OSRGetPrimeMeridian().
|
|
Fetch a projection parameter value. NOTE: This code should be modified to translate non degree angles into degrees based on the GEOGCS unit. This has not yet been done. This method is the same as the C function OSRGetProjParm().
|
|
Fetch current reference count.
|
|
Get spheroid semi major axis. This method does the same thing as the C function OSRGetSemiMajor().
|
|
Get spheroid semi minor axis. This method does the same thing as the C function OSRGetSemiMinor().
|
|
Fetch TOWGS84 parameters, if available.
|
|
Get utm zone information. This is the same as the C function OSRGetUTMZone().
|
|
Read SRS from WKT dictionary. This method will attempt to find the indicated coordinate system identity in the indicated dictionary file. If found, the WKT representation is imported and used to initialize this OGRSpatialReference. More complete information on the format of the dictionary files can be found in the epsg.wkt file in the GDAL data tree. The dictionary files are searched for in the "GDAL" domain using CPLFindFile(). Normally this results in searching /usr/local/share/gdal or somewhere similar. This method is the same as the C function OSRImportFromDict().
|
|
Initialize SRS based on EPSG GCS or PCS code. This code uses the GeoTIFF cpl_csv services to access the EPSG CSV data. If frmts/gtiff/libgeotiff isn't linked in, linking will fail. If EPSG tables can't be found at runtime, the method will fail. This method is the same as the C function OSRImportFromEPSG().
|
|
Import coordinate system from ESRI .prj format(s). This function will read the text loaded from an ESRI .prj file, and translate it into an OGRSpatialReference definition. This should support many (but by no means all) old style (Arc/Info 7.x) .prj files, as well as the newer pseudo-OGC WKT .prj files. Note that new style .prj files are in OGC WKT format, but require some manipulation to correct datum names, and units on some projection parameters. This is addressed within importFromESRI() by an automatical call to morphFromESRI(). Currently only GEOGRAPHIC, UTM, STATEPLANE, GREATBRITIAN_GRID, ALBERS, EQUIDISTANT_CONIC, and TRANSVERSE (mercator) projections are supported from old style files. At this time there is no equivelent exportToESRI() method. Writing old style .prj files is not supported by OGRSpatialReference. However the morphToESRI() and exportToWkt() methods can be used to generate output suitable to write to new style (Arc 8) .prj files. This function is the equilvelent of the C function OSRImportFromESRI().
|
|
Import coordinate system from PCI projection definition. PCI software uses 16-character string to specify coordinate system and datum/ellipsoid. You should supply at least this string to the importFromPCI() function. This function is the equilvelent of the C function OSRImportFromPCI().
Particular projection uses different parameters, unused ones may be set to zero. If NULL suppliet instead of array pointer default values will be used (i.e., zeroes).
|
|
Import PROJ.4 coordinate string. The OGRSpatialReference is initialized from the passed PROJ.4 style coordinate system string. In addition to many +proj formulations which have OGC equivelents, it is also possible to import "+init=epsg:n" style definitions. These are passed to importFromEPSG(). Other init strings (such as the state plane zones) are not currently supported. Example: pszProj4 = "+proj=utm +zone=11 +datum=WGS84" This method is the equivelent of the C function OSRImportFromProj4().
|
|
Import coordinate system from USGS projection definition. This method will import projection definition in style, used by USGS GCTP software. GCTP operates on angles in packed DMS format (see CPLDecToPackedDMS() function for details), so all angle values (latitudes, longitudes, azimuths, etc.) specified in the padfPrjParams array should be in the packed DMS format. This function is the equivalent of the C function OSRImportFromUSGSI().
Projection Transformation Package Projection Parameters
---------------------------------------------------------------------------- | Array Element Code & Projection Id |--------------------------------------------------- | 0 | 1 | 2 | 3 | 4 | 5 |6 | 7 ---------------------------------------------------------------------------- 0 Geographic | | | | | | | | 1 U T M |Lon/Z |Lat/Z | | | | | | 2 State Plane | | | | | | | | 3 Albers Equal Area |SMajor|SMinor|STDPR1|STDPR2|CentMer|OriginLat|FE|FN 4 Lambert Conformal C |SMajor|SMinor|STDPR1|STDPR2|CentMer|OriginLat|FE|FN 5 Mercator |SMajor|SMinor| | |CentMer|TrueScale|FE|FN 6 Polar Stereographic |SMajor|SMinor| | |LongPol|TrueScale|FE|FN 7 Polyconic |SMajor|SMinor| | |CentMer|OriginLat|FE|FN 8 Equid. Conic A |SMajor|SMinor|STDPAR| |CentMer|OriginLat|FE|FN Equid. Conic B |SMajor|SMinor|STDPR1|STDPR2|CentMer|OriginLat|FE|FN 9 Transverse Mercator |SMajor|SMinor|Factor| |CentMer|OriginLat|FE|FN 10 Stereographic |Sphere| | | |CentLon|CenterLat|FE|FN 11 Lambert Azimuthal |Sphere| | | |CentLon|CenterLat|FE|FN 12 Azimuthal |Sphere| | | |CentLon|CenterLat|FE|FN 13 Gnomonic |Sphere| | | |CentLon|CenterLat|FE|FN 14 Orthographic |Sphere| | | |CentLon|CenterLat|FE|FN 15 Gen. Vert. Near Per |Sphere| |Height| |CentLon|CenterLat|FE|FN 16 Sinusoidal |Sphere| | | |CentMer| |FE|FN 17 Equirectangular |Sphere| | | |CentMer|TrueScale|FE|FN 18 Miller Cylindrical |Sphere| | | |CentMer| |FE|FN 19 Van der Grinten |Sphere| | | |CentMer|OriginLat|FE|FN 20 Hotin Oblique Merc A |SMajor|SMinor|Factor| | |OriginLat|FE|FN Hotin Oblique Merc B |SMajor|SMinor|Factor|AziAng|AzmthPt|OriginLat|FE|FN 21 Robinson |Sphere| | | |CentMer| |FE|FN 22 Space Oblique Merc A |SMajor|SMinor| |IncAng|AscLong| |FE|FN Space Oblique Merc B |SMajor|SMinor|Satnum|Path | | |FE|FN 23 Alaska Conformal |SMajor|SMinor| | | | |FE|FN 24 Interrupted Goode |Sphere| | | | | | | 25 Mollweide |Sphere| | | |CentMer| |FE|FN 26 Interrupt Mollweide |Sphere| | | | | | | 27 Hammer |Sphere| | | |CentMer| |FE|FN 28 Wagner IV |Sphere| | | |CentMer| |FE|FN 29 Wagner VII |Sphere| | | |CentMer| |FE|FN 30 Oblated Equal Area |Sphere| |Shapem|Shapen|CentLon|CenterLat|FE|FN ----------------------------------------------------------------------------
---------------------------------------------------- | Array Element | Code & Projection Id |--------------------------- | 8 | 9 | 10 | 11 | 12 | ---------------------------------------------------- 0 Geographic | | | | | | 1 U T M | | | | | | 2 State Plane | | | | | | 3 Albers Equal Area | | | | | | 4 Lambert Conformal C | | | | | | 5 Mercator | | | | | | 6 Polar Stereographic | | | | | | 7 Polyconic | | | | | | 8 Equid. Conic A |zero | | | | | Equid. Conic B |one | | | | | 9 Transverse Mercator | | | | | | 10 Stereographic | | | | | | 11 Lambert Azimuthal | | | | | | 12 Azimuthal | | | | | | 13 Gnomonic | | | | | | 14 Orthographic | | | | | | 15 Gen. Vert. Near Per | | | | | | 16 Sinusoidal | | | | | | 17 Equirectangular | | | | | | 18 Miller Cylindrical | | | | | | 19 Van der Grinten | | | | | | 20 Hotin Oblique Merc A |Long1|Lat1|Long2|Lat2|zero| Hotin Oblique Merc B | | | | |one | 21 Robinson | | | | | | 22 Space Oblique Merc A |PSRev|LRat|PFlag| |zero| Space Oblique Merc B | | | | |one | 23 Alaska Conformal | | | | | | 24 Interrupted Goode | | | | | | 25 Mollweide | | | | | | 26 Interrupt Mollweide | | | | | | 27 Hammer | | | | | | 28 Wagner IV | | | | | | 29 Wagner VII | | | | | | 30 Oblated Equal Area |Angle| | | | | ----------------------------------------------------
where
Lon/Z Longitude of any point in the UTM zone or zero. If zero, a zone code must be specified.
Array elements 13 and 14 are set to zero. All array elements with blank fields are set to zero too.
If the datum code is negative, the first two values in the parameter array (parm) are used to define the values as follows:
If a datum code is zero or greater, the semimajor and semiminor axis are defined by the datum code as found in the following table:
Supported Datums
0: Clarke 1866 (default) 1: Clarke 1880 2: Bessel 3: International 1967 4: International 1909 5: WGS 72 6: Everest 7: WGS 66 8: GRS 1980/WGS 84 9: Airy 10: Modified Everest 11: Modified Airy 12: Walbeck 13: Southeast Asia 14: Australian National 15: Krassovsky 16: Hough 17: Mercury 1960 18: Modified Mercury 1968 19: Sphere of Radius 6370997 meters
|
|
Import from WKT string. This method will wipe the existing SRS definition, and reassign it based on the contents of the passed WKT string. Only as much of the input string as needed to construct this SRS is consumed from the input string, and the input string pointer is then updated to point to the remaining (unused) input. This method is the same as the C function OSRImportFromWkt().
|
|
Check if geographic coordinate system. This method is the same as the C function OSRIsGeographic().
|
|
Check if local coordinate system. This method is the same as the C function OSRIsLocal().
|
|
Check if projected coordinate system. This method is the same as the C function OSRIsProjected().
|
|
These two spatial references describe the same system.
|
|
Do the GeogCS'es match? This method is the same as the C function OSRIsSameGeogCS().
|
|
Convert in place to ESRI WKT format. The value nodes of this coordinate system as modified in various manners more closely map onto the ESRI concept of WKT format. This includes renaming a variety of projections and arguments, and stripping out nodes note recognised by ESRI (like AUTHORITY and AXIS). This does the same as the C function OSRMorphFromESRI().
|
|
Convert in place from ESRI WKT format. The value notes of this coordinate system as modified in various manners to adhere more closely to the WKT standard. This mostly involves translating a variety of ESRI names for projections, arguments and datums to "standard" names, as defined by Adam Gawne-Cain's reference translation of EPSG to WKT for the CT specification. This does the same as the C function OSRMorphToESRI().
|
|
Increments the reference count by one. The reference count is used keep track of the number of OGRGeometry objects referencing this SRS. The method does the same thing as the C function OSRReference().
|
|
Albers Conic Equal Area |
|
Azimuthal Equidistant |
|
Set the angular units for the geographic coordinate system. This method creates a UNITS subnode with the specified values as a child of the GEOGCS node. This method does the same as the C function OSRSetAngularUnits().
|
|
Set the authority for a node. This method is the same as the C function OSRSetAuthority().
|
|
Bonne |
|
Cylindrical Equal Area |
|
Cassini-Soldner |
|
Equidistant Conic |
|
Eckert IV |
|
Eckert VI |
|
Equirectangular |
|
Set spatial reference from various text formats. This method will examine the provided input, and try to deduce the format, and then use it to initialize the spatial reference system. It may take the following forms:
It is expected that this method will be extended in the future to support XML and perhaps a simplified "minilanguage" for indicating common UTM and State Plane definitions. This method is intended to be flexible, but by it's nature it is imprecise as it must guess information about the format intended. When possible applications should call the specific method appropriate if the input is known to be in a particular format. This method does the same thing as the OSRSetFromUserInput() function.
|
|
Set geographic coordinate system. This method is used to set the datum, ellipsoid, prime meridian and angular units for a geographic coordinate system. It can be used on it's own to establish a geographic spatial reference, or applied to a projected coordinate system to establish the underlying geographic coordinate system. This method does the same as the C function OSRSetGeogCS().
|
|
Geostationary Satellite |
|
Goode Homolosine |
|
Gnomonic |
|
Gall Stereograpic |
|
Set a Hotine Oblique Mercator projection using azimuth angle. This method does the same thing as the C function OSRSetHOM().
|
|
Set a Hotine Oblique Mercator projection using two points on projection centerline. This method does the same thing as the C function OSRSetHOM2PNO().
|
|
Krovak Oblique Conic Conformal |
|
Lambert Azimuthal Equal-Area |
|
Lambert Conformal Conic |
|
Lambert Conformal Conic 1SP |
|
Lambert Conformal Conic (Belgium) |
|
Set the linear units for the projection. This method creates a UNITS subnode with the specified values as a child of the PROJCS or LOCAL_CS node. This method does the same as the C function OSRSetLinearUnits().
|
|
Set the linear units for the projection. This method creates a UNITS subnode with the specified values as a child of the PROJCS or LOCAL_CS node. It works the same as the SetLinearUnits() method, but it also updates all existing linear projection parameter values from the old units to the new units.
|
|
Set the user visible LOCAL_CS name. This method is the same as the C function OSRSetLocalCS(). This method is will ensure a LOCAL_CS node is created as the root, and set the provided name on it. It must be used before SetLinearUnits().
|
|
Miller Cylindrical |
|
Mercator |
|
Mollweide |
|
Set attribute value in spatial reference. Missing intermediate nodes in the path will be created if not already in existance. If the attribute has no children one will be created and assigned the value otherwise the zeroth child will be assigned the value. This method does the same as the C function OSRSetAttrValue().
|
|
Set a projection parameter with a normalized value. This method is the same as SetProjParm() except that the value of the parameter passed in is assumed to be in "normalized" form (decimal degrees for angular values, meters for linear values. The values are converted in a form suitable for the GEOGCS and linear units in effect. This method is the same as the C function OSRSetNormProjParm().
|
|
New Zealand Map Grid |
|
Orthographic |
|
Oblique Stereographic |
|
Polyconic |
|
Set the user visible PROJCS name. This method is the same as the C function OSRSetProjCS(). This method is will ensure a PROJCS node is created as the root, and set the provided name on it. If used on a GEOGCS coordinate system, the GEOGCS node will be demoted to be a child of the new PROJCS root.
|
|
Set a projection name. This method is the same as the C function OSRSetProjection().
|
|
Set a projection parameter value. Adds a new PARAMETER under the PROJCS with the indicated name and value. This method is the same as the C function OSRSetProjParm(). Please check http://www.remotesensing.org/geotiff/proj_list pages for legal parameter names for specific projections.
|
|
Polar Stereographic |
|
Robinson |
|
Set the root SRS node. If the object has an existing tree of OGR_SRSNodes, they are destroyed as part of assigning the new root. Ownership of the passed OGR_SRSNode is is assumed by the OGRSpatialReference.
|
|
Sinusoidal |
|
Swiss Oblique Cylindrical |
|
State Plane |
|
Stereographic |
|
Transverse Mercator |
|
Tunesia Mining Grid |
|
Transverse Mercator (South Oriented) |
|
Transverse Mercator variants. |
|
Set the Bursa-Wolf conversion to WGS84. This will create the TOWGS84 node as a child of the DATUM. It will fail if there is no existing DATUM node. Unlike most OGRSpatialReference methods it will insert itself in the appropriate order, and will replace an existing TOWGS84 node if there is one. The parameters have the same meaning as EPSG transformation 9606 (Position Vector 7-param. transformation). This method is the same as the C function OSRSetTOWGS84().
|
|
Universal Transverse Mercator |
|
VanDerGrinten |
|
Set a GeogCS based on well known name. This may be called on an empty OGRSpatialReference to make a geographic coordinate system, or on something with an existing PROJCS node to set the underlying geographic coordinate system of a projected coordinate system. The following well known text values are currently supported:
|
|
Strip OGC CT Parameters. This method will remove all components of the coordinate system that are specific to the OGC CT Specification. That is it will attempt to strip it down to being compatible with the Simple Features 1.0 specification. This method is the same as the C function OSRStripCTParms().
|
|
Validate SRS tokens. This method attempts to verify that the spatial reference system is well formed, and consists of known tokens. The validation is not comprehensive. This method is the same as the C function OSRValidate().
|