<div dir="ltr"><br><font size="1">What's happening is exactly what the error says:<br><br>setExtent(0, 0, 0, 0)<br><br>is an invalid extent, so nothing can be returned from the query for your report.</font><br><div><font size="1"><br></font></div><div><font size="1">The question is why is your application sending invalid extents? It seems like it may have something to do with the coordinate system you are using. Something is not translating coordinates correctly, resulting in non-valid values being passed.</font></div><div><font size="1"><br></font></div><div><font size="1">Can you re-state how your coordinate system is defined in the map file, and also in the mapbook?</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 2, 2015 at 11:13 PM, Fernando <span dir="ltr"><<a href="mailto:nando_gcia@hotmail.com" target="_blank">nando_gcia@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr"><span lang="en"><span>Brent</span> <span>sorry</span> <span>but your</span> <span>solution doesn't work</span><span>:<span class=""><br><br>    <service name="feature_report" display="false" keep-others="true"><br>        <url>php/feature_report.php</url><br></span>        <input type="hidden" name="layers" value="edificio_c2_espacios/C2-ALBERT_EINSTEIN"/><span class=""><br>        <input type="hidden" name="src"/><br>        <input type="hidden" name="DXF_TEXT"/><br>    </service><br><br></span></span></span><span class=""><span lang="en"><span>Still</span> <span>Appears</span> <span>error:<br></span></span><br><span lang="en"><span><span lang="en"><span title="Pero sigue              apareciendo error:              ">Warning: mapObj::setExtent(): [MapServer Error]:
            setExtent(): Given map extent is invalid. Check that it is
            in the form: minx, miny, maxx, maxy<br>
             in C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on
            line 100<br>
            Fatal error: Uncaught exception 'MapScriptException' in
            C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php:100<br>
            Stack trace:<br>
            #0
            C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php(100): <b>mapObj->setExtent(0,
              0, 0, 0)</b><br>
            #1 {main}<br>
              thrown in
            C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on line
            100<br>
            <br></span></span></span></span></span><span lang="en"><span><span lang="en"><span title="Pero sigue              apareciendo error:              "><span lang="en"><span>I'm</span> <span>a little lost</span><span>, what</span> <span>is</span> <span>happening?<br><br><br></span></span></span></span></span></span><div><hr>Date: Tue, 2 Jun 2015 07:35:29 -0600<span class=""><br>From: <a href="mailto:bfraser@geoanalytic.com" target="_blank">bfraser@geoanalytic.com</a><br>To: <a href="mailto:nando_gcia@hotmail.com" target="_blank">nando_gcia@hotmail.com</a>; <a href="mailto:geomoose-users@lists.osgeo.org" target="_blank">geomoose-users@lists.osgeo.org</a><br>Subject: Re: [Geomoose-users] Feature Report error with Identify Tool<br><br></span><div><div class="h5">
  
    
  
  
    The errors mean that the shape/feature is not found, so the extents
    are not valid and the shape/feature has no values.<br>
    <br>
    Change your feature _report service in your mapbook.xml <small>to</small>:<br>
    <br>
    <tt>    <service name="feature_report" display="false"
      keep-others="true"></tt><tt><br>
    </tt><tt>        <url>php/feature_report.php</url></tt><tt><br>
    </tt><tt>        <input type="hidden" name="layers"
      value="lmic/fsa"/></tt><tt><br>
    </tt><tt>        <input type="hidden" name="src"/></tt><tt><br>
    </tt><tt>        <input type="hidden" name="</tt><tt><span lang="en"><span title="Increiblemente            el primer error ha desaparecido con sólo poner en mayúsculas            el campo dfx_text en el fichero identify.html:            "><font style="font-size:16pt" size="4"><b><small>DXF_TEXT</small></b></font></span></span>"/></tt><tt><br>
    </tt><tt>    </service></tt><br>
    <br>
    This will ensure the JavaScript that handles the service call will
    send the DXF_TEXT value to the feature_report.php.<br>
    <pre>Best Regards,
