| 191 | namespace { |
| 192 | |
| 193 | uint32_t GeometryTypeToWKB(geospatial::GeometryType geometry_type, bool has_z, |
| 194 | bool has_m) { |
| 195 | auto wkb_geom_type = static_cast<uint32_t>(geometry_type); |
| 196 | |
| 197 | if (has_z) { |
| 198 | wkb_geom_type += 1000; |
| 199 | } |
| 200 | |
| 201 | if (has_m) { |
| 202 | wkb_geom_type += 2000; |
| 203 | } |
| 204 | |
| 205 | return wkb_geom_type; |
| 206 | } |
| 207 | |
| 208 | } // namespace |
| 209 |
no outgoing calls
no test coverage detected