-
Notifications
You must be signed in to change notification settings - Fork 1
/
README
60 lines (38 loc) · 1.77 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Version 0.0000001 Mon Feb 13
This is my first running version of a C Program that accesses the fosm database.
The program loops ovre the main index of the nodex relation that contains the tags.
so the first key is the tag. There are more keys that are not used yet, they are :
1. TagName
2. Value
3. QuadTreeIndex
4. NodeID
Here is an example to query the database :
GTM>zwr ^nodex("highway","service",*)
output is :
^nodex("highway","service","bacdbccbdabacad",1229063980)=""
Now my simple program uses the $Order function
See the tags that I extracted so far here NodeX_TagKeys.txt
FOSM contains many data relations, see Readme.relations, the numbers are from my database copy and may be old.
Thanks to 80n for his help and patience while I am learning this.
mike
----------------------------------------------------------------------------
More Notes
example data:
^relation(4042,"seq",434,"role")=""
^relation(4042,"seq",434,"type")="way"
^relation(4042,"seq",435,"ref")=61326636
Here are some example invocations :
~/experiments/simpletest/simple -t element -j -c10; stty sane
get the first ten level one keyss from the element table.
on of the keys is :aacbdddbabdcaba
~/experiments/simpletest/simple -t element -kaacbdddbabdcaba -c10; stty sane
# examples for long keys :
~/experiments/simpletest/simple -t changeset -k 8701754 -l n -m 585056240 -n v -o 2 -c10
~/experiments/simpletest/simple -t changeset -k 8701754 -l n -m 585056240 -n v -o 2 -pa -c10 -v
~/experiments/simpletest/simple -t changeset -k 8701754 -l n -m 585056240 -n v -o 2 -pu -q 101 -v -c10 ;
dont forget this at the end :
stty sane
commit 0113ef3b14bcde7268c4c6a1882ed2766ac6445f
Author: James Michael DuPont <[email protected]>
Date: Mon Feb 27 03:32:59 2012 -0800
adding more params