Brent Fraser</pre>
    <div>On 6/2/2015 5:35 AM, Fernando wrote:<br>
    </div>
    <blockquote>
      
      <div dir="ltr"><span lang="en"><span title="Gracias a todos por vuestras colaboraciones.">Thanks
            all for your contributions. </span><span title="Increiblemente el primer error ha desaparecido con              sólo poner en mayúsculas el campo dfx_text en el fichero              identify.html:              ">Incredibly the first error has disappeared with only
            capitalize the dfx_text field in identify.html file:<br>
            <br>
            <!-- MapServer Template --><br>
            <tr bgcolor="#DEE5EB"><td
colspan="2"><b><u>ESPACIOS</u></b></tr><tr><br>
            <td
            align="right"><b>IDENTIFICADOR:</b></td><br>
            <td>[dxf_text] <a
            href="<a>javascript:GeoMOOSE.startService('feature_report</a>', {'<font style="font-size:16pt" size="4"><b>DXF_TEXT</b></font>'
            : '[dxf_text]', 'src' :
'edificio_c2_espacios/C2-ALBERT_EINSTEIN'})">Report</a></td><br>
            </tr><br>
            <tr><br>
            <td
            align="right"><b>CONTENIDO:</b></td><br>
            <td>[contenido]</td><br>
            </tr><br>
            <br>
          </span></span><br>
        <span lang="en"><span title="Pero sigue              apareciendo error:              ">But still appears error:<br>
            <br>
            Warning: mapObj::setExtent(): [MapServer Error]:
            setExtent(): Given map extent is invalid. Check that it is
            in the form: minx, miny, maxx, maxy<br>
             in C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on
            line 100<br>
            Fatal error: Uncaught exception 'MapScriptException' in
            C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php:100<br>
            Stack trace:<br>
            #0
            C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php(100): <b>mapObj->setExtent(0,
              0, 0, 0)</b><br>
            #1 {main}<br>
              thrown in
            C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on line
            100<br>
            <br>
          </span></span><span lang="en"><span title="La              línea 100 del fichero dice:              ">Line 100 of the file says:<br>
$mapObj->setExtent($shape->bounds->minx,$shape->bounds->miny,$shape->bounds->maxx,$shape->bounds->maxy);<br>
            <br>
          </span></span><span lang="en"><span title="pero si yo cambio dicha fila manualmente de manera              fija al extend inicial:              ">but if I change that row so manually for example set to
            the initial extend:</span></span><br>
        $mapObj->setExtent(358836,4186265,359163,4186624);<br>
        <br>
        <span lang="en"><span title="El error              desaparece, y por fin se carga la ventana emergente con las              3 opciones:              ">The error disappears, and finally load the popup with the
            3 options:<br>
            <br>
          </span><span title="View in a new Window/Tab              ">View in a new Window / Tab<br>
          </span><span title="Download              ">Download<br>
          </span><span title="Close this Window              ">Close this Window<br>
            <br>
          </span><span title="pero también aparecen los siguientes              errores:              ">but the more errors appear then:</span></span><br>
        <br>
        Warning: Invalid argument supplied for foreach() in
        C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on line 128<br>
        Warning: Invalid argument supplied for foreach() in
        C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on line 128<br>
        Warning: Invalid argument supplied for foreach() in
        C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on line 128<br>
        Warning: Invalid argument supplied for foreach() in
        C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on line 128<br>
        Warning: Invalid argument supplied for foreach() in
        C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on line 128<br>
        Warning: Invalid argument supplied for foreach() in
        C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on line 128<br>
<results><script>GeoMOOSE.download("print_14332443998300","pdf");</script><html></html></results><br>
        <br>
        <span lang="en"><span title="¿Porqué se produce              el error en la línea 100 del fichero feature_report.php?">Why
            the error occurs on line 100 of feature_report.php file?</span></span><br>
      </div>
    </blockquote>
    <br></div></div></div>                                        </div></div>
<br>_______________________________________________<br>
Geomoose-users mailing list<br>
<a href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geomoose-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a><br></blockquote></div><br></div>