[Geomoose-users] Unable to implement select feature service

Lin, Joyce Joyce.Lin at pxd.com
Sat Dec 8 16:34:06 PST 2012


Hello,

I need help with configuring the select feature for a layer. I have a "Lease" shape file store in data folder stored at C:\Data\Lease\

Following the implementer documentation of GeoMoose

1.       I moved everything under parcel demo in "maps/demo/parcels/templates" to C:\Data\Lease\tamplates



2.       Modify select result to be as below
<!-- MapServer Template -->
<table>
<tr>
<td><b>ID:</b></td>
<td>[TRCT_LABEL]</td>
</tr>
<tr>
<td><b>Tract Name:</b></td>
<td>[TRACT_NAME]</td>
</tr>
<tr>
<td><b>Operator:</b></td>
<td>[OPERATOR]</td>
</tr>
<tr>
<td><b>Tract Status:</b></td>
<td>[TRACT_STAT]</td>
</tr>
<tr>
<td colspan="2"><hr/></td>
</tr>
</table>


3.       Modify Mapserver Mapfile

LAYER
              NAME Lease
              DATA './Lease.shp'
              .........


     PROJECTION
         'init=epsg:32040'
     END

METADATA
                     # drill-down identify service record.
                     'identify_record'    'templates/identify.html'

                     # query.php / "Search Lease" functionality.
                     'itemquery'   'templates/search_result.html'
                     'itemquery-filter'   '/.*[qstring].*/i'
                     'qstring_validation_pattern' '.'

                     # Feature reports are stored in the conf/feature_report directory.
                     'feature_report' 'Lease.xml'

                    'select_record'      'templates/select_result.html'
                     'select_header' 'templates/select_header.html'
                     'popups' 'Lease_popup.html'
              END



4.  Modify mapbook.xml
                     <input type="select" name="select_layer" title="Select features from:">
                           <option value="parcels/parcels">Parcels</option>
                           <option value="/Data/Lease/Lease">Lease</option>
                     </input>



I did all these steps.... But when I select features on my lease layer, it stuck at "Loading" and nothing was returning.  Could someone advise what I am overlooking?

Thank you,
Joyce






Statement of Confidentiality:
This message may contain information that is privileged or confidential. If you receive this transmission in error, please notify the sender by reply e-mail and delete the message and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20121209/0aeae274/attachment-0001.html>


More information about the Geomoose-users mailing list