[Geomoose-users] GM3 identify items in SpatiaLite db?

TC Haddad tchaddad at gmail.com
Mon Dec 10 06:49:00 PST 2018


Does anyone have a successful GM3 example of enabling Identify on items in
a SpatiaLite db?

I have a working example in GM2 that I am trying to transfer to GM3, and
everything I've tried is failing.

The layer draws just fine, and there are no significant error messages,
just no results.

Layer def and Mapbook snippet below, SpatiaLite db was created in QGIS 2.18.



---------------- fwd ---------------- >>

    LAYER
        NAME 'points'
        CONNECTIONTYPE ogr
        CONNECTION "\data\points.sqlite"
        DATA "points"
        STATUS ON
        TYPE POINT
        PROJECTION
            'init=epsg:3857'
        END
        METADATA
            'ows_title' 'points'
            'ows_include_items' 'all'
            'gml_include_items' 'all'
        END
        LABELCACHE ON
        LABELITEM 'SERVICELOC'
        TEMPLATE 'foo.html'
        CLASS
            NAME "Service Locations"
               STYLE
                 SYMBOL "square"
                 SIZE 8.0
                 OUTLINECOLOR 0 0 0
                 COLOR 0 0 255
               END
                    LABEL
                        TYPE TRUETYPE
                        FONT vera_sans
                        SIZE 8
                        ANTIALIAS TRUE
                        WRAP ' '
                        COLOR 0 0 255
                        OUTLINECOLOR 255 255 255
                        BUFFER 4
                        MINFEATURESIZE auto
                        PARTIALS FALSE
                        POSITION uc
                    END
        END
        TOLERANCE 30
    END

++++++++++++++++++++

    <map-source name="points" type="mapserver">
        <file>points.map</file>
        <layer name="points" status="off">
        <template name="identify"><![CDATA[
                <div>
                    <div style="background-color:Gainsboro">
                    <b>Points</b>
                    </div>
                    <div class="item">
                        <label>Location Number:</label> {{
properties.LocNumber }}
                    </div>
                    <div class="item">
                        <label>Location Street:</label> {{
properties.LocStreet }}
                    </div>

                </div>
                ]]></template>
        </layer>
        <param name="FORMAT" value="image/png;bits=8"/>
    </map-source>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geomoose-users/attachments/20181210/2aac935d/attachment.html>


More information about the Geomoose-users mailing list