Package org.gdal.osr

Class SpatialReference

java.lang.Object
org.gdal.osr.SpatialReference
All Implemented Interfaces:
Cloneable

public class SpatialReference extends Object implements Cloneable
  • Constructor Details

    • SpatialReference

      public SpatialReference(long cPtr, boolean cMemoryOwn)
    • SpatialReference

      public SpatialReference(String wkt)
    • SpatialReference

      public SpatialReference()
  • Method Details

    • getCPtr

      public static long getCPtr(SpatialReference obj)
    • delete

      public void delete()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • clone

      public Object clone()
    • hashCode

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

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

      public String ExportToWkt()
    • ExportToPrettyWkt

      public String ExportToPrettyWkt(int simplify)
    • ExportToPrettyWkt

      public String ExportToPrettyWkt()
    • ExportToProj4

      public String ExportToProj4()
    • ExportToXML

      public String ExportToXML(String dialect)
    • ExportToXML

      public String ExportToXML()
    • ExportToMICoordSys

      public String ExportToMICoordSys()
    • GetTOWGS84

      public double[] GetTOWGS84()
    • SetTOWGS84

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

      public String __str__()
    • GetName

      public String GetName()
    • IsSame

      public int IsSame(SpatialReference rhs, Vector options)
    • IsSame

      public int IsSame(SpatialReference rhs)
    • IsSameGeogCS

      public int IsSameGeogCS(SpatialReference rhs)
    • IsSameVertCS

      public int IsSameVertCS(SpatialReference rhs)
    • 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()
    • IsDynamic

      public boolean IsDynamic()
    • GetCoordinateEpoch

      public double GetCoordinateEpoch()
    • SetCoordinateEpoch

      public void SetCoordinateEpoch(double coordinateEpoch)
    • EPSGTreatsAsLatLong

      public int EPSGTreatsAsLatLong()
    • EPSGTreatsAsNorthingEasting

      public int EPSGTreatsAsNorthingEasting()
    • SetAuthority

      public int SetAuthority(String pszTargetKey, String pszAuthority, int nCode)
    • GetAttrValue

      public String GetAttrValue(String name, int child)
    • GetAttrValue

      public String GetAttrValue(String name)
    • SetAttrValue

      public int SetAttrValue(String name, String value)
    • SetAngularUnits

      public int SetAngularUnits(String name, double to_radians)
    • GetAngularUnits

      public double GetAngularUnits()
    • GetAngularUnitsName

      public String GetAngularUnitsName()
    • SetTargetLinearUnits

      public int SetTargetLinearUnits(String target, String name, double to_meters)
    • SetLinearUnits

      public int SetLinearUnits(String name, double to_meters)
    • SetLinearUnitsAndUpdateParameters

      public int SetLinearUnitsAndUpdateParameters(String name, double to_meters)
    • GetTargetLinearUnits

      public double GetTargetLinearUnits(String target_key)
    • GetLinearUnits

      public double GetLinearUnits()
    • GetLinearUnitsName

      public String GetLinearUnitsName()
    • GetAuthorityCode

      public String GetAuthorityCode(String target_key)
    • GetAuthorityName

      public String GetAuthorityName(String target_key)
    • GetAreaOfUse

      public AreaOfUse GetAreaOfUse()
    • GetAxisName

      public String GetAxisName(String target_key, int iAxis)
    • GetAxesCount

      public int GetAxesCount()
    • GetAxisOrientation

      public int GetAxisOrientation(String target_key, int iAxis)
    • GetAxisMappingStrategy

      public int GetAxisMappingStrategy()
    • SetAxisMappingStrategy

      public void SetAxisMappingStrategy(int strategy)
    • GetDataAxisToSRSAxisMapping

      public int[] GetDataAxisToSRSAxisMapping(SWIGTYPE_p_int nLen, SWIGTYPE_p_p_int pList)
    • 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, String unitsname, double units)
    • SetStatePlane

      public int SetStatePlane(int zone, int is_nad83, 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(String arg)
    • SetProjParm

      public int SetProjParm(String name, double val)
    • GetProjParm

      public double GetProjParm(String name, double default_val)
    • GetProjParm

      public double GetProjParm(String name)
    • SetNormProjParm

      public int SetNormProjParm(String name, double val)
    • GetNormProjParm

      public double GetNormProjParm(String name, double default_val)
    • GetNormProjParm

      public double GetNormProjParm(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(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(String name)
    • SetFromUserInput

      public int SetFromUserInput(String name)
    • CopyGeogCSFrom

      public int CopyGeogCSFrom(SpatialReference rhs)
    • 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(String pszName)
    • SetGeogCS

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

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

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

      public int SetGeogCS(String pszGeogName, String pszDatumName, String pszEllipsoidName, double dfSemiMajor, double dfInvFlattening, String pszPMName)
    • SetGeogCS

      public int SetGeogCS(String pszGeogName, String pszDatumName, String pszEllipsoidName, double dfSemiMajor, double dfInvFlattening)
    • SetProjCS

      public int SetProjCS(String name)
    • SetProjCS

      public int SetProjCS()
    • SetGeocCS

      public int SetGeocCS(String name)
    • SetGeocCS

      public int SetGeocCS()
    • SetVertCS

      public int SetVertCS(String VertCSName, String VertDatumName, int VertDatumType)
    • SetVertCS

      public int SetVertCS(String VertCSName, String VertDatumName)
    • SetVertCS

      public int SetVertCS(String VertCSName)
    • SetVertCS

      public int SetVertCS()
    • SetCompoundCS

      public int SetCompoundCS(String name, SpatialReference horizcs, SpatialReference vertcs)
    • ImportFromWkt

      public int ImportFromWkt(String ppszInput)
    • ImportFromProj4

      public int ImportFromProj4(String ppszInput)
    • ImportFromUrl

      public int ImportFromUrl(String url)
    • ImportFromESRI

      public int ImportFromESRI(Vector ppszInput)
    • ImportFromEPSG

      public int ImportFromEPSG(int arg)
    • ImportFromEPSGA

      public int ImportFromEPSGA(int arg)
    • ImportFromPCI

      public int ImportFromPCI(String proj, String units, double[] argin)
    • ImportFromPCI

      public int ImportFromPCI(String proj, String units)
    • ImportFromPCI

      public int ImportFromPCI(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(String xmlString)
    • ImportFromERM

      public int ImportFromERM(String proj, String datum, String units)
    • ImportFromMICoordSys

      public int ImportFromMICoordSys(String pszCoordSys)
    • ImportFromOzi

      public int ImportFromOzi(Vector papszLines)
    • ExportToWkt

      public int ExportToWkt(String[] argout, Vector options)
    • ExportToWkt

      public int ExportToWkt(String[] argout)
    • ExportToPrettyWkt

      public int ExportToPrettyWkt(String[] argout, int simplify)
    • ExportToPrettyWkt

      public int ExportToPrettyWkt(String[] argout)
    • ExportToPROJJSON

      public int ExportToPROJJSON(String[] argout, Vector options)
    • ExportToPROJJSON

      public int ExportToPROJJSON(String[] argout)
    • ExportToProj4

      public int ExportToProj4(String[] argout)
    • ExportToPCI

      public int ExportToPCI(String[] proj, String[] units, double[] params)
    • ExportToUSGS

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

      public int ExportToXML(String[] argout, String dialect)
    • ExportToXML

      public int ExportToXML(String[] argout)
    • ExportToMICoordSys

      public int ExportToMICoordSys(String[] argout)
    • CloneGeogCS

      public SpatialReference CloneGeogCS()
    • Clone

      public SpatialReference Clone()
    • Validate

      public int Validate()
    • MorphToESRI

      public int MorphToESRI()
    • MorphFromESRI

      public int MorphFromESRI()
    • ConvertToOtherProjection

      public SpatialReference ConvertToOtherProjection(String other_projection, Vector options)
    • ConvertToOtherProjection

      public SpatialReference ConvertToOtherProjection(String other_projection)
    • PromoteTo3D

      public int PromoteTo3D(String name)
    • PromoteTo3D

      public int PromoteTo3D()
    • DemoteTo2D

      public int DemoteTo2D(String name)
    • DemoteTo2D

      public int DemoteTo2D()