Skip to content

Commit

Permalink
Add staging graph end point
Browse files Browse the repository at this point in the history
Add staging graph end point
  • Loading branch information
rushirajnenuji committed Aug 16, 2022
1 parent c269682 commit a68bcb7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion kwg_geoenrichment/kwg_geoenrichment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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])):
Expand Down
5 changes: 5 additions & 0 deletions kwg_geoenrichment/kwg_plugin_dialog_base.ui
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ When you're ready to create your new Feature Class, provide a name for the new
<string>KnowWhereGraph</string>
</property>
</item>
<item>
<property name="text">
<string>KnowWhereGraph - Stage</string>
</property>
</item>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
Expand Down

0 comments on commit a68bcb7

Please sign in to comment.