[Geomoose-users] query.php problem

Bistrais, Bob Bob.Bistrais at maine.gov
Wed Oct 17 10:34:46 PDT 2012


Does this patch appear in query.php only, or are other code files affected?  
Just want to know if I can simply replace that one file.

-----Original Message-----
From: geomoose-users-bounces at lists.osgeo.org [mailto:geomoose-users-bounces at lists.osgeo.org] On Behalf Of Jim Klassen
Sent: Wednesday, October 17, 2012 1:22 PM
To: Matej Mailing
Cc: GeoMOOSE Users List
Subject: Re: [Geomoose-users] query.php problem

Thanks.

This looks like a good solution to me.  I have created ticket #166 and applied the patch in r926 in trunk.  I'd appreciate it if others would test this out because I don't tend to use the PHP stuff much.

On 10/17/2012 04:57 AM, Matej Mailing wrote:
> I have changed it this way and it works when there are no results and 
> when there are results, without the need for the nextShape() call:
>
>                                         for($i = 0; $i < 
> $queryLayer->getNumResults(); $i++) {
>                                                 $shape = 
> $queryLayer->getShape($queryLayer->getResult($i));
>                                                 if($projection) {
>
> $shape->project($projection, $LATLONG_PROJ);
>                                                 }
>                                                 $resultFeatures[] = $shape;
>                                                 $numResults += 1;
>                                         }
>
> In my understanding there must be a loop to fill the $resultFeatures 
> since in mode 'map' they are drawn from it.
>
> Regards,
> Matej
>
>
_______________________________________________
Geomoose-users mailing list
Geomoose-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/geomoose-users


More information about the Geomoose-users mailing list