<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Fernando,<br>
    <br>
      You could try to track down the problem by using Mapserver
    debugging information in it's log file.  In your map file add:<br>
    <br>
    <meta charset="utf-8">
    <p dir="ltr"
      style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"
      id="docs-internal-guid-b8dcca1a-90e0-e42a-f707-9a0ea0ceb3b1"><span
        style="font-size:15px;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:15px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">DEBUG
        5</span></p>
    <span style="font-size:15px;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:15px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">CONFIG
      "MS_ERRORFILE" "/ms4w/tmp/ms_error.txt"</span><br>
    <br>
    <p dir="ltr"
      style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"
      id="docs-internal-guid-b8dcca1a-90e0-e42a-f707-9a0ea0ceb3b1">Try
      the Identify function then have a look at the contents of the  <span
        style="font-size:15px;font-family:'Courier
New';color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline;">ms_error.txt</span>
      file. </p>
    <br>
    <pre class="moz-signature" cols="72">Best Regards,
Brent Fraser</pre>
    <div class="moz-cite-prefix">On 5/26/2015 1:07 AM, Fernando wrote:<br>
    </div>
    <blockquote cite="mid:DUB120-W26179D11A37FD9D63AA5D5F6CC0@phx.gbl"
      type="cite">
      <style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
      <div dir="ltr">Hello, I have installed on a Windows PC, MS4W -
        MapServer 4 Windows version 3.0.4, PHP 5.3.10, CGI MapServer
        6.0.2, Apache 2.2.21, PostgreSQL 9.4, PostGIS 2.1 and GeoMOOSE
        2.7.1.<br>
        <br>
        Postgis layers displayed correctly but doesn't work the Identify
        tool. I read all the documentation and I can not figure out what
        fails. I modified the example of "parcels" that brings GeoMOOSE
        to guide me.<br>
        <br>
        My configs are the folowing:<br>
        <br>
        mapbook Describing the query and the select services:<br>
        <br>
            <map-source name="edificio_c2_espacios"
        type="mapserver"><br>
                <file>./c2_postgis.map</file><br>
                <layer name="C2-ALBERT_EINSTEIN" status="on"/><br>
                <param name="FORMAT" value="image/png;
        mode=8bit"/><br>
               <param name="TRANSPARENT" value="true"/><br>
            </map-source><br>
        <br>
            <service name="identify" title="Identify" display="true"
        display-submit="false" clear-highlight="true"><br>
                <url>php/identify.php</url><br>
                <step type="spatial" name="shape" line="false"
        polygon="false" jump-start="true" default="point" box="true"
        pan="false"><br>
                    <header><br>
                        Click on the map to see more detailed
        information.<br>
                    </header><br>
                    <!--<br>
                    Uncomment this line to test "hidden" layers working
        with identify.  This will<br>
                    leave the layers listed here always identified
        despite their visibility.<br>
                    <input type="hidden" name="hidden_layers"
        value="edificio_c2_espacios/C2-ALBERT_EINSTEIN"/><br>
                    --><br>
                    <input type="visiblelayers" name="layers"/><br>
                    <input type="projection" name="projection"/><br>
                </step><br>
            </service><br>
        <br>
            <catalog><br>
                    <group title="PLANOS DISTRIBUCIÓN"
        expand="true"><br>
                        <layer title="ESPACIOS"
        src="edificio_c2_espacios/C2-ALBERT_EINSTEIN" metadata="true"
        legend="true" tip="Plano C2" show-legend="true" popups="true"
        fade="true" unfade="true"><br>
                           
        <metadata><a class="moz-txt-link-freetext" href="http://www.geomoose.org/docs/">http://www.geomoose.org/docs/</a></metadata><br>
                        </layer><br>
                    </group><br>
            </catalog><br>
        <br>
