From a68bcb7aebedda36a6be33ccc7f51c357a789828 Mon Sep 17 00:00:00 2001 From: rushirajnenuji Date: Tue, 16 Aug 2022 08:14:10 -0700 Subject: [PATCH] Add staging graph end point Add staging graph end point --- kwg_geoenrichment/kwg_geoenrichment.py | 6 +++++- kwg_geoenrichment/kwg_plugin_dialog_base.ui | 5 +++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/kwg_geoenrichment/kwg_geoenrichment.py b/kwg_geoenrichment/kwg_geoenrichment.py index 79d2c68..d97fa32 100644 --- a/kwg_geoenrichment/kwg_geoenrichment.py +++ b/kwg_geoenrichment/kwg_geoenrichment.py @@ -55,6 +55,7 @@ _SPARQL_ENDPOINT_DICT = { "KnowWhereGraph": "https://stko-kwg.geog.ucsb.edu/graphdb/repositories/KWG", + "KnowWhereGraph - Stage": "https://staging.knowwheregraph.org/graphdb/repositories/KWG" } class kwg_geoenrichment: @@ -842,6 +843,9 @@ def createGeoPackage(self, GeoQueryResult, objName=[], layerName="geo_results", pr.addAttributes(layerFields) vl.updateFields() + if gtype == "LineString": + vl.renderer().symbol().setWidth(1.2) + if len(objList) == 0: QgsMessageLog.logMessage("No results found!", level=Qgis.Info) @@ -914,7 +918,7 @@ def updateWkt(self, gtype, wkt1, wkt2): def generateFormattedEntityDict(self, entityDict = {}, mergeRule = 1): isAlpha = False - intMergeRules = [4, 5, 6, 7, 8] + intMergeRules = [4, 5, 6, 7] for gtype in entityDict: for eVal in entityDict[gtype]: if (any(c.isalpha() for c in entityDict[gtype][eVal]["o"][0])): diff --git a/kwg_geoenrichment/kwg_plugin_dialog_base.ui b/kwg_geoenrichment/kwg_plugin_dialog_base.ui index 5a3b3f7..1ea40bc 100644 --- a/kwg_geoenrichment/kwg_plugin_dialog_base.ui +++ b/kwg_geoenrichment/kwg_plugin_dialog_base.ui @@ -217,6 +217,11 @@ When you're ready to create your new Feature Class, provide a name for the new KnowWhereGraph + + + KnowWhereGraph - Stage + +