L4-Vector Algorithms L4 – Vector Algorithms NGEN06(TEK230) – Algorithms in Geographical Information Systems Abdulghani Hasan.

Slides:



Advertisements
Similar presentations
Parallel Lines & Transversals
Advertisements

Definitions A circle is the set of all points in a plane that are equidistant from a given point called the center of the circle. Radius – the distance.
 3.3: Angles of Polygons. What is a Polygon?  A polygon is a closed plane figure made up of three or more line segments that intersect only at their.
3.3 Parallel Lines & Transversals. Transversal A line, ray, or segment that intersects 2 or more COPLANAR lines, rays, or segments. Parallel lines transversal.
You will learn to describe relationships among lines, parts of lines, and planes. In geometry, two lines in a plane that are always the same distance.
3-5 Parallel Lines and Triangles
THE WORLD OF POLYGONS LESSON 4.
Using properties of Midsegments Suppose you are given only the three midpoints of the sides of a triangle. Is it possible to draw the original triangle?
Coordinate Plane Basics
Spatial Queries & Analysis in GIS
Tangents to Circles (with Circle Review)
Computational Geometry
Geometric Algorithms1 segment intersection orientation point inclusion simple closed path.
1.1 The Building Blocks of Geometry
CS 450: Computer Graphics REVIEW: OVERVIEW OF POLYGONS
Computational Geometry The systematic study of algorithms and data structures for geometric objects, with a focus on exact algorithms that are asymptotically.
Polygon Basics.
Points, Lines, and Planes Sections 1.1 & 1.2. Definition: Point A point has no dimension. It is represented by a dot. A point is symbolized using an upper-case.
Warm Up Week 1. Section 6.1 Day 1 I will identify, name, and describe polygons. Ex 1 PolygonHas three or more sides that connect at endpoints.
Introduction to Geometry – Points, Lines, and Planes Points - have no height or width - represented using a dot and labeled using a capital letter A B.
Hosted by Mrs. Smyth 1pt 2pt 4pt 3pt 4pt LinesAnglesMore LinesAngles Too 3pt 2pt 4pt 2pt 1pt 5pt 1pt.
Complimentary Angles, Supplementary Angles, and Parallel Lines.
Multitouch and Collision Detection MOBILE SOFTWARE DEVELOPMENT.
Lines, Angles, & Circles MATH 102 Contemporary Math S. Rook.
Polygons A Polygon is a closed plane figure formed by 3 or more segments Each segment intersects exactly 2 other segments only at their endpoints. No.
Quadrilaterals Chapter 6.
PRE-ALGEBRA Find ALL of the missing angle measures. 40° 120° 60° 40 ° 60° 180-(40+60) = 80° 80° 100° Classifying Polygons (9-2)
Geometry Vocabulary Introduction to Classifying Angles.
VECTORS AND THE GEOMETRY OF SPACE 12. PLANES Thus, a plane in space is determined by:  A point P 0 (x 0, y 0, z 0 ) in the plane  A vector n that is.
Lesson 1.1 The Building Blocks of Geometry Ob jectives ·Understand and identify the undefined terms point, line, and plane. ·Define segment, angle, collinear,
Your 1 st Geometry Test A step by step review of each question.
Unit 5 Notes Triangle Properties. Definitions Classify Triangles by Sides.
Section 5-1 Perpendiculars and Bisectors. Perpendicular bisector A segment, ray, line, or plane that is perpendicular to a segment at its midpoint.
Bisectors in Triangles Section 5-2. Perpendicular Bisector A perpendicular tells us two things – It creates a 90 angle with the segment it intersects.
Chapter 5 Relationships within Triangles  Midsegments  Perpendicular bisectors - Circumcenter  Angle Bisectors – Incenter  Medians – Centroid  Altitudes.
1.3b- Angles with parallel lines
Warm Up 1.) Name a line that contains C. 2.) Name a ray with endpoint B that contains A. 3.) Name an angle with vertex B that contains C. 4.) Name a segment.
Geometry Section 1.6 Classifying Polygons. Terms Polygon-closed plane figure with the following properties Formed by 3 or more line segments called sides.
Triangles and Lines – Angles and Lines When two lines intersect they create angles. Some special relationships occur when the lines have properties such.
CS6234 Advanced Algorithms - Convex hull. Terminologies – ◦ Convex hull of a set Q of points is the smallest convex polygon P for which each point in.
CLASSIFYING POLYGONS UNIT 1 LESSON 6. Classifying Polygons In geometry, a figure that lies in a plane is called a plane figure. A polygon is a closed.
Chapter By Skyler Cassity & Ryan Tourial.
Isosceles Triangles Theorems Theorem 8.12 – If two sides of a triangle are equal in measure, then the angles opposite those sides are equal in measure.
You will learn to identify the relationships among pairs of interior and exterior angles formed by two parallel lines and a transversal.
Geometry. Points Lines Planes A ______ is an exact location in space. point.
Points, Lines, and Planes SWBAT identify collinear and noncollinear points, lines, line segments, rays, angles, parallel lines, and skew lines; read and.
Chapter 5, Section 1 Perpendiculars & Bisectors. Perpendicular Bisector A segment, ray, line or plane which is perpendicular to a segment at it’s midpoint.
{ Chapter 6 Vocabulary: Straight Lines and Angles Do you know the vocabulary word that matches the definition?
- VOCABULARY - INTERSECTING LINES, PARELLEL LINES, AND TRANSVERSALS - ANGLES - TRIANGLES - CIRCLES - QUADRILATERALS - PYTHAGOREAN THEOREM.
3.1 Lines and Angles.
Introduction to Spatial Computing CSE 555
Parallel Lines & Transversals
Tangent Lines Geometry 11-1.
Angles in regular polygons
Candy Land Geometry 18.1.
Triangle Segments.
3-5 Angles of a Polygon.
Point-a location on a plane.
GEOMETRY.
Parallel Lines and Planes
Unit 2: Properties of Angles and Triangles
1.2 Informal Geometry and Measurement
*YOU SHOULD CONSTANTLY BE REVIEWING THIS VOCABULARY AS WE GO!
The Arc-Node Data Model
V L T The sum of the interior angles of a triangle is 180 degrees.
Chapter 6 Section 6.1 Polygons.
Warm Up– in your notebook
Objectives: Identify parallel and perpendicular lines
Essential Question Standard: 21 What are some properties of
Unit 1 Vocabulary The easiest thing to do is to plug in 1 and -1 (or 2 and -2) if you get the same y, then it’s Even. If you get the opposite y, then it’s.
Presentation transcript:

L4-Vector Algorithms L4 – Vector Algorithms NGEN06(TEK230) – Algorithms in Geographical Information Systems Abdulghani Hasan

L4-Vector Algorithms Background Almost all analysis of vector data in GIS is actually based on a small set of basic algorithms. Ddistances between objects Topological relationships between objects (such as point-in polygon)

L4-Vector Algorithms Background Degenerate cases that might occur in vector algorithms, such as a point is inside the polygon boundary in a point-in-polygon analysis will be disregarded.

L4-Vector Algorithms Aim  To present details of some of the fundamental vector algorithms.  To understand what the GIS program actually computes with the vector data.  Write own small computer program that perform basic vector computations.

L4-Vector Algorithms Content 1.Area of a polygon 2.Side function 3.Line segment intersection 4.Point-in-polygon 5.Distance between a point and an infinite straight line 6.Distance between a point and a line 7.Distance between two lines 8.Distance between two polygons

L4-Vector Algorithms Area of a polygon valid for simple connected polygons, i.e., polygons without holes

L4-Vector Algorithms Area of a polygon valid for simple connected polygons, i.e., polygons without holes

L4-Vector Algorithms Area of a polygon valid for simple connected polygons, i.e., polygons without holes

L4-Vector Algorithms Area of a polygon

L4-Vector Algorithms Side function = -1, if the point p lies on the left side of the line segment (q to r) = 0, if the point p is collinear to the line segment = 1, if the point p lies on the right side of the line segment (q to r) side(q, r, p )

L4-Vector Algorithms Line segment intersection

L4-Vector Algorithms Point-in-polygon 1. semi-line method 2. angle method Both methods handle arbitrary polygons BUT not degenerated cases like point lies on the border of a polygon To deal with the degenerated cases properly exact geometric computations are often required

L4-Vector Algorithms Point-in-polygon 1. semi-line method The number of intersection is odd  The point is inside the polygon The number of intersection is even  The point is outside the polygon

L4-Vector Algorithms Point-in-polygon Compute the angles scalar (dot) product cross product For inverse arccos function The angle is between 0 an π For inverse arcsin function The angle is between´-π/2 to π/2 Trigonometric functions are computationally demanding

L4-Vector Algorithms Distance between a point and an infinitely long straight line For two point object use Pythagorean theorem In GIS we do not have any infinitely long lines

L4-Vector Algorithms Distance between a point and a line point p is in the middle of l point p is in the end of l or at the border between middle and end

L4-Vector Algorithms Distance between two line segments line segments are parallel The shortest distance between the segments is equal to the shortest distance between an end point in one of the segments and interior point or an end point in the other line segment. line segments are non-parallel The shortest distance must include an end-point of any of the line segments..

L4-Vector Algorithms Distance between two lines Calculate the shortest distances from each point (the nodes and the break points) to all line segments in the other line. Do the same for both lines. The distance between the two lines is equal to the shortest of all of the distances to the points

L4-Vector Algorithms Distance between two polygons centroid=( p1+ p2+…+ pn)/n