Changes between Version 2 and Version 3 of FDORfc63
- Timestamp:
- 05/17/12 12:29:47 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FDORfc63
v2 v3 74 74 /// \param mode 75 75 /// Input Type of the spatial index 76 77 76 /// 77 /// \return 78 78 /// Returns A spatial index instance 79 79 /// 80 80 FDO_SPATIAL_API static FdoSpatialIndex* Create(FdoSpatialIndexMode mode = FdoSpatialIndex_ByGeometriesBoundingBox); 81 81 82 83 84 85 82 /// \brief 83 /// Retrieves the Spatial index mode set at creation time 84 /// 85 /// \return 86 86 /// Returns the Spatial index mode set at creation 87 87 /// 88 88 FDO_SPATIAL_API FdoSpatialIndexMode GetMode(); 89 89 90 91 92 93 90 /// \brief 91 /// Inserts a feature into the spatial index given a bounding box 92 /// 93 /// \remarks 94 94 /// Applies only for Mode #1. The Featid is not encoded. 95 95 /// 96 96 /// \param featId 97 97 /// Input The feature identifier 98 98 /// \param featId 99 99 /// Input A bounding box 100 101 100 /// 101 /// \return 102 102 /// Returns Nothing 103 103 /// 104 104 FDO_SPATIAL_API void InsertObject(FdoInt64 featId, FdoIEnvelope *ext); 105 105 106 107 108 109 110 111 106 /// \brief 107 /// Inserts a feature into the spatial index given a bounding box 108 /// 109 /// \remarks 110 /// Applies for Mode #2 and #3. The Featid is encoded as follows: 111 /// Mode #2: 112 112 /// 32 bits (0-31) - 1-based featId # 113 113 /// 32 bits (32-63) - vertex # (contiguous) 114 114 /// 115 116 115 /// Mode #3: 116 /// 0 bits - featId # (will be ignored) 117 117 /// 16 bits (0-15) - part # (for multi-features) max. 65534 118 118 /// 16 bits (16-31) - subpart # (e.g. polygons with interior rings) max 65534 119 119 /// 32 bits (32-63) - vertex # 120 /// 121 120 /// 121 /// \param featId 122 122 /// Input The feature identifier 123 123 /// \param featId 124 124 /// Input A geometry in FGF format 125 126 125 /// 126 /// \return 127 127 /// Returns Nothing 128 128 /// 129 129 FDO_SPATIAL_API void InsertObject(FdoInt32 featId, FdoByteArray* fgfArray); 130 130 131 132 133 134 131 /// \brief 132 /// Returns the extent of the spatial index 133 /// 134 /// \return 135 135 /// Returns The extents of the spatial index 136 136 /// 137 137 FDO_SPATIAL_API FdoIEnvelope* GetTotalExtent(); 138 138 139 140 141 142 143 139 /// \brief 140 /// Decodes a marker returned by the Spatial index iterator. 141 /// Applies only for Mode #2, BySegmentsMultipleFeatures. 142 /// 143 /// \param marker 144 144 /// Input A marker returned by the Spatial index iterator 145 145 /// \param featId 146 146 /// Output The featId 147 147 /// \param iVertex 148 148 /// Output The index of the segment in the original geometry, 1-based 149 150 149 /// 150 /// \return 151 151 /// Returns Nothing 152 152 /// 153 153 FDO_SPATIAL_API void DecodeMarker(FdoInt64 marker, FdoInt32 &featId, FdoInt32 &iSegment); 154 154 155 156 157 158 159 155 /// \brief 156 /// Decodes a marker returned by the Spatial index iterator. 157 /// Applies only for Mode #3, BySegmentsSingleFeature. 158 /// 159 /// \param marker 160 160 /// Input A marker returned by the Spatial index iterator 161 162 163 164 165 161 /// \param iPart 162 /// Output The index of the part in a multi-geometry, e.g. a polygon # in a multi-polygon 163 /// \param iSubPart 164 /// Output The index of the subpart in a geometry, e.g. a ring # in a polygon 165 /// \param iVertex 166 166 /// Output The index of the segment in the sub-part, 1-based 167 168 167 /// 168 /// \return 169 169 /// Returns Nothing 170 170 /// … … 176 176 177 177 protected: 178 // Constructor 178 179 FdoSpatialIndex(FdoSpatialIndexMode mode = FdoSpatialIndex_ByGeometriesBoundingBox); 179 180 … … 186 187 { 187 188 public: 188 189 190 189 /// \brief 190 /// Creates a Spatial Index Iterator instance 191 /// 191 192 /// \param si 192 193 /// Input A Spatial Index instance 193 194 195 196 197 198 199 200 201 202 194 /// \param minx 195 /// Input The minimim X of the bounding box representing the search area 196 /// \param miny 197 /// Input The minimim Y of the bounding box representing the search area 198 /// \param maxx 199 /// Input The maximum X of the bounding box representing the search area 200 /// \param maxy 201 /// Input The maximum Y of the bounding box representing the search area 202 /// 203 /// \return 203 204 /// Returns A Spatial Index Iterator instance 204 205 ///