Re: [mapserver-users] REST API as a LAYER DATA source

2020-07-30 Thread Scott

Thanks! The OGR method works great.

---

LAYER
   NAME "resttest"
   TYPE POINT
   STATUS ON
   CONNECTIONTYPE OGR
   CONNECTION "https://example.com/query?format=geojson;

   # DATA layername from:
   #ogrinfo 'https://example.com/query?format=geojson'
   DATA "OGRGeoJSON"

   METADATA
  ows_title "Rest Test"
  wms_abstract "Rest Test"
  gml_include_items "all"
  wfs_connectiontimeout "30"
  wfs_maxfeatures   "500"
  wfs_request_method   "GET"
  wfs_typename "resttest"
  wfs_featureid "fid"
  wfs_enable_request "*"
  wfs_getfeature_formatlist "CSV,JSON,GEOJSON"
   END

   CLASS
  NAME 'rest test'
  LABEL
 STYLE
SYMBOL 'pointMarkUnfilled'
SIZE 7
COLOR '#00'
WIDTH 2
 END

 PRIORITY 10
 TEXT '[colValue]'
 COLOR '#00'
 OUTLINECOLOR '#ff'
 OUTLINEWIDTH 3
 FONT "serifBold"
 TYPE truetype
 SIZE 10
 ANGLE 0
 POSITION AUTO
 PARTIALS false
 OFFSET 3 0
 WRAP ' '
 MAXLENGTH 21
  END
   END
END

On 7/30/20 11:29 AM, Steve Lime wrote:
Presumably you could use an OGR layer although I've not done it myself. 
I guess I'd recommend starting with:


   * https://mapserver.org/input/vector/ogr.html
   * https://gdal.org/drivers/vector/esrijson.html#vector-esrijson

--Steve


On Thu, Jul 30, 2020 at 11:50 AM Scott > wrote:


I would like to use a REST API as a mapfile LAYER/DATA source, not
output.

Can someone point me to the correct documentation for that?

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org 
https://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Re: [mapserver-users] REST API as a LAYER DATA source

2020-07-30 Thread Steve Lime
Presumably you could use an OGR layer although I've not done it myself. I
guess I'd recommend starting with:

  * https://mapserver.org/input/vector/ogr.html
  * https://gdal.org/drivers/vector/esrijson.html#vector-esrijson

--Steve


On Thu, Jul 30, 2020 at 11:50 AM Scott  wrote:

> I would like to use a REST API as a mapfile LAYER/DATA source, not output.
>
> Can someone point me to the correct documentation for that?
>
> ___
> mapserver-users mailing list
> mapserver-users@lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapserver-users
___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

[mapserver-users] REST API as a LAYER DATA source

2020-07-30 Thread Scott

I would like to use a REST API as a mapfile LAYER/DATA source, not output.

Can someone point me to the correct documentation for that?

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users