------------------------------------------------------------------------------------------------------------------------<br>
        <br>
        Map file "edificio_c2.map" of the postgis layer in
        C:\ms4w\apps\geomoose2\maps<br>
        <br>
        MAP<br>
            NAME EDIFICIO_C2_MAP<br>
            STATUS ON<br>
            SIZE 800 800<br>
            EXTENT -136 -1 227 362<br>
            UNITS METERS<br>
           <br>
            INCLUDE "./geomoose_globals.map"<br>
               <br>
            IMAGECOLOR 255 255 255<br>
            IMAGETYPE PNG<br>
            SYMBOLSET "./symbols/symbol.sym"  <br>
            FONTSET "./fonts/fontset.list"<br>
            TRANSPARENT FALSE<br>
            RESOLUTION 100<br>
            DEFRESOLUTION 100<br>
        <br>
          OUTPUTFORMAT<br>
          NAME png<br>
          DRIVER "AGG/PNG"<br>
          MIMETYPE "image/png"<br>
          IMAGEMODE PC256<br>
          EXTENSION "png"<br>
          FORMATOPTION "GAMMA=0.75"<br>
        END<br>
        <br>
            WEB<br>
              IMAGEPATH "/ms4w/tmp/ms_tmp/"<br>
              IMAGEURL "/ms_tmp/"<br>
              METADATA<br>
                  "wms_title" "WMS EDIFICIO C2"<br>
                  "wms_abstract" "SERVIDOR WMS C2"<br>
                    "wms_onlineresource"   
<a class="moz-txt-link-rfc2396E" href="http://localhost/cgi-bin/mapserv?map=/ms4w/apps/geomoose2/maps/c2_postgis.map">"http://localhost/cgi-bin/mapserv?map=/ms4w/apps/geomoose2/maps/c2_postgis.map"</a><br>
                    "wms_srs" "epsg:3857"<br>
                    "wms_enable_request" "*"   #necessary<br>
                    "wms_feature_info_mime_type" "text/html"      <br>
             END<br>
            END<br>
            <br>
            QUERYMAP<br>
                STATUS ON<br>
              STYLE HILITE<br>
              COLOR 255 255 0<br>
            END<br>
           <br>
            PROJECTION<br>
                "init=epsg:3857"<br>
            END<br>
           <br>
        ###<br>
           <br>
        LAYER<br>
         CONNECTIONTYPE postgis<br>
         CONNECTION "user=postgres password=**************
        dbname=edificio_c2 host=localhost port=5432"<br>
         DATA "the_geom FROM c2_shape USING UNIQUE gid USING SRID=3857"<br>
         <br>
         GROUP "C2-ALBERT_EINSTEIN"<br>
         NAME "C2-ALBERT_EINSTEIN"<br>
         METADATA<br>
           "DESCRIPTION" "ESPACIOS POLIGONADOS"<br>
           "GROUP" "C2-DISTRIBUCION"<br>
           "LAYER" "C2-ALBERT_EINSTEIN"<br>
           "TRANSPORTATION" "TRUE"<br>
           "RESULT_FIELDS"
        "dxf_text,area,perimeter,tipo_ubica,tipo_uso,contenido"<br>
           "RESULT_HEADERS" "IDENTIFICADOR, SUPERFICIE (m2), PERIMETRO
        (m), TIPO UBICACION, TIPO USO, DESCRIPCION"<br>
           "SPATIALSEARCH"
        "dxf_text"                                                                     
         <br>
           "SPATIALSEARCHLIST" "dxf_text,area,perimeter"<br>
             "wms_group_title"   "C2-DISTRIBUCION"<br>
             "wms_title" "Plano con filtro C2 ALBER EINSTEIN"<br>
             "wms_name" "C2-ALBERT_EINSTEIN"<br>
             "wms_format" "image/png"          <br>
             "wms_abstract" "C2 ALBERT EINSTEIN - Plano"<br>
             "wms_srs" "epsg:3857"<br>
             "wms_enable_request" "*"<br>
             "wms_server_version" "1.1.1"<br>
             "wms_extent"    "-136 -1 227 362"<br>
             "gml_include_items"   "all"<br>
             "wms_include_items"   "all"<br>
        <br>
                    # drill-down identify service record.<br>
                'identify_record'    './templates/identify.html'<br>
        <br>
                    # query.php / "Search Parcels" functionality.<br>
                    'itemquery'    'templates/search_result.html'<br>
                    'itemquery-filter'    '/.*[qstring].*/i'<br>
                    'qstring_validation_pattern' '.'<br>
                   <br>
                    # Feature reports are stored in the
        conf/feature_report directory.<br>
                    'feature_report' 'parcel.xml'<br>
        <br>
                'select_record'    'templates/select_result.html'<br>
                    'select_header' 'templates/select_header.html'<br>
                    'popups' 'parcels_popup.html'<br>
         END<br>
         <br>
         VALIDATION<br>
           # %filtro% subtituciones sólo pueden tener letras minúsculas,
        mayúsculas y números<br>
           'filtro'     '^[a-zA-Z0-9]+'<br>
         END       <br>
        <br>
         STATUS ON<br>
         TYPE POLYGON<br>
                CLASSITEM 'dxf_text'<br>
           <br>
              CLASS<br>
                NAME "UBICACIONES"<br>
                    STYLE<br>
                    COLOR 235 235 235<br>
                    OUTLINECOLOR 100 100 100<br>
                   END<br>
                   LABEL<br>
                      FONT "vera_sans"<br>
                      TYPE truetype<br>
                      SIZE 7               <br>
                      ALIGN CENTER<br>
                       COLOR 0 0 0<br>
                       OUTLINECOLOR 255 255 128<br>
                       FORCE TRUE<br>
                       PARTIALS FALSE<br>
                       POSITION AUTO<br>
                       MAXSCALEDENOM 600<br>
                       WRAP ':'<br>
                   END<br>
                   TEXT ('[dxf_text]' + ':' + '[tipo_ubica]')<br>
                END # end class<br>
        <br>
                TOLERANCE 0<br>
                TOLERANCEUNITS PIXELS<br>
            <br>
            TEMPLATE "building_popup.html"<br>
               <br>
         PROJECTION<br>
            "init=epsg:3857"<br>
         END<br>
        END<br>
         <br>
        END ## end Map<br>
        <br>
