Server IP : 85.214.239.14 / Your IP : 3.147.82.22 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/wordpress/phpMyAdmin/vendor/phpmyadmin/shapefile/ |
Upload File : |
# shapefile ShapeFile library for PHP [![Build Status](https://travis-ci.org/phpmyadmin/shapefile.svg?branch=master)](https://travis-ci.org/phpmyadmin/shapefile) [![codecov.io](https://codecov.io/github/phpmyadmin/shapefile/coverage.svg?branch=master)](https://codecov.io/github/phpmyadmin/shapefile?branch=master) [![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/phpmyadmin/shapefile/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/phpmyadmin/shapefile/?branch=master) [![Packagist](https://img.shields.io/packagist/dt/phpmyadmin/shapefile.svg)](https://packagist.org/packages/phpmyadmin/shapefile) ## Features Currently the 2D and 3D variants except MultiPatch of the ShapeFile format as defined in https://www.esri.com/library/whitepapers/pdfs/shapefile.pdf. The library currently supports reading and editing of ShapeFiles and the Associated information (DBF file). There are a lot of things that can be improved in the code, if you are interested in developing, helping with the documentation, making translations or offering new ideas please contact us. ## Installation Please use [Composer][1] to install: ``` composer require phpmyadmin/shapefile ``` To be able to read and write the associated DBF file, you need ``dbase`` extension: ``` pecl install dbase echo "extension=dbase.so" > /etc/php5/conf.d/dbase.ini ``` ## Documentation The API documentation is available at <https://develdocs.phpmyadmin.net/shapefile/>. ## Usage To read shape file: ```php $shp = new \PhpMyAdmin\ShapeFile\ShapeFile(0); $shp->loadFromFile('path/file.*'); ``` ## History This library is based on BytesFall ShapeFiles library written by Ovidio (ovidio AT users.sourceforge.net). The library has been embedded in phpMyAdmin for years and slowly developed there. At one point people started to use our version rather than the original library and that was the point we decided to make it separate package. [1]:https://getcomposer.org/