File: processor-line.cpp

package info (click to toggle)
osm2pgsql 0.92.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,420 kB
  • ctags: 1,429
  • sloc: cpp: 11,650; python: 543; sh: 98; makefile: 14
file content (19 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "processor-line.hpp"

processor_line::processor_line(int srid) : geometry_processor(srid, "LINESTRING", interest_way | interest_relation )
{
}

processor_line::~processor_line()
{
}

geometry_builder::pg_geom_t processor_line::process_way(const nodelist_t &nodes)
{
    return builder.get_wkb_simple(nodes, false);
}

geometry_builder::pg_geoms_t processor_line::process_relation(const multinodelist_t &nodes)
{
    return builder.build_both(nodes, false, false, 1000000);
}