---------------------------------------------------------------------------------------------------------------<br>
        <br>
        My postgis table:<br>
        <br>
        CREATE TABLE c2_shape<br>
        (<br>
          gid serial NOT NULL,<br>
          area numeric,<br>
          perimeter numeric,<br>
          cover_ double precision,<br>
          cover_id double precision,<br>
          dxf_layer character varying(31),<br>
          dxf_color smallint,<br>
          dxf_thickn double precision,<br>
          dxf_type character varying(10),<br>
          dxf_elevat double precision,<br>
          dxf_handle character varying(16),<br>
          dxf_angle double precision,<br>
          dxf_size double precision,<br>
          dxf_text character varying(40),<br>
          dxf_attrib character varying(16),<br>
          dxf_iid double precision,<br>
          contenido character varying(254),<br>
          departamen character varying(254),<br>
          area_depto character varying(254),<br>
          tipo_ubica character varying(254),<br>
          tipo_uso character varying(254),<br>
          profesor character varying(254),<br>
          pas character varying(254),<br>
          investigac character varying(254),<br>
          docente character varying(254),<br>
          practica character varying(254),<br>
          otros character varying(254),<br>
          the_geom geometry(MultiPolygon,3857),<br>
          CONSTRAINT c2_shape_pkey PRIMARY KEY (gid)<br>
        )<br>
        WITH (<br>
          OIDS=FALSE<br>
        );<br>
        ALTER TABLE c2_shape<br>
          OWNER TO postgres;<br>
        <br>
        -- Index: c2_shape_the_geom_idx<br>
        <br>
        -- DROP INDEX c2_shape_the_geom_idx;<br>
        <br>
        CREATE INDEX c2_shape_the_geom_idx<br>
          ON c2_shape<br>
          USING gist<br>
          (the_geom);<br>
        <br>
        <br>
---------------------------------------------------------------------------------------------------------------<br>
        <br>
        File "parcels_popup.html" in C:\ms4w\apps\geomoose2\maps<br>
        <br>
        <!-- MapServer Template --><br>
        <div><br>
        <b>Identificador:</b> [dxf_text]<br/><br>
        <b>Contenido:</b> [contenido]<br/><br>
        <br/><br>
        <br>
        <a href=<a class="moz-txt-link-rfc2396E" href="javascript:GeoMOOSE.startService('feature_report',{'src':'edificio_c2_espacios/C2-ALBERT_EINSTEIN','dxf_text':'[dxf_text]'});">"javascript:GeoMOOSE.startService('feature_report',
        {'src' : 'edificio_c2_espacios/C2-ALBERT_EINSTEIN', 'dxf_text' :
        '[dxf_text]'});"</a>>View Parcel Report</a><br>
        </div><br>
        <br>
