Title: More on UML
1More on UML
2Basic Model
Abstract Class
Aggregation
Instantiation
Type Inheritance
Creatable Class
Instantiable- Class
Composition
1..
3Basic Model
An abstract class cannot be used to create new
objects. It is a specification for subclasses
Abstract Class
Aggregation
Instantiation
Type Inheritance
Creatable Class
Instantiable- Class
Composition
1..
4Basic Model
A creatable class represents objects than can be
created directly in Visual Basicv
Abstract Class
Aggregation
Instantiation
Type Inheritance
Creatable Class
Instantiable- Class
Composition
1..
5Basic Model
An Instantiable class cannot be directly create
new objects, but objects of this class can be
created as a property of another class
Abstract Class
Aggregation
Instantiation
Type Inheritance
Creatable Class
Instantiable- Class
Composition
1..
6Basic Model
- An association represents relationships between
classes and have defined multiplicities at both
ends - 1 1 and only 1
- 0..1 0 or 1
- M..N
- Or 0.. zero to any
- 1.. 1 to any
Abstract Class
Aggregation
Instantiation
Type Inheritance
Creatable Class
Instantiable- Class
Composition
1..
Association
7Basic Model
Abstract Class
Aggregation
Instantiation
Type Inheritance
Defines specialized classes that share
properties and methods with the superclass and
have additonal properties methods
Creatable Class
Instantiable- Class
Composition
1..
Association
8Inheritance
Line
Primary Line
Secondary Line
Primary Line and Secondary Line (creatable
classes) areare types of a line (abstract class)
9Basic Model
Abstract Class
Aggregation
Instantiation
Type Inheritance
Specifies that one object from one class has a
method with which it creates an object from
another class
Creatable Class
Instantiable- Class
Composition
1..
Association
10Instantiation
A pole can have a method for creating Transformers
Pole
11Basic Model
Abstract Class
Aggregation
Instantiation
Specifies that one object from one class has a
method with which it creates an object from
another class
Type Inheritance
Creatable Class
Instantiable- Class
Composition
1..
Association
12Aggregation
A asymmetric association in which an object from
one class is considered to be a whole and
objects from other class are considered parts
3
A transformer bank has exactly 3 transformers
13Basic Model
Stronger form of Aggregation in which from the
whole class control the lifetime of the Part
Class
Abstract Class
Aggregation
Instantiation
Type Inheritance
Creatable Class
Instantiable- Class
Composition
1..
Association
14Composition
A pole has 1 or many () crossarms. No pole, no
crossarms so the pole object controls the life
and times of the crossarm object
Pole
Crossarms
1..
15Data Representation models
- Vectors points, lines, polygons. Best for
discrete features (choropleths) with uniform
properties throughout - Raster images or continuous data
- TINs (Triangular Irregular network) used
primarily to capture shape of country
16TINs
- Support perspective views of data and other data
can be draped over the TIN - TINs can model points, lines, and polys also
- TINs are made of mass points, lines.
- A Break line represents streams, ridges, etc.
- Exclusionary areas represent polys with the same
elevation (lakes)
17Feature Datasets
- In a FD each location is recorded as a simple x,y
coordinate. - A point is a single x,y coordinate point
- A line are ordered pairs of x,ys
- A polygon is recorded as series of ordered x,y
coordinates.
18Feature classes
- Points represents geographic features that have
NO area or dimensions. - OR are features that are too small for their
boundaries to be visible at a given scale - Lines have length and no area
- Polys represent areas like towns, states, etc.
19The Shape of Features
20Point
- Points and multipoints
- Multipoints are unordered collections of points
with a common set of attributes - Example Set of wells that from a singel unit
Point
Multipoint
21PolyLines
- An ordered collection of lines or paths
- Can be disjointed or connected
- Are used to represent all linear features
- Simple features are represented by single path
polylines - Complex linear features like travel routs are
represented by polylines with many paths
1 path
Multiple, connected paths
Multiple, disjoint paths
22Polygons
Nested rings alternate between interior rings and
island rings Rings can be disjoint but cannot
overlap!
- A collection of rings that are partially ordered
by their containment r relationships
Interior ring and island ring
One Ring
Disjoint Rings
23Envelopes
- Represents the spatial extent of features. It is
a rectangle that surrounds all data in a
geometry - Includes the range of Z and M values.
- Sides are parallel to the coordinate system
- ALL geometries have em!
Envelope
ymax
Geometry
ymin
xmin
xmax
24Extent???
- Was that what we used to call extent?
25Components of Features
26Segments
- Lines
- Straight segment w/ 2 end pts - built stuff
- Circular Arcs
- Portion of a circle w/ 2 end pts - built stuff
- Elliptical Arcs
- A chunk of a ellipse w/ 2 end pts - ????
- Bezier curves
- Defined by 4 control pts. 3rd order polynomial.
Used for streams, contours, etc. Also used for
placement of text along curved segments
27Paths
- Is a sequence of of connected segments
- Segments in a path cannot intersect!
- A path can contain any combination of lines,
circular arcs, elliptical arcs, and Bezier curves - Tangents Often segments are tangent with each
other where they meet. - Means that segments meet at the same angle
28Tangency
- The example in the book is that often roads
segments are made up of straight lines and
circular arcs that meet smoothly. - NOT! Any engineered road uses parabolic curves!
29Rings
- A ring is just a path that closes on itself at
one point (no overlaps) and has an inside and an
outside - The coordinates for the start and end are the same
30Attributes of Feature Geometries
- Z values
- Usually represents elevation
- But may also represent anything else that makes
sense - Can assign Zs to to each point in a point,
multipoint, polyLine, or polygon - Used for streams, ridge lines, or lakes
- Ridge line?
31Ridge Line etc?
- A profile along the surface. Each point has a Z
value - Around a lake all the Z values would be the same
- Zs are quite often used to prepare elevation data
for input into a TIN.
32M
- Some aps employ a linear measurement system that
is based on interpolated distances along a path - M values can be assigned to point in a
multipoint, polyline, or polygon - Mile posting is an example
- Its use in hydrologic data for distances from
features is another
33Linear measures
4,500
3,500
3,000
4,100
5,000
- The geometry system has the functionality
- to interpolate M values for x,y points along a
path OR - to calculate x,y positions from a M value along a
path
34Constructing Geometry
- Lots of ways to do construction
- Similar to COGO
- Most found in the Editor
- Most you have seen
35Units and Input
- Angles are usually specified as geometric angles
measured CCW from the positive axis of the
coordinate system - Deflection angles are measured from a point
relative to a baseline
36Units and Input
- Angles are usually specified as geometric angles
measured CCW from the positive axis of the
coordinate system - Deflection angles are measured from a point
relative to a baseline
Deflection angle
Baseline
Geometric angle
37Point Constructions
- Construct along (any distance or proportion along
a line) - Construct angle bisector
- Construct angle Intersection
- Construct deflection
- Construct Deflection Intersection
- Construct offset
- Construct parallel
38Multipoint Construction
- Construct Circular Arc Points
- Construct Divide equal
- Consturct Divide Length
- Construct Implied Intersection
- Construct Intersection
- Construct Tangent
- Construct 3 point Resection
39Other Constructions
- Line -- Construct Angle Bisector
- Circular Arc
- Construct Arc Distance
- Construct Chord Distance
- Construct Chord Height
- Construct Fillet
- Construct Tangent and point
- Construct three points
- Construct 2 points and radius
40MoreConsrtuction
- Curve -- Construct offset
- Path Construct rigid stretch
- Angle
- Construct line
- Construct Three Point
41Testing Spatial Relationships
- There are a set of Boolean operators that tet the
spatial relationships between a base geometry and
a comparison geometry - They can be applied to points, multipoints,
polylines, and polygons
42Equals
Base Geometry
Comparison Geometry
43Contains
Base Geometry
Comparison Geometry
44Within
Base Geometry
Comparison Geometry
45Crosses
Base Geometry
Comparison Geometry
46Disjoint
Base Geometry
Comparison Geometry
47Overlaps
Base Geometry
Comparison Geometry
48Touches
Base Geometry
Comparison Geometry
49Topological Operators
- Buffer
- Clip
- Convex Hull
- Cut
- Difference
- Intersect
- Symmetric difference
- Union
50Convex Hull
Smallest poly that wraps another geometry without
any concave areas
51Difference
.
.
.
.
.
.
.
.
.
52Symmetric Difference
53Summary
This all came from the Modeling our World Book on
Reserve in Moon It is worth reading!