es.gva.cit.jgdal
Class OGRSpatialReference

java.lang.Object
  extended byJNIBase
      extended byes.gva.cit.jgdal.OGRSpatialReference

public class OGRSpatialReference
extends JNIBase

Contiene las funcionalidades necesarias para el acceso a los elementos de un dataset de gdal correspondiente a una imágen

See Also:
Serialized Form

Constructor Summary
OGRSpatialReference()
          Constructor generico
OGRSpatialReference(long cPtr)
          Constructor a partir de la dirección de memoria
 
Method Summary
 java.lang.String exportToWkt()
          Devuelve la codificación WKT
protected  void finalize()
          Destructor
 boolean getHemisphere()
          Obtiene el hemisferio
 int getUTMZone()
          Lee la zona UTM
 void setUTM(int zona, boolean norte_sur)
          Escribe la zona UTM pasada por parámetro
 void setWellKnownGeogCS(java.lang.String cs)
          Asigna las coordenadas geográficas
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OGRSpatialReference

public OGRSpatialReference(long cPtr)
Constructor a partir de la dirección de memoria


OGRSpatialReference

public OGRSpatialReference()
Constructor generico

Method Detail

setUTM

public void setUTM(int zona,
                   boolean norte_sur)
            throws GdalException
Escribe la zona UTM pasada por parámetro

Parameters:
zona - Zona UTM
norte_sur - TRUE hemisferio norte y FALSE hemisferio sur
Throws:
GdalException

getUTMZone

public int getUTMZone()
               throws GdalException
Lee la zona UTM

Returns:
Zona UTM
Throws:
GdalException

getHemisphere

public boolean getHemisphere()
                      throws GdalException
Obtiene el hemisferio

Returns:
TRUE hemisferio norte y FALSE hemisferio sur
Throws:
GdalException

setWellKnownGeogCS

public void setWellKnownGeogCS(java.lang.String cs)
                        throws GdalException
Asigna las coordenadas geográficas

Parameters:
cs - Coordenadas geograficas soportadas:
  • WGS84
  • WGS72
  • NAD27
  • NAD83
  • EPSG:n
Throws:
GdalException

exportToWkt

public java.lang.String exportToWkt()
                             throws GdalException
Devuelve la codificación WKT

Returns:
Codificación WKT
Throws:
GdalException

finalize

protected void finalize()
Destructor