Package org.gdal.osr

Class SpatialReference

  • All Implemented Interfaces:
    java.lang.Cloneable

    public class SpatialReference
    extends java.lang.Object
    implements java.lang.Cloneable
    • Constructor Detail

      • SpatialReference

        public SpatialReference​(long cPtr,
                                boolean cMemoryOwn)
      • SpatialReference

        public SpatialReference​(java.lang.String wkt)
      • SpatialReference

        public SpatialReference()
    • Method Detail

      • delete

        public void delete()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • clone

        public java.lang.Object clone()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • ExportToWkt

        public java.lang.String ExportToWkt()
      • ExportToPrettyWkt

        public java.lang.String ExportToPrettyWkt​(int simplify)
      • ExportToPrettyWkt

        public java.lang.String ExportToPrettyWkt()
      • ExportToProj4

        public java.lang.String ExportToProj4()
      • ExportToXML

        public java.lang.String ExportToXML​(java.lang.String dialect)
      • ExportToXML

        public java.lang.String ExportToXML()
      • ExportToMICoordSys

        public java.lang.String ExportToMICoordSys()
      • GetTOWGS84

        public double[] GetTOWGS84()
      • SetTOWGS84

        public int SetTOWGS84​(double p1,
                              double p2,
                              double p3)
      • __str__

        public java.lang.String __str__()
      • GetName

        public java.lang.String GetName()
      • IsSame

        public int IsSame​(SpatialReference rhs,
                          java.util.Vector options)
      • IsGeographic

        public int IsGeographic()
      • IsDerivedGeographic

        public int IsDerivedGeographic()
      • IsProjected

        public int IsProjected()
      • IsCompound

        public int IsCompound()
      • IsGeocentric

        public int IsGeocentric()
      • IsLocal

        public int IsLocal()
      • IsVertical

        public int IsVertical()
      • EPSGTreatsAsLatLong

        public int EPSGTreatsAsLatLong()
      • EPSGTreatsAsNorthingEasting

        public int EPSGTreatsAsNorthingEasting()
      • SetAuthority

        public int SetAuthority​(java.lang.String pszTargetKey,
                                java.lang.String pszAuthority,
                                int nCode)
      • GetAttrValue

        public java.lang.String GetAttrValue​(java.lang.String name,
                                             int child)
      • GetAttrValue

        public java.lang.String GetAttrValue​(java.lang.String name)
      • SetAttrValue

        public int SetAttrValue​(java.lang.String name,
                                java.lang.String value)
      • SetAngularUnits

        public int SetAngularUnits​(java.lang.String name,
                                   double to_radians)
      • GetAngularUnits

        public double GetAngularUnits()
      • GetAngularUnitsName

        public java.lang.String GetAngularUnitsName()
      • SetTargetLinearUnits

        public int SetTargetLinearUnits​(java.lang.String target,
                                        java.lang.String name,
                                        double to_meters)
      • SetLinearUnits

        public int SetLinearUnits​(java.lang.String name,
                                  double to_meters)
      • SetLinearUnitsAndUpdateParameters

        public int SetLinearUnitsAndUpdateParameters​(java.lang.String name,
                                                     double to_meters)
      • GetTargetLinearUnits

        public double GetTargetLinearUnits​(java.lang.String target_key)
      • GetLinearUnits

        public double GetLinearUnits()
      • GetLinearUnitsName

        public java.lang.String GetLinearUnitsName()
      • GetAuthorityCode

        public java.lang.String GetAuthorityCode​(java.lang.String target_key)
      • GetAuthorityName

        public java.lang.String GetAuthorityName​(java.lang.String target_key)
      • GetAreaOfUse

        public AreaOfUse GetAreaOfUse()
      • GetAxisName

        public java.lang.String GetAxisName​(java.lang.String target_key,
                                            int iAxis)
      • GetAxesCount

        public int GetAxesCount()
      • GetAxisOrientation

        public int GetAxisOrientation​(java.lang.String target_key,
                                      int iAxis)
      • GetAxisMappingStrategy

        public int GetAxisMappingStrategy()
      • SetAxisMappingStrategy

        public void SetAxisMappingStrategy​(int strategy)
      • SetDataAxisToSRSAxisMapping

        public int SetDataAxisToSRSAxisMapping​(int[] nList)
      • SetUTM

        public int SetUTM​(int zone,
                          int north)
      • SetUTM

        public int SetUTM​(int zone)
      • GetUTMZone

        public int GetUTMZone()
      • SetStatePlane

        public int SetStatePlane​(int zone,
                                 int is_nad83,
                                 java.lang.String unitsname,
                                 double units)
      • SetStatePlane

        public int SetStatePlane​(int zone,
                                 int is_nad83,
                                 java.lang.String unitsname)
      • SetStatePlane

        public int SetStatePlane​(int zone,
                                 int is_nad83)
      • SetStatePlane

        public int SetStatePlane​(int zone)
      • AutoIdentifyEPSG

        public int AutoIdentifyEPSG()
      • SetProjection

        public int SetProjection​(java.lang.String arg)
      • SetProjParm

        public int SetProjParm​(java.lang.String name,
                               double val)
      • GetProjParm

        public double GetProjParm​(java.lang.String name,
                                  double default_val)
      • GetProjParm

        public double GetProjParm​(java.lang.String name)
      • SetNormProjParm

        public int SetNormProjParm​(java.lang.String name,
                                   double val)
      • GetNormProjParm

        public double GetNormProjParm​(java.lang.String name,
                                      double default_val)
      • GetNormProjParm

        public double GetNormProjParm​(java.lang.String name)
      • GetSemiMajor

        public double GetSemiMajor()
      • GetSemiMinor

        public double GetSemiMinor()
      • GetInvFlattening

        public double GetInvFlattening()
      • SetACEA

        public int SetACEA​(double stdp1,
                           double stdp2,
                           double clat,
                           double clong,
                           double fe,
                           double fn)
      • SetAE

        public int SetAE​(double clat,
                         double clong,
                         double fe,
                         double fn)
      • SetBonne

        public int SetBonne​(double stdp,
                            double cm,
                            double fe,
                            double fn)
      • SetCEA

        public int SetCEA​(double stdp1,
                          double cm,
                          double fe,
                          double fn)
      • SetCS

        public int SetCS​(double clat,
                         double clong,
                         double fe,
                         double fn)
      • SetEC

        public int SetEC​(double stdp1,
                         double stdp2,
                         double clat,
                         double clong,
                         double fe,
                         double fn)
      • SetEckertIV

        public int SetEckertIV​(double cm,
                               double fe,
                               double fn)
      • SetEckertVI

        public int SetEckertVI​(double cm,
                               double fe,
                               double fn)
      • SetEquirectangular

        public int SetEquirectangular​(double clat,
                                      double clong,
                                      double fe,
                                      double fn)
      • SetEquirectangular2

        public int SetEquirectangular2​(double clat,
                                       double clong,
                                       double pseudostdparallellat,
                                       double fe,
                                       double fn)
      • SetGaussSchreiberTMercator

        public int SetGaussSchreiberTMercator​(double clat,
                                              double clong,
                                              double sc,
                                              double fe,
                                              double fn)
      • SetGS

        public int SetGS​(double cm,
                         double fe,
                         double fn)
      • SetGH

        public int SetGH​(double cm,
                         double fe,
                         double fn)
      • SetIGH

        public int SetIGH()
      • SetGEOS

        public int SetGEOS​(double cm,
                           double satelliteheight,
                           double fe,
                           double fn)
      • SetGnomonic

        public int SetGnomonic​(double clat,
                               double clong,
                               double fe,
                               double fn)
      • SetHOM

        public int SetHOM​(double clat,
                          double clong,
                          double azimuth,
                          double recttoskew,
                          double scale,
                          double fe,
                          double fn)
      • SetHOM2PNO

        public int SetHOM2PNO​(double clat,
                              double dfLat1,
                              double dfLong1,
                              double dfLat2,
                              double dfLong2,
                              double scale,
                              double fe,
                              double fn)
      • SetKrovak

        public int SetKrovak​(double clat,
                             double clong,
                             double azimuth,
                             double pseudostdparallellat,
                             double scale,
                             double fe,
                             double fn)
      • SetLAEA

        public int SetLAEA​(double clat,
                           double clong,
                           double fe,
                           double fn)
      • SetLCC

        public int SetLCC​(double stdp1,
                          double stdp2,
                          double clat,
                          double clong,
                          double fe,
                          double fn)
      • SetLCC1SP

        public int SetLCC1SP​(double clat,
                             double clong,
                             double scale,
                             double fe,
                             double fn)
      • SetLCCB

        public int SetLCCB​(double stdp1,
                           double stdp2,
                           double clat,
                           double clong,
                           double fe,
                           double fn)
      • SetMC

        public int SetMC​(double clat,
                         double clong,
                         double fe,
                         double fn)
      • SetMercator

        public int SetMercator​(double clat,
                               double clong,
                               double scale,
                               double fe,
                               double fn)
      • SetMercator2SP

        public int SetMercator2SP​(double stdp1,
                                  double clat,
                                  double clong,
                                  double fe,
                                  double fn)
      • SetMollweide

        public int SetMollweide​(double cm,
                                double fe,
                                double fn)
      • SetNZMG

        public int SetNZMG​(double clat,
                           double clong,
                           double fe,
                           double fn)
      • SetOS

        public int SetOS​(double dfOriginLat,
                         double dfCMeridian,
                         double scale,
                         double fe,
                         double fn)
      • SetOrthographic

        public int SetOrthographic​(double clat,
                                   double clong,
                                   double fe,
                                   double fn)
      • SetPolyconic

        public int SetPolyconic​(double clat,
                                double clong,
                                double fe,
                                double fn)
      • SetPS

        public int SetPS​(double clat,
                         double clong,
                         double scale,
                         double fe,
                         double fn)
      • SetRobinson

        public int SetRobinson​(double clong,
                               double fe,
                               double fn)
      • SetSinusoidal

        public int SetSinusoidal​(double clong,
                                 double fe,
                                 double fn)
      • SetStereographic

        public int SetStereographic​(double clat,
                                    double clong,
                                    double scale,
                                    double fe,
                                    double fn)
      • SetSOC

        public int SetSOC​(double latitudeoforigin,
                          double cm,
                          double fe,
                          double fn)
      • SetTM

        public int SetTM​(double clat,
                         double clong,
                         double scale,
                         double fe,
                         double fn)
      • SetTMVariant

        public int SetTMVariant​(java.lang.String pszVariantName,
                                double clat,
                                double clong,
                                double scale,
                                double fe,
                                double fn)
      • SetTMG

        public int SetTMG​(double clat,
                          double clong,
                          double fe,
                          double fn)
      • SetTMSO

        public int SetTMSO​(double clat,
                           double clong,
                           double scale,
                           double fe,
                           double fn)
      • SetVDG

        public int SetVDG​(double clong,
                          double fe,
                          double fn)
      • SetVerticalPerspective

        public int SetVerticalPerspective​(double topoOriginLat,
                                          double topoOriginLon,
                                          double topoOriginHeight,
                                          double viewPointHeight,
                                          double fe,
                                          double fn)
      • SetWellKnownGeogCS

        public int SetWellKnownGeogCS​(java.lang.String name)
      • SetFromUserInput

        public int SetFromUserInput​(java.lang.String name)
      • SetTOWGS84

        public int SetTOWGS84​(double p1,
                              double p2,
                              double p3,
                              double p4,
                              double p5,
                              double p6,
                              double p7)
      • HasTOWGS84

        public boolean HasTOWGS84()
      • GetTOWGS84

        public int GetTOWGS84​(double[] argout)
      • AddGuessedTOWGS84

        public int AddGuessedTOWGS84()
      • SetLocalCS

        public int SetLocalCS​(java.lang.String pszName)
      • SetGeogCS

        public int SetGeogCS​(java.lang.String pszGeogName,
                             java.lang.String pszDatumName,
                             java.lang.String pszEllipsoidName,
                             double dfSemiMajor,
                             double dfInvFlattening,
                             java.lang.String pszPMName,
                             double dfPMOffset,
                             java.lang.String pszUnits,
                             double dfConvertToRadians)
      • SetGeogCS

        public int SetGeogCS​(java.lang.String pszGeogName,
                             java.lang.String pszDatumName,
                             java.lang.String pszEllipsoidName,
                             double dfSemiMajor,
                             double dfInvFlattening,
                             java.lang.String pszPMName,
                             double dfPMOffset,
                             java.lang.String pszUnits)
      • SetGeogCS

        public int SetGeogCS​(java.lang.String pszGeogName,
                             java.lang.String pszDatumName,
                             java.lang.String pszEllipsoidName,
                             double dfSemiMajor,
                             double dfInvFlattening,
                             java.lang.String pszPMName,
                             double dfPMOffset)
      • SetGeogCS

        public int SetGeogCS​(java.lang.String pszGeogName,
                             java.lang.String pszDatumName,
                             java.lang.String pszEllipsoidName,
                             double dfSemiMajor,
                             double dfInvFlattening,
                             java.lang.String pszPMName)
      • SetGeogCS

        public int SetGeogCS​(java.lang.String pszGeogName,
                             java.lang.String pszDatumName,
                             java.lang.String pszEllipsoidName,
                             double dfSemiMajor,
                             double dfInvFlattening)
      • SetProjCS

        public int SetProjCS​(java.lang.String name)
      • SetProjCS

        public int SetProjCS()
      • SetGeocCS

        public int SetGeocCS​(java.lang.String name)
      • SetGeocCS

        public int SetGeocCS()
      • SetVertCS

        public int SetVertCS​(java.lang.String VertCSName,
                             java.lang.String VertDatumName,
                             int VertDatumType)
      • SetVertCS

        public int SetVertCS​(java.lang.String VertCSName,
                             java.lang.String VertDatumName)
      • SetVertCS

        public int SetVertCS​(java.lang.String VertCSName)
      • SetVertCS

        public int SetVertCS()
      • ImportFromWkt

        public int ImportFromWkt​(java.lang.String ppszInput)
      • ImportFromProj4

        public int ImportFromProj4​(java.lang.String ppszInput)
      • ImportFromUrl

        public int ImportFromUrl​(java.lang.String url)
      • ImportFromESRI

        public int ImportFromESRI​(java.util.Vector ppszInput)
      • ImportFromEPSG

        public int ImportFromEPSG​(int arg)
      • ImportFromEPSGA

        public int ImportFromEPSGA​(int arg)
      • ImportFromPCI

        public int ImportFromPCI​(java.lang.String proj,
                                 java.lang.String units,
                                 double[] argin)
      • ImportFromPCI

        public int ImportFromPCI​(java.lang.String proj,
                                 java.lang.String units)
      • ImportFromPCI

        public int ImportFromPCI​(java.lang.String proj)
      • ImportFromUSGS

        public int ImportFromUSGS​(int proj_code,
                                  int zone,
                                  double[] argin,
                                  int datum_code)
      • ImportFromUSGS

        public int ImportFromUSGS​(int proj_code,
                                  int zone,
                                  double[] argin)
      • ImportFromUSGS

        public int ImportFromUSGS​(int proj_code,
                                  int zone)
      • ImportFromUSGS

        public int ImportFromUSGS​(int proj_code)
      • ImportFromXML

        public int ImportFromXML​(java.lang.String xmlString)
      • ImportFromERM

        public int ImportFromERM​(java.lang.String proj,
                                 java.lang.String datum,
                                 java.lang.String units)
      • ImportFromMICoordSys

        public int ImportFromMICoordSys​(java.lang.String pszCoordSys)
      • ImportFromOzi

        public int ImportFromOzi​(java.util.Vector papszLines)
      • ExportToWkt

        public int ExportToWkt​(java.lang.String[] argout,
                               java.util.Vector options)
      • ExportToWkt

        public int ExportToWkt​(java.lang.String[] argout)
      • ExportToPrettyWkt

        public int ExportToPrettyWkt​(java.lang.String[] argout,
                                     int simplify)
      • ExportToPrettyWkt

        public int ExportToPrettyWkt​(java.lang.String[] argout)
      • ExportToPROJJSON

        public int ExportToPROJJSON​(java.lang.String[] argout,
                                    java.util.Vector options)
      • ExportToPROJJSON

        public int ExportToPROJJSON​(java.lang.String[] argout)
      • ExportToProj4

        public int ExportToProj4​(java.lang.String[] argout)
      • ExportToPCI

        public int ExportToPCI​(java.lang.String[] proj,
                               java.lang.String[] units,
                               double[] parms)
      • ExportToUSGS

        public int ExportToUSGS​(int[] code,
                                int[] zone,
                                double[] parms,
                                int[] datum)
      • ExportToXML

        public int ExportToXML​(java.lang.String[] argout,
                               java.lang.String dialect)
      • ExportToXML

        public int ExportToXML​(java.lang.String[] argout)
      • ExportToMICoordSys

        public int ExportToMICoordSys​(java.lang.String[] argout)
      • Validate

        public int Validate()
      • MorphToESRI

        public int MorphToESRI()
      • MorphFromESRI

        public int MorphFromESRI()
      • ConvertToOtherProjection

        public SpatialReference ConvertToOtherProjection​(java.lang.String other_projection,
                                                         java.util.Vector options)
      • ConvertToOtherProjection

        public SpatialReference ConvertToOtherProjection​(java.lang.String other_projection)
      • PromoteTo3D

        public int PromoteTo3D​(java.lang.String name)
      • PromoteTo3D

        public int PromoteTo3D()