Changeset 926 for geomoose2/trunk/htdocs


Ignore:
Timestamp:
Oct 17, 2012, 10:14:05 AM (12 years ago)
Author:
jimk
Message:

Fixed #166. Query.php using nextShape() instead of layer result cache.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • geomoose2/trunk/htdocs/php/query.php

    r883 r926  
    331331                                                $projection = ms_newProjectionObj($projection);
    332332                                        }
    333                
    334                                         while($shape = $queryLayer->nextShape()) {
    335                                                 #$q_shape->project($LATLONG_PROJ, $projection);
     333       
     334                                        for($i = 0; $i < $queryLayer->getNumResults(); $i++) { 
     335                                                $shape = $queryLayer->getShape($queryLayer->getResult($i));
    336336                                                if($projection) {
    337337                                                        $shape->project($projection, $LATLONG_PROJ);
Note: See TracChangeset for help on using the changeset viewer.