hdf images hdf images

HMAP -- PROTOTYPE HDF4 MAPPING FILE WRITER


hmap is a utility that creates an XML mapping file for a given HDF4 file. A mapping file is an XML document that describes the file structure, file metadata, and offset/length of raw data in a HDF4 file. The mapping file can be used to retieve data from a HDF4 file without the HDF4 library.


Source files

    hmap.h        -- the header file that defines mapping functions and XML tags for the map
    vgint.h       -- the header file that includes VDATA definitions. 
                     The file is copied from the HDF4 source code, hdf/src  
                                  
    hmap.c        -- the main program for hmap
    hmap_sds.c    -- the routines that extract mapping information for SDS
    hmap_ris.c    -- the routines that extract mapping information for raster images 
    hmap_vdata.c  -- the routines that extract mapping information for Vdata


Compile source code

To compile the source code, you will need to install the HDF4 library.

change h4cc path in Makefile, e.g. 

CC=/usr/local/hdf4/bin/h4cc Run hmap ./hmap -h[elp] for help, OR ./hmap <infile> [<outfile>]]", e.g. "./hmap test.hdf"
- - Last modified: 13 February 2014