87 lines · 1.8 KB · Text
RawDownload
.TH MAP 6.SH NAMEmap \- digitized map formats.SH DESCRIPTIONFiles used by.IR  map (7)are a sequence of structures of the form:.PP.EXstruct {	signed char patchlatitude;	signed char patchlongitude;	short n;	union {		struct {			short latitude;			short longitude;		} point[n];		struct {			short latitude;			short longitude;			struct {				signed char latdiff;				signed char londiff;			} point[\-n];		} highres;	} segment;};.EEwhere.B shortstands for 16-bit integers and there is no padding within or between.BR structs .Shorts are stored in little-endian order, low byte first.To assure portability,.I mapaccesses them bytewise..PPFields.L patchlatitudeand.L patchlongitudetell to what10-degree by 10-degreepatch of the earth's surface a segment belongs.Their values range from \-9 to 8 and from \-18 to 17,respectively, and indicate the coordinates of thesoutheast corner of the patch in units of 10 degrees..PPEach segment of.RB | n |points is connected; consecutive segmentsare not necessarily related.Latitude and longitudeare measured in units of 0.0001 radian.If.B nis negative, thendifferences to the first and succeeding pointsare measured in units of 0.00001 radian.Latitude is counted positive to the north andlongitude positive to the west..PPThe patches are ordered lexicographically by.L patchlatitudethen.LR patchlongitude .A printableindex to the first segment of each patchin a file named.I datais kept in an associated file named.IB data .x\f1.Each line of an index file contains.L patchlatitude,.L patchlongitudeand the byte positionof the patchin the map file.Both the map file and the index file are ordered bypatch latitude and longitude..SH "SEE ALSO".IR map (7).brThe data comes from the World Data Bank I and II andU.S. Government sources: the Census Bureau, GeologicalSurvey, and CIA.