我正在尝试在边界框中测试一个点。它不断返回 null 而不是 0 或 1,我在做什么有什么问题?
SET @g1 = GEOMFROMTEXT('POLYGON(
(-34.139468536232 18.303737037571,-34.139468536232 18.653342962429
,-33.849613463768 18.303737037571,-33.849613463768 18.653342962429))');
SET @g2 = GEOMFROMTEXT('POINT(-33.994541 18.478540)');
SELECT MBRCONTAINS(@g1,@g2);