1 Oracle Enterprise Manager Slides from Dominic Gélinas CIS 764 2004.
Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.
-
date post
21-Dec-2015 -
Category
Documents
-
view
223 -
download
0
Transcript of Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.
![Page 1: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/1.jpg)
Oracle Location based services
Spatial and Oracle Locator
Srinivas Gudelli
CIS 764
Fall 2008
![Page 2: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/2.jpg)
Overview
What is Oracle Spatial and Oracle Locator? Spatial information systems (Ex: GIS) GIS vs. Oracle Spatial? History and architecture Data loading-examples Advantages Summary Questions
![Page 3: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/3.jpg)
What is Oracle Spatial and Oracle Locator?
Oracle Spatial and Oracle Locator, is a feature in Oracle database that stores location applications.
Oracle locator-Standard and Enterprise Editions that provides core location functionality.
Oracle Spatial is an option for Oracle Enterprise Edition that provides advanced spatial features to support high-end GIS and Location Based System solutions.
![Page 4: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/4.jpg)
Oracle Locator do
All geometric objects – Points, lines, polygons – 2D, 3D, 4D Indexing (quadtrees and
r-trees) Spatial queries Proximity queries Distances Projections
Oracle Spatial do
=Locator + ... Geometric Transformations Spatial Aggregations Network Modeling Topology Raster Geocoder Spatial Data Mining 3D Types (LIDAR, TINS) Web Services (WFS, CSW,
OpenLS)
![Page 5: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/5.jpg)
Spatial information systems (Ex. GIS) Geographic Information Systems (GIS) integrates
hardware, software, and data for capturing, managing, analyzing, and displaying all forms of geographically referenced information.
Evolution mainly from government, then started development from commercial software vendors.
Enterprise GIS offers tools to share and view the spatial data through internet.
![Page 6: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/6.jpg)
Geographic Information Systems
Stores attributes, raster images, vector data Have capability to provide business logics such as
relationships, domain values, networks, subtypes
![Page 7: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/7.jpg)
GIS vs. Oracle Spatial GIS is stand-alone system. Incompatible for e-business applications Dual Architecture
Continued….
![Page 8: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/8.jpg)
GIS vs. Oracle Spatial Fully integrated, Single Architecture. Location analysis without GIS Useful for corporate and business applications
![Page 9: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/9.jpg)
GIS vs. Oracle Spatial
Continued….
Oracle spatial emphasizing the Information Systems by combining the Location information with attribute information
![Page 10: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/10.jpg)
Oracle Spatial
![Page 11: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/11.jpg)
Architecture
Data type
![Page 12: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/12.jpg)
Spatial database
![Page 13: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/13.jpg)
Storing Spatial data in a Database
Three types of geometry: Points, Lines, and Polygons
![Page 14: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/14.jpg)
Spatial data storage in Oracle Use SDO_GEOMETRY for vector Use SDO_GEORASTER for raster images
Structure of SDO_GEOMETRYSDO_GTYPE NUMBERSDO_SRID NUMBERSDO_POINT SDO_POINT_TYPESDO_ELEM_INFO SDO_ELEM_INFO_ARRAYSDO_ORDINATES SDO_ORDINATE_ARRAY
• ExampleSQL> CREATE TABLE states (state VARCHAR2(30),totpop NUMBER(9),geom SDO_GEOMETRY);
Details…. next slides
![Page 15: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/15.jpg)
SDO_GTYPE
Defines the geometry type Follow DOOT rule
![Page 16: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/16.jpg)
SDO_SRID SRID = Spatial Reference system ID More than 1000 different systems A common value: 8307
– "Longitude/Latitude WGS84" – Used by GPS – Navteq and TeleAtlas data are WGS84-
encoded All geometries must have the same SRID Different layers can have different SRID Automatic conversion when querying
![Page 17: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/17.jpg)
SDO_POINT and SDO_ODRINATES
![Page 18: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/18.jpg)
Example-Point
1. SQL> INSERT INTO geometry_examples values2. (3. ‘POINT’4. ‘'2-dimensional Point at coordinates’ 5. SDO_GEOMETRY6. (7. 2001, 8. 8307, 9. SDO_POINT_TYPE10. (11. -79, 12. 37, 13. NULL 14. ),15. NULL,16. NULL17. )18. );
SQL> CREATE TABLE geometry_examples(name VARCHAR2(100),description VARCHAR2(100),geom SDO_GEOMETRY);
Creating a Table
Loading Point Data values
-79, 37 (2D)
2001-DOOT
![Page 19: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/19.jpg)
Example 2- PolygonSQL> INSERT INTO geometry_examples VALUES('POLYGON','2-D polygon connecting A(Xa, Ya), B(Xb, Yb), C(Xc, Yc), D(Xd, Yd)',SDO_GEOMETRY(2003, -- SDO_GTYPE: D00T. Set to 2003 as it is a 2-dimensional polygon32774, -- SDO_SRIDNULL, -- SDO_POINT_TYPE is nullSDO_ELEM_INFO_ARRAY -- SDO_ELEM_INFO attribute (1, -- Offset is 11003, -- Element-type is 1003 for an outer POLYGON element1 -- Interpretation is 1 if boundary is connected by straight lines.),SDO_ORDINATE_ARRAY -- SDO_ORDINATES attribute(1,1, -- Xa, Ya values2,-1, -- Xb, Yb values3,1, -- Xc, Yc values2,2, -- Xd, Yd values1,1 -- Xa, Ya values : Repeat first vertex to close the ring)));
![Page 20: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/20.jpg)
Other spatial functions-Oracle Spatial Spatial query from SQL Inbuilt geo-coding services available for know
address All types of spatial operations can be performed
using SQL such as joining, counting and relate. Metadata loading option. Network analysis such routing, directions Visualization in Map viewer Spatial analysis such as buffering, nearest neighbor,
within distance, and contains.
![Page 21: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/21.jpg)
Benefits
![Page 22: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/22.jpg)
Summary
Useful tool to add spatial features into existing database
No extra programming skills necessary No need to purchase GIS software's Single database No cost feature for Oracle Application Server
to view the maps Supports all types of geometry such as
raster, lines, polygons
![Page 23: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/23.jpg)
References
Pro Oracle Spatial Book
Fred Louiis, Sollutiion Archiitect and Ohiio Valllley. Oracle Platform GIS & Location-Based Services.Oracle
http://www.oracle.com/technology/products/spatial/index.html
![Page 24: Oracle Location based services Spatial and Oracle Locator Srinivas Gudelli CIS 764 Fall 2008.](https://reader035.fdocuments.in/reader035/viewer/2022062421/56649d5e5503460f94a3d5d3/html5/thumbnails/24.jpg)