<div dir="ltr"><div>Hi Jeff,</div><div><br></div><div>Could be wrong but your exemple use a static GeoJSON file whereas flask datasource would more probably be <a href="http://urlflaskserver/my_end_point/layername.geojson" target="_blank">http://urlflaskserver/my_end_point/layername.geojson</a></div><div><br></div><div>So</div><div><pre><span>CONNECTIONTYPE</span> <span>OGR</span>
<span>CONNECTION</span> <span>"name.json"</span>
<span>DATA</span> <span>"layername"</span></pre></div><div>would be</div><div><pre><span>CONNECTIONTYPE</span> <span>OGR</span>
<span>CONNECTION</span> <span>"/vsicurl/<a href="http://urlflaskserver/my_end_point/layername.geojson" target="_blank">http://urlflaskserver/my_end_point/layername.geojson</a>"</span>
<span>DATA</span> <span>"layername"</span></pre></div><div>FYI, above untested but considering it may work because it could inherit from GDAL/OGR behaviour like below and already mentioned for other datasources e.g <a href="https://mapserver.org/input/virtual-file.html#configure-mapserver-layer">https://mapserver.org/input/virtual-file.html#configure-mapserver-layer</a><br></div><div><br></div><div>Be aware that remote consumption a least on ogrinfo need an url ending like it's a file e.g</div><div># Working because geojson extension in the url (so GDAL can guess it's a GeoJSON)<br></div><div>ogrinfo -so <a href="https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_10m_airports.geojson">https://raw.githubusercontent.com/nvkelso/natural-earth-vector/master/geojson/ne_10m_airports.geojson</a><br></div><div><br></div><div># Not working whereas it's a GeoJSON <a href="https://ahocevar.com/geoserver/wfs?request=GetFeature&service=WFS&version=1.1.0&outputFormat=application/json&typenames=usa:states">https://ahocevar.com/geoserver/wfs?request=GetFeature&service=WFS&version=1.1.0&outputFormat=application/json&typenames=usa:states</a></div><div></div><div>ogrinfo -so /vsicurl/<a href="https://ahocevar.com/geoserver/wfs?request=GetFeature&service=WFS&version=1.1.0&outputFormat=application/json&typenames=usa:states">https://ahocevar.com/geoserver/wfs?request=GetFeature&service=WFS&version=1.1.0&outputFormat=application/json&typenames=usa:states</a><br></div><div><br></div><div>Regards</div><div><br></div><div>Thomas Gratier<br></div><div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 16 juin 2021 à 16:24, Jeff McKenna <<a href="mailto:jmckenna@gatewaygeomatics.com" target="_blank">jmckenna@gatewaygeomatics.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Ahmet, yes in fact I recently worked on those documentation steps: <br>
<a href="https://mapserver.org/input/vector/geojson.html" rel="noreferrer" target="_blank">https://mapserver.org/input/vector/geojson.html</a><br>
<br>
Please let me know if that page needs any enhancements.<br>
<br>
-jeff<br>
<br>
<br>
<br>
-- <br>
Jeff McKenna<br>
GatewayGeo: Developers of MS4W, MapServer Consulting and Training<br>
co-founder of FOSS4G<br>
<a href="http://gatewaygeo.com/" rel="noreferrer" target="_blank">http://gatewaygeo.com/</a><br>
<br>
<br>
<br>
<br>
On 2021-06-16 11:20 a.m., Ahmet Temiz wrote:<br>
> Hi,<br>
> My server(flask) publishes data as geojson.<br>
> Can I get this data to mymapfile's Data as online?<br>
> <br>
> regards<br>
> <br>
> <br>
> -- <br>
> Ahmet Temiz<br>
> Jeoloji Müh.<br>
> Afet ve Acil Durum Yönetimi Başkanlığı<br>
> Deprem Dairesi Başkanlığı<br>
> <br>
> <br>
> ________________________<br>
> <br>
> Ahmet Temiz<br>
> Geological Eng.<br>
> <br>
> Disaster and Emergency Management<br>
> of Presidency<br>
> <br>
> _______________________________________________<br>
> mapserver-users mailing list<br>
> <a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
> <a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
> <br>
<br>
_______________________________________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapserver-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br>
</blockquote></div>