Main Page   Compound List   File List   Compound Members   File Members   Related Pages  

geo_free.c

00001 /**********************************************************************
00002  *
00003  *  geo_free.c  -- Public routines for GEOTIFF GeoKey access.
00004  *
00005  *    Written By: Niles D. Ritter.
00006  *
00007  *  copyright (c) 1995   Niles D. Ritter
00008  *
00009  *  Permission granted to use this software, so long as this copyright
00010  *  notice accompanies any products derived therefrom.
00011  *
00012  **********************************************************************/
00013 
00014 #include "geotiff.h"   /* public interface        */
00015 #include "geo_tiffp.h" /* external TIFF interface */
00016 #include "geo_keyp.h"  /* private interface       */
00017 
00018 
00019 /**********************************************************************
00020  *
00021  *                        Public Routines
00022  *
00023  **********************************************************************/
00024 
00037 void GTIFFree(GTIF* gtif)
00038 {
00039         if (!gtif) return;
00040         
00041         /* Free parameter arrays */
00042         if (gtif->gt_ascii) _GTIFFree (gtif->gt_ascii);
00043         if (gtif->gt_double) _GTIFFree (gtif->gt_double);
00044         if (gtif->gt_short) _GTIFFree (gtif->gt_short);
00045         
00046         /* Free GeoKey arrays */
00047         if (gtif->gt_keys) _GTIFFree (gtif->gt_keys);
00048         if (gtif->gt_keyindex) _GTIFFree (gtif->gt_keyindex);
00049         
00050         _GTIFFree (gtif);
00051 }

Generated at Sun Mar 4 23:32:44 2001 for libgeotiff by doxygen1.2.3-20001105 written by Dimitri van Heesch, © 1997-2000