|
|
 Heriberto Mantilla Santamaría | 2007-02-15 21:00:25 |
Cuando intento abrir un archivo .shp el PHP me muestra el siguiente mensaje: Warning: Missing argument 1 for shapefile() in C:\...\ShapeFile.inc.php on line 70
SHP File not found []
No entiendo en que consiste el error, me dice que falta un argumento para shapefile pero hasta ahí entiendo, podrías ayudarme a dar con una solución.
De antemano gracias. |
 Wilder Castelo | 2008-04-14 07:24:22 - In reply to message 1 from Heriberto Mantilla Santamaría |
| A mi no me sale ningun mensaje, pero tampoco puedo visualizar el shapefile. |
 Jose Manuel | 2008-11-18 07:24:50 - In reply to message 1 from Heriberto Mantilla Santamaría |
Quizá con este código funcione mejor:
El problema es que pedía mas argumentos en el constructor de ShapeFile.
include ('ShapeFile.inc.php');
//sets the options to show the polygon points, 'noparts' => true would skip that and save time
$options = array('noparts' => false);
$shp = new ShapeFile("../../php/shapefile/file.shp",$options);
//Dump the ten first records
$i = 0;
while ($record = $shp->getNext() and $i<10) {
$dbf_data = $record->getDbfData();
$shp_data = $record->getShpData();
//Dump the information
var_dump($dbf_data);
var_dump($shp_data);
$i++;
}
José Manuel Heras Muñoz
josem/d_o_t/heras(a_t)gmail/d_o_t/com |
|