Lines Matching refs:geom
60 $geom = geoPHP::load($dbRow,'wkt');
64 $geom = geoPHP::load("GEOMETRYCOLLECTION(".$dbString1.",".$dbString2.")",'wkt');
94 $column = 'geom';
104 $result = pg_fetch_all(pg_query($connection, "SELECT asBinary($column) as geom FROM $table"));
106 $wkb = pg_unescape_bytea($item['geom']); // Make sure to unescape the hex blob
107 $geom = geoPHP::load($wkb, 'ewkb'); // We now a full geoPHP Geometry object
110 $insert_string = pg_escape_bytea($geom->out('ewkb'));
115 $result = pg_fetch_all(pg_query($connection, "SELECT $column as geom FROM $table"));
117 $wkb = pack('H*',$item['geom']); // Unpacking the hex blob
118 $geom = geoPHP::load($wkb, 'ewkb'); // We now have a geoPHP Geometry
121 $unpacked = unpack('H*', $geom->out('ewkb'));