File: processor-point.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 (18 lines) | stat: -rw-r--r-- 434 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <memory>

#include <boost/format.hpp>

#include "processor-point.hpp"
#include "util.hpp"

processor_point::processor_point(int srid)
    : geometry_processor(srid, "POINT", interest_node) {
}

processor_point::~processor_point() {
}

geometry_builder::pg_geom_t processor_point::process_node(double lat, double lon)
{
    return geometry_builder::pg_geom_t((boost::format("POINT(%.15g %.15g)") % lon % lat).str(), false);
}