[Geomoose-users] search tool

Moffat Magondu githiro at gmail.com
Sun Dec 2 22:03:05 PST 2012


Hi,
I am having a problem with the search tool after i configure.
I am getting the error. Any help ???

"Geomoose *Item Query Service*

No results found for your query!"

*this is the layer on mapfile*
LAYER
        NAME county
        CONNECTIONTYPE postgis
        CONNECTION "dbname=wrma_new host=localhost port=5432 user=postgres
password=mogima12"
        DATA 'the_geom FROM county using unique oid using srid = 4326'
        STATUS on
        TYPE POLYGON
        LABELITEM 'countyname'
        LABELMAXSCALE 6000000



        CLASS
       NAME 'county'
       STYLE
         WIDTH 0.5
         OUTLINECOLOR 0 0 0
       END
        LABEL
                TYPE TRUETYPE
                FONT vera_sans
                SIZE 5
                ANTIALIAS TRUE
                COLOR 0 0 0
                OUTLINECOLOR 254 254 200
                BUFFER 1
                MINFEATURESIZE auto
                PARTIALS FALSE
                POSITION cc
            END


        END



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

            # query.php / "Search Parcels" 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' 'parcel.xml'

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

    TOLERANCE 3

        END

*my search service on mapbook.xml*

<service name="search_parcels" title="Search">
        <url>php/query.php</url>
        <step type="input">
            <input type="hidden" name="highlight" value="true"/>
            <input type="hidden" name="mode" value="search"/>

            <input type="hidden" name="layer0" value="county/county"/>
            <input type="hidden" name="template0" value="itemquery"/>

            <input type="select" name="fieldname0" title="Search By:">
                <option value="countyname">countyname</option>
                <option value="basinname">basinname</option>
            </input>
            <input type="select" name="comparitor0" title="That: ">
                <option value="like-icase">Contains</option>
                <option value="right-like-icase">Begins With</option>
                <option value="eq-str">Matches Exactly</option>
            </input>
            <input type="user" name="value0" title=""/>



        </step>
    </service>

*and my search.html*
<!-- MapServer Template -->
<a id="gm-parcel-[countyname]" class='sprite-control
sprite-control-find-selected' style="padding-left: 22px"
parcel-shape="[shpxy]"
href="javascript:GeoMOOSE.zoomToPointsList(dojo.byId('gm-parcel-[countyname]').getAttribute('parcel-shape'),
'EPSG:4326');">[countyname]</a><br/>
[basinname]<br/>
<br/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20121203/691c5bd7/attachment.html>


More information about the Geomoose-users mailing list