Ticket #3406: test_classindex.php

File test_classindex.php, 301 bytes (added by hopfgartner, 6 years ago)

PHP test script

Line 
1<?php
2$mapfile = 'test.map';
3$map = ms_newmapobj($mapfile);
4$layer = $map->getLayerByName('test');
5$status = $layer->open();
6$status = $layer->whichShapes($map->extent);
7while ($shape = $layer->nextShape())
8{
9   echo "index: {$shape->index}\tclassindex: {$shape->classindex}\n";
10}
11$layer->close();
12?>