Module ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias Import alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore Num Assign NameStore Dict For TupleStore NameStore TupleStore NameStore NameStore NameStore NameStore NameStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body Assign NameStore Num Assign NameStore Num If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad If NameLoad body Assign TupleStore NameStore NameStore Call NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If CompareIs NameLoad NameLoad body AugAssignAdd NameStore Num Assign NameStore NameLoad orelse If CompareNotIn NameLoad NameLoad body AugAssignAdd NameStore Num Assign SubscriptStore NameLoad Index NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad keyword NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str If NameLoad body Assign AttributeStore NameLoad attr AttributeStore NameLoad attr NameLoad Expr Yield TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareNotEq NameLoad Str CompareNotEq NameLoad Str body Expr Yield TupleLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpMult Call AttributeLoad NameLoad attr Num For TupleStore NameStore TupleStore NameStore NameStore NameStore Call NameLoad Call NameLoad NameLoad NameLoad NameLoad NameLoad body If CompareEq BinOpMod NameLoad BinOpAdd BinOpFloorDiv NameLoad Num Num Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Print Str Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args defaults body Assign NameStore Str Assign NameStore Call NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword Str keyword ListLoad keyword Str Expr Call AttributeLoad NameLoad attr Str Str keyword Str keyword NameLoad keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr If CompareNotEq Call NameLoad NameLoad Num body Expr Call AttributeLoad NameLoad attr Expr Call NameLoad Num Assign NameStore Dict For NameStore AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Str Assign SubscriptStore NameLoad Index NameLoad Call NameLoad NameLoad Print BinOpMod Str NameLoad Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Print BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore IfExp AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Expr Call NameLoad NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad Print Str decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A optparse OptionParser graphserver.graphdb GraphDatabase N/A os graphserver.core Street graphserver.ext.osm.osmdb OSMDB N/A sys graphserver.ext.osm.profiledb ProfileDB gdb_import_ned get_rise_and_fall edges_from_osmdb N/A N/A osmdb vertex_namespace slogs profiledb N/A None N/A N/A generates (vertex1_label, vertex2_label, edgepayload) from osmdb N/A street_id_counter 0 N/A street_names N/A N/A N/A i N/A id parent_id node1 node2 distance geom tags N/A enumerate N/A N/A osmdb edges N/A N/A rise 0 N/A fall 0 N/A profiledb N/A N/A profile N/A N/A profiledb get id N/A profile N/A N/A N/A rise fall N/A get_rise_and_fall profile N/A vertex1_label N/A %s-%s N/A vertex_namespace node1 N/A vertex2_label N/A %s-%s N/A vertex_namespace node2 N/A street_name N/A N/A tags get name N/A N/A street_name None N/A N/A street_id_counter 1 N/A street_id street_id_counter N/A N/A N/A street_name street_names N/A N/A street_id_counter 1 N/A N/A street_names N/A street_name street_id_counter N/A street_id N/A street_names N/A street_name N/A s1 N/A Street id distance rise fall N/A s2 N/A Street id distance fall rise reverse_of_source True N/A N/A s1 way street_id N/A N/A s2 way street_id N/A slog N/A N/A slogs get N/A N/A tags get highway N/A slog N/A N/A N/A s1 slog N/A s2 slog slog N/A N/A N/A vertex1_label vertex2_label s1 N/A oneway N/A N/A tags get oneway N/A N/A N/A oneway true N/A oneway yes N/A N/A N/A N/A vertex2_label vertex1_label s2 N/A gdb_import_osm N/A N/A gdb osmdb vertex_namespace slogs profiledb N/A None N/A N/A cursor N/A N/A gdb get_cursor N/A n_edges N/A N/A N/A osmdb count_edges 2 N/A N/A i N/A vertex1_label vertex2_label edge N/A enumerate N/A edges_from_osmdb osmdb vertex_namespace slogs profiledb N/A N/A N/A N/A i N/A N/A n_edges 100 1 0 N/A N/A N/A N/A N/A sys stdout write N/A %d/~%d edges loaded
 N/A i n_edges N/A N/A N/A gdb add_vertex vertex1_label cursor N/A N/A N/A gdb add_vertex vertex2_label cursor N/A N/A N/A gdb add_edge vertex1_label vertex2_label edge cursor N/A N/A N/A gdb commit N/A indexing vertices... N/A N/A N/A gdb index N/A main N/A N/A N/A N/A N/A usage usage: python gdb_import_osm.py <graphdb_filename> <osmdb_filename> N/A parser N/A OptionParser usage usage N/A N/A N/A parser add_option -n --namespace dest namespace default osm help prefix all imported vertices with namespace string N/A N/A N/A parser add_option -s --slog action append dest slog_strings default N/A help specify slog for highway type, in highway_type:slog form. For example, 'motorway:10.5' N/A N/A N/A parser add_option -p --profiledb dest profiledb_filename default None help specify profiledb to annotate streets with rise/fall data N/A N/A options args N/A N/A parser parse_args N/A N/A N/A len args 2 N/A N/A N/A N/A parser print_help N/A N/A exit -1 N/A slogs N/A N/A slog_string N/A options slog_strings N/A N/A N/A highway_type slog_penalty N/A N/A slog_string split : N/A N/A slogs N/A highway_type N/A float slog_penalty N/A N/A slog values: %s slogs N/A graphdb_filename N/A args N/A 0 N/A osmdb_filename N/A args N/A 1 N/A N/A importing osmdb '%s' into graphdb '%s' N/A osmdb_filename graphdb_filename N/A profiledb N/A N/A options profiledb_filename N/A ProfileDB N/A options profiledb_filename None N/A osmdb N/A OSMDB osmdb_filename N/A gdb N/A GraphDatabase graphdb_filename overwrite False N/A N/A gdb_import_osm gdb osmdb N/A options namespace slogs profiledb N/A done N/A N/A N/A __name__ __main__ N/A N/A N/A main