#include <AddressGeocodingOp.h>
Public Member Functions | |
| AddressGeocodingOp () | |
| bool | paramsAreValid () |
| bool | run () |
| void | setInput (te::da::DataSourcePtr inDsrc, std::string inDsetName, int inSRID, te::da::DataSourcePtr inAddressDsrc, std::string inAddressDsetName) |
| void | setNumAttributes (std::string initialLeft, std::string finalLeft, std::string initialRight, std::string finalRight) |
| void | setOutput (te::da::DataSourcePtr outDsrc, std::string m_outDsetName) |
| void | setParams (std::vector< std::string > associatedProps, std::string streetNumber) |
| ~AddressGeocodingOp () | |
Protected Member Functions | |
| void | getLines (te::gm::Geometry *geom, std::vector< te::gm::LineString * > &lines) |
| void | getLines (te::gm::GeometryCollection *gc, std::vector< te::gm::LineString * > &lines) |
| void | getLines (te::gm::LineString *l, std::vector< te::gm::LineString * > &lines) |
| te::gm::LineString * | getLineString (te::gm::Geometry *geom) |
| std::unique_ptr< te::da::DataSetType > | getOutputDataSetType () |
| bool | save (std::unique_ptr< te::mem::DataSet > result, std::unique_ptr< te::da::DataSetType > outDsetName) |
Protected Attributes | |
| std::vector< std::string > | m_associatedProps |
| File attributes. More... | |
| std::string | m_finalLeft |
| std::string | m_finalRight |
| std::string | m_inAddressDsetName |
| te::da::DataSourcePtr | m_inAddressDsrc |
| std::string | m_inDsetName |
| te::da::DataSourcePtr | m_inDsrc |
| std::string | m_initialLeft |
| std::string | m_initialRight |
| int | m_inSRID |
| std::string | m_outDsetName |
| te::da::DataSourcePtr | m_outDsrc |
| std::string | m_streetNumber |
| File attribute that represents the address number. More... | |
Definition at line 55 of file AddressGeocodingOp.h.
| te::addressgeocoding::AddressGeocodingOp::AddressGeocodingOp | ( | ) |
Definition at line 53 of file AddressGeocodingOp.cpp.
|
inline |
Definition at line 61 of file AddressGeocodingOp.h.
References gc.
|
protected |
Definition at line 388 of file AddressGeocodingOp.cpp.
References te::gm::Geometry::getGeomTypeId(), te::gm::LineStringType, and te::gm::MultiLineStringType.
Referenced by getLines(), and getLineString().
|
protected |
Definition at line 408 of file AddressGeocodingOp.cpp.
References te::gm::GeometryCollection::getGeometryN(), getLines(), and te::gm::GeometryCollection::getNumGeometries().
|
protected |
Definition at line 416 of file AddressGeocodingOp.cpp.
|
protected |
Definition at line 372 of file AddressGeocodingOp.cpp.
References getLines(), line, and te::gm::Geometry::Union().
Referenced by run().
|
protected |
Definition at line 344 of file AddressGeocodingOp.cpp.
References te::dt::GEOMETRY_TYPE, te::gm::GeometryProperty::getSRID(), m_inDsetName, m_inDsrc, m_outDsetName, p, te::gm::PointType, te::gm::GeometryProperty::setGeometryType(), and te::gm::GeometryProperty::setSRID().
Referenced by run().
| bool te::addressgeocoding::AddressGeocodingOp::paramsAreValid | ( | ) |
Definition at line 95 of file AddressGeocodingOp.cpp.
References m_associatedProps, m_inAddressDsetName, m_inAddressDsrc, m_inDsetName, m_inDsrc, m_outDsetName, and m_outDsrc.
| bool te::addressgeocoding::AddressGeocodingOp::run | ( | ) |
Definition at line 111 of file AddressGeocodingOp.cpp.
References te::dt::DOUBLE_TYPE, te::dt::GEOMETRY_TYPE, getLineString(), te::dt::Property::getName(), getOutputDataSetType(), te::dt::INT16_TYPE, te::dt::INT32_TYPE, te::dt::INT64_TYPE, te::gm::locateAlong(), m_associatedProps, m_finalLeft, m_finalRight, m_inAddressDsetName, m_inAddressDsrc, m_inDsetName, m_inDsrc, m_initialLeft, m_initialRight, m_inSRID, m_streetNumber, te::dt::NUMERIC_TYPE, te::common::ReplaceSpecialChars(), save(), and te::mem::DataSetItem::setValue().
|
protected |
Definition at line 317 of file AddressGeocodingOp.cpp.
References te::da::PrimaryKey::add(), te::da::CreateAdapter(), te::da::DataSetTypeConverter::getResult(), m_outDsetName, and m_outDsrc.
Referenced by run().
| void te::addressgeocoding::AddressGeocodingOp::setInput | ( | te::da::DataSourcePtr | inDsrc, |
| std::string | inDsetName, | ||
| int | inSRID, | ||
| te::da::DataSourcePtr | inAddressDsrc, | ||
| std::string | inAddressDsetName | ||
| ) |
Definition at line 58 of file AddressGeocodingOp.cpp.
References m_inAddressDsetName, m_inAddressDsrc, m_inDsetName, m_inDsrc, and m_inSRID.
| void te::addressgeocoding::AddressGeocodingOp::setNumAttributes | ( | std::string | initialLeft, |
| std::string | finalLeft, | ||
| std::string | initialRight, | ||
| std::string | finalRight | ||
| ) |
Definition at line 78 of file AddressGeocodingOp.cpp.
References m_finalLeft, m_finalRight, m_initialLeft, and m_initialRight.
| void te::addressgeocoding::AddressGeocodingOp::setOutput | ( | te::da::DataSourcePtr | outDsrc, |
| std::string | m_outDsetName | ||
| ) |
Definition at line 89 of file AddressGeocodingOp.cpp.
References m_outDsetName, and m_outDsrc.
| void te::addressgeocoding::AddressGeocodingOp::setParams | ( | std::vector< std::string > | associatedProps, |
| std::string | streetNumber | ||
| ) |
Definition at line 71 of file AddressGeocodingOp.cpp.
References m_associatedProps, and m_streetNumber.
|
protected |
File attributes.
Definition at line 104 of file AddressGeocodingOp.h.
Referenced by paramsAreValid(), run(), and setParams().
|
protected |
Definition at line 108 of file AddressGeocodingOp.h.
Referenced by run(), and setNumAttributes().
|
protected |
Definition at line 110 of file AddressGeocodingOp.h.
Referenced by run(), and setNumAttributes().
|
protected |
Definition at line 102 of file AddressGeocodingOp.h.
Referenced by paramsAreValid(), run(), and setInput().
|
protected |
Definition at line 101 of file AddressGeocodingOp.h.
Referenced by paramsAreValid(), run(), and setInput().
|
protected |
Definition at line 99 of file AddressGeocodingOp.h.
Referenced by getOutputDataSetType(), paramsAreValid(), run(), and setInput().
|
protected |
Definition at line 98 of file AddressGeocodingOp.h.
Referenced by getOutputDataSetType(), paramsAreValid(), run(), and setInput().
|
protected |
Definition at line 107 of file AddressGeocodingOp.h.
Referenced by run(), and setNumAttributes().
|
protected |
Definition at line 109 of file AddressGeocodingOp.h.
Referenced by run(), and setNumAttributes().
|
protected |
Definition at line 100 of file AddressGeocodingOp.h.
Referenced by run(), and setInput().
|
protected |
Definition at line 113 of file AddressGeocodingOp.h.
Referenced by getOutputDataSetType(), paramsAreValid(), save(), and setOutput().
|
protected |
Definition at line 112 of file AddressGeocodingOp.h.
Referenced by paramsAreValid(), save(), and setOutput().
|
protected |
File attribute that represents the address number.
Definition at line 105 of file AddressGeocodingOp.h.
Referenced by run(), and setParams().