From 1db6dc6d04fd47d752c7e4be145969cab34180e7 Mon Sep 17 00:00:00 2001 From: James Kerr Date: Fri, 14 Dec 2018 00:26:15 +0100 Subject: [PATCH] Added new layer for testing aggregates --- config/test/services/DataSourceArray.json | 46 +++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/config/test/services/DataSourceArray.json b/config/test/services/DataSourceArray.json index 2badd60..591ed68 100755 --- a/config/test/services/DataSourceArray.json +++ b/config/test/services/DataSourceArray.json @@ -409,6 +409,52 @@ } ], "readOnly": true + }, + { + "id": 11, + "name" : "GKG level 4 Stats testing", + "decription": "GDelt GKG article data at geores 4 (city/landmark)", + "geometryType": "Polygon", + "idField": "OBJECTID", + "displayField": "name", + "geometryPath": "/geometry", + "extent" : { + "xmin" : -180, + "ymin" : -90, + "xmax" : 180, + "ymax" : 90, + "spatialReference" : { + "wkid" : 4326, + "latestWkid" : 4326 + } + }, + "dataSources" : [ + { + "source" : "sparql", + "query" : "select ?OBJECT_ID ?sparql_url ?DocId WHERE { ?OBJECT_ID ?sparql_url . ?OBJECT_ID ?DocId }", + "fields" : { + "OBJECT_ID" : { "scalarType" : "long" }, + "sparql_url" : { "scalarType" : "string" }, + "DocId" : { "scalarType" : "string" } + } + }, + { + "source" : "view", + "schema": "GDeltGKG", + "view" : "Article", + "joinOn" : { + "left" : "OBJECT_ID", + "right" : "OBJECTID" + } + } + ], + "boundingQuery" : { + "jsonPropertyValueQuery" : { + "property" : ["geores"], "value" : [ 4 ], + "options" : ["lang=en"], "weight" : 0 + } + }, + "readOnly": true } ] }