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 '#000000'
WIDTH 2
END
PRIORITY 10
TEXT '[colValue]'
COLOR '#000000'
OUTLINECOLOR '#ffffff'
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 <pub...@postholer.com
<mailto:pub...@postholer.com>> 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 <mailto: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