<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body>
Depends if you’re talking about connecting to a WFS service or using MapServer to create a WFS service.<br>
<br>
See https://mapserver.org/input/vector/wfs.html for the former and https://mapserver.org/ogc/wfs_server.html for the latter... it’s a little more involved.<br>
<br>
—Steve
<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> e.arapostathis@gmail.com <e.arapostathis@gmail.com><br>
<b>Sent:</b> Saturday, January 12, 2019 10:06:40 AM<br>
<b>To:</b> Lime, Steve D (MNIT); mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> RE: [mapserver-users] map file syntax for geojson file formats</font>
<div> </div>
</div>
<style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
p.x_MsoNormal, li.x_MsoNormal, div.x_MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
a:link, span.x_MsoHyperlink
        {color:#0563C1;
        text-decoration:underline}
a:visited, span.x_MsoHyperlinkFollowed
        {color:#954F72;
        text-decoration:underline}
p.x_MsoListParagraph, li.x_MsoListParagraph, div.x_MsoListParagraph
        {margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
p.x_msonormal0, li.x_msonormal0, div.x_msonormal0
        {margin-right:0in;
        margin-left:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif}
span.x_EmailStyle19
        {font-family:"Calibri",sans-serif}
span.x_EmailStyle20
        {font-family:"Calibri",sans-serif;
        color:#1F497D}
span.x_EmailStyle22
        {font-family:"Calibri",sans-serif}
.x_MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
div.x_WordSection1
        {}
-->
</style>
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="x_WordSection1">
<p class="x_MsoNormal">Thank you very much for the quick and very clear and helpful responses.</p>
<p class="x_MsoNormal">Could I ask a last question please?</p>
<p class="x_MsoNormal">How could the same map file be transformed in order to create a WFS connection type?</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Is it something like:</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">CONNECTIONTYPE WFS</p>
<p class="x_MsoNormal">DATA ‘./cemeteries.shp’     ?</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal"><b>From:</b> Lime, Steve D (MNIT) <steve.lime@state.mn.us>
<br>
<b>Sent:</b> Friday, January 11, 2019 10:25 PM<br>
<b>To:</b> e.arapostathis@gmail.com; mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> RE: [mapserver-users] map file syntax for geojson file formats</p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"><span style="color:#1F497D">It’s actually GDAL/OGR that provides GeoJson read support. So assuming you have a file called cemeteries.geojson it should be as simple as replacing:</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">  </span>DATA './cemeteries.shp’</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">with:</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">   CONNECTIONTYPE OGR</p>
<p class="x_MsoNormal">   CONNECTION ‘./cemeteries.geojson’</p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">See <a href="https://mapserver.org/input/vector/ogr.html">
https://mapserver.org/input/vector/ogr.html</a> for additional information on OGR support.</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="x_MsoNormal"><span style="color:#1F497D">--Steve</span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<p class="x_MsoNormal"><span style="color:#1F497D"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0in 0in 0in">
<p class="x_MsoNormal"><b>From:</b> mapserver-users [<a href="mailto:mapserver-users-bounces@lists.osgeo.org">mailto:mapserver-users-bounces@lists.osgeo.org</a>]
<b>On Behalf Of </b><a href="mailto:e.arapostathis@gmail.com">e.arapostathis@gmail.com</a><br>
<b>Sent:</b> Friday, January 11, 2019 11:24 AM<br>
<b>To:</b> <a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br>
<b>Subject:</b> [mapserver-users] map file syntax for geojson file formats</p>
</div>
</div>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Hello,</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">  As few years have passed since the time that I was using mapserver constantly (before geojson file format started emerging) I would like to ask if there is any basic difference while creating the map files.</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">It would be of great help if you could provide me an example in the following map file which loads a shape file. What differences must be done in order to load the file cemetery.geojson instead of the cemetery.shp?</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">MAP</p>
<p class="x_MsoNormal">                INCLUDE '../../geomoose_globals.map'</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">                WEB</p>
<p class="x_MsoNormal">                                METADATA</p>
<p class="x_MsoNormal">                                                'ows_title' 'Cemeteries'</p>
<p class="x_MsoNormal">                                                INCLUDE '../../common_metadata.map'</p>
<p class="x_MsoNormal">            'wfs_getfeature_formatlist' 'gml,geojson'</p>
<p class="x_MsoNormal">                                END</p>
<p class="x_MsoNormal">                END</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">    DEBUG 5</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">                LAYER</p>
<p class="x_MsoNormal">                                NAME cemeteries</p>
<p class="x_MsoNormal">                                GROUP cemeteries</p>
<p class="x_MsoNormal">                                STATUS ON</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">                                METADATA</p>
<p class="x_MsoNormal">                                                'ows_title' 'cemeteries'</p>
<p class="x_MsoNormal">                                                'ows_include_items' 'all'</p>
<p class="x_MsoNormal">                                                'gml_include_items' 'all'</p>
<p class="x_MsoNormal">                                END</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">                                TYPE POINT</p>
<p class="x_MsoNormal">                                DATA './cemeteries.shp’</p>
<p class="x_MsoNormal">                                TOLERANCE 4</p>
<p class="x_MsoNormal">                                PROJECTION</p>
<p class="x_MsoNormal">                                                'init=epsg:4326'</p>
<p class="x_MsoNormal">                                END</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">                                CLASS</p>
<p class="x_MsoNormal">                                                STYLE</p>
<p class="x_MsoNormal">                                                                SYMBOL 'cemetery.png'</p>
<p class="x_MsoNormal">                                                                SIZE 13</p>
<p class="x_MsoNormal">                                                END</p>
<p class="x_MsoNormal">                                END</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">                                TEMPLATE 'dummy'</p>
<p class="x_MsoNormal">                END</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">END ## end Map</p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal"> </p>
<p class="x_MsoNormal">Thank you for your help.</p>
<div id="x_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2">
<p class="x_MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman",serif"> </span></p>
<table class="x_MsoNormalTable" border="1" cellpadding="0" style="border:none; border-top:solid #D3D4DE 1.0pt">
<tbody>
<tr>
<td width="55" style="width:41.25pt; border:none; padding:9.75pt .75pt .75pt .75pt">
<p class="x_MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman",serif"><a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=icon" target="_blank"><span style="text-decoration:none"><img border="0" width="46" height="29" id="x__x0000_i1025" style="width:.4791in; height:.302in" src="https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif"></span></a></span></p>
</td>
<td width="470" style="width:352.5pt; border:none; padding:9.0pt .75pt .75pt .75pt">
<p class="x_MsoNormal" style="line-height:13.5pt"><span style="font-size:10.0pt; font-family:"Arial",sans-serif; color:#41424E">Virus-free.
<a href="https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=emailclient&utm_term=link" target="_blank">
<span style="color:#4453EA">www.avast.com</span></a> </span></p>
</td>
</tr>
</tbody>
</table>
<p class="x_MsoNormal"><span style="font-size:12.0pt; font-family:"Times New Roman",serif"> </span></p>
</div>
</div>
</div>
</body>
</html>