I want to generate 1st pass route for a pipeline between two points. The TileDistanceMakeSlope expression seems to be at least part of the solution. I tried the expression:
TileDistanceMakeSlope([dtm], -5, 5, 1, 0, 2,[StartEnd])
[dtm] is the raster/image file
[StartEnd] is a vector (point file) it has two points
Running the expression above returns Cannot parse query.
Can someone please tell me what I am doing wrong and/or point me to a worked example?
Use Closest Rasters ("Path Distances"), not slopes. See the Videos page for examples.
Thanks for your advice. I followed the example but didn't really get the results I was expecting. It is probably because the two points are too far apart (+100km) for Manifold to identify a relationship. I also tried putting additional points to guide it some more, but it didn't really help.
It is probably because the two points are too far apart (+100km) for Manifold to identify a relationship.
? Most likely not. Vancouver Island is substantially longer than 100km, but as the video example shows there is no problem building paths around that.
If you provide details on your data, what you are doing, what happens as opposed to what you expected, etc., then perhaps somebody in the forum can offer some tips.
Not sure what I was doing wrong the first time, but I did get the watershed of the slope approach described in the example to work - thanks.
The idea was that I would be able to generate different options for pipelines through analyses of a dem. Something like the examples - create a slope map, create barriers where slope was greater than 10 degrees and where there were restricted areas (eg populated places), then determine least cost lines between the two points. I could then adjust to utilise existing infrastructure - roads/powerlines etc. Then tie the answers together with some elevation profiles of the different lines.
The answer is not always the least cost path (based on distance and slope) but will be one of the options.
Somewhere on my priority list I have something similar in mind. I'm looking for possible walking paths used by the indigenous Comanche people. By and large the Spanish and French used the same paths and those paths later got paved. Then they were bypassed by more modern roads blasting through the hills instead of around them. Some paths were lost to posterity and many were never paved. Ranchers report finding native, Spanish, and French artifacts in the hills on their ranches, so clearly those people were headed somewhere.
TileDistanceXxx functions return tables, you have to call them using CALL TileDistanceXxx..., that's typically done in a SELECT or INSERT. See the code produced by the Distance templates in the Transform pane for example use.
The distance functions produce a raster with each pixel storing either the length of the path from the pixel to the closest source location or the direction you should go towards that location or the ID of that location. So, to find, say, the length of the shortest path from Start to End, you have to put End into a drawing, then produce a distance raster and look into the pixel under Start.
Hope this helps a little.