openstreetmap怎么导入oracle
openstreetmap怎么导入oracle OpenStreetMap 2017年1月 全球数据导入Benchmark配置:
Motherboard: ASUS Z-170AR
CPU: Intel Core i7 6700K @ 4GHZ
RAM: DDR4 64GB
SSD: SAMSUM 850 1TB
环境:
windows 7 x64 Host + Oracle VirtualBox (48GiB Virtual Memory) Archlinx
导入镜像情况:
$osm2pgsql -c -s -S"/home/archosm/osmstyle/openstreetmap-carto/openstreetmap-carto.style" -C32000 -dgis --drop --flat-nodes "./flat_node" ./planet-170109.osm.pbf
Setting up table: planet_osm_roads
Allocating memory for dense node cache
Allocating dense node cache in one big chunk
Allocating memory for sparse node cache
Sharing dense sparse
Node-cache: cache=32000MB, maxblocks=512000*65536, allocation method=11
Mid: loading persistent node cache from ./flat_node
Allocated space for persistent node cache file
Maximum node in persistent node cache: 0
Mid: pgsql, scale=100 cache=32000
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Reading in file: ./planet-170109.osm.pbf
Using PBF parser.
Processing: Node(3680419k 3687.8k/s) Way(386325k 133.22k/s) Relation(4178380 760.40/s)
Standard exception processing relation id=6244046: TopologyException: side location conflict at -8427146.1899999995 5064220.8799999999
Processing: Node(3680419k 3687.8k/s) Way(386325k 133.22k/s) Relation(4418610 771.94/s)
Standard exception processing relation id=6540291: TopologyException: side location conflict at -85245.029999999999 6666499.7699999996
Processing: Node(3680419k 3687.8k/s) Way(386325k 133.22k/s) Relation(4602380 780.20/s)
Standard exception processing relation id=6752256: TopologyException: side location conflict at 538047.93000000005 5671707.1900000004
Processing: Node(3680419k 3687.8k/s) Way(386325k 133.22k/s) Relation(4697380 785.25/s)parse time: 9880s
Node stats: total(3680419136), max(4597265847) in 998s
Way stats: total(386325131), max(464638647) in 2900s
Relation stats: total(4698016), max(6861619) in 5982s
Maximum node in persistent node cache: 4598005759
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Mid: loading persistent node cache from ./flat_node
Maximum node in persistent node cache: 4598005759
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Mid: loading persistent node cache from ./flat_node
Maximum node in persistent node cache: 4598005759
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Mid: loading persistent node cache from ./flat_node
Maximum node in persistent node cache: 4598005759
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Mid: loading persistent node cache from ./flat_node
Maximum node in persistent node cache: 4598005759
Setting up table: planet_osm_nodes
Setting up table: planet_osm_ways
Setting up table: planet_osm_rels
Using built-in tag processing pipeline
Going over pending ways...
264334285 ways are pending
Using 4 helper-processes
Finished processing 264334285 ways in 19052 s
264334285 Pending ways took 19052s at a rate of 13874.36/s
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Committing transaction for planet_osm_point
Committing transaction for planet_osm_line
Committing transaction for planet_osm_polygon
Committing transaction for planet_osm_roads
Going over pending relations...
0 relations are pending
$ exitations in 0 s
logout
Connection to 192.168.1.10 closed.osm_point
WARNING:there is no transaction in progress
gougoumimi@gougoumimi-PC MINGW64 ~osm_line
$ qtcreator &
1964ng transaction for planet_osm_polygon
WARNING:there is no transaction in progress
gougoumimi@gougoumimi-PC MINGW64 ~osm_roads
$ ssh archosm@192.168.1.10
archosm@192.168.1.10's password: _osm_point
Last login: Mon Jan 16 17:31:37 2017 from 10.0.2.2
$ screen -r import_line
WARNING:there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING:there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING:there is no transaction in progress
Committing transaction for planet_osm_point
WARNING:there is no transaction in progress
Committing transaction for planet_osm_line
WARNING:there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING:there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING:there is no transaction in progress
Committing transaction for planet_osm_point
WARNING:there is no transaction in progress
Committing transaction for planet_osm_line
WARNING:there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING:there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING:there is no transaction in progress
Sorting data and creating indexes for planet_osm_point
Stopping table: planet_osm_nodes
Stopping table: planet_osm_ways
Stopping table: planet_osm_rels
Sorting data and creating indexes for planet_osm_line
Sorting data and creating indexes for planet_osm_roads
Sorting data and creating indexes for planet_osm_polygon
Stopped table: planet_osm_nodes in 0s
Stopped table: planet_osm_rels in 0s
Stopped table: planet_osm_ways in 0s
Copying planet_osm_roads to cluster by geometry finished
Creating geometry index on planet_osm_roads
Creating indexes on planet_osm_roads finished
All indexes on planet_osm_roads created in 1275s
Completed planet_osm_roads
Copying planet_osm_point to cluster by geometry finished
Creating geometry index on planet_osm_point
Creating indexes on planet_osm_point finished
All indexes on planet_osm_point created in 3349s
Completed planet_osm_point
Copying planet_osm_line to cluster by geometry finished
Creating geometry index on planet_osm_line
Creating indexes on planet_osm_line finished
All indexes on planet_osm_line created in 8424s
Completed planet_osm_line
Copying planet_osm_polygon to cluster by geometry finished
Creating geometry index on planet_osm_polygon
Using 4 helper-processes
Finished processing 0 relations in 0 s
Committing transaction for planet_osm_point
WARNING:there is no transaction in progress
Committing transaction for planet_osm_line
WARNING:there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING:there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING:there is no transaction in progress
Committing transaction for planet_osm_point
WARNING:there is no transaction in progress
Committing transaction for planet_osm_line
WARNING:there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING:there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING:there is no transaction in progress
Committing transaction for planet_osm_point
WARNING:there is no transaction in progress
Committing transaction for planet_osm_line
WARNING:there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING:there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING:there is no transaction in progress
Committing transaction for planet_osm_point
WARNING:there is no transaction in progress
Committing transaction for planet_osm_line
WARNING:there is no transaction in progress
Committing transaction for planet_osm_polygon
WARNING:there is no transaction in progress
Committing transaction for planet_osm_roads
WARNING:there is no transaction in progress
Sorting data and creating indexes for planet_osm_point
Stopping table: planet_osm_nodes
Stopping table: planet_osm_ways
Stopping table: planet_osm_rels
Sorting data and creating indexes for planet_osm_line
Sorting data and creating indexes for planet_osm_roads
Sorting data and creating indexes for planet_osm_polygon
Stopped table: planet_osm_nodes in 0s
Stopped table: planet_osm_rels in 0s
Stopped table: planet_osm_ways in 0s
Copying planet_osm_roads to cluster by geometry finished
Creating geometry index on planet_osm_roads
Creating indexes on planet_osm_roads finished
All indexes on planet_osm_roads created in 1275s
Completed planet_osm_roads
Copying planet_osm_point to cluster by geometry finished
Creating geometry index on planet_osm_point
Creating indexes on planet_osm_point finished
All indexes on planet_osm_point created in 3349s
Completed planet_osm_point
Copying planet_osm_line to cluster by geometry finished
Creating geometry index on planet_osm_line
Creating indexes on planet_osm_line finished
All indexes on planet_osm_line created in 8424s
Completed planet_osm_line
Copying planet_osm_polygon to cluster by geometry finished
Creating geometry index on planet_osm_polygon
Creating indexes on planet_osm_polygon finished
All indexes on planet_osm_polygon created in 13787s
Completed planet_osm_polygon
Maximum node in persistent node cache: 4598005759
页:
[1]