0% found this document useful (0 votes)
16 views14 pages

Anish - PPT - Anish

Uploaded by

Ankit Shakya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views14 pages

Anish - PPT - Anish

Uploaded by

Ankit Shakya
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

EXTENDING SQL FOR

SPATIAL DATA

PRESENTED BY :: ANISH KUMAR YADAV


ROLL NO. :: M220276CS
Why we need extending SQL for
spatial data
 Relational algebra and SQL provide only simple datatypes such as integers, dates, strings
 Service databases need to handle a complex datatypes such as points, lines, polygons so
we need to extend the SQL.
 With the extension of SQL to support spatial data, RDBMS can support a wide range of
applications that require spatial analysis and management.
Possible solutions to solve the
above problem
1. Use blobs(Binary large object) to store spatial information but SQL cannot process
data stored as blobs .
2. We can use hybrid system in which spatial attributes are stored in operating-system
files via a GIS(Geographic information system) but we are unable to take advantage
of traditional database services such as query languages, concurrency control, and
indexing support.
Usable Solution

 Object –oriented systems have had a major influence on expanding the capabilities of
DBMS to support spatial (complex) objects by using the framework of OR-
DBMS(object–relational database management system) which extensions support
notion of user defined types(Abstract data types) just like a C++ and Java.
 For example, if we have land parcels stored as polygons in a database, then a useful
ADT may be a combination of the type polygon and some associate function(method),
say, adjacent.
 The adjacent function may be applied to land parcel to determine if they share a
common boundary.
OGIS Standard for Extending SQL

1. It is a data model consists of a base-class , GEOMETRY, which is noninstantiable, but


specifies a spatial reference system application to all its subclass.
2. The Simple Feature Access Standard(OGIS) is based on the concept of a "feature",
which is a spatial object that has a location and a set of attributes.
3. It has greatly simplified the handling of spatial data in relational databases by
providing a standardized set of data types and functions for representing and
manipulating spatial data.
Operations in OGIS Standard for Extending
SQL

Basic Functions:
1. Spatial Reference(): Return the underlying coordinate system of the geometry
2. Envelop(): Return the minimum orthogonal bounding rectangle of the geometry
3. Export(): Returns the geometry in a different representation
4. IsEmpty(); Return true if the geometry is a null set
5. IsSimple(): Return true if the geometry is simple(no self-intersection)
6. Boundary(); Return the boundary of the geometry
Operations in OGIS Standard for Extending
SQL
Topological/Set Operators: Topological operators are used to compare the spatial
relationship between two or more
geometric objects, such as points, lines,
or polygons.
1. Equal : Returns true if the interior and boundary of the two geometries are
spatially equal.
2. Disjoint: Return true if the boundaries and interior do not intersect
3. Intersect: Returns true if the geometries are not disjoint
4. Touch: Returns true if the boundaries of two surfaces intersect but the interiors do
not
5. Cross: Returns true if the interiors of a surface intersects with a curve
6. Within: Returns true if the interior of the given geometry does not intersect with
the exterior of another geometry
Operations in OGIS Standard for Extending
SQL
Spatial Analysis: It is the process of analyzing and interpreting geographic data to gain
insights into the patterns and relationships that exist within the data
1. Distance: Returns the shortest distance between two geometries
2. Buffer: Returns a geometry that consists of all points whose distance from the
given geometry is less than or equal to the specified distance
3. ConvexHull: Returns the smallest convex geometric set enclosing the geometry
4. Intersection: Returns the geometric intersection of two geometries
5. Union: Returns the geometric union of two geometries
6. Difference: Returns the portion of a geometry that does not intersect with another given
geometry
7. SymmDiff: Returns the portions of two geometries that do not intersect with each other
Examples of how SQL queries can be used to
retrieve and analyze spatial data

1. Retrieving Spatial Data:. For ex. SELECT * FROM points WHERE ST_Distance
(point, ’POINT(1.23 4.56 )’)<1000;
2. Analysing Spatial Data: For ex. SELECT ST_Area(polygon) FROM polygon;
3. Aggregating Spatial Data: For ex. SELECT ST_Union(polygon) FROM polygons;
4. Spatial Joins: For ex. SELECT polygons.name, COUNT(points.id) FROM polygons
LEFT JOIN points ON ST_Contains (polygons.polygon, points.point) GROUP BY
polygons.name;
5. Spatial Indexing: For ex. SELECT * FROM polygon && ST_MakeEnvelop (xmin,
ymin, xmax,4326);
Limitations of Extending SQL

Extending SQL for spatial data has greatly improved the management and analysis of
spatial data in relational databases, but there are still some limitations to this approach. Here
are a few:
1. Limited support for complex spatial data
2. Limited support for non-Euclidean geometries
3. Lack of standardization
4. Performance limitations
5. Implementation challenges
Future directions for the development of SQL
extensions for spatial data

1. Improved indexing and query optimization


2. Enhanced support for 3D spatial data
3. Integration with big data and cloud computing technologies
4. Integration with geospatial data science and machine learning
5. Development of open standards
Conclusion

1. This paper proposes an extension to SQL for managing and analysing spatial data in
relational databases.
2. The proposed extension provides a powerful and flexible framework for managing
spatial data in a relational database, making it a valuable tool for a wide range of
applications.
3. The proposed extension provides a comprehensive and integrated approach to
extending SQL for spatial data, which supports advanced spatial analysis, indexing,
and querying. Further research and development in this area can lead to more efficient
and effective management and analysis of spatial data in relational databases,
expanding the applicability of SQL for spatial data in various fields
References
1. Spatial Database: A Tour by Shashi Shekhar and Sanjay Chawla
2. B.C. Ooi, R.S. Davis, K.J. McDonnel, "Extending a DBMS for geographical
application," in Proceedings of the 1989 International Conference on Computers in
Design Engineering, San Francisco, CA, USA, Feb. 1989, pp. 421-426, doi:
10.1109/CDE.1989.47266
Thank you

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy