Beispiel #1
0
 function __construct($gmlSource)
 {
     parent::__construct();
     include_once "libs/class_xml_check.php";
     $check = new XML_check();
     if ($check->check_string($gmlSource)) {
         print "GML is well-formed\n";
         //print("Elements      : ".$check->get_xml_elements());
         //print("Attributes    : ".$check->get_xml_attributes());
         //print("Size          : ".$check->get_xml_size());
         //print("Text sections : ".$check->get_xml_text_sections());
         //print("Text size     : ".$check->get_xml_text_size());
     } else {
         print "GML is not well-formed. ";
         print $check->get_full_error() . "\n";
         print "Script terminated\n";
         die;
     }
     $this->gmlSource = $gmlSource;
     $this->gmlCon = new gmlConverter();
     require_once "XML/Unserializer.php";
     $unserializer_options = array('parseAttributes' => TRUE);
     $unserializer = new XML_Unserializer($unserializer_options);
     // Serialize the data structure
     $status = $unserializer->unserialize($this->gmlSource);
     $this->gmlArray = $unserializer->getUnserializedData();
     print date('l jS \\of F Y h:i:s A') . " GML serialized\n";
     // Check if XML is a ServiceException
     if ($unserializer->getRootName() == "ServiceExceptionReport") {
         print "The server returned an exception:\n";
         print $this->gmlSource . "\n";
         print "Script terminated\n";
         die;
     }
 }
Beispiel #2
0
 function __construct($safeFile, $srid, $file, $pdo)
 {
     parent::__construct();
     $this->safeFile = $safeFile;
     $this->srid = $srid;
     $this->file = $file;
     $this->pdo = $pdo;
 }
Beispiel #3
0
 function __construct($table)
 {
     parent::__construct();
     $this->layer = $table;
     $bits = explode(".", $this->layer);
     $this->table = new \app\models\Table($bits[0] . "." . $bits[1]);
     $this->tile = new \app\models\Tile($table);
     // Check if geom type is overridden
     $def = new \app\models\Tile($table);
     $this->def = $def->get();
     if ($this->def['data'][0]['geotype'] && $this->def['data'][0]['geotype'] != "Default") {
         $this->geometryType = $this->def['data'][0]['geotype'];
     }
 }
Beispiel #4
0
 function __construct($table, $temp = false, $addGeomType = false)
 {
     parent::__construct();
     preg_match("/^[\\w'-]*\\./", $table, $matches);
     $_schema = $matches[0];
     preg_match("/[\\w'-]*\$/", $table, $matches);
     $_table = $matches[0];
     if (!$_schema) {
         // If temp, then don't prefix with schema. Used when table/view is temporary
         if (!$temp) {
             $_schema = Connection::$param['postgisschema'];
             $table = $_schema . "." . $table;
         }
     } else {
         $table = str_replace(".", "", $_schema) . "." . $_table;
     }
     $this->tableWithOutSchema = $_table;
     $this->schema = str_replace(".", "", $_schema);
     $this->table = $table;
     $sql = "SELECT 1 FROM {$table} LIMIT 1";
     $this->execQuery($sql);
     if ($this->PDOerror) {
         $this->exits = false;
     } else {
         $this->metaData = $this->getMetaData($this->table, $temp, $addGeomType);
         $this->geomField = $this->getGeometryColumns($this->table, "f_geometry_column");
         $this->geomType = $this->getGeometryColumns($this->table, "type");
         $this->primeryKey = $this->getPrimeryKey($this->table);
         $this->setType();
         $this->exits = true;
         $res = $this->doesColumnExist($this->table, "gc2_version_gid");
         $this->versioning = $res["exists"];
         $res = $this->doesColumnExist($this->table, "gc2_status");
         $this->workflow = $res["exists"];
     }
     $this->sysCols = array("gc2_version_gid", "gc2_version_start_date", "gc2_version_end_date", "gc2_version_uuid", "gc2_version_user");
 }
Beispiel #5
0
 function __construct($userObj)
 {
     parent::__construct();
     $this->userObj = $userObj;
 }
Beispiel #6
0
 function __construct($srs = "900913")
 {
     parent::__construct();
     $this->srs = $srs;
 }
Beispiel #7
0
 function __construct($table)
 {
     parent::__construct();
     $this->table = $table;
 }
Beispiel #8
0
 function __construct()
 {
     parent::__construct();
 }
Beispiel #9
0
 function __construct($userId)
 {
     parent::__construct();
     $this->userId = $userId;
     $this->postgisdb = "mapcentia";
 }
Beispiel #10
0
 function __construct()
 {
     parent::__construct();
     /** URL for REST request, see: https://dev.twitter.com/docs/api/1.1/ **/
     $this->settings = array('oauth_access_token' => "1252476258-DVO9x6mwnz05f5VL8WIsTx4XmpeUbOjDSs9hLXc", 'oauth_access_token_secret' => "regt6Vo082Bq3uaSDKyrGnHYPNSccncU6woXN1Mlw", 'consumer_key' => "AtDjL4UxITwrwBIMBicCQ", 'consumer_secret' => "GsFWDIR8bCuuigshxVhj9ZFK0lU00ecMm0ZeEd2Go");
 }