<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Tanya,<br>
<br>
Just by looking at the code in Github I see that there is still no
re-projection of the extent before the query call, so i expect that
is is still broken (but I will try v2.8). Now that I'm getting
results back I ran into the "zoom to results" bug you've referenced,
so that saved me some time. Thanks!<br>
<br>
Personally, I think the parcel data in our demo should be in
EPSG:4326 so we can discover these problems in our testing before
release.<br>
<pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
<div class="moz-cite-prefix">On 7/26/2015 10:57 AM, TC Haddad wrote:<br>
</div>
<blockquote
cite="mid:CAFVrPyggJW7hELrquKb-7dpHTz21BYj6AJdOTt9Fjymd2Qpdag@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>
<div><br>
</div>
There was a bug that was fixed recently that may relate:<br>
<br>
<a moz-do-not-send="true"
href="https://github.com/geomoose/geomoose/issues/90">https://github.com/geomoose/geomoose/issues/90</a><br>
<br>
</div>
You could try grabbing the relevant changes to query.php:<br>
<br>
<a moz-do-not-send="true"
href="https://github.com/geomoose/geomoose-services/commit/dacfa7e2648c5bcd3ec38308cb1199621a07c390">https://github.com/geomoose/geomoose-services/commit/dacfa7e2648c5bcd3ec38308cb1199621a07c390</a><br>
<br>
</div>
Or you could try a 2.8 install to see if the same problem is
present (before filing a new issue...).<br>
<br>
<br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Sun, Jul 26, 2015 at 9:32 AM, Brent
Fraser <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:bfraser@geoanalytic.com" target="_blank">bfraser@geoanalytic.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hi
Developers (and others),<br>
<br>
While debugging a user's problem with using his data with
query.php, I see that line 376 in github (or line 420-ish in
GM 2.7.1):<br>
<br>
$ext = $queryLayer->getExtent();<br>
<br>
then the layer's extent is used for the query a little
later:<br>
<br>
$queryLayer->queryByRect($ext);<br>
<br>
This fails to find any features since in my case the
coordinate systems of the map and layer are different, and
the queryByrect must be done using a rectangle in the MAP's
SRS not the LAYER's SRS. I did a little hack to re-project
the extent just before the queryByRect:<br>
<br>
// re-project the layer's extent into
the map SRS for querying:<br>
$map_projection_def =
$map->getProjection();<br>
$map_projection_obj =
ms_newProjectionObj($map_projection_def);<br>
<br>
if($queryLayer->getProjection() !=
NULL) {<br>
$projection =
$queryLayer->getProjection();<br>
}<br>
if($projection != NULL) {<br>
# reproject the query shape as
available.<br>
$projection =
ms_newProjectionObj($projection);<br>
}<br>
if($projection) {<br>
$ext->project($projection,
$map_projection_obj);<br>
}<br>
if($DEBUG) {<br>
error_log(implode(',',
array($ext->minx,$ext->miny,$ext->maxx,$ext->maxy)));<br>
error_log("<br/>extent for
query in map SRS.<br/>");<br>
}<br>
<br>
I thought I would get comments before filing an Issue.<br>
<br>
So any comments?<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Best Regards,<br>
Brent Fraser<br>
<br>
<br>
_______________________________________________<br>
Geomoose-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:Geomoose-users@lists.osgeo.org"
target="_blank">Geomoose-users@lists.osgeo.org</a><br>
<a moz-do-not-send="true"
href="http://lists.osgeo.org/mailman/listinfo/geomoose-users"
rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br>
</font></span></blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</body>
</html>