---------------------------------------------------------------------------------------------------------------<br>
        <br>
        <br>
        Here are the files that i have in the templates folder ->
        C:\ms4w\apps\geomoose2\maps\templates, modified to my postgis
        layer<br>
        <br>
        identify.html<br>
        <br>
        <!-- MapServer Template --><br>
        <tr bgcolor="#DEE5EB"><td
        colspan="2"><b><u>ESPACIOS</u></b></tr><br>
        <tr><br>
        <td
        align="right"><b>IDENTIFICADOR:</b></td><br>
        <td>[dxf_text]</td><br>
        </tr><br>
        <tr><br>
        <td align="right"><b>CONTENIDO:</b></td><br>
        <td>[contenido]</td><br>
        </tr><br>
        <br>
        <br>
        identify.map<br>
        <br>
        <!-- MapServer Template --><br>
        <a id="[dxf_text]" class='sprite-control
        sprite-control-find-selected' style="padding-left: 22px"
        parcel-shape="[shpxy]"
        href=<a class="moz-txt-link-rfc2396E" href="javascript:GeoMOOSE.zoomToPointsList(dojo.byId('[dxf_text]').getAttribute('dxf_text'),'EPSG:3857');">"javascript:GeoMOOSE.zoomToPointsList(dojo.byId('[dxf_text]').getAttribute('dxf_text'),
        'EPSG:3857');"</a>>[dxf_text]</a><br/><br>
        [contenido]<br/><br>
        <br/><br>
        <br>
        <br>
        search_result.html<br>
        <br>
        <!-- MapServer Template --><br>
        <b>Identificador:</b> <a data-pin="[dxf_text]"
        id="gm-parcel-[dxf_text]" class='sprite-control
        sprite-control-find-selected' style="padding-left: 22px"
        parcel-shape="[shpxy]"
        href=<a class="moz-txt-link-rfc2396E" href="javascript:GeoMOOSE.zoomToPointsList(dojo.byId('[dxf_text]').getAttribute('parcel-shape'),'EPSG:3857');">"javascript:GeoMOOSE.zoomToPointsList(dojo.byId('[dxf_text]').getAttribute('parcel-shape'),
        'EPSG:3857');"</a>>[dxf_text]</a><br/><br>
        <b>Contenido:</b> [contenido]<br/><br>
        <hr/><br>
        <br>
        <br>
        search_header.html<br>
        <br>
        <!-- MapServer Template --><br>
        <a target="_blank"
        href="php/mailing_labels.php?queryid=[QUERYID]&output=pdf">PDF
        Mailing Labels</a><br/><br>
        <a target="_blank"
        href="php/mailing_labels.php?queryid=[QUERYID]&output=html">HTML
        Mailing Labels</a><br/><br>
        <a target="_blank"
        href="php/mailing_labels.php?queryid=[QUERYID]&output=csv">CSV
        Mailing Labels</a><br/><br>
        <br/><br>
        <div style="display: [SHOW_FOLLOWUP]"/><br>
        <a
        href=<a class="moz-txt-link-rfc2396E" href="javascript:GeoMOOSE.startService('buffered_select_followup',{shape:'[SHAPE_WKT]',select_layer:'[SELECT_LAYER]',query_layer:'[SELECT_LAYER]',selection_buffer:[SELECTION_BUFFER]})">"javascript:GeoMOOSE.startService('buffered_select_followup',
        {shape: '[SHAPE_WKT]', select_layer: '[SELECT_LAYER]',
        query_layer: '[SELECT_LAYER]', selection_buffer:
        [SELECTION_BUFFER]})"</a>>Buffer these results</a><br>
        <br/><br/><br>
        </div><br>
        <br>
        <br>
        select_result.html<br>
        <br>
        <!-- MapServer Template --><br>
        <table><br>
        <tr><br>
<td><b>IDENTIFICADOR:</b></td><td>[dxf_text]</td><br>
        </tr><br>
        <tr><br>
        <td><b>Contenido:</b></td><br>
        <td>[contenido]</td><br>
        </tr><br>
        </table><br>
        <br>
        <br>
        When I use the "Identify" tool, the result is always the same,
        only the ground coordinates of the point is displayed but does
        not display information postgis layer. For example:<br>
        <br>
        Detailed information for the area you clicked on the map ...<br>
        Ground Coordinates<br>
        X: 108.95263671875<br>
        Y: 300.091796875<br>
         <br>
        Disclaimer: This information is distributed as Being
        demonstation data only. You should not use the data for any
        other purposes.<br>
        <br>
        Can anyone please help me?<br>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Geomoose-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Geomoose-users@lists.osgeo.org">Geomoose-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/geomoose-users">http://lists.osgeo.org/mailman/listinfo/geomoose-users</a></pre>
    </blockquote>
    <br>
  </body>
</html>