<div dir="ltr"><div dir="ltr"><div><span style="font-family:monospace,monospace">The following works for me with MapServer 7.0.6/GDAL 2.2.  Note it doesn't appear to pass the bbox filter to the ESRI service so this only works with small layers (otherwise it will timeout).  With newer GDAL versions 'OGRGeoJSON' will likely need to become 'ESRIJSON'.<br></span></div><div><span style="font-family:monospace,monospace"><br></span></div><div dir="ltr"><span style="font-family:monospace,monospace"><br></span></div><div dir="ltr"><span style="font-family:monospace,monospace">    LAYER<br>        NAME 'rcoffices'<br>        TYPE POINT<br><br>        CONNECTIONTYPE OGR<br>        CONNECTION "<a href="https://maps.co.ramsey.mn.us/arcgis/rest/services/MapRamsey/MapRamseyOperationalLayersAll/MapServer/1/query?f=json&where=1=1&outFields=*&orderByFields=OBJECTID">https://maps.co.ramsey.mn.us/arcgis/rest/services/MapRamsey/MapRamseyOperationalLayersAll/MapServer/1/query?f=json&where=1=1&outFields=*&orderByFields=OBJECTID</a>"<br><br>        DATA "OGRGeoJSON"<br><br>        PROJECTION "init=epsg:200068" END<br><br>        CLASS<br>            STYLE<br>                SYMBOL "circle"<br>                SIZE 10<br>                COLOR 255 0 0<br>                OUTLINECOLOR 0 0 0<br>            END<br>        END<br>    END</span></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr"><div><span style="font-family:monospace,monospace">Note: epsg:200068 is setup locally as Ramsey County Coordinates:</span></div><div><span style="font-family:monospace,monospace"><br></span></div><div><span style="font-family:monospace,monospace">+proj=lcc
 +lat_2=44.88333333333333 +lat_1=45.13333333333333 
+lat_0=44.79111111111111 +lon_0=-93.38333333333334 +x_0=152400.3048 
+y_0=30480.0610 +unit=sft +to_meter=0.30480060960122 +a=6378418.941 
+b=6357033.310 +no_defs</span></div></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Dec 3, 2018 at 3:13 PM Lime, Steve D (MNIT) <<a href="mailto:steve.lime@state.mn.us">steve.lime@state.mn.us</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div class="gmail-m_528412751966555392WordSection1">
<p class="MsoNormal">Hi all: I’m running into an issue with GeoJSON service URLs vs local GeoJSON files. If I setup a connection like so:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">  CONNECTIONTYPE OGR<u></u><u></u></p>
<p class="MsoNormal">  CONNECTION “http://...some arcgis server.../arcgis/rest/services...?...query string…”<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">and try to draw the layer it seems like it’s fetching features yet nothing is drawn. With CONFIG “CPL_DEBUG” “ON” I see an OGR message that it was able to open the URL successfully as GeoJSON . Using ogrinfo at the command line also works
 with the URL.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">If I first save the URL response using wget and reference the local file, e.g.:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">  CONNECTIONTYPE OGR<u></u><u></u></p>
<p class="MsoNormal">  CONNECTION “foo.json”<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">then the layer is drawn successfully. I know this has come up at least once before on the list but with no resolution.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">This is running MapServer 6.4.5.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">--Steve<u></u><u></u></p>
</div>
</div>

_______________________________________________<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></blockquote></div>