private void singlePoint(object sender, EventArgs e) { DEM hgtR = new DEM(@"C:\Users\r.hudson\Documents\WORK\projects\LostCity\C18\C18\", 11.140131, 10.975654, -74.000914, -73.836385); RefPlaneVis rpv = new RefPlaneVis(hgtR, 90, "ciudadPViewShedSingleP", 0); rpv.singlePoint(124, 90); rpv.writeVis("ciudadPViewShedSingleP"); }
private void fullViewShed(object sender, EventArgs e) { //10.991427, -74.063284 DEM hgtR = new DEM(@"C:\Users\r.hudson\Documents\WORK\projects\LostCity\C18\C18\", 11.140131, 10.975654, -74.000914, -73.836385); RefPlaneVis rpv = new RefPlaneVis(hgtR, 90, "ciudadPViewShedFull", 0); rpv.traverse(); rpv.writeVis("ciudadPViewShedFull"); }
private void pointrange(object sender, EventArgs e) { DEM hgtR = new DEM(@"C:\Users\r.hudson\Documents\WORK\projects\LostCity\C18\C18\", 11.140131, 10.975654, -74.000914, -73.836385); RefPlaneVis rpv = new RefPlaneVis(hgtR, 90, "ciudadPViewShedPointRange", 0); //rpv.singlePoint(124,91); int[] row = { 120, 128 }; int[] cols = { 90, 91 }; rpv.pointRange(row, cols); rpv.writeVis("ciudadPViewShedPointRange"); }
private void button1_Click(object sender, EventArgs e) { //readAll(); //openFile(11.140131, -74.000914); //int secondsN = truncateInSeconds(11.140131); //int secondsW = truncateInSeconds(-74.000914); //getSample(secondsN, secondsW); //south west corner 10.975654, -74.000914 //ne corner 11.140131, -73.836385 // need N10W074 and N11W074 DEM hgtR = new DEM(@"C:\Users\r.hudson\Documents\WORK\projects\LostCity\C18\C18\", 11.140131, 10.975654, -74.000914, -73.836385); RefPlaneVis rpv = new RefPlaneVis(hgtR, 90, "ciudadPViewShed", 0); //rpv.singlePoint(124,91); int[] row = { 120, 128 }; int[] cols = { 90, 91 }; rpv.pointRange(row, cols); rpv.writeVis("ciudadPViewShed"); //rpv.traverse(); }
private void generateTestRanSites() { for (int r = 0; r < this.nConfigs; r++) { RandomSettlement rs = new RandomSettlement(sitios, dem.demPts, this.rioTree, dem.slope, true, true); printRandomSettlement(rs, this.resultsFolder + "settlement" + (r + 1) + ".csv"); if (getTerrain) { rpv = new RefPlaneVis(dem, 90, "random sites terrain " + (r + 1), (r + 1)); rpv.terrainVisibility(rs.indicesForAnalysis); rpv.writeVis("terrainVis" + (r + 1)); terrainVisResults.Add(rpv); } if (getInterVis) { rpv = new RefPlaneVis(dem, 90, "random sites intervisibility " + (r + 1), (r + 1)); rpv.interVisibility(rs.sitiosRandom); rpv.writeVis("interVisTest" + (r + 1)); interVisResults.Add(rpv); } } }
private void analyseVisibility() { getIndices(); analyseDistToWater(); printwantedIndices(this.resultsFolder + "settlement0.csv"); if (this.getTerrain) { rpv = new RefPlaneVis(dem, 90, "actual sites terrain", 0); rpv.terrainVisibility(indicesForAnalysis); siteScores(); rpv.writeVis("terrainVis" + 0); terrainVisResults.Add(rpv); } if (this.getInterVis) { rpv = new RefPlaneVis(dem, 90, "actual sites intervisibility", 0); rpv.interVisibility(sitios); siteScores(); rpv.writeVis("interVisTest" + 0); interVisResults.Add(rpv); } printSiteScores(); generateTestRanSites(); }