Ejemplo n.º 1
0
        /// <summary> Checks that the arrangement of edges in a polygonal geometry graph
        /// forms a consistent area.
        ///
        /// </summary>
        /// <param name="graph">*
        /// </param>
        /// <seealso cref="ConsistentAreaTester">
        /// </seealso>
        private void CheckConsistentArea(GeometryGraph graph)
        {
            ConsistentAreaTester cat = new ConsistentAreaTester(graph);
            bool isValidArea         = cat.IsNodeConsistentArea();

            if (!isValidArea)
            {
                validErr = new ValidationError(
                    ValidationErrorType.SelfIntersection, cat.InvalidPoint);
                return;
            }
            if (cat.HasDuplicateRings())
            {
                validErr = new ValidationError(
                    ValidationErrorType.DuplicateRings, cat.InvalidPoint);
            }
        }
Ejemplo n.º 2
0
		private void CheckConsistentArea(GeometryGraph graph)
		{
			
			ConsistentAreaTester cat = new ConsistentAreaTester(graph);
			
			bool isValidArea = cat.IsNodeConsistentArea();
			if (! isValidArea) 
			{
				_validErr = new TopologyValidationError(
					TopologyValidationError.SelfIntersection,
					cat.GetInvalidPoint());
				return;
			}
			if (cat.HasDuplicateRings()) 
			{
				_validErr = new TopologyValidationError(
					TopologyValidationError.DuplicateRings,
					cat.GetInvalidPoint());
			}
		}