/usr/share/doc/php-phpmyadmin-shapefile/examples
NameSizeModeActions
capitals.dbf1503140644editdlrm
capitals.shp183560644editdlrm
capitals.shx53160644editdlrm
create_shapefile.php19890644editdlrm
index.php6830644editdlrm
mexico.dbf40340644editdlrm
mexico.shp519240644editdlrm
mexico.shx3560644editdlrm
read.php15910644editdlrm
read_point.php9500644editdlrm
read_polygon.php9480644editdlrm
Edit: /usr/share/doc/php-phpmyadmin-shapefile/examples/read.php (1591B)
. * * Copyright 2006-2007 Ovidio * Copyright 2016 - 2017 Michal Čihař * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, you can download one from * https://www.gnu.org/copyleft/gpl.html. */ use PhpMyAdmin\ShapeFile\ShapeFile; /** * Displays content of given file. * * @param string $filename File to open */ function display_file($filename) { $shp = new ShapeFile(1); $shp->loadFromFile($filename); $i = 1; foreach ($shp->records as $i => $record) { echo '
';
        echo "Record No. $i:\n\n\n";
        // All the data related to the record
        echo 'SHP Data = ';
        print_r($record->SHPData);
        print_r("\n\n\n");
        // All the information related to each record
        echo 'DBF Data = ';
        print_r($record->DBFData);
        print_r("\n\n\n");
        echo '
'; } echo "The ShapeFile was completely readed.
\n"; echo "Return to the index."; }