[Geomoose-users] Identify not working

Anderson, Dean anderson.dean at co.polk.or.us
Wed Sep 19 13:54:16 PDT 2012


This may or may not be it. I had similar issues in a 2.4 app and expanded
my search tolerance which let me find them as follows:

  LAYER

 NAME "control"
 DATA './data/control'
 STATUS ON
 TYPE point
  TOLERANCE 50
  TOLERANCEUNITS FEET
  .
  .
  .
  .

Expanding tolerance let me identify them.

Hope it helps.

Dean



On Wed, Sep 19, 2012 at 1:42 PM, Matej Mailing <mailing at tam.si> wrote:

> Hi,
>
> the issue with not-passed projection is solved - it seems I have
> removed input type="projection" from the identify service by mistake.
> Now when turning on the debug mode for identify.map I get no more
> errors and warnings, just this one:
> "Warning: mapObj::queryByPoint(): [MapServer Error]: msQueryByPoint():
> No matching record(s) found.
>  in /var/www/elgismap/php/identify.php on line 170"
>
> When turning debug off, I get no results.
>
> Map file:
>
> MAP NAME my_layer
>         DEBUG 5
>         EXTENT 484000 90000 620000 190000
>         STATUS ON
>         SIZE 2000 2000
>         TRANSPARENT TRUE
>         UNITS METERS
>         IMAGECOLOR 255 255 255
>         IMAGETYPE PNG
>         INCLUDE "../globals.map"
>         PROJECTION
>                 "init=epsg:4326"
>         END
>
>         QUERYMAP
>                 STATUS ON
>                 STYLE SELECTED
>         END
>
>         WEB
>                 METADATA
>                         "wms_title"             "my_layer"
>                         "wms_srs"               "EPSG:4326"
>                         "wms_enable_request"    "*"
>                 END
>                 QUERYFORMAT "text/xml"
>                 INCLUDE "../temp_directory.map"
>                 IMAGEPATH "/var/www/gm/tmp/"
>                 IMAGEURL "/gm/tmp/"
>         END
>
>         LEGEND
>               STATUS ON
>               LABEL
>                 TYPE TRUETYPE
>                 FONT vera_sans
>                 SIZE 8
>                 COLOR 0 0 0
>               END
>         END
>
>
>         LAYER
>                 NAME "layer_name"
>                 TYPE POINT
>                 STATUS DEFAULT
>                 CONNECTIONTYPE POSTGIS
>                 CONNECTION "host=localhost ... port=5432 options='-c
> client_encoding=UTF8'"
>                 DATA "wkb_geometry from table"
>                 CLASS
>                         TEXT '[text]'
>                         COLOR 200 23 255
>                         SYMBOL 'circle'
>                         MAXSIZE 13
>                         MINSIZE 10
>                         LABEL
>                                 TYPE TRUETYPE
>                                 OFFSET 2 2
>                                 FONT timesi
>                                 POSITION ur
>                                 ANTIALIAS true
>                                 MINSIZE 12
>                                 MAXSIZE 15
>                                 COLOR 10 120 80
>                         END
>
>                END
>                METADATA
>                        'identify_record'       'templates/identify.html'
>                END
>                TOLERANCE 0
>         END
> END
>
> ---------------------------------------------
>
> Thanks,
> Matej
>
> 2012/9/19 Anderson, Dean <anderson.dean at co.polk.or.us>:
>  > So - what does your map file look like?
> >
> > THanks
> > Dean
> >
> >
> >
> > On Wed, Sep 19, 2012 at 1:20 PM, Matej Mailing <mailing at tam.si> wrote:
> >>
> >> Hi,
> >>
> >> wms_* entries were commented out (non-wms_* were not), but also after
> >> uncommenting them the situation is the same. When checking the POST
> >> parameters for identify.php with Firebug, there is no projection. The
> >> projection file (Javascript) is successfully loaded on the site and
> >> the EPSG:4326 is set both in mapbook.xml and settings.ini (in [map]
> >> section).
> >>
> >> The parcels demo has data stored in SHP and we are using PostGIS for
> >> it. I have gone through both map files and the only difference is that
> >> in the WEB METADATA of our mapfile we have wms_title, wms_srs and
> >> wms_enable_request and in parcels mapfile there are ows_* tags ...
> >>
> >> Thanks,
> >> Matej
> >>
> >> 2012/9/19 Brent Fraser <bfraser at geoanalytic.com>:
> >> > Does your settings.ini file have entries like
> >> >
> >> > [identify]
> >> > identify_header=identify/header.html
> >> > identify_footer=identify/footer.html
> >> > wms_header=identify/wms_header.html
> >> > wms_record=identify/wms_record.html
> >> > wms_footer=identify/wms_footer.html
> >> >
> >> > and do the files pointed to by the wms_* entries exist in the
> htdocs\php
> >> > folder?
> >> >
> >> > Best Regards,
> >> > Brent Fraser
> >> >
> >> >
> >> > On 9/19/2012 1:47 PM, Matej Mailing wrote:
> >> >>
> >> >> Just now I have found out that in my case I have no "projection"
> >> >> parameter sent into the identify.php when comparing to the working
> >> >> parcels sample. We are using EPSG:4326 - could this be a problem?
> >> >>
> >> >> Thanks,
> >> >> Matej
> >> >>
> >> >> 2012/9/19 Matej Mailing <mailing at tam.si>:
> >> >>>
> >> >>> Hi all,
> >> >>>
> >> >>> I was able to get parcels identification working, but my layer still
> >> >>> doesn't work. When enabling debug messages in identify.php, I get
> the
> >> >>> followint output:
> >> >>> "Notice: Undefined index: wms_header in /path/php/identify.php on
> line
> >> >>> 116
> >> >>> Warning: file(): Filename cannot be empty in /path/php/identify.php
> on
> >> >>> line 116
> >> >>> Warning: implode(): Invalid arguments passed in
> /path/php/identify.php
> >> >>> on line 116
> >> >>> Notice: Undefined index: wms_record in /path/php/identify.php on
> line
> >> >>> 117
> >> >>> Warning: file(): Filename cannot be empty in /path/php/identify.php
> on
> >> >>> line 117
> >> >>> Warning: implode(): Invalid arguments passed in
> /path/php/identify.php
> >> >>> on line 117
> >> >>> Notice: Undefined index: wms_footer in /path/php/identify.php on
> line
> >> >>> 118
> >> >>> Warning: file(): Filename cannot be empty in /path/php/identify.php
> on
> >> >>> line 118
> >> >>> Warning: implode(): Invalid arguments passed in
> /path/php/identify.php
> >> >>> on line 118
> >> >>> Warning: mapObj::queryByPoint(): [MapServer Error]:
> msQueryByPoint():
> >> >>> No matching record(s) found.
> >> >>>   in /path/php/identify.php on line 170"
> >> >>>
> >> >>> When turning off the debug mode, I get the same output as mentioned
> >> >>> before: just coordinates of the point.
> >> >>>
> >> >>> Thanks for any ideas,
> >> >>> Matej
> >> >>>
> >> >>> 2012/9/13 Eli Adam <eadam at co.lincoln.or.us>:
> >> >>>>
> >> >>>> On Wed, Sep 12, 2012 at 4:24 PM, Matej Mailing <mailing at tam.si>
> >> >>>> wrote:
> >> >>>>>
> >> >>>>> Hi,
> >> >>>>>
> >> >>>>> I have followed all 3 points, but with no success. I still get the
> >> >>>>> coordinates and that's it ...
> >> >>>>
> >> >>>> If you started with the demo, does identify on the parcels work?
> >> >>>>
> >> >>>>> Now I have removed all the fields from the template file (that
> >> >>>>> begins
> >> >>>>> with the <!-- MapServer Template -->) so it only outputs some
> "hello
> >> >>>>> world text", but it still doesn't work. I have now found a
> >> >>>>> metadata="true" option available when defining the layer in the
> >> >>>>> mapbook file, but also with this set to true it doesn't work. I
> have
> >> >>>>> also added only this layer to be used for identify via <input
> >> >>>>> type="hidden" name="layers" value="..."/> with no result :/
> >> >>>>>
> >> >>>>> What is the best way to debug this issue?
> >> >>>>
> >> >>>> Firefox/firebug could be a good way to start.  Using the firebug
> >> >>>> console on the online demo leads to seeing things like:
> >> >>>> post
> >> >>>> dojo.preventCache       1347492736022
> >> >>>> layers
> >> >>>>
> >> >>>>
> blank%3Ablank/blank%3Aborders%3Aborders/city_labels%3Aborders/county_labels%3Aborders/city_poly%3Aborders/county_borders%3Aparcels%3Aparcels/parcels%3Asketch
> >> >>>> projection      EPSG%3A3857
> >> >>>> shape   POINT%28-10372969.112863%205552707.7829098%29
> >> >>>> Source
> >> >>>>
> >> >>>>
> >> >>>>
> layers=blank%253Ablank%2Fblank%253Aborders%253Aborders%2Fcity_labels%253Aborders%2Fcounty_labels%253Aborders%2Fcity_poly%253Aborders%2Fcounty_borders%253Aparcels%253Aparcels%2Fparcels%253Asketch&projection=EPSG%253A3857&shape=POINT%2528-10372969.112863%25205552707.7829098%2529&dojo.preventCache=1347492736022
> >> >>>>
> >> >>>> response
> >> >>>> <results><script> GeoMOOSE.clearLayerParameters('highlight');
> >> >>>>
> >> >>>>
> >> >>>>
> GeoMOOSE.turnLayerOff('highlight/highlight');</script><html><![CDATA[<!--
> >> >>>> MapServer Template -->
> >> >>>> Detailed information for the area you clicked on the map...
> >> >>>> <table border="0">
> >> >>>> <tr>
> >> >>>> <td colspan="2"><b><u>Ground Coordinates</u></b>
> >> >>>> <br>
> >> >>>> <b>X: </b>485549.182735
> >> >>>> <br>
> >> >>>> <b>Y: </b>4934226.01043</td>
> >> >>>> </tr>
> >> >>>> <tr>
> >> >>>> <td> </td>
> >> >>>> <td> </td>
> >> >>>> </tr>
> >> >>>> </table>
> >> >>>> <table border="0" cellpadding="1" cellspacing="2">
> >> >>>> <tr bgcolor="#DEE5EB"><td colspan="2"><b><u>Parcels</u></b></tr>
> >> >>>> <tr>
> >> >>>> <td align="right"><b>PIN:</b></td>
> >> >>>> <td>130260001175 <a
> >> >>>> href="javascript:GeoMOOSE.startService('feature_report', {'PIN' :
> >> >>>> '130260001175', 'src' : 'parcels/parcels'})">Report</a></td>
> >> >>>> </tr>
> >> >>>> <tr>
> >> >>>> <td align="right"><b>Owner Name:</b></td>
> >> >>>> <td>Thaddeus Garcia</td>
> >> >>>> </tr>
> >> >>>> <tr>
> >> >>>> <td align="right"><b>Est. Market Value:</b></td>
> >> >>>> <td>1178700</td>
> >> >>>> </tr>
> >> >>>> <tr>
> >> >>>> <td align="right"><b>Acres:</b></td>
> >> >>>> <td>154.37</td>
> >> >>>> </tr>
> >> >>>> <tr>
> >> >>>> <td> </td>
> >> >>>> <td> </td>
> >> >>>> </tr>
> >> >>>> ]]></html><footer><![CDATA[<b>Disclaimer: This information is being
> >> >>>> distributed as demonstation data only.  You should not use the data
> >> >>>> for any other purposes.</b>
> >> >>>> ]]></footer></results>
> >> >>>>
> >> >>>> You can do the same with your site and see exactly what is coming
> >> >>>> back
> >> >>>> in the response.  Posting more specific details (relevant parts of
> >> >>>> mapbook.xml, ogrinfo of datasource) or providing a link to your
> >> >>>> website might make it easier for people to make suggestions.
>  Getting
> >> >>>> the parcels example working correctly and then closely matching the
> >> >>>> parcels set can be a starting place.  Also confirm that relative
> >> >>>> paths
> >> >>>> are correct.
> >> >>>>
> >> >>>> Best Regards, Eli
> >> >>>>
> >> >>>>
> >> >>>>> Thanks for any ideas in advance ....
> >> >>>>> Matej
> >> >>>>>
> >> >>>>> 2012/9/13 Eli Adam <eadam at co.lincoln.or.us>:
> >> >>>>>>
> >> >>>>>> Matej,
> >> >>>>>>
> >> >>>>>> On Wed, Sep 12, 2012 at 3:52 PM, Matej Mailing <mailing at tam.si>
> >> >>>>>> wrote:
> >> >>>>>>>
> >> >>>>>>> Hi,
> >> >>>>>>>
> >> >>>>>>> I have a layer where I have added
> >> >>>>>>>                 METADATA
> >> >>>>>>>                         'identify_record'
> >> >>>>>>> 'templates/identify.html'
> >> >>>>>>>                 END
> >> >>>>>>> and created a file in the subdirectory of the directory where
> the
> >> >>>>>>> map
> >> >>>>>>> file is. Identify service is active since when I click to some
> >> >>>>>>> point
> >> >>>>>>> I
> >> >>>>>>
> >> >>>>>> Does your template start with:
> >> >>>>>> <!-- MapServer Template -->
> >> >>>>>>
> >> >>>>>>> get the coordinates. This layer can be the only layer turned on
> in
> >> >>>>>>> the
> >> >>>>>>> Catalog, but I still get no identify results and the message
> >> >>>>>>> containing the coordinates seems to be used.
> >> >>>>>>
> >> >>>>>> Can you review this draft updated documentation and see if it
> >> >>>>>> helps?
> >> >>>>>> http://geomoose.org/trunk/howto/identify.html
> >> >>>>>>
> >> >>>>>> HTH, Eli
> >> >>>>>>
> >> >>>>>>> What am I doing wrong? I have been pulling my hair out for quite
> >> >>>>>>> some
> >> >>>>>>> hours now ...
> >> >>>>>>>
> >> >>>>>>> Thanks for all the ideas.
> >> >>>>>>> Matej
> >> >>>>>>> _______________________________________________
> >> >>>>>>> Geomoose-users mailing list
> >> >>>>>>> Geomoose-users at lists.osgeo.org
> >> >>>>>>> http://lists.osgeo.org/mailman/listinfo/geomoose-users
> >> >>
> >> >> _______________________________________________
> >> >> Geomoose-users mailing list
> >> >> Geomoose-users at lists.osgeo.org
> >> >> http://lists.osgeo.org/mailman/listinfo/geomoose-users
> >> >>
> >> >
> >> >
> >> > _______________________________________________
> >> > Geomoose-users mailing list
> >> > Geomoose-users at lists.osgeo.org
> >> > http://lists.osgeo.org/mailman/listinfo/geomoose-users
> >> _______________________________________________
> >> Geomoose-users mailing list
> >> Geomoose-users at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/geomoose-users
> >
> >
> >
> >
> > --
> > Dean R Anderson
> > IT Director
> > Polk County
> >
>



-- 
Dean R Anderson
IT Director
Polk County
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20120919/8ee10e4a/attachment-0001.html>


More information about the Geomoose-users mailing list