<div dir="ltr">Hi there!<div><br></div><div>Trying to use a geojson output from API directly in Mapserver layer.</div><div>Geojson is per standard, 4326, but my Mapserver and OL (the client) is configured to 3301.</div><div>We have hundreds of layers (mostly from Postgres) at the same time and the system works.</div><div>No other direct API ones.</div><div><br></div><div>The current MAP file's WEB part looks like this:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  WEB<br>      METADATA<br>        "wfs_title"                     "title"<br>        "wfs_enable_request"            "*"<br>        "wms_enable_request"            "*"<br>        "wfs_encoding"                  "UTF-8"<br>        "wms_title"                     "title"<br>        "wms_encoding"                  "UTF-8"<br>        "wms_onlineresource"            "url/mapserv?map=/app/gis/infokihid/infolayers_other.map&"<br>        "wfs_onlineresource"            "url/mapserv?map=/app/gis/infokihid/infolayers_other.map&"<br>        "ows_srs"                            "EPSG:3301 EPSG:3857 EPSG:4326"<br>        "ows_enable_request"            "*"<br>        "wfs_getfeature_formatlist"     "gml,geojson"<br>        "wms_feature_info_mime_type"    "application/json,application/json; subtype=geojson,application/vnd.ogc.gml,text/plain"<br>      END<br>  END</blockquote><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">  PROJECTION<br>      "init=epsg:3301"<br>  END</blockquote><div> </div><div> </div><div>And the layer:</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">    PROJECTION<br>        "init=epsg:4326"<br>    END<br>    <br>     METADATA<br>        "wfs_srs"               "EPSG:3301"<br>        "gml_msGeometry_type"  "line" </blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><i>         #"ows_extent" "40500 5993000 1064500 7017000" copy paste lon and lat from these 3301 coordinates from other layer's capabilites</i><br>        "ows_extent"            "14.9318705986602 53.7681633673032 35.1060366818735 63.2747817924556"       <br>        "wfs_extent"        "14.9318705986602 53.7681633673032 35.1060366818735 63.2747817924556"<br>        "wms_extent"        "14.9318705986602 53.7681633673032 35.1060366818735 63.2747817924556"<br>        "ows_title"             "road_restrictions"<br>        "ows_abstract"             "road_restrictions"<br>        "ows_keywordlist"  "road_restrictions"<br>        "ows_include_items" "all"<br>        "gml_include_items" "all"<br>        "ows_featureid"      "id"<br>        "gml_exclude_items"         "edges,geometry"<br>        "ows_exclude_items"         "edges,geometry"<br>    END   </blockquote><div><br></div><div><br></div><div> Couple of questions I have which I didnt really find answers for:</div><div><br></div><div><ol><li>Had issues with 4326 to 3301 transformation,the extent and all that. (OpenLayers could manage but QGIS couldnt). Previously only had ows_extent. <br>Is ows_extent even a thing? This only shows wms_extent <a href="https://mapserver.org/ogc/wms_server.html#layer-object-metadata">https://mapserver.org/ogc/wms_server.html#layer-object-metadata</a><br>Should you use wfs_extent and wms_extent instead?<br></li><li>My layer is doing an OGR connection directly to the API URL. Works fine. My question is, the API renews itself every 2 minutes (new data).<br>How does Mapserver handle the request with that connection? I move the map (openlayers), there's a new Mapserver request - does Mapserver make a new request to the API endpoint and get a new json?<br>Or is there some sort of cache?</li><li>Am I missing something else from the Metadata that I should consider? <br><br></li></ol><div>With kind regards,</div></div><div>Sander</div></div>