8#ifndef PYDEFINITIONS_H_INCLUDED
9#define PYDEFINITIONS_H_INCLUDED
11#include "boost/python.hpp"
19 boost::python::to_python_converter<std::vector<T, std::allocator<T>>, VecToList<T>>();
20 iterable_converter().from_python<std::vector<T>>();
26 py_pair<Core::FMTmask, T>();
27 py_pair<Core::FMTmask const, T>();
28 boost::python::class_<Core::FMTlist<T>>(
"FMTlist",
"@DocString(FMTlist)")
31 "@DocString(FMTlist::update)")
34 "@DocString(FMTyieldhandler::APIpush_back)");
42 boost::python::class_<Spatial::FMTlayer<T>>(
"FMTlayer",
"@DocString(FMTlayer)")
44 "@DocString(FMTlayer::GetXSize)")
46 "@DocString(FMTlayer::GetYSize)")
48 "@DocString(FMTlayer::getgeotransform)")
50 "@DocString(FMTlayer::getprojection)")
52 "@DocString(FMTlayer::getmapping)")
54 "@DocString(FMTlayer::area)")
56 "@DocString(FMTlayer::getcellsize)")
58 "@DocString(FMTlayer::size)")
61 .def(
"__getitem__",&
Spatial::FMTlayer<T>::at,boost::python::return_internal_reference<>(),
"@DocString(FMTlayer::at)");
62 boost::python::to_python_converter<std::map<Spatial::FMTcoordinate,T>,MapToDict<Spatial::FMTcoordinate,T>>();
65template<
class k,
class v>
68 boost::python::to_python_converter<std::map<k,v>,MapToDict<k,v>>();
101template<
typename T1,
typename T2>
103 boost::python::to_python_converter<std::pair<T1, T2>, PairToPythonConverter<T1, T2>>();
104 PythonToPairConverter<T1, T2>();
Definition: FMTlist.hpp:46
Definition: FMTlayer.hpp:29
Definition: PYdefinitions.hpp:14
void define_pypair()
Definition: PYdefinitions.hpp:102
void define_FMTlist()
Definition: PYdefinitions.hpp:24
void define_pydict()
Definition: PYdefinitions.hpp:66
void define_pylist()
Definition: PYdefinitions.hpp:17
void define_FMTlayer()
Definition: PYdefinitions.hpp:39