| 1 | #pragma once | ||
| 2 | |||
| 3 | #include <geos/index/chain/MonotoneChain.h> | ||
| 4 | #include <geos/index/chain/MonotoneChainBuilder.h> | ||
| 5 | #include <geos/index/chain/MonotoneChainOverlapAction.h> | ||
| 6 | #include <geos/index/ItemVisitor.h> | ||
| 7 | #include <geos/index/quadtree/Quadtree.h> | ||
| 8 | #include <geos/index/strtree/STRtree.h> | ||
| 9 | |||
| 10 | |||
| 11 | namespace xs { | ||
| 12 | |||
| 13 | template <> | ||
| 14 | struct Typemap<geos::index::chain::MonotoneChain*>: TypemapObject<geos::index::chain::MonotoneChain*, geos::index::chain::MonotoneChain*, ObjectTypePtr, ObjectStorageMG, StaticCast>{ | ||
| 15 | 2 | static panda::string_view package() {return "Geo::Geos::Index::MonotoneChain"; } | |
| 16 | }; | ||
| 17 | |||
| 18 | template <> | ||
| 19 | struct Typemap<geos::index::chain::MonotoneChainOverlapAction*>: TypemapObject<geos::index::chain::MonotoneChainOverlapAction*, geos::index::chain::MonotoneChainOverlapAction*, ObjectTypePtr, ObjectStorageMG, StaticCast>{ | ||
| 20 | 2 | static panda::string_view package() {return "Geo::Geos::Index::MonotoneChainOverlapAction"; } | |
| 21 | }; | ||
| 22 | |||
| 23 | // DynamicCast is needed for STRtree | ||
| 24 | template <class TYPE> | ||
| 25 | struct Typemap<geos::index::SpatialIndex*, TYPE> : TypemapObject<geos::index::SpatialIndex*, TYPE, ObjectTypePtr, ObjectStorageMG, DynamicCast> { | ||
| 26 | 0 | static panda::string_view package() {return "Geo::Geos::Index::SpatialIndex"; } | |
| 27 | }; | ||
| 28 | |||
| 29 | template <> | ||
| 30 | struct Typemap<geos::index::quadtree::Quadtree*>: Typemap<geos::index::SpatialIndex*, geos::index::quadtree::Quadtree*>{ | ||
| 31 | 2 | static panda::string_view package() {return "Geo::Geos::Index::Quadtree"; } | |
| 32 | }; | ||
| 33 | |||
| 34 | template <> | ||
| 35 | struct Typemap<geos::index::strtree::STRtree*>: Typemap<geos::index::SpatialIndex*, geos::index::strtree::STRtree*>{ | ||
| 36 | 2 | static panda::string_view package() {return "Geo::Geos::Index::STRtree"; } | |
| 37 | }; | ||
| 38 | |||
| 39 | } |