C:\xampp\phpMyAdmin\libraries\classes\Plugins\Import\ShapeFileImport.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * This class extends ShapeFile class to cater the following phpMyAdmin
 * specific requirements.
 *
 * @package    PhpMyAdmin-Import
 * @subpackage ESRI_Shape
 */
namespace PhpMyAdmin\Plugins\Import;

use 
PhpMyAdmin\ShapeFile\ShapeFile;

/**
 * ShapeFileImport class
 *
 * @package PhpMyAdmin
 */
class ShapeFileImport extends ShapeFile
{
    
/**
     * Reads given number of bytes from SHP file
     *
     * @param int $bytes number of bytes
     *
     * @return string|false
     */
    
public function readSHP($bytes)
    {
        return 
ImportShp::readFromBuffer($bytes);
    }

    
/**
     * Checks whether file is at EOF
     *
     * @return bool
     */
    
public function eofSHP()
    {
        global 
$eof;

        return 
$eof;
    }
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586