Hi Mark,
I show you my layer definition, which works.
As I understand, the bold parameters in the metadata section are missing in your mapfile...
(...)
LAYER
    NAME "odl_einstundenmittel"
    TYPE POINT
    STATUS ON
    MINSCALEDENOM 100001

    METADATA
        WMS_TITLE "blabla"
        WMS_ABSTRACT "blabla"
        WMS_ENABLE_REQUEST "*"
        INCLUDE "../../include/general/standard_extent_germany_4326.map"
*GML_INCLUDE_ITEMS "name,datum,WERT"
        GML_name_ALIAS "Station"
        GML_datum_ALIAS "Messende"
        GML_WERT_ALIAS "Messwert"*
    END

    TEMPLATE "blank.gml"
    INCLUDE "../../include/general/db_mysql_connect_odl_result.map"
    DATA "blöbla"

    TOLERANCE 6
    TOLERANCEUNITS pixels
    INCLUDE "../../include/classes/class_odl_rb_nolabel.map"
END

Regards,
Stefan


Am 25.03.2013 14:50, schrieb Mark Davidson:
Here is my entire map file just in-case I’ve done something stupid.

MAP
    PROJECTION
        "init=epsg:4326"
    END

    FONTSET "fonts.list"
    NAME TEST
    STATUS ON
    SIZE 1000 1000
    MAXSIZE 3000
    EXTENT -180 -90 180 90
    UNITS DD

    WEB
        METADATA
                "ows_enable_request" "*"
                "wms_title"           "Testing"
"wms_onlineresource" "http://localhost/cgi-bin/mapserv?map=test2.map&; <http://localhost/cgi-bin/mapserv?map=test2.map&;>"
                "wms_srs" "EPSG:900913"
        END
    END
    SYMBOL
        NAME "circle"
        TYPE ellipse
        FILLED true
        POINTS
             1 1
        END
    END

    LAYER
        NAME "test"
        METADATA
            "wms_title"    "Test Points"  ##required
        END
        TEMPLATE "blank.html"
        TOLERANCE 10
        TYPE POINT
        CONNECTIONTYPE postgis
        CONNECTION ""
        DATA "position from datatable"
        DEBUG TRUE

        CLASS
            STYLE
                SIZE 10
                SYMBOL "circle"
                COLOR 255 0 0
            END
        END
    END
END

On 25 March 2013 13:42, Kralidis,Tom [Ontario] <[email protected] <mailto:[email protected]>> wrote:

    Mark: try (in LAYER) DUMP TRUE?  Can you post the layer definition
    snippet from your mapfile?

    From: [email protected]
    <mailto:[email protected]>
    [mailto:[email protected]
    <mailto:[email protected]>] On Behalf Of
    Mark Davidson
    Sent: Monday, March 25, 2013 09:30
    To: Stefan Schantz
    Cc: [email protected]
    <mailto:[email protected]>
    Subject: Re: [mapserver-users] GetFeatureInfo GML

    Hi Stefan,

    Thanks for the suggestion, I've tried that but still getting the
    same output as before.
    Any other suggestions?

    Thanks again,

    Mark
    On 25 March 2013 11:41, Stefan Schantz <[email protected]
    <mailto:[email protected]>> wrote:
    Hi Mark,
    I use gml_include_items 'all'

    Best regards
    Stefan

    Am 25.03.2013 11 <tel:25.03.2013%2011>:44, schrieb Mark Davidson:
     Hi All,

    I'm trying to do a GetFeaureInfo on my layer and return it in GML
    format. The request works fine but I can't seem to get any data to
    come back apart from the point bounds.
    <?xml version="1.0" encoding="ISO-8859-1"?>

    <msGMLOutput
    xmlns:gml="http://www.opengis.net/gml";
    xmlns:xlink="http://www.w3.org/1999/xlink";
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
    <test_layer>
    <gml:name>Test Points</gml:name>
    <test_feature>
    <gml:boundedBy>
    <gml:Box srsName="EPSG:900913">
    <gml:coordinates>-269220.293738,6545357.533946
    -269220.293738,6545357.533946</gml:coordinates>
    </gml:Box>
    </gml:boundedBy>
    </test_feature>
    <test_feature>
    <gml:boundedBy>
    <gml:Box srsName="EPSG:900913">
    <gml:coordinates>-253276.741855,6554416.311795
    -253276.741855,6554416.311795</gml:coordinates>
    </gml:Box>
    </gml:boundedBy>
    </test_feature> </test_layer> </msGMLOutput>

    What I would like to be able to do is get the feature id as what
    happends with the plain output
    GetFeatureInfo results:

    Layer 'test'
    Feature 326:
    Feature 327:

    I've set `gml_include_items` to * and `wms_include_item` to * as
    well but still not having any luck.

    Could someone point me in the direction of doing this?

    Many thanks,

    Mark




    _______________________________________________
    mapserver-users mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.osgeo.org/mailman/listinfo/mapserver-users

    _______________________________________________
    mapserver-users mailing list
    [email protected]
    <mailto:[email protected]>
    http://lists.osgeo.org/mailman/listinfo/mapserver-users


_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to