提交 fc977e32 编写于 作者: O obdev 提交者: ob-robot

fix srs_wkt empty core

上级 8e89a8e3
......@@ -348,7 +348,10 @@ int ObSrsWktParser::parse_srs_wkt(common::ObIAllocator &allocator, uint64_t srid
ObGeographicRs *geog_rs = NULL;
ObProjectionRs *proj_rs = NULL;
if (OB_FAIL(parse_coordinate_system(allocator, srs_str, geo_rs))) {
if (srs_str.empty()) {
ret = OB_ERR_UNEXPECTED;
LOG_WARN("srs string is empty", K(ret), K(srid));
} else if (OB_FAIL(parse_coordinate_system(allocator, srs_str, geo_rs))) {
LOG_WARN("failed to parse srs wkt", K(ret));
} else if (OB_NOT_NULL(geog_rs = boost::get<ObGeographicRs>(&geo_rs))) {
if (OB_FAIL(ObSpatialReferenceSystemBase::create_geographic_srs(&allocator, srid, geog_rs, tmp_result))) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册