Skip to content

Commit

Permalink
remove axial ref from rcl/segment results
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgegil committed Jun 14, 2017
1 parent c9c3f10 commit b1b6148
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 13 deletions.
2 changes: 1 addition & 1 deletion esstoolkit/EssToolkit.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

# Import the debug library
# can set is_debug to False in release version
is_debug = True
is_debug = False
try:
import pydevd
has_pydevd = True
Expand Down
20 changes: 13 additions & 7 deletions esstoolkit/analysis/DepthmapAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,17 +374,23 @@ def processAnalysisResult(self, datastore, result):
if "Axial Segment Length" in attributes:
exclusions.append(attributes.index("Axial Segment Length"))
# replace axial ref by axial id
if "Axial Ref" in attributes:
idx = attributes.index("Axial Ref")
attributes[idx] = "Axial Id"
#if "Axial Ref" in attributes:
# idx = attributes.index("Axial Ref")
# attributes[idx] = "Axial Id"
if "Id" in attributes:
idx = attributes.index("Id")
if self.settings['type'] in (1, 2):
attributes[idx] = "Axial Id"
if self.settings['type'] == 2:
attributes[idx] = "Segment Id"
elif self.axial_id in attributes:
attributes[idx] = "Axial Id"
#else:
# attributes[idx] = self.axial_id
else:
attributes[idx] = self.axial_id
if "Axial Line Ref" in attributes:
idx = attributes.index("Axial Line Ref")
if self.settings['type'] == 2:
exclusions.append(idx)
else:
attributes[idx] = "Axial Ref"
# remove attributes and values from lists
if len(exclusions) > 0:
exclusions.sort(reverse=True)
Expand Down
11 changes: 6 additions & 5 deletions esstoolkit/metadata.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
name=Space Syntax Toolkit
qgisMinimumVersion=2.14
description=Collection of tools for spatial network analysis and data exploration.
version=0.1.6
author=Jorge Gil, UCL
version=0.1.7
author=Jorge Gil
email=jorge.gil@ucl.ac.uk

# end of mandatory metadata
Expand All @@ -28,6 +28,8 @@ about=The “Space Syntax Toolkit” is a QGIS plug-in for spatial network and s
Dependencies: For network analysis requires depthmapXnet 0.35. It can be downloaded from: http://archtech.gr/varoudis/depthmapX/?dir=depthmapXnet
category = Vector
changelog=
0.1.7 -
* fixes related to the new analysis of segment and road centre line maps
0.1.6 -
* analyse segment and road centre line maps without segmentation of input
* fix #143 duplicate id column names would caused one to be dropped
Expand All @@ -47,8 +49,7 @@ changelog=
* removed Mac OSX folders and files from package
0.1.0 - First public release:
* faster scatter plot selection
* small bug fixes
* minor enhancements
* small bug fixes and enhancements
0.0.5 beta:
* new toolbar
* improved point and polygon symbology
Expand All @@ -68,7 +69,7 @@ changelog=
* round values in statistics panels
0.0.2 beta:
* bug fixes
* per beta:
0.0.1 beta:
* initial release for UCL and affiliates

# tags are comma separated with spaces allowed
Expand Down

0 comments on commit b1b6148

Please sign in to comment.