<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Fernando,<br>
    <br>
      I don't have any information on MapQuest OSM, so I can't help with
    that.  It appears that you are trying to do a Feature Report on a
    raster tile, and that will not work.  The Feature  Report service is
    set up to work with vector data only.<br>
    <br>
    <br>
    In general, I'd recommend using some debugging techniques to track
    down the problem.  For example:<br>
    <br>
        - use the browsers built-in debugger (press F12 to enable).  
    Look at the Network tab to view the URL and parameters the GeoMOOSE
    JavaScript sends to the PHP services. <br>
    <br>
        - use the PHP debug system to log information about the script<br>
    <meta charset="utf-8">
    <p dir="ltr"
      style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"
      id="docs-internal-guid-b8dcca1a-b9e6-9440-b9c8-3ab9eb8c4f71"><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   
            In your php.ini, set the location of the error log:<br>
        <br>
      </span></p>
    <p dir="ltr"
      style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><tt><span
          style="font-size: 15px; color: rgb(0, 0, 0); background-color:
          transparent; font-weight: normal; font-style: normal;
          font-variant: normal; text-decoration: none; vertical-align:
          baseline;">        error_log = php_errors.log ; (created in
          htdocs\php)</span></tt></p>
    <br>
           In the feature_report.php, set:<br>
    <blockquote>
      <p dir="ltr"
        style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><tt><span
            style="font-size: 15px; color: rgb(0, 0, 0);
            background-color: transparent; font-weight: normal;
            font-style: normal; font-variant: normal; text-decoration:
            none; vertical-align: baseline;"># Debug flag.</span></tt></p>
      <tt><span style="font-size: 15px; color: rgb(0, 0, 0);
          background-color: transparent; font-weight: normal;
          font-style: normal; font-variant: normal; text-decoration:
          none; vertical-align: baseline;">$DEBUG = true; #false;</span></tt><tt><br>
      </tt></blockquote>
    <br>
         Add code to log information, for example:<br>
    <br>
    <tt>    if($DEBUG) { error_log("    Set Filter:
      ".$layer->getFilterString() ); }</tt><br>
    <br>
      Then by looking at the contents of the log you can determine what
    is going wrong.<br>
    <br>
    <pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
    <div class="moz-cite-prefix">On 6/3/2015 2:35 AM, Fernando wrote:<br>
    </div>
    <blockquote cite="mid:DUB120-W40F1B3918CD198D79B233CF6B40@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr"><span id="result_box" lang="en"><span title="Hola
            Brent, he probado ahora tus notas sobre la Hydrography del
            OSM.">Hello Brent, have now tested your notes on Hydrography
            OSM. </span><span title="Cuando activo la capa MapQuest OSM
            del Catalog se realizan muchas llamadas del tipo:
            ">When active the MapQuest OSM Catalog type layer many calls
            are made:<br>
            <br>
          </span><span
            title="http://otile1.mqcdn.com/tiles/1.0.0/osm/10/81586/63404.png
            "><a class="moz-txt-link-freetext" href="http://otile1.mqcdn.com/tiles/1.0.0/osm/10/81586/63404.png">http://otile1.mqcdn.com/tiles/1.0.0/osm/10/81586/63404.png</a><br>
            <br>
          </span><span title="pero todas tienen el resultado 404 not
            found.">but all have not found 404 results. </span><span
            title="Y cuando hago click en el hipervínculo de
            "report" de feature_report.php se muestran estos
            errores:
            ">And when I click on the hyperlink "report" of
            feature_report.php these errors are displayed:<br>
            <br>
          </span><span title="Warning: ms_newMapObj(): [MapServer
            Error]: msLoadMap(): MS_DEFAULT_MAPFILE_PATTERN validation
            failed.
             ">Warning: ms_newMapObj(): [MapServer Error]: msLoadMap():
            MS_DEFAULT_MAPFILE_PATTERN validation failed.<br>
             in C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on
            line 45<br>
            <br>
            Warning: ms_newMapObj(): [MapServer Error]: msEvalRegex():
            String failed expression test.<br>
             in C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on
            line 45<br>
            <br>
            Fatal error: Uncaught exception 'MapScriptException' with
            message 'Failed to open map file
            "/ms4w/apps/geomoose2/maps/"' in
            C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php:45<br>
            Stack trace:<br>
            #0 C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php(45):
            ms_newMapObj('/ms4w/apps/geom...')<br>
            #1 {main}<br>
              thrown in
            C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on line
            45</span><span title="thrown in
            C:\ms4w\apps\geomoose2\htdocs\php\feature_report.php on line
            45
            "><br>
            <br>
          </span><span title="I've seen the Regular expression error.">I've
            seen the Regular expression error. </span><span
            title="MS_DEFAULT_MAPFILE_PATTERN validation failed error
            when the extension to the map file in the URL is incorrect.
            ">MS_DEFAULT_MAPFILE_PATTERN failed validation error when
            the extension to the map file in the URL is incorrect.<br>
            <br>
          </span><span title="Quizás el problema esté relacionado con mi
            errónea proyección del dibujo en ArcGIS, pero como ya
            comenté al principio de mi consulta en la lista de correo,
            para nuestro proyecto no necesitamos proyección alguna, sólo
            necesitamos que se visualize el dibujo y que se pueda
            consultar sobre">Perhaps the problem is related to my
            erroneous projection of drawing in ArcGIS, but as I said at
            the beginning of my practice in the mailing list for our
            project does not need any projection, only we need the
            drawing visualize and can be consulted on </span><span
            title="él.">it. </span><span title="Por ahora no
            utilizaremos el "feature_report".">For now we will
            not use the "feature_report". </span><span title="Gracias
            por todo.">Thanks for everything.</span></span><br>
        <br>
        <div>
          <hr id="stopSpelling">Date: Mon, 1 Jun 2015 17:09:55 -0600<br>
          From: <a class="moz-txt-link-abbreviated" href="mailto:bfraser@geoanalytic.com">bfraser@geoanalytic.com</a><br>
          To: <a class="moz-txt-link-abbreviated" href="mailto:nando_gcia@hotmail.com">nando_gcia@hotmail.com</a>; <a class="moz-txt-link-abbreviated" href="mailto:geomoose-users@lists.osgeo.org">geomoose-users@lists.osgeo.org</a><br>
          Subject: Re: [Geomoose-users] Feature Report error with
          Identify Tool<br>
          <br>
          I need to correct the information is sent.  The first part of
          the instructions below ("Edit the feature_report service...")
          is not necessary as the key field name is specified in the
          template ("<query item="), not the service definition.<br>
          <pre class="ecxmoz-signature">Best Regards,
Brent Fraser</pre>
          <div class="ecxmoz-cite-prefix">On 6/1/2015 10:57 AM, Brent
            Fraser wrote:<br>
          </div>
          <blockquote cite="mid:556C8F0C.8040606@geoanalytic.com"> There
            doesn't seem to be a lot of documentation for the Feature
            Report service, so I made some notes:<br>
            <br>
            <h2 dir="ltr" style="line-height:1.38;"
              id="ecxdocs-internal-guid-90edab18-b00a-ad6f-c3cf-f93d774eb1a2"><span
style="font-size:19px;font-family:Arial;color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">Feature


                Reports</span></h2>
            <p dir="ltr" style="line-height:1.38;"><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">Edit


                (or copy) the feature_report service in the mapbook to
                add the key field, for example:</span></p>
            <br>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                   <service name="feature_report</span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">_Hydrography</span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">"
                display="false" keep-others="true"></span></p>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                  </span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   


              </span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                <url>php/feature_report.php</url></span></p>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                  </span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   


              </span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                <input type="hidden" name="layers"
                value="Backgrounds/osm"/></span></p>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                  </span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   


              </span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                <input type="hidden" name="src"/></span></p>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                  </span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   


              </span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                <input type="hidden" name="</span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">BF_ID</span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">"/></span></p>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                   </service></span></p>
            <br>
            <p dir="ltr" style="line-height:1.38;"><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">Add


                the metadata to the feature’s map file:</span></p>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                   </span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   


              </span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">METADATA</span></p>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                       </span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   


              </span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'identify_record'


                  </span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   


              </span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'BF_HYDRO_POLYGON_identify.html'</span></p>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                       </span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   


              </span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'popups'


                           </span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   


              </span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'BF_HYDRO_POLYGON_popups.html'</span></p>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                       </span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   


              </span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'feature_report'


              </span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   </span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   


              </span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'BF_HYDRO_POLYGON_report.xml'</span></p>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                   </span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   


              </span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">END


                # of METADATA</span></p>
            <br>
            <p dir="ltr" style="line-height:1.38;"><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">Edit


                the _identify template to add a link to generate and
                view the report.  For example my </span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">BF_HYDRO_POLYGON_identify.html


              </span><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">template


                has:<br>
              </span></p>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;"><tr><td


                align="left"><b><a href = "<a
                  moz-do-not-send="true"
                  class="ecxmoz-txt-link-freetext" target="_blank">javascript:GeoMOOSE.startService(</a></span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'feature_report_Hydrography'</span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">,
                {</span><span style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">'BF_ID'</span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                : '[</span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">BF_ID</span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">]',


                'src' :
'Hydrography/Lakes'})">Report</a></b></td></tr></span></p>
            <br>
            <br>
            <p dir="ltr" style="line-height:1.38;"><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">Create


                the report xml file (in my case the file is named </span><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;"><span
                  style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">BF_HYDRO_POLYGON_report.xml</span>)
                modifying the key name and the PDF report name:<br>
              </span></p>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                   <query item="</span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:bold;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">BF_ID</span><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">"
                string="%qstring%"/></span></p>
            <br>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">
                   <!-- This is the template --></span></p>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   <template>BF_HYDRO_POLYGON_template.pdf</template></span></p>
            <br>
            <p dir="ltr" style="line-height:1.38;"><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">Create


                the report PDF file</span></p>
            <p dir="ltr" style="line-height:1.38;"><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">   


              </span><span
style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">Copy


                the parcel_template.pdf to the name you entered in the
                report xml file, for example:</span></p>
            <br>
            <p dir="ltr" style="line-height:1.38;"><span
                style="font-size:12px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">copy


                parcel_template.pdf BF_HYDRO_POLYGON_template.pdf</span></p>
            <br>
          </blockquote>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>