PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Juan Carlos Gonzalez  >  Shape File Reader  >  example.php  >  Download  
File: example.php
Role: Documentation
Content type: text/plain
Description: A brief example of how to fetch the SHP's content
Class: Shape File Reader
Read vectorial data from geographic shape files
Author: By
Last change: Just removed a line that called a non-existent method
Date: 17 years ago
Size: 392 bytes
 

Contents

Class file image Download
$shp = new ShapeFile("file.shp"); // along this file the class will use file.shx and file.dbf // Let's see all the records: foreach($shp->records as $record){ echo "<pre>"; // just to format print_r($record->shp_data); // All the data related to the poligon print_r($record->dbf_data); // The alphanumeric information related to the figure echo "</pre>"; }