vmap0rhead
Read Vector Map Level 0 file headers
Syntax
vmap0rhead
vmap0rhead(filepath,filename)
vmap0rhead(filepath,filename,fid)
vmap0rhead(...),
str = vmap0rhead(...)
Description
vmap0rhead
reads Vector Map Level 0 file headers. This
syntax allows the user to select the header file interactively.
vmap0rhead(filepath,filename)
reads from the specified
file. The combination [filepath filename]
must form a
valid complete file name.
vmap0rhead(filepath,filename,fid)
reads from the
already open file associated with fid
.
vmap0rhead(...),
with no
output arguments, displays the formatted header information on the
screen.
str = vmap0rhead(...)
returns
a character vector containing the VMAP0 header.
Background
The Vector Map Level 0 (VMAP0) uses the header in most files to document the contents and format of that file. This function reads the header and displays a formatted version in the Command Window, or returns it as a character vector.
Examples
The following example uses UNIX® file separators and path name:
s = vmap0rhead('VMAP/VMAPLV0/NOAMER/','GRT') s = L;Geographic Reference Table;-;id=I,1,P,Row Identifier,-,-,-,:data_type=T,3,N,Data Type,-,-,-,:units=T,3,N,Units of Measure Code for Library,-,-,-,:ellipsoid_name=T,15,N,Ellipsoid,-,-,-,:ellipsoid _detail=T,50,N,Ellipsoid Details,-,-,-,:vert_datum_name=T,15,N,Datum Vertical Reference,-,-,-,:vert_datum_code=T,3,N,Vertical Datum Code,-,-,-,:sound_datum_name=T,15,N,Sounding Datum,-,-,-,:sound_datum_code=T,3,N,Sounding Datum Code,-,-,-,:geo_datum_name=T,15,N,Datum Geodetic Name,-,-,-,:geo_datum_code=T,3,N,Datum Geodetic Code,-,-,-,:projection_name=T,20,N,Projection Name,-,-,-,:; vmap0rhead('VMAP/VMAPLV0/NOAMER/TRANS/','AEROFACP.PFT') L Airport Point Feature Table aerofacp.doc id=I,1,P,Row Identifier,-,-,-, f_code=T,5,N,FACC Feature Code,char.vdt,-,-, iko=T,4,N,ICAO Designator,char.vdt,-,-, nam=T,*,N,Name,char.vdt,-,-, na3=T,*,N,Name,char.vdt,-,-, use=S,1,N,Usage,int.vdt,-,-, zv3=S,1,N,Airfield/Aerodrome Elevation (meters),int.vdt,-,-, tile_id=S,1,N,Tile Reference ID,-,tile1_id.pti,-, end_id=I,1,N,Entity Node Primitive ID,-,end1_id.pti,-,
Tips
This function reads all VMAP0 files except index files (files
with names ending in 'X'
), thematic index files
(files with names ending in 'TI'
) and spatial index
files (files with names ending in 'SI'
).
File separators are platform dependent. The filepath
input
must use appropriate file separators, which you can determine using
the MATLAB® filesep
function.
Version History
Introduced before R2006a