2017 © Pedro Peláez
 

library shape-reader

A PHP library to parse ESRI Shape files

image

muka/shape-reader

A PHP library to parse ESRI Shape files

  • Wednesday, July 20, 2016
  • by muka
  • Repository
  • 2 Watchers
  • 8 Stars
  • 11,745 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 5 Forks
  • 1 Open issues
  • 7 Versions
  • 5 % Grown

The README.md

ShapeReader

A PHP library to parse ESRI Shape files., (*1)

Based on the great work of Juan Carlos Gonzalez Ulloa and David Granqvist, (*2)

A copy of the original work is available at http://www.phpclasses.org/package/1741-PHP-Read-vectorial-data-from-geographic-shape-files.html, (*3)

This library is meant to read vectorial information from shape files in the SHP format. The SHP file format is an open standard for storing vectorial information that is used to distribute geographical information. Plenty of commercial and open source applications are able to read from it., (*4)

Requirements

PHP version should be > 5.3.2, (*5)

To open the DBF related database you need the dbase extension available as PECL package., (*6)

pecl install dbase
echo "extension=dbase.so" > /etc/php5/conf.d/dbase.ini

Usage

See examples folder for details., (*7)

$shpReader = new ShapeReader("./somewhere.shp");

$i = 0;
while ($record = $shpReader->getNext() and $i < 5) {

    //Dump SHP information
    $shp_data = $record->getData();
    var_dump($shp_data);

    //Dump DBF information
    $dbf_data = $record->getDbfData();
    var_dump($dbf_data);

    $i++;
}

Changelog

2013-08-24 - Base refactor, added namespace support, composer and test cases, (*8)

License

GNU General Public License http://opensource.org/licenses/GPL-2.0, (*9)

The Versions

20/07 2016

dev-master

9999999-dev

A PHP library to parse ESRI Shape files

  Sources   Download

GPL

The Requires

  • php >=5.4

 

The Development Requires

by Peter Haza
by Lopez Mateos
by David Granqvist
by Luca Capra

shapefile shp dbf geospatial

29/04 2014

v1.0.5

1.0.5.0

A PHP library to parse ESRI Shape files

  Sources   Download

GPL

by Lopez Mateos
by David Granqvist
by Luca Capra

shapefile shp dbf geospatial

29/04 2014

v1.0.4

1.0.4.0

A PHP library to parse ESRI Shape files

  Sources   Download

GPL

by Lopez Mateos
by David Granqvist
by Luca Capra

shapefile shp dbf geospatial

02/12 2013

v1.0.3

1.0.3.0

A PHP library to parse ESRI Shape files

  Sources   Download

GPL

by Lopez Mateos
by David Granqvist
by Luca Capra

shapefile shp dbf geospatial

26/08 2013

v1.0.2

1.0.2.0

A PHP library to parse ESRI Shape files

  Sources   Download

GPL

by Lopez Mateos
by David Granqvist
by Luca Capra

shapefile shp dbf geospatial

26/08 2013

v1.0.1

1.0.1.0

A PHP library to parse ESRI Shape files

  Sources   Download

GPL

by Lopez Mateos
by David Granqvist
by Luca Capra

shapefile shp dbf geospatial

25/08 2013

v1.0

1.0.0.0

A PHP library to parse ESRI Shape files

  Sources   Download

GPL

by Lopez Mateos
by David Granqvist
by Luca Capra

shapefile shp dbf geospatial