Les Neilson
Active Member
... and the localhost page shows
// There are WMS servers out there which sends extreme fake values
// for areas outside its coverage. To compensate that, specify
// a range in which the expected real value should lie.
$wms_elevation_value_limit_min = "-300";
$wms_elevation_value_limit_max = "9000";
else {
elseif($elevation_wms > $wms_elevation_value_limit_min && $elevation_wms < $wms_elevation_value_limit_max) {
UK LIDAR data I have looked at contains -9999 for any data point that is a body of water (lake/river/sea). It may also be the generic value for no data. So I think the 'correct' values are being returned (ie same as the source data) and as you wrote above you need to post process somehow.Thanks again, it seems to be working now... On to the next problemI'm getting a lot of negative numbers outside of the sampled area (-9999) Where in the code can I limit the elevations to zero? (or only slightly negative)
Oh nice, no steppings. Maybe they use some interpolation in these DTM/DSM layers. The layer i used is pixel based with a resolution of something like 1 pixel = 2x2 meter.Last night it was working well at last, although slowly. Unfortunately RTB crashed so I lost it all, but I'll try again this evening. If all goes well I'll build a short stretch to see how it looks and runs. I'll post a link if anyone is interested. Even subdivided to around a metre or so I wasn't seeing any stepping and the road bed and edges were pretty well defined. So far, very positive!