| 519 | return construct(buffer, str->ptr(), str->length()); |
| 520 | } |
| 521 | bool as_wkt(String *wkt, wkb_parser *wkb) |
| 522 | { |
| 523 | uint32 len= (uint) get_class_info()->m_name.length; |
| 524 | if (wkt->reserve(len + 2, 512)) |
| 525 | return true; |
| 526 | wkt->qs_append(get_class_info()->m_name.str, len); |
| 527 | wkt->qs_append('('); |
| 528 | if (get_data_as_wkt(wkt, wkb)) |
| 529 | return true; |
| 530 | wkt->qs_append(')'); |
| 531 | return false; |
| 532 | } |
| 533 | bool as_wkt(String *wkt) |
| 534 | { |
| 535 | wkb_parser wkb(&m_wkb_data); |