SQL/MM Spatial: The Standard to Manage Spatial Data in Relational Database Systems
|
|
|
- Gordon Greene
- 9 years ago
- Views:
Transcription
1 SQL/MM Spatial: The Standard to Manage Spatial Data in Relational Database Systems Knut Stolze Friedrich Schiller University Jena Database and Information Systems Group Ernst Abbe Platz Jena, Germany [email protected] IBM Entwicklung GmbH DB2 Extenders Development Schönaicher Str Böblingen, Germany [email protected] Abstract: Several major database systems provide extensions to support the management and analysis of spatial data in a relational database system [IBM02, Ora01, IBM01]. The functionality is also standardized in ISO/IEC SQL/MM. This paper presents part 3 of the standard and discusses it critically. The spatial data types and methods on these types are explained. The Information Schema, showing spatial columns and spatial reference systems, is an important part for the handling of spatial data. It is described in the paper as well. 1 Introduction ISO/IEC SQL/MM is the effort to standardize extensions for multi-media and application-specific packages in SQL. SQL, as defined in [ISO99], is extended to manage data like texts, still images, spatial data, or to perform data mining. The standard is grouped into several parts. Part 1 is the framework for all the subsequent parts and defines the definitional mechanisms and conventions used in the other parts as well the common requirements that an implementation 1 has to adhere to if it wants to support any one of the extensions defined in the standard. Part 2 is the full-text standard, which is concerned about the mechanisms to provide extended text search capabilities, above and beyond the operators provided by SQL, e. g. the LIKE predicate. Part 5 defines the functionality to manage still images, and part 6 is concerned with data mining. The withdrawn part 4 addressed general purpose facilities. ISO/IEC SQL/MM Part 3: Spatial [ISO02c] is the international standard that defines how to store, retrieve and process spatial data using SQL. It defines how spatial data is to be represented as values, and which functions are available to convert, compare, and process this data in various ways. 1 The SQL standards use the term implementation to refer to a program that implements the interfaces defined by the standard. Commonly, an implementation is a relational database system.
2 The first version of the standard was published in In the years since then, several enhancements were added to the document, and the second version is now available as Final Draft International Standard (FDIS). It is expected that it will be published as International Standard (IS) in the near future. In this paper, geometries like points, lines, and polygons or composites thereof are also referred to as spatial data. Geometries can be used in many different application domains. The model as specified by the SQL/MM standard is applicable to a variety of different data spaces. The spatial reference system associated for a geometry identifies the data space used for that geometry. For example, it defines whether a geometry models a geographic feature or some other, more abstract feature. The most common case where spatial data is used in practice are geographic information systems (GIS). There, the term geometry is used to denote the geometric features that cartographers have used for the past centuries to map the world. An abstract definition of the meaning of geographic geometry is a point or aggregate of points representing a feature on the ground. Thus, a geometry is usually a model of a geographic feature. The model can be expressed in terms of the feature s coordinates. The model conveys information; for example, the coordinates identify the position of the feature with respect to fixed points of reference. In the non-geographic applications, a geometry can identify, for example, a feature in a still image where no relation to the earth can be established. Another example are locations inside a grocery store. Although a relation to the earth could be computed based on the latitudes and longitudes, a preferred representation for an application might only refer to the locations with respect to a fixed point in the store, e. g. the south-east corner. The SQL/MM standard is divided into clauses. The clauses 5 thru 9 describe the geometry types and the methods provided for each type. The Information Schema, based on a Definition Schema is defined in clause 14. The remaining clauses, which are not described in this paper, explain the underlying spatial concepts, the angles and direction handling, and the States codes and conformance rules for products that implement the standard. Several products exist, which implement spatial extensions for relational database systems. For example, the DB2 Spatial Extender is available for IBM s DB2 Universial Database (UDB), the IDS Spatial DataBlade and Geodetic DataBlade for IBM s Informix Dynamic Server (IDS), and Oracle offers the Oracle 9 Spatial product. At should be noted that the list given here only shows the more commonly known products and additional products can be found as well. The paper explains and discusses the content of the main clauses in the standard in more detail. Section 2 shows which spatial data types exist, how they are organized, and which functionality is provided for each type. Two short examples show how to use the spatial functionality in a relational database in section 3. Like any other part of SQL/MM, the Spatial standard contains an Information Schema. The views in that Information Schema are listed in section 4. The paper is completed with a summary and outlook on the possible future developments of the standard in section 5.
3 PSfrag replacements 2 Spatial Data Types 2.1 History The roots of the SQL/MM Spatial standard are directly apparent in the type hierarchy. The standard was originally derived from the OpenGIS Simple Features Specification for SQL [OGC99], also published in the year 1999 as version 1.1 by the OpenGIS Consortium (OGC). The Simple Feature Specification defines a so-called Geometry Model. The geometry model consists of a class hierarchy, which is shown in figure 1. ST Geometry ST Point ST Curve ST Surface Point Curve Surface Collection ST GeomCollection ST LineString1+ 2+ ST CircularString ST CompoundCurve ST CurvePolygon ST Polygon ST MultiSurface ST MultiCurve ST MultiPoint ST MultiPolygon ST MultiLineString ST MultiCircString 1+ Geometry SpatialReferenceSystem LineString Polygon MultiSurface MultiCurve MultiPoint Line LinearRing MultiPolygon MultiLineString Figure 1: OpenGIS Geometry Class Hierarchy The geometry model is an abstract model. It is used to define the relationship between the various classes and to establish the inheritance rules for the methods working on the instances of the classes and subclasses. For example, the method Area is defined for the class Surface and is available for all instances of Surface, Polygon, and further subclasses, whereas the method ExteriorRing is only defined on the subclass Polygon and, thus, cannot be used for arbitrary instances of the class Surface. The SQL/MM standard uses consistently the prefix ST for all tables, views, types, methods, and function names. The prefix stood originally for Spatial and Temporal. It was intended in the early stages of the standard development to define a combination of temporal and spatial extension. A reason for that was that spatial information is very often tied with temporal data [SWCD98, SWCD97, RA01, TJS97]. During the development of SQL/MM Spatial, it was decided that temporal has a broader scope beyond the spatial application and should be a part of the SQL standard [ISO99] as SQL/Temporal [ISO01]. The con-
4 tributors to SQL/MM did not want to move forward with a Spatio-temporal support until SQL/Temporal developed. 2 In the mean time, thefocus of spatial standard lied on keeping it aligned with the OGC specification and the standards developed by the technical commitee ISO/TC 211, for example [ISO02a, ISO02b]. The prefix ST for the spatial tables, PSfrag replacementstypes, and methods was not changed during the organizational changes of the standards, Geometryhowever. Today, one might want to interpret it as Spatial Type. SpatialReferenceSystem Point Curve2.2 Geometry Type Hierarchy Surface CollectionThe OGC geometry class hierarchy is adapted for the corresponding SQL type hierarchy LineString that is defined in the SQL/MM standard. Figure 2 shows the standardized type hierarchy. Polygon The shaded types are the not-instantiable types. 3 All types are used to represent geometric MultiSurfacefeatures in the 2-dimensional space (R ). MultiCurve MultiPoint Line LinearRing MultiPolygon MultiLineString ST Geometry ST Surface ST Curve ST Point ST GeomCollection ST CurvePolygon ST MultiSurface ST MultiCurve ST MultiPoint ST Polygon ST MultiPolygon ST MultiLineString ST MultiCircString ST LineString ST CircularString ST CompoundCurve Figure 2: SQL Type Hierarchy The major differences between the SQL type hierarchy and the OGC geometry class hierarchy are the omission of the derived types Line and LinearRing, and the addition 2 SQL/Temporal was not any further developed and, like SQL/MM Part, subsequently withdrawn completely. 3 It is implementation-defined whether ST MultiCurve and ST MultiSurface are instantiable or not, even though they are shown as not-instantiable in figure 2.
5 of a series of types. Lines and linear rings are to be represented using values of type ST LineString, which covers both cases. The new types extend the OGC geometry class hierarchy with circular arcs as curves and surfaces that have circular arcs as their boundary. Furthermore, the aggregations that reflect which types are used by other types are not shown. For example, it is not obvious from the SQL type hierarchy that the type ST MultiPoint consists of ST Point values. ST Point values are 0-dimensional geometries and represent only a single location. Each point consists of an X and a Y coordinate to identify the location in the respective spatial reference system. Points can be used to model small real-world objects like lamp posts or wells. ST MultiPoint values stand for a collection of single points. The points in a multipoint do not necessarily have to be distinct points. That means a multi-point supports sets as in the strict mathematical sense, but also allows for multi-set like SQL does in general. Curves are 1-dimensional geometries. The standard distingiushes between ST LineString, ST CircularString, and ST CompoundCurve. An ST LineString is defined by a sequence of points, pairs, which define the reference points of the line string. Linear interpolation between the reference points defines the resulting linestring. That means, two consecutive points define a line segment in the linear string. Circular instead of linear interpolation is used for ST CircularString values. Each circular arc segment consists of three points. The first point defines the start point of the arc, the second is any point on the arc, other than the start or end point, and the third point is the end point of the arc. If there is more than one arc in the circular string, the end point of one arc acts as the start point of the next arc. A combination of linear and circular strings can be modeled using the ST CompoundCurve type. Line segments and circular segments can be concatenated into a single curve. ST MultiCurve values represent a multi-set of ST Curve, and ST MultiLineString a multi-set of ST LineString values. Note that there are no types ST MultiCircularString and ST MultiCompoundString. Figure 3 illustrates some examples of the three different types of curves. PSfrag replacements (a) Linear Strings (b) Circular Strings (c) Compounds Figure 3: Examples of Curves
6 Surfaces, as 2-dimensional geometries, are defined in the same way as curves using a sequence of points. The boundary of each surface is a curve, or a set of curves if the surface has any holes in it. The boundary of a surface consists of a set of rings, where each ring is a curve. The type ST CurvePolygon stands for such a generalized surface, and the subtype ST Polygon restricts the conditions for the rings of the boundary to linear strings. The types ST MultiSurface and ST MultiPolygon are used to model sets of curve polygons or polygons with linear boundaries. 4 A curve polygon and a polygon with linear strings as its boundary are shown in figure 4. PSfrag replacements (a) Curve Polygon (b) Polygon Figure 4: Examples of Polygons The type hierarchy does not address the concept of empty geometries in form of a separate type under ST Geometry. An empty geometry represent an empty set of points, and it can be the result of the intersection of two disjoint polygons. The standard allows that a value of each of the instantiable types can be an empty geometry. Thus, empty points, empty linestrings, empty polygons, and empty geometry collections etc. exist. If a method has the return an empty geometry as its result and the most specific type is not inherent by the method, then an empty point is generated. Implicit or explicit casts can be used to convert empty geometries from one type to another. 2.3 Methods The majority of all spatial methods can be grouped into one of the following four categories: convert between geometries and external data formats, retrieve properties or measures from a geometry, compare two geometries with respect to their spatial relation, 4 ST MultiSurface constrains its values to contain only disjoint surfaces.
7 generate new geometries from others Examples and descriptions for each of the categories are given in this section. Sometimes, it is not trivial to assign a spatial method to only a single category. For instance, the method ST StartPoint, which returns the first point of a linestring, retrieves a property of the linestring, i. e. the first point, but it also generates a new geometry, i. e. an ST Point value Convert to and from External Data Formats The SQL/MM standard defines three external data formats that can be used to represent geometries in an implementation-independent fashion. well-known text representation (WKT) well-known binary representation (WKB) geography markup language (GML) Each type implements constructor methods that allow to generate a new geometry from the given WKT or WKB and the, optionally, provided numeric spatial reference system identifier. All instantiable types have such constructor methods. There are no constructor methods that cope with the GML representation. Functions like ST LineFromGML or ST MPointFromGML are used instead. For backward compatibility, the standard also defines functions like ST PointFromText or ST GeometryFromWKB with exactly the same purpose as the constructor methods. Those functions were inherited from and remain for compatibility with the OpenGIS Simple Feature Specification for SQL [OGC99]. The constructor methods were introduced later in the process of the standard development to align part 3 of SQL/MM with other parts, and also to improve the overall usability of the constructors. The three methods ST AsText, ST AsBinary, and ST AsGML are provided for the conversion of a geometry to the respective external data format Retrieve Properties All geometries have certain properties. A property is, for example, the dimension or if a geometry is empty. Each of the subtypes adds further, more specific properties, for example, the area of a polygon or whether a curve is simple 5. A set of method was defined to query those properties. Due to the high number of available methods, only a small set of examples is given here. ST Boundary return the boundary of a geometry 5 A simple curve is defined to be not self-intersecting.
8 ST IsValid test whether a geometry is valid, i. e. correctly defined; an invalid geometry could be a not-closed polygon ST IsEmpty test whether a geometry is empty ST X return the X coordinate of a point ST IsRing test whether a curve is a ring, i. e. the curve is closed and simple ST Length return the length for a linestring or multi-linestring Compare Two Geometries A very interesting part in spatial queries comes from the comparison of geometries. Questions like which buildings are in a flood zone or where are intersections of rail roads and streets can only be answered if the geometries representing the buildings, flood zones, rail roads, and streets are compared with each other. The standard defines the following set of methods to compare geometries in various ways. ST Equals test the spatial equality of two geometry ST Disjoint test whether two geometries do not intersect ST Intersects, ST Crosses, and ST Overlaps test whether the interiors of the geometries intersect ST Touches test whether two geometries touch at their boundaries, but do not intersect in their interiors ST Within and ST Contains test whether one geometry is fully within the other All of the above methods return an INTEGER value, which is 1 (one) if the spatial relation does exist, and 0 (zero) otherwise. Additionally, the method ST Distance exists, which quantifies the spatial relationship of two geometries according to their distance Generate New Geometries The last set of methods allows the user to generate new geometries from existing ones. A newly generated geometry can be the result of a set operation on the set of points represented by each geometry, or it can be calculated by some algorithm applied to a single geometry. The following methods are examples for both. ST Buffer generate a buffer at a specific distance around the given geometry ST ConvexHull compute the convex hull for a geometry ST Difference, ST Intersection, and ST Union construct the difference, intersection, or union between the point sets defined by two geometries
9 2.4 Discussion An observation of the type hierarchy as defined by the SQL/MM standard raises several questions on the design decisions that were made OGC Geometry Model The OGC geometry class hierarchy attempts to implement the composite design pattern [GHJV95] by adding the class Collection. Without the subclasses under Collection and an additional aggregation of Geometry, the pattern would fit exactly. A simplification of the type hierarchy could have been achieved with the omission of all the subclasses of Collection without any loss of functionality. All the methods that are defined on the subclasses of Collection have the same simple logic. The same method is called for each element (also called part) of the collection, and the results are combined. Another drawback of this way of modeling the classes is that a future extension of the geometry model requires the handling of the new geometries in two different places. First, the new class has to be added under Geometry, and second, a corresponding class has to be added for sets of such a geometry under Collection SQL Type Hierarchy A different picture shows the implementation of the OGC geometry class hierarchy as the SQL/MM type hierarchy. SQL is a set-oriented language. An important goal of a standard should be the usability of the functionality defined. Iterating over the elements of a collection as discussed above is, although possible, not as simple in SQL. A dynamic compound statement or a recursive query has to be used for the iteration. The respective method on the element of a collection has to be invoked during the iteration, and the results are to be combined. Leaving that task up to the user will only lead to the user defining those functions himself to prevent the repetition of that task. Furthermore, consider the following typical user scenario: The SQL query is supposed to return all the parts of the geometries in column spatial column that fall into a certain rectangle. The rectangle in question is represented using a polygon. SELECT ST_Intersection(ST_Polygon( polygon((10 10, 10 20, 20 20, 20 10, 10 10)), 1), spatial_column) FROM spatial_table WHERE... Assuming that the column contains values of type ST MultiPoint, the results of the query can contain any of the following for each row: an empty geometry (empty point)
10 a single point multi-points PSfrag replacementsin the above query, the results can be retrieved and visualized on the screen. Further Geometryprocessing the results in an SQL statement is, however, not completely trivial. Because SpatialReferenceSystemST Point and ST MultiPoint are in two independent subtrees of the type hierarchy, only the methods available on the common ancestor ST Geometry can be used. A conversion of the Point single points to multi-points with only a single element is not supported by the standard. Curve It only supports the conversion of empty geometries from one type to another. Surface CollectionA solution to address this issue might be to set the types ST Point and ST MultiPoint in LineStringdirect relationship by using inheritance. Interpreting that in the context of the SQL type Polygonhierarchy gives: ST MultiPoint is a specialized ST GeomCollection, which only contains MultiSurfacepoints, and ST Point is a specialized ST MultiPoint, consisting of only a single point. A MultiCurvesimilary approach can be implemented for the other types, which are not in the subtree MultiPointunder ST GeomCollection. Figure 5 shows how such a type hierarchy could be defined. Line LinearRing ST Geometry MultiPolygon MultiLineString ST Curve ST Surface ST GeomCollection ST MultiSurface ST MultiCurve ST MultiPoint ST CompoundCurve ST CurvePolygon ST MultiPolygon ST MultiCircString ST MultiLineString ST Point ST Polygon ST CircularString ST LineString Figure 5: Modified Type Hierarchy A similar idea was apparently the bases for the type hierarchy implemented in the SpatialWare DataBlade for IDS product [Map02]. The DB2 Spatial Extender defines a type hierarchy exactly as in the standard, but it omits some of the optional data types [IBM02]. And yet a third approach to handle geometries stems from the Oracle 9 Spatial product [Ora01]. It does not attempt to model a type hierarchy to reflect more specific properties of the different kinds of geometries but uses a single type SDO Geometry instead. No
11 support for strong typing based on the geometries can be enforced in such an environment, but other means have to be used Methods on the Geometry Types The SQL/MM standard provides a rich set of methods and functions. But it can be noted that some additions and changes would result in a further improvement. The standard defines constructor methods that can handle well-known text (WKT) and well-known binary (WKB) representations. It does not allow for a handling of the GML representation in a constructor, however. The existing constructor methods for the wellknown text representation could be reused for that, given that WKT and GML are both a textual representation for geometries and can easily be distinguished be analyzing the very first non-whitespace character. The functions like ST PolyFromGML could then be removed. They are not defined in the OGC Simple Feature specification, so that compatibility issues do not arise. A set of functions allows the user to construct any geometry using one of the external data formats. Those functions act like factory functions and are named ST GeomFromText, ST GeomFromWKB, and ST GeomFromGML. Instead of using the explicit names to denote the format handled by each function, an approach similar to the constructor methods is preferrable. An overloaded function ST Geometry can be defined with the same semantical behaviour as the existing functions. Note that constructor methods on the type ST Geometry cannot be used because that type is not instantiable. There are several groups of methods that provide (nearly) identical functionality. For example, the methods ST Intersects, ST Crosses, and ST Overlaps all test for intersections of the interiors of the two input geometries. The only difference between the methods is that ST Crosses does not allow to test if a surface intersects some other geometry, or if some other geometry intersects a point. ST Overlaps requires that both geometries to be compared have the same dimension. For example, a line can overlap another line but not a polygon. ST Intersects is the generalized version of the functionality to test for the overlay of geometries. It does not impose any restrictions in its input parameters. The existence of ST Crosses and ST Overlaps is rather questionable. Another omission can be found in the support for external data formats. The de-facto industry standard to represent geometries is the so-called shape format [ESR97]. The shape format is not supported by the standard, but it should be considered given that existing major products already support it [IBM02, IBM01]. 3 User scenarios Two user scenarios for spatial functionality as defined in the standard as shown in this section. The first scenario given in section 3.1. The second scenario describes how a bank can manage its customers and make decisions on the placement of new branches can be found in section 3.2.
12 3.1 Insurance Company After a recent flooding, an insurance company wants to correct the information about insured buildings that are in the flood zone, and pose an increased risk for the company. The database contains one table rivers that contains the rivers and their flood zones and another table buildings with the data for the buildings of all the policy holders. rivers(name, water_amount, river_line, flood_zones) buildings(customer_name, street, city, zip, ground_plot) The column river line contain the linstrings that represent all the rivers in the country. Related to that the column flood zones shows the floodzones for each river. The ground plot of the customer s building is stored in the column ground plot. The tables for the above shown relational model can be created with the following SQL statements. CREATE TABLE rivers ( name VARCHAR(30) PRIMARY KEY, water_amount DOUBLE PRECISION, river_line ST_LineString, flood_zones ST_MultiPolygon ) CREATE TABLE buildings ( customer_name VARCHAR(50) PRIMARY KEY, street VARCHAR(50), city VARCHAR(20), zip VARCHAR(10), ground_plot ST_Polygon ) The first task is to update the information about the flood zones. The flood zones for the river FLOOD is to be extended by 2 kilometers in each direction. The method ST Buffer is used in the following SQL statement to extend the flood zones by the specified radius. UPDATE rivers SET flood_zones = flood_zones.st_buffer(2, KILOMETER ) WHERE name = FLOOD In the next step, the company wants to find all the customers that are now in the extended flood zone for the river. An SQL statement involving the spatial method ST Overlaps can be used to to find all those buildings. SELECT customer_name, street, city, zip FROM buildings AS b, rivers AS r WHERE b.ground_plot.st_within(r.flood_zones) = 1 The so retrieved addresses can be further processed, and the customers can be informed of any changes to their policy or other information.
13 3.2 Banking A bank manages its customers and branches. Each customer can have one or more accounts, and each account is managed by a branch of the bank. To improve the quality of services, the bank performs an analysis of its customers, which also involves a spatial component, the locations of the customer s homes and the branches. The tables in the bank s data base have the following definition. CREATE TABLE customers ( CREATE TABLE branches ( customer_id INTEGER branch_id INTEGER PRIMARY KEY, PRIMARY KEY, name VARCHAR(20), name VARCHAR(12), street VARCHAR(25), manager VARCHAR(20), city VARCHAR(10), street VARCHAR(20), state VARCHAR(2), city VARCHAR(10), zip VARCHAR(5), state VARCHAR(2), type VARCHAR(10), zip VARCHAR(5), location ST_Point); location ST_Point, zone ST_Polygon); CREATE TABLE accounts ( account_id INTEGER PRIMARY KEY, routing_no INTEGER NOT NULL, customer_id INTEGER NOT NULL, branch_id INTEGER NOT NULL, type VARCHAR(10) NOT NULL, balance DECIMAL(14, 2) NOT NULL, CONSTRAINT fk_customers FOREIGN KEY(customer_id) REFERENCES customers(customer_id), CONSTRAINT fk_branches FOREIGN KEY(branch_id) REFERENCES branches(branch_id) ); The first query determines all customers with an account balance larger than $10,000.- in any of the accounts and who live more than 20 miles away from their branch. SELECT DISTINCT c.customer_id, c.name FROM customers AS c JOIN accounts AS a ON ( c.customer_id = a.customer_id ) WHERE a.balance > AND a.location.st_distance( ( SELECT b.location FROM branches WHERE b.branch_id = a.branch_id ), MILES ) > 20
14 The bank wants to find all the portions of the assigned sales zones of the branches that overlap. It is not intended to have more than one branch assigned to a certain area, and any duplicates are to be found and corrected. The query retrieves the identifiers for each two branches that have an overlap in the zones and also the overlapping area, encoded in the well-known text representation. SELECT b1.branch_id, b2.branch_id, b1.zone.st_overlaps(b2.zone).st_astext() FROM branches AS b1 JOIN branches AS b2 ON ( b1.branch_id < b2.branch_id ) WHERE b1.zone.st_overlaps(b2.zone).st_isempty() = 0 To reduce competition amoungst the branches for its own customers, the bank wants to find all the customers that live within a 10 mile radius of a branch, which does not manage their accounts. The accounts are to be transferred to a closer branch if the customer agrees. SELECT c.name, c.phone, b.branch_id FROM branches AS b, customers AS c WHERE b.location.st_buffer(10, MILES ). ST_Contains(c.location) = 1 AND NOT EXISTS ( SELECT 1 FROM accounts AS a WHERE a.customer_id = c.customer_id AND a.branch_id = b.branch_id ) 4 Information Schema SQL/MM Part 3: Spatial defines an Information Schema to provide an application that uses the spatial extension with a mechanism to determine the supported and available features. The Information Schema consists of four views, which are explained here, after a short introduction on the history. 4.1 History The SQL/MM Information Schema was also inherited from the OGC Simple Feature Specification for SQL [OGC99]. The OGC specification used ad still uses the views GEOMETRY COLUMNS and SPATIAL REF SYS with a different set of columns and different semantics of the data shown in the view. The OGC specification describes two completely different concepts, called environments, that can be used for the implementation of a spatial extension for a database system, based on whether structured types, so-called ADTs, are supported or not. The Information
15 Schema for the environment without structured types is more complex because additional information has to be maintained. For the second environment that exploits the structured type support, which is in alignment with the SQL/MM standard, the OGC specification refers in the description for the GEOMETRY COLUMNS view only back to the other environment and states: the columns in the GEOMETRY COLUMNS metadata view for the SQL92 with Geometry Types envirconment are a subset of the columns in the GEOMETRY COLUMNS view defined for the SQL92 environment. It is not exactly clear what the subset is supposed to be. The original Information Schema defined in the SQL/MM standard was based on those information. For example, the view GEOMETRY COLUMNS included a column named COORD DIMENSION, which has no well-defined meaning when storing arbitrary geometries on a spatial column. The original views were replaced by a new definition of the Information Schema in the second edition of the SQL/MM standard. The following sections refer to the newly introduced views. 4.2 SQL/MM Spatial Information Schema The Spatial Information Schema consists of 4 views that list the spatial columns, the supported spatial reference systems, the units of measure, and the implementation-defined meta-variables. The entity-relation-ship diagram in figure 6 shows those views and also their relationship to the views defined in the Information Schema in [ISO99]. PSfrag replacements is associated ST GEOMETRY COLUMNS ST SPATIAL REFE- RENCE SYSTEMS is subset ST UNITS OF MEASURE COLUMNS (SQL99) ST SIZINGS Figure 6: Spatial Information Schema ST GEOMETRY COLUMNS The view lists all columns in all tables that have a declared type of ST Geometry or one of its subtypes. It is not necessary to associate a specific spatial reference system with a column, but an application can do so. The view shows the
16 column identifier, consisting of catalog, schema, table, and column name, and the identifying name and the numeric identifier of the spatial reference system associated with the column. The view is written in such a way to query the view COLUMNS from the SQL Information Schema to retrieve the infermation about all existing spatial columns and then merges the SRS information for each of the columns that has an associated spatial reference system using an outer join. ST SPATIAL REFERENCE SYSTEMS A spatial reference system has two unique identifiers, a name and a numeric identifier. The name is used in the same way as for all other SQL objects like schemata, functions, or columns. The numeric identifier is used in the methods that require the SRS information as input, for instance to construct a geometry in a specific SRS or to transform a geometry to another SRS. Along with the identifiers, the view represents the organization that defined this spatial reference system together with the identifier assigned by that organization and the actual definition of the SRS. ST UNITS OF MEASURE Different units can be used to calculate distances between geometries, the length of curves, or the area of surfaces. The view lists those units that are supported. An identifying name, the type of the unit (angular or linear), and the conversion factor to the base unit within each type is stored. The conversion factor for the base units in each type are always 1 (one). ST SIZINGS Similar to the SQL99 Information Schema view SIZINGS, the SQL/MM standard requires that an implementation creates a view ST SIZINGS. This view contains the spatial-specific meta-variables and their values. An example of a meta-variable is the maximum possible length that can be used for a well-known text representation of a geometry. This meta-variable is called ST MaxGeometryAsText. 4.3 Discussion Two views in the Information Schema should be reconsidered because their current definition is not adequate. First, the view ST SPATIAL REFERENCE SYSTEMS uses a very simplified way to manage spatial reference systems. The European Petrol Survey Group (EPSG) worked on a more expressive schema for spatial reference systems, which is also described in another ISO standard [ISO02b], although in a different context. The view ST SIZINGS has the same intention as the view SIZINGS defined in SQL99 [ISO99], only specialized for the facilities in SQL/MM Spatial. If SQL99 would provide a mechanism for implementations of other standards, including SQL/MM to add new entries to its view, then ST SIZINGS becomes obsolete and could be removed from the SQL/MM
17 standard. Unfortunately, SQL99 does not describe the requested mechanisms, so both views are still necessary. 5 Summary and Outlook SQL/MM Part 3: Spatial standardizes the storing, retrieving and processing of spatial data as part of a relational database system. It defines a set of types and methods for the representation of 0, 1, or 2-dimensional geographic features. The SQL/MM standard is expected to be published in its second version in the near future. The second version shows improvements for the Information Schema and adds the support for the Geography Markup Language (GML) and angles and directions. It also defines many functions in a more precise manner. This paper described the facilities defined in the standard, and discussed them critically. The implemented type hierarchy is suitable for its purpose, but together with the strong typing and the set-oriented data management imposed be SQL, it inconveniences the spatial data processing. The methods provided for each type cover a wide range of spatial functionality. The multitude of methods lead to the situation where functionality is already duplicated (with very minor differences). Some future directions of the SQL/MM Spatial standard already show in the new working draft that was started recently and will eventually become the third version of the standard. The Japanese standards committee supplied a change proposal that adds a function ST ShortestPath, which calculates the shortest path in a network (or graph) of linestrings between two given points. Additional functionality that implements more spatial oriented logic could be included as well in the future. For example, a function ST Nearest to find for a given geometry the nearest one from another set of geometries is desirable. The user cousd exploit it to get the answers to questions like find me the closest restaurant to my current location. The support for modification of geometries directly in the database system using spatial methods can be extended. There are no simple functions to change a point in a linestring, or to generalize geometries if it is too detailed, i. e. too many points are used to define it. Existing products already support methods like SE ChangeVertex or SE Generalize [IBM01]. Open questions also remain with respect to other SQL standards. For example, the Information Schema defined in the SQL/MM Spatial standard contains information about the spatial reference systems applicable for geometries stored in the same database as the Information Schema. The access to external data stores using SQL/MED [ISO00] is not considered today. The support for raster data, for example huge images taken for whole countries, imposes special requirements on a spatial database. Geographical Information Systems (GIS) rely on raster data to provide additional information for the user. The current SQL/MM standard does not consider raster data at all, and the needed infrastructure should be defined.
18 Literaturverzeichnis [ESR97] Environmental Systems Research Institute, Inc. ESRI Shapefile Technical Description, [GHJV95] E. Gamma, R. Helm, R. Johnson, and J. Vlissidis. Design Patterns Elements of Reusable Object-Oriented Software. Addison-Wesley, [IBM01] International Business Machines, Corp. Informix Spatial DataBlade, Version 8.11, [IBM02] International Business Machines, Corp. DB2 Spatial Extender User s Guide and Reference, Version 8.1, [ISO99] ISO/IEC :1999. Information Technology Database Languages SQL Part 2: Foundation (SQL/Foundation), [ISO00] ISO/IEC :2000. Information Technology Database Languages SQL Part 9: SQL/MED, [ISO01] ISO/IEC :2001 WD. Information Technology Database Languages SQL Part 7: Temporal (SQL/Foundation), [ISO02a] ISO/DIS 19107:2002. Geographic Information - Spatial Schema, [ISO02b] [ISO02c] ISO/DIS 19111:2002. Geographic Information - Spatial Referencing by Coordinates, ISO/IEC :2002 FDIS. Information technology Database languages SQL Multimedia and Application Packages Part 3: Spatial, 2nd edition, [Map02] MapInfo, Corp. MapInfo SpatialWare User s Guide, Version 4.5, [OGC99] OpenGIS Consortium. OpenGIS Simple Features Specification for SQL, Revision 1.1, [Ora01] Oracle, Corp. Oracle Spatial User s Guide and Reference, Release 9.0.1, [RA01] K. H. Ryu and Y. A. Ahn. Application of Moving Objects and Spatiotemporal Reasoning. Technical report, TimeCenter, [SWCD97] P. Sistla, O. Wolfson, S. Chamberlain, and S. Dao. Modeling and Querying Moving Objects. In Proceedings of the Thirteenth International Conference on Data Engineering (ICDE13), Birmingham, UK, [SWCD98] P. Sistla, O. Wolfson, S. Chamberlain, and S. Dao. Temporal Databases: Research and Practice, chapter Querying the Uncertain Position of Moving Objects. Springer- Verlage, [TJS97] V. J. Tsotras, C. S. Jensen, and R. T. Snodgrass. A Notation for Spatiotemporal Queries. Technical report, TimeCenter, 1997.
OpenGIS Implementation Specification for Geographic information - Simple feature access - Part 2: SQL option
Open Geospatial Consortium Inc. Date: 2006-10-05 Reference number of this document: OGC 06-104r3 Version: 1.2.0 Category: OpenGIS Implementation Specification Editor: John R. Herring OpenGIS Implementation
IBM Informix. Reference Documentation on Why Informix Spatial for GIS Projects
IBM Informix Reference Documentation on Why Informix Spatial for GIS Projects Page 1 of 10 Contents Compliant with OGC... 3 Addressing the SQL standards... 3 Native Spatial, Intuitive Data Types... 3 Powerful
ELECTRONIC JOURNAL OF POLISH AGRICULTURAL UNIVERSITIES
Electronic Journal of Polish Agricultural Universities (EJPAU) founded by all Polish Agriculture Universities presents original papers and review articles relevant to all aspects of agricultural sciences.
SQL SUPPORTED SPATIAL ANALYSIS FOR WEB-GIS INTRODUCTION
SQL SUPPORTED SPATIAL ANALYSIS FOR WEB-GIS Jun Wang Jie Shan Geomatics Engineering School of Civil Engineering Purdue University 550 Stadium Mall Drive, West Lafayette, IN 47907 ABSTRACT Spatial analysis
Pro Spatial with SQL Server 2012
Pro Spatial with SQL Server 2012 Alastair Aitchison ULB Darmstadt Illllllill 17711989 Apress* Contents Contents at a Glance Foreword About the Author About the Technical Reviewer Acknowledgments Introduction
Oracle8i Spatial: Experiences with Extensible Databases
Oracle8i Spatial: Experiences with Extensible Databases Siva Ravada and Jayant Sharma Spatial Products Division Oracle Corporation One Oracle Drive Nashua NH-03062 {sravada,jsharma}@us.oracle.com 1 Introduction
Draft Martin Doerr ICS-FORTH, Heraklion, Crete Oct 4, 2001
A comparison of the OpenGIS TM Abstract Specification with the CIDOC CRM 3.2 Draft Martin Doerr ICS-FORTH, Heraklion, Crete Oct 4, 2001 1 Introduction This Mapping has the purpose to identify, if the OpenGIS
TOWARDS AN AUTOMATED HEALING OF 3D URBAN MODELS
TOWARDS AN AUTOMATED HEALING OF 3D URBAN MODELS J. Bogdahn a, V. Coors b a University of Strathclyde, Dept. of Electronic and Electrical Engineering, 16 Richmond Street, Glasgow G1 1XQ UK - [email protected]
10. Creating and Maintaining Geographic Databases. Learning objectives. Keywords and concepts. Overview. Definitions
10. Creating and Maintaining Geographic Databases Geographic Information Systems and Science SECOND EDITION Paul A. Longley, Michael F. Goodchild, David J. Maguire, David W. Rhind 005 John Wiley and Sons,
Frank Warmerdam President, OSGeo
PostGIS: A Standards Based Geographic Extension for PostgreSQL Frank Warmerdam President, OSGeo 1 Overview Brief background PostGIS Details PostGIS Ex am ples Survey of Sim ple Features 1.1 Geom etries
MapInfo SpatialWare Version 4.6 for Microsoft SQL Server
Release Notes MapInfo SpatialWare Version 4.6 for Microsoft SQL Server These release notes contain information about the SpatialWare v. 4.6 release. These notes are specific to the Microsoft SQL Server
Bentley ArcGIS. Connector
Bentley ArcGIS Connector Introduction ESRI, as a GIS software products company, and Bentley Systems, Incorporated, as a developer of solutions for architecture/engineering/construction (AEC) professionals,
Geodatabase Programming with SQL
DevSummit DC February 11, 2015 Washington, DC Geodatabase Programming with SQL Craig Gillgrass Assumptions Basic knowledge of SQL and relational databases Basic knowledge of the Geodatabase We ll hold
A HYBRID APPROACH FOR AUTOMATED AREA AGGREGATION
A HYBRID APPROACH FOR AUTOMATED AREA AGGREGATION Zeshen Wang ESRI 380 NewYork Street Redlands CA 92373 [email protected] ABSTRACT Automated area aggregation, which is widely needed for mapping both natural
Object-Oriented Databases
Object-Oriented Databases based on Fundamentals of Database Systems Elmasri and Navathe Acknowledgement: Fariborz Farahmand Minor corrections/modifications made by H. Hakimzadeh, 2005 1 Outline Overview
IMPLEMENTING SPATIAL DATA WAREHOUSE HIERARCHIES IN OBJECT-RELATIONAL DBMSs
IMPLEMENTING SPATIAL DATA WAREHOUSE HIERARCHIES IN OBJECT-RELATIONAL DBMSs Elzbieta Malinowski and Esteban Zimányi Computer & Decision Engineering Department, Université Libre de Bruxelles 50 av.f.d.roosevelt,
Schema Evolution in SQL-99 and Commercial (Object-)Relational DBMS
Schema Evolution in SQL-99 and Commercial (Object-)Relational DBMS Can Türker Swiss Federal Institute of Technology (ETH) Zurich Institute of Information Systems, ETH Zentrum CH 8092 Zurich, Switzerland
Vector storage and access; algorithms in GIS. This is lecture 6
Vector storage and access; algorithms in GIS This is lecture 6 Vector data storage and access Vectors are built from points, line and areas. (x,y) Surface: (x,y,z) Vector data access Access to vector
Guide to SQL Programming: SQL:1999 and Oracle Rdb V7.1
Guide to SQL Programming: SQL:1999 and Oracle Rdb V7.1 A feature of Oracle Rdb By Ian Smith Oracle Rdb Relational Technology Group Oracle Corporation 1 Oracle Rdb Journal SQL:1999 and Oracle Rdb V7.1 The
Introduction to GIS (Basics, Data, Analysis) & Case Studies. 13 th May 2004. Content. What is GIS?
Introduction to GIS (Basics, Data, Analysis) & Case Studies 13 th May 2004 Content Introduction to GIS Data concepts Data input Analysis Applications selected examples What is GIS? Geographic Information
Lesson 8: Introduction to Databases E-R Data Modeling
Lesson 8: Introduction to Databases E-R Data Modeling Contents Introduction to Databases Abstraction, Schemas, and Views Data Models Database Management System (DBMS) Components Entity Relationship Data
SQL Server. 2012 for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach
TRAINING & REFERENCE murach's SQL Server 2012 for developers Bryan Syverson Joel Murach Mike Murach & Associates, Inc. 4340 N. Knoll Ave. Fresno, CA 93722 www.murach.com [email protected] Expanded
Physical Design. Meeting the needs of the users is the gold standard against which we measure our success in creating a database.
Physical Design Physical Database Design (Defined): Process of producing a description of the implementation of the database on secondary storage; it describes the base relations, file organizations, and
Technologies & Applications
Chapter 10 Emerging Database Technologies & Applications Truong Quynh Chi [email protected] Spring - 2013 Contents 1 Distributed Databases & Client-Server Architectures 2 Spatial and Temporal Database
A Web services solution for Work Management Operations. Venu Kanaparthy Dr. Charles O Hara, Ph. D. Abstract
A Web services solution for Work Management Operations Venu Kanaparthy Dr. Charles O Hara, Ph. D Abstract The GeoResources Institute at Mississippi State University is leveraging Spatial Technologies and
The process of database development. Logical model: relational DBMS. Relation
The process of database development Reality (Universe of Discourse) Relational Databases and SQL Basic Concepts The 3rd normal form Structured Query Language (SQL) Conceptual model (e.g. Entity-Relationship
Computational Geometry. Lecture 1: Introduction and Convex Hulls
Lecture 1: Introduction and convex hulls 1 Geometry: points, lines,... Plane (two-dimensional), R 2 Space (three-dimensional), R 3 Space (higher-dimensional), R d A point in the plane, 3-dimensional space,
Chapter 8 The Enhanced Entity- Relationship (EER) Model
Chapter 8 The Enhanced Entity- Relationship (EER) Model Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 Outline Subclasses, Superclasses, and Inheritance Specialization
Database Design and Normalization
Database Design and Normalization 3 CHAPTER IN THIS CHAPTER The Relational Design Theory 48 46 Database Design Unleashed PART I Access applications are database applications, an obvious statement that
GIS Databases With focused on ArcSDE
Linköpings universitet / IDA / Div. for human-centered systems GIS Databases With focused on ArcSDE Imad Abugessaisa [email protected] 20071004 1 GIS and SDBMS Geographical data is spatial data whose
Data Visualization Techniques and Practices Introduction to GIS Technology
Data Visualization Techniques and Practices Introduction to GIS Technology Michael Greene Advanced Analytics & Modeling, Deloitte Consulting LLP March 16 th, 2010 Antitrust Notice The Casualty Actuarial
Relational model. Relational model - practice. Relational Database Definitions 9/27/11. Relational model. Relational Database: Terminology
COS 597A: Principles of Database and Information Systems elational model elational model A formal (mathematical) model to represent objects (data/information), relationships between objects Constraints
Chapter 2: Entity-Relationship Model. Entity Sets. " Example: specific person, company, event, plant
Chapter 2: Entity-Relationship Model! Entity Sets! Relationship Sets! Design Issues! Mapping Constraints! Keys! E-R Diagram! Extended E-R Features! Design of an E-R Database Schema! Reduction of an E-R
2. Basic Relational Data Model
2. Basic Relational Data Model 2.1 Introduction Basic concepts of information models, their realisation in databases comprising data objects and object relationships, and their management by DBMS s that
Oracle Database 10g: Building GIS Applications Using the Oracle Spatial Network Data Model. An Oracle Technical White Paper May 2005
Oracle Database 10g: Building GIS Applications Using the Oracle Spatial Network Data Model An Oracle Technical White Paper May 2005 Building GIS Applications Using the Oracle Spatial Network Data Model
ADVANCED DATA STRUCTURES FOR SURFACE STORAGE
1Department of Mathematics, Univerzitni Karel, Faculty 22, JANECKA1, 323 of 00, Applied Pilsen, Michal, Sciences, Czech KARA2 Republic University of West Bohemia, ADVANCED DATA STRUCTURES FOR SURFACE STORAGE
DATA QUALITY IN GIS TERMINOLGY GIS11
DATA QUALITY IN GIS When using a GIS to analyse spatial data, there is sometimes a tendency to assume that all data, both locational and attribute, are completely accurate. This of course is never the
GEOGRAPHIC INFORMATION SYSTEMS CERTIFICATION
GEOGRAPHIC INFORMATION SYSTEMS CERTIFICATION GIS Syllabus - Version 1.2 January 2007 Copyright AICA-CEPIS 2009 1 Version 1 January 2007 GIS Certification Programme 1. Target The GIS certification is aimed
Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification
Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 Outline More Complex SQL Retrieval Queries
Working with the Geodatabase Using SQL
An ESRI Technical Paper February 2004 This technical paper is aimed primarily at GIS managers and data administrators who are responsible for the installation, design, and day-to-day management of a geodatabase.
Relational Databases
Relational Databases Jan Chomicki University at Buffalo Jan Chomicki () Relational databases 1 / 18 Relational data model Domain domain: predefined set of atomic values: integers, strings,... every attribute
IT2304: Database Systems 1 (DBS 1)
: Database Systems 1 (DBS 1) (Compulsory) 1. OUTLINE OF SYLLABUS Topic Minimum number of hours Introduction to DBMS 07 Relational Data Model 03 Data manipulation using Relational Algebra 06 Data manipulation
Glossary of Object Oriented Terms
Appendix E Glossary of Object Oriented Terms abstract class: A class primarily intended to define an instance, but can not be instantiated without additional methods. abstract data type: An abstraction
IT2305 Database Systems I (Compulsory)
Database Systems I (Compulsory) INTRODUCTION This is one of the 4 modules designed for Semester 2 of Bachelor of Information Technology Degree program. CREDITS: 04 LEARNING OUTCOMES On completion of this
1 File Processing Systems
COMP 378 Database Systems Notes for Chapter 1 of Database System Concepts Introduction A database management system (DBMS) is a collection of data and an integrated set of programs that access that data.
Building a Spatial Database in PostgreSQL
Building a Spatial Database in PostgreSQL David Blasby Refractions Research [email protected] http://postgis.refractions.net Introduction PostGIS is a spatial extension for PostgreSQL PostGIS aims
Primitive type: GEOMETRY: matches SDO_GEOMETRY and GEOMETRY_COLUMN types.
property sheets 27/01/2010 1/6 Introduction The Geographic Data was revised on the previous and design documents, the final goal was allow user to model geographic data into spatial databases like Oracle
Chapter 9 Joining Data from Multiple Tables. Oracle 10g: SQL
Chapter 9 Joining Data from Multiple Tables Oracle 10g: SQL Objectives Identify a Cartesian join Create an equality join using the WHERE clause Create an equality join using the JOIN keyword Create a non-equality
www.gr8ambitionz.com
Data Base Management Systems (DBMS) Study Material (Objective Type questions with Answers) Shared by Akhil Arora Powered by www. your A to Z competitive exam guide Database Objective type questions Q.1
Data Modeling Basics
Information Technology Standard Commonwealth of Pennsylvania Governor's Office of Administration/Office for Information Technology STD Number: STD-INF003B STD Title: Data Modeling Basics Issued by: Deputy
DATABASE MANAGEMENT FILES GIS06
DATABASE MANAGEMENT Last day we looked at spatial data structures for both vector and raster data models. When working with large amounts of data, it is important to have good procedures for managing the
How To Find Out What A Key Is In A Database Engine
Database design theory, Part I Functional dependencies Introduction As we saw in the last segment, designing a good database is a non trivial matter. The E/R model gives a useful rapid prototyping tool,
Chapter 1: Introduction
Chapter 1: Introduction Database System Concepts, 5th Ed. See www.db book.com for conditions on re use Chapter 1: Introduction Purpose of Database Systems View of Data Database Languages Relational Databases
OBJECT ORIENTED EXTENSIONS TO SQL
OBJECT ORIENTED EXTENSIONS TO SQL Thomas B. Gendreau Computer Science Department University Wisconsin La Crosse La Crosse, WI 54601 [email protected] Abstract Object oriented technology is influencing
Chapter 7 Application Protocol Reference Architecture
Application Protocol Reference Architecture Chapter 7 Application Protocol Reference Architecture This chapter proposes an alternative reference architecture for application protocols. The proposed reference
GEOGRAPHY DATATYPES in SQL Server. by jared nielsen linkedin.com/nielsendata
GEOGRAPHY DATATYPES in SQL Server by jared nielsen linkedin.com/nielsendata GEOGRAPHY vs GEOMETRY Geography Plots ellipsoidal Round Earth data using latitude, longitude and altitude* coordinates Geometry
CHAPTER-24 Mining Spatial Databases
CHAPTER-24 Mining Spatial Databases 24.1 Introduction 24.2 Spatial Data Cube Construction and Spatial OLAP 24.3 Spatial Association Analysis 24.4 Spatial Clustering Methods 24.5 Spatial Classification
A Java Tool for Creating ISO/FGDC Geographic Metadata
F.J. Zarazaga-Soria, J. Lacasta, J. Nogueras-Iso, M. Pilar Torres, P.R. Muro-Medrano17 A Java Tool for Creating ISO/FGDC Geographic Metadata F. Javier Zarazaga-Soria, Javier Lacasta, Javier Nogueras-Iso,
Oracle Spatial 10g. An Oracle White Paper August 2005
Oracle Spatial 10g An Oracle White Paper August 2005 Oracle Spatial 10g INTRODUCTION Oracle Spatial, an option for Oracle Database 10g Enterprise Edition, includes advanced spatial capabilities to support
14 Databases. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:
14 Databases 14.1 Source: Foundations of Computer Science Cengage Learning Objectives After studying this chapter, the student should be able to: Define a database and a database management system (DBMS)
SQL DATA DEFINITION: KEY CONSTRAINTS. CS121: Introduction to Relational Database Systems Fall 2015 Lecture 7
SQL DATA DEFINITION: KEY CONSTRAINTS CS121: Introduction to Relational Database Systems Fall 2015 Lecture 7 Data Definition 2 Covered most of SQL data manipulation operations Continue exploration of SQL
Oracle Database 10g: Introduction to SQL
Oracle University Contact Us: 1.800.529.0165 Oracle Database 10g: Introduction to SQL Duration: 5 Days What you will learn This course offers students an introduction to Oracle Database 10g database technology.
Representing Geography
3 Representing Geography OVERVIEW This chapter introduces the concept of representation, or the construction of a digital model of some aspect of the Earth s surface. The geographic world is extremely
What is a database? COSC 304 Introduction to Database Systems. Database Introduction. Example Problem. Databases in the Real-World
COSC 304 Introduction to Systems Introduction Dr. Ramon Lawrence University of British Columbia Okanagan [email protected] What is a database? A database is a collection of logically related data for
The Entity-Relationship Model
The Entity-Relationship Model 221 After completing this chapter, you should be able to explain the three phases of database design, Why are multiple phases useful? evaluate the significance of the Entity-Relationship
Information Systems SQL. Nikolaj Popov
Information Systems SQL Nikolaj Popov Research Institute for Symbolic Computation Johannes Kepler University of Linz, Austria [email protected] Outline SQL Table Creation Populating and Modifying
Chapter 2: Entity-Relationship Model. E-R R Diagrams
Chapter 2: Entity-Relationship Model What s the use of the E-R model? Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E-R Diagram Extended E-R Features Design of an E-R Database Schema
Patterns in. Lecture 2 GoF Design Patterns Creational. Sharif University of Technology. Department of Computer Engineering
Patterns in Software Engineering Lecturer: Raman Ramsin Lecture 2 GoF Design Patterns Creational 1 GoF Design Patterns Principles Emphasis on flexibility and reuse through decoupling of classes. The underlying
Pre-Algebra 2008. Academic Content Standards Grade Eight Ohio. Number, Number Sense and Operations Standard. Number and Number Systems
Academic Content Standards Grade Eight Ohio Pre-Algebra 2008 STANDARDS Number, Number Sense and Operations Standard Number and Number Systems 1. Use scientific notation to express large numbers and small
virtual class local mappings semantically equivalent local classes ... Schema Integration
Data Integration Techniques based on Data Quality Aspects Michael Gertz Department of Computer Science University of California, Davis One Shields Avenue Davis, CA 95616, USA [email protected] Ingo
Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys
Database Design Overview Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Conceptual design The Entity-Relationship (ER) Model, UML High-level, close to human thinking Semantic
Advance DBMS. Structured Query Language (SQL)
Structured Query Language (SQL) Introduction Commercial database systems use more user friendly language to specify the queries. SQL is the most influential commercially marketed product language. Other
VISUALIZING HIERARCHICAL DATA. Graham Wills SPSS Inc., http://willsfamily.org/gwills
VISUALIZING HIERARCHICAL DATA Graham Wills SPSS Inc., http://willsfamily.org/gwills SYNONYMS Hierarchical Graph Layout, Visualizing Trees, Tree Drawing, Information Visualization on Hierarchies; Hierarchical
How To Create A Table In Sql 2.5.2.2 (Ahem)
Database Systems Unit 5 Database Implementation: SQL Data Definition Language Learning Goals In this unit you will learn how to transfer a logical data model into a physical database, how to extend or
The Goldberg Rao Algorithm for the Maximum Flow Problem
The Goldberg Rao Algorithm for the Maximum Flow Problem COS 528 class notes October 18, 2006 Scribe: Dávid Papp Main idea: use of the blocking flow paradigm to achieve essentially O(min{m 2/3, n 1/2 }
1. INTRODUCTION TO RDBMS
Oracle For Beginners Page: 1 1. INTRODUCTION TO RDBMS What is DBMS? Data Models Relational database management system (RDBMS) Relational Algebra Structured query language (SQL) What Is DBMS? Data is one
SPATIAL ANALYSIS IN GEOGRAPHICAL INFORMATION SYSTEMS. A DATA MODEL ORffiNTED APPROACH
POSTER SESSIONS 247 SPATIAL ANALYSIS IN GEOGRAPHICAL INFORMATION SYSTEMS. A DATA MODEL ORffiNTED APPROACH Kirsi Artimo Helsinki University of Technology Department of Surveying Otakaari 1.02150 Espoo,
Part VI. Object-relational Data Models
Part VI Overview Object-relational Database Models Concepts of Object-relational Database Models Object-relational Features in Oracle10g Object-relational Database Models Object-relational Database Models
MOC 20461C: Querying Microsoft SQL Server. Course Overview
MOC 20461C: Querying Microsoft SQL Server Course Overview This course provides students with the knowledge and skills to query Microsoft SQL Server. Students will learn about T-SQL querying, SQL Server
Spatial data models (types) Not taught yet
Spatial data models (types) Not taught yet A new data model in ArcGIS Geodatabase data model Use a relational database that stores geographic data A type of database in which the data is organized across
Building Geospatial Business Intelligence Solutions with Free and Open Source Components
Building Geospatial Business Intelligence Solutions with Free and Open Source Components FOSS4G 2007 Etienne Dubé Thierry Badard Yvan Bédard Centre for Research in Geomatics Université Laval, Québec, Canada
The Relational Model. Ramakrishnan&Gehrke, Chapter 3 CS4320 1
The Relational Model Ramakrishnan&Gehrke, Chapter 3 CS4320 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. Legacy systems in older models
Database Systems. Lecture 1: Introduction
Database Systems Lecture 1: Introduction General Information Professor: Leonid Libkin Contact: [email protected] Lectures: Tuesday, 11:10am 1 pm, AT LT4 Website: http://homepages.inf.ed.ac.uk/libkin/teach/dbs09/index.html
Object Relational Database Mapping. Alex Boughton Spring 2011
+ Object Relational Database Mapping Alex Boughton Spring 2011 + Presentation Overview Overview of database management systems What is ORDM Comparison of ORDM with other DBMSs Motivation for ORDM Quick
Database Design Patterns. Winter 2006-2007 Lecture 24
Database Design Patterns Winter 2006-2007 Lecture 24 Trees and Hierarchies Many schemas need to represent trees or hierarchies of some sort Common way of representing trees: An adjacency list model Each
Checking Access to Protected Members in the Java Virtual Machine
Checking Access to Protected Members in the Java Virtual Machine Alessandro Coglio Kestrel Institute 3260 Hillview Avenue, Palo Alto, CA 94304, USA Ph. +1-650-493-6871 Fax +1-650-424-1807 http://www.kestrel.edu/
Temporal features in SQL:2011
Temporal features in SQL:2011 Krishna Kulkarni, Jan-Eike Michels (IBM Corporation) {krishnak, janeike}@us.ibm.com ABSTRACT SQL:2011 was published in December of 2011, replacing SQL:2008 as the most recent
3. Relational Model and Relational Algebra
ECS-165A WQ 11 36 3. Relational Model and Relational Algebra Contents Fundamental Concepts of the Relational Model Integrity Constraints Translation ER schema Relational Database Schema Relational Algebra
CUSTOMER RELATIONSHIP MANAGEMENT AND LOCATION BASED SERVICES WITH ORACLE SPATIAL DATABASE
CUSTOMER RELATIONSHIP MANAGEMENT AND LOCATION BASED SERVICES WITH ORACLE SPATIAL DATABASE Thesis submitted in partial fulfillment of the requirements for the award of degree of Master of Engineering in
Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff
D80198GC10 Oracle Database 12c SQL and Fundamentals Summary Duration Vendor Audience 5 Days Oracle End Users, Developers, Technical Consultants and Support Staff Level Professional Delivery Method Instructor-led
Data Validation Online References
Data Validation Online References Submitted To: Program Manager GeoConnections Victoria, BC, Canada Submitted By: Jody Garnett Brent Owens Refractions Research Inc. Suite 400, 1207 Douglas Street Victoria,
Basics of Dimensional Modeling
Basics of Dimensional Modeling Data warehouse and OLAP tools are based on a dimensional data model. A dimensional model is based on dimensions, facts, cubes, and schemas such as star and snowflake. Dimensional
INTERNATIONAL TELECOMMUNICATION UNION
INTERNATIONAL TELECOMMUNICATION UNION ITU-T X.690 TELECOMMUNICATION STANDARDIZATION SECTOR OF ITU (07/2002) SERIES X: DATA NETWORKS AND OPEN SYSTEM COMMUNICATIONS OSI networking and system aspects Abstract
Network Model APPENDIXD. D.1 Basic Concepts
APPENDIXD Network Model In the relational model, the data and the relationships among data are represented by a collection of tables. The network model differs from the relational model in that data are
