File: processor-polygon.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-- 548 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-polygon.hpp"

processor_polygon::processor_polygon(int srid, bool enable_multi) : geometry_processor(srid, "GEOMETRY", interest_way | interest_relation), enable_multi(enable_multi)
{
}

processor_polygon::~processor_polygon()
{
}

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

geometry_builder::pg_geoms_t processor_polygon::process_relation(const multinodelist_t &nodes)
{
    return  builder.build_polygons(nodes, enable_multi, -1);
}