I've confirmed that case-sensitivity was not the root cause of the mapping issue -- it was carriage returns at the end of the string. When I tested by changing the gridsquare to upper-case in my database, the carriage return got removed. This gave us a false positive that it was a case issue. I have tested withwith XX11xx grid squares and have confirmed that case makes no difference.
这个提交包含在:
父节点
29c760db56
当前提交
1e548f4c26
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
|
@ -133,7 +133,7 @@ margin: 10px 0;
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
if($row->COL_GRIDSQUARE != null) {
|
if($row->COL_GRIDSQUARE != null) {
|
||||||
$stn_loc = $this->qra->qra2latlong(trim(strtoupper($row->COL_GRIDSQUARE)));
|
$stn_loc = $this->qra->qra2latlong(trim($row->COL_GRIDSQUARE));
|
||||||
$lat = $stn_loc[0];
|
$lat = $stn_loc[0];
|
||||||
$lng = $stn_loc[1];
|
$lng = $stn_loc[1];
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用