forked from CityofToronto/bdit_volumes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
93227b5
commit 981ddff
Showing
11 changed files
with
67 additions
and
116 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+55.7 KB
volume_project/spatial_extrapolation/img/major_arterials_semivariogram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+56.6 KB
volume_project/spatial_extrapolation/img/minor_arterials_semivariogram.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
volume_project/spatial_extrapolation/query_semi_variogram.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
SELECT (ST_Distance(a1.shape, a2.shape)/50)::int AS dist, sum(a1.volume-a2.volume)^2/2/count(*) AS semivariance, corr(a1.volume, a2.volume) as correlation, COUNT(*) as num_observations | ||
FROM (prj_volume.aadt JOIN prj_volume.centreline_groups_geom USING (group_number)) a1 JOIN (prj_volume.aadt JOIN prj_volume.centreline_groups_geom USING (group_number)) a2 ON ST_DWithin(a1.shape, a2.shape, 5000) | ||
WHERE a1.confidence = 1 AND a2.confidence = 1 AND a1.feature_code = $1 AND a2.feature_code = $1 AND a1.group_number > a2.group_number | ||
GROUP BY (ST_Distance(a1.shape, a2.shape)/50)::int | ||
ORDER BY (ST_Distance(a1.shape, a2.shape)/50)::int |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.