<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Hi Leigh: Welcome! MapServer by default won't expose any attributes unless you explicitly tell it to. Look at the gml_include_items and gml_exclude_items layer metadata on this page:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">  <a href="https://mapserver.org/ogc/wfs_server.html" class="OWAAutoLink" id="LPlnk695352" previewremoved="true">https://mapserver.org/ogc/wfs_server.html</a></p>
<br>
<div>--Steve</div>
</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> mapserver-users <mapserver-users-bounces@lists.osgeo.org> on behalf of Leigh Porter <leigh@bowline.tech><br>
<b>Sent:</b> Thursday, May 16, 2019 2:24:59 PM<br>
<b>To:</b> mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> [mapserver-users] map server WFS with GML input</font>
<div> </div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""><br class="">
</div>
<div class="">Hey All!</div>
<div class=""><br class="">
</div>
<div class="">I just joined the list. I have used mapserver for a while and just started with WFS.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
<div class="">I’m serving WFS requests from a GML input file. Input is like this:</div>
<div class=""><br class="">
</div>
<div class=""><gml:featureMember><br class="">
    <ogr:2019_03_avon_and_somerset_street fid="2019_03_avon_and_somerset_street.0"><br class="">
      <ogr:geometryProperty><gml:Point><gml:coordinates>-3.187863,54.948226</gml:coordinates></gml:Point></ogr:geometryProperty><br class="">
      <ogr:Crime_ID>f2964c095957f50f54b16d18c71be4a1f09f55e7f321edac3f38b469877e7fc5</ogr:Crime_ID><br class="">
      <ogr:Month>2019-03</ogr:Month><br class="">
      <ogr:Reported_by>Avon and Somerset Constabulary</ogr:Reported_by><br class="">
      <ogr:Falls_within>Avon and Somerset Constabulary</ogr:Falls_within><br class="">
      <ogr:Location>On or near Field View</ogr:Location><br class="">
      <ogr:LSOA_code>E01019107</ogr:LSOA_code><br class="">
      <ogr:LSOA_name>Allerdale 002B</ogr:LSOA_name><br class="">
      <ogr:Crime_type>Other theft</ogr:Crime_type><br class="">
      <ogr:Last_outcome_category>Under investigation</ogr:Last_outcome_category><br class="">
      <ogr:Context></ogr:Context><br class="">
    </ogr:2019_03_avon_and_somerset_street><br class="">
  </gml:featureMember><br class="">
<br class="">
</div>
<div class="">But the output doesn’t include any of the other feature attributes (such as Crime_ID).</div>
<div class=""><br class="">
</div>
<div class="">
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
<wfs:member></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
    <ms:sas-avon></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
        <gml:boundedBy></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
            <gml:Envelope</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                srsName="urn:ogc:def:crs:EPSG::4326"></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                <gml:lowerCorner></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                    50.948685 -2.807610</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                    </gml:lowerCorner></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                <gml:upperCorner></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                    50.948685 -2.807610</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                    </gml:upperCorner></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                </gml:Envelope></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
            </gml:boundedBy></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
        <ms:msGeometry></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
            <gml:Point</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                gml:id=".1"</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                srsName="urn:ogc:def:crs:EPSG::4326"></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                <gml:pos></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                    50.948685 -2.807610</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                    </gml:pos></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
                </gml:Point></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
            </ms:msGeometry></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
        </ms:sas-avon></div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
    </wfs:member></div>
</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
<br class="">
</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
The mapfile looks like this:</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal; font-family:"Helvetica Neue"; color:rgb(69,69,69)">
<br class="">
</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><font color="#454545" face="Helvetica Neue" class="">   LAYER<br class="">
                NAME street-avon<br class="">
                TYPE POINT<br class="">
                STATUS DEFAULT<br class="">
                CONNECTIONTYPE OGR<br class="">
                CONNECTION "/vsicurl/<a href="https://gcc01.safelinks.protection.outlook.com/?url=http%3A%2F%2F127.0.0.1%2F2019-03-avon-and-somerset-street.csv.gml&data=02%7C01%7Csteve.lime%40state.mn.us%7Ca92d943d4bf845ef1e0408d6da39b088%7Ceb14b04624c445198f26b89c2159828c%7C0%7C0%7C636936338652704394&sdata=a3ZII6DKApIQr3tv8bubzPS8dU9wwmqstKsCKoH69%2BI%3D&reserved=0" originalsrc="http://127.0.0.1/2019-03-avon-and-somerset-street.csv.gml" shash="hbltglFnWt5Sc/rjWcFMQLuFhPIlEJUiWJw0VEHrjzDmNB4Td9lroD2o3z++hlLt6XAZBkfrFcVMq6aUZkyiRjFO74u9BIfHXlSccNyB+s1pYqjES+lvxe9xcrDf4U2YsFnN7j+UTAQyLVI2Y9Gil9Rjg91hYRtYbHKrQ3dlJr4=" class="">http://127.0.0.1/2019-03-avon-and-somerset-street.csv.gml</a>"<br class="">
                CLASS<br class="">
                        STYLE<br class="">
                                COLOR 0 255 0<br class="">
                                SYMBOL 'circle'<br class="">
                                SIZE 6<br class="">
                        END<br class="">
                END<br class="">
        END<br class="">
</font><br class="">
</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><br class="">
</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal">I don’t think I need to add anything to the apple for the feature attributes to be included in the WFS output, or do I?</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><br class="">
</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><br class="">
</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal">Thanks!</div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal">Leigh </div>
<div class="" style="margin:0px; font-stretch:normal; line-height:normal"><br class="">
</div>
<div class=""><br class="">
</div>
</div>
</body>
</html>