Placename Format

From World Wind Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 02:31, 9 February 2005 (edit)
Llynix (Talk | contribs)

← Previous diff
Revision as of 02:33, 9 February 2005 (edit) (undo)
Llynix (Talk | contribs)

Next diff →
Line 1: Line 1:
 +==Old Format==
 +
The entire thing is in binary except for the strings, each string has a byte before it saying how many characters are in the string The entire thing is in binary except for the strings, each string has a byte before it saying how many characters are in the string
<pre> <pre>
Line 29: Line 31:
------------------- -------------------
</pre> </pre>
 +
 +==New Format==
 +*Create header with meta data names

Revision as of 02:33, 9 February 2005

Old Format

The entire thing is in binary except for the strings, each string has a byte before it saying how many characters are in the string

61 00 00 00 (First 4 bytes are how many placenames are in the file, convert from hex to decimal)
-------------------------
17 (1 byte saying there are 23 characters in next string)
Afono Elementary School (the string)
9A 36 64 C1 (latitude in 4 byte signed float)
0A A7 2A C3 (longitude in 4 byte signed float)
04 00 00 00 (4 bytes saying how many meta data entries there are)
0C Feature Type 06 school (meta data follows)
06County 07 Eastern
05State 0E American Samoa
0A State Code 02 AS
----------------------------
Add more placenames here to meet the number at the top smile.gif
---------------------------

And now for the wpl (worldwind placename list) files. Much the same humbug applies:

01 00 00 00 (First 4 bytes are how many placename files are in the file, convert from hex to decimal)
-------------------
0D filename.wwp
00 00 34 C4 (4 byte signed float indicating west boundry -180)
00 00 B4 C2 (South boundry -90)
00 00 34 43 (East boundry 180)
00 00 B4 42 (North boundry 90)
------------------
Add more till you reach the number on top
-------------------

New Format

  • Create header with meta data names
Personal tools