MCPcopy Create free account
hub / github.com/apache/arrow / GeometryTypeToWKB

Function GeometryTypeToWKB

cpp/src/parquet/test_util.cc:193–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

191namespace {
192
193uint32_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

Callers 2

MakeWKBPointFunction · 0.85
GetWKBPointCoordinateXYFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected