BoundingBoxAllowCrossAntimeridian Property |
Namespace: Telogis.GeoBase
Exception | Condition |
---|---|
BoundingBoxOperationException | Thrown when set if P1 and P2 are not equal. |
If set to true then the BoundingBox will never cover more than 180 degrees of longitude. In certain situations, the BoundingBox will achieve this by setting its left-hand edge to have a longitude larger than its right-hand edge, in which case the BoundingBox straddles the antimeridian (the meridian at +/- 180 degrees).
For example, if set to true and the following points are added to the BoundingBox: (51, 171) and (72, -130), then the BoundingBox will have P1=(51, 171) and P2=(72, -130), meaning it will approximately cover Alaska USA. However, if this property is set to false, then the BoundingBox will have P1=(51,-130) and P2=(72,171), meaning it will cover a narrow strip around the world from western Canada to eastern Russia.
This value may only be changed when the bounding box covers zero area (ie P1 == P2).