修复投影处理错误,设置DOC默认字体为宋体
This commit is contained in:
parent
61ebcda5af
commit
e95557c058
|
@ -1398,11 +1398,12 @@ class DataController extends Zend_Controller_Action
|
||||||
if (is_numeric($row['projection']))
|
if (is_numeric($row['projection']))
|
||||||
{
|
{
|
||||||
$sql="select proj4text from spatial_ref_sys where auth_srid=?";
|
$sql="select proj4text from spatial_ref_sys where auth_srid=?";
|
||||||
$rs=$this->db->fetchRow($sql,array((int)$row['projection']));
|
$rs=$this->db->fetchRow($sql,array($row['projection']));
|
||||||
if ($rs) $projection=$rs['proj4text'];
|
if ($rs) $projection=$rs['proj4text'];
|
||||||
}
|
}
|
||||||
if (empty($prjection)) $projection=$row['projection'];
|
if (empty($projection)) $projection=$row['projection'];
|
||||||
}
|
} else
|
||||||
|
$projection='';
|
||||||
|
|
||||||
$dom = new DOMDocument();
|
$dom = new DOMDocument();
|
||||||
$dom->loadXML($row['data']);
|
$dom->loadXML($row['data']);
|
||||||
|
@ -1428,7 +1429,7 @@ class DataController extends Zend_Controller_Action
|
||||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';
|
||||||
$content.='<title>'.$row['title'].'</title>';
|
$content.='<title>'.$row['title'].'</title>';
|
||||||
$content.='<style>
|
$content.='<style>
|
||||||
body{MARGIN-RIGHT: auto;MARGIN-LEFT: auto;font-size:14px;line-height:22px;}
|
body{MARGIN-RIGHT: auto;MARGIN-LEFT: auto;font-size:14px;line-height:22px;font-family:宋体,Arial;}
|
||||||
span{font-size:14px;}
|
span{font-size:14px;}
|
||||||
div{clear: both;margin: 0 auto;width:100%;vertical-align:baseline;}
|
div{clear: both;margin: 0 auto;width:100%;vertical-align:baseline;}
|
||||||
#uuid{text-align: right;}
|
#uuid{text-align: right;}
|
||||||
|
|
Loading…
Reference in New Issue