[Geomoose-users] Identify Service Issue

Brian Fischer bfischer at houstoneng.com
Wed Dec 22 16:55:14 EST 2010


Two things to try.  My guess is the latter is the real issue.


1)      Add a TOLERANCE 0 to the layer definition in the mapfile since it is a polygon layer.

2)      Your layer name in the mapbook doesn't match your layer name in the mapfile.


See changes below.

Brian Fischer, CFM  GIS Manager
Houston Engineering, Inc.
Phone: Direct: 763-493-6664 / W: 763.493.4522 / M: 763.229.2734

From: Johnson, Jeremy [mailto:JJohnson at ci.blaine.mn.us]
Sent: Wednesday, December 22, 2010 3:23 PM
To: geomoose-users at lists.sourceforge.net
Subject: [Geomoose-users] Identify Service Issue

I have been scouring past emails from the list and can't seem to find a solution to my issue.  I have added my own parcel layer and have been succesful in having the identify tool work exactly how I want it.  However, if I add another layer and want to identify that layer, all that is returned is the ground coordinates of the click.  Below is the pertinient information.  Any help would be greatly appreciated.

MAPFILE
MAP
 NAME 'blocks'
 SIZE 800 650
 STATUS ON
 EXTENT  479000 4996100 488810 5006500

 UNITS METERS

 INCLUDE "../../geomoose_globals.map"

 PROJECTION
  'init=epsg:26915'
 END

   LAYER
         NAME blocks
         DATA '/ms4w/data/blaine_block_utm.shp'
         STATUS DEFAULT
         TYPE POLYGON
                TOLERANCE 0
            CLASS
           NAME 'Census Blocks'
           STYLE
             SYMBOL 'plainline'
             SIZE 2
             COLOR -1 -1 -1
             OUTLINECOLOR 255 0 0
              END
         END

  METADATA
        'identify_record' 'identify_blocks.html'
  END

     END

END ## end Map
IDENTIFY_BLOCKS.HTML

<!-- MapServer Template -->
<tr bgcolor="#DEE5EB"><td colspan="2"><b><u>Parcels</u></b></tr>
<tr>
<td align="right"><b>STFID:</b></td>
<td>[STFID]</td>
</tr>
<tr>
<td align="left"><u>Population:</u></td>
<td>[POP2000]</td>
</tr>

<tr><td colspan="2"><hr></td></tr>
MAPBOOK ENTRIES

 <map-source name="blocks" type="mapserver">
  <file>./blaine/census/blocks.map</file>
  <layer name="blocks"/>
 </map-source>
______________________________________________________________________________
 <service name="identify" title="Identify" display="false">
  <url>php/identify.php</url>
  <step type="spatial" name="shape" line="false" polygon="false" jump-start="true" default="point">
   <input type="visiblelayers" name="layers"/>
  </step>
 </service>
______________________________________________________________________________
  <layer title="Blaine Census Blocks" src="blocks/blocks" status="off" popups="true" />
Jeremy Johnson, GISP
G.I.S. Coordinator
City of Blaine
10801 Town Square Dr Ne
Blaine, MN  55449
(763) 717-2639


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geomoose-users/attachments/20101222/da5e1c93/attachment.html


More information about the Geomoose-users mailing list