<div dir="ltr">This may be equivalent to your horrible hack, but one can truncate (as in a truncated mean statistics) as follows: Calculate the centroid of all the points, calculate the distance to all points from this centroid, discount say the 5% of the furthest away points, recalculate the bounding box (or circle or whatever you are using) for the remaining points and use this. This could be computationally slow if you are doing it lots of times, and setting the threshold is arbitrary, but this could work. There are various ways to speed this up, for instance you could simply use the centroid of each of the buildings rather than each of their complete geometries. HTH Andy<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Apr 16, 2013 at 10:29 AM, Christopher Gutteridge <span dir="ltr">&lt;<a href="mailto:cjg@ecs.soton.ac.uk" target="_blank">cjg@ecs.soton.ac.uk</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So I&#39;ve got a situation. On our main campus, the database lists two<br>
buildings as part of that site, although they are quite a way off the<br>
main site and really screw up any automatic map renderings as they cause<br>
the important part to shrink when scaled-to-fit.<br>
<br>
The ideal solution is to have better data, but I am not allowed to edit<br>
what estates send me, although I can augment it.<br>
<br>
I currently remove them with an awful hack in the code, but what I&#39;m<br>
thinking is creating a relationship between a thing and seomthing it&#39;s<br>
listed as having within, but should not be included on the default map. eg.<br>
<br>
&lt;<a href="http://id.southampton.ac.uk/site/1" target="_blank">http://id.southampton.ac.uk/site/1</a>&gt; hasOutlier<br>
&lt;<a href="http://id.southampton.ac.uk/building/1580" target="_blank">http://id.southampton.ac.uk/building/1580</a>&gt; .<br>
<br>
Any thoughts?<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Christopher Gutteridge -- <a href="http://users.ecs.soton.ac.uk/cjg" target="_blank">http://users.ecs.soton.ac.uk/cjg</a><br>
<br>
University of Southampton Open Data Service: <a href="http://data.southampton.ac.uk/" target="_blank">http://data.southampton.ac.uk/</a><br>
You should read the ECS Web Team blog: <a href="http://blogs.ecs.soton.ac.uk/webteam/" target="_blank">http://blogs.ecs.soton.ac.uk/webteam/</a><br>
<br>
_______________________________________________<br>
Buildingdata mailing list<br>
<a href="mailto:Buildingdata@ecs.soton.ac.uk">Buildingdata@ecs.soton.ac.uk</a><br>
<a href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/buildingdata" target="_blank">http://mailman.ecs.soton.ac.uk/mailman/listinfo/buildingdata</a><br>
</font></span></blockquote></div><br></div>