|
|
@@ -1032,6 +1032,7 @@ class TableAcl extends Core_AclBase {
|
|
|
|
|
|
public function fieldsInit($force = false) {
|
|
|
$this->loadSchema();
|
|
|
+ // DBG::log("TableAcl({$this->_rootTableName}) fieldsInit() isDone: '{$this->_executed_fieldsInit}'");
|
|
|
if (null !== $this->_executed_fieldsInit) return;
|
|
|
$this->_executed_fieldsInit = true;
|
|
|
|
|
|
@@ -1588,6 +1589,7 @@ class TableAcl extends Core_AclBase {
|
|
|
}
|
|
|
|
|
|
public function getGeomFieldType($fieldName) {
|
|
|
+ if (empty($this->_types)) $this->fieldsInit($force = true);
|
|
|
$dbGeomType = $this->getFieldType($fieldName);
|
|
|
$dbGeomType = (!empty($dbGeomType['type']))? $dbGeomType['type'] : '';
|
|
|
$geomType = strtolower($dbGeomType);
|
|
|
@@ -1954,6 +1956,7 @@ class TableAcl extends Core_AclBase {
|
|
|
else if ($this->isGeomField($fieldName)) {
|
|
|
//$fldType = 'gml:GeometryPropertyType';
|
|
|
$geomType = $this->getGeomFieldType($fieldName);
|
|
|
+ // DBG::log("DBG Geom field type ({$fieldName}) type({$geomType})");
|
|
|
if ('polygon' == $geomType) return 'gml:PolygonPropertyType';
|
|
|
else if ('point' == $geomType) return 'gml:PointPropertyType';
|
|
|
else if ('linestring' == $geomType) return 'gml:LineStringPropertyType';
|