geo2010 s005 building-adf_gis_applications
TRANSCRIPT
![Page 1: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/1.jpg)
1
![Page 2: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/2.jpg)
<Insert Picture Here>
S005 GeoPortal Application Development
Building ADF GIS Applications
Carlos Vicens
Oracle Sales Consultant
![Page 3: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/3.jpg)
The following is intended to outline our general
product direction. It is intended for information
purposes only, and may not be incorporated into any
contract. It is not a commitment to deliver any
material, code, or functionality, and should not be
relied upon in making purchasing decisions.
3
relied upon in making purchasing decisions.
The development, release, and timing of any
features or functionality described for Oracle’s
products remains at the sole discretion of Oracle.
![Page 4: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/4.jpg)
<Insert Picture Here>
Outline
• Preparar datos espaciales
• Crear una nueva capa con mapbuilder
• Crear una aplicación ADF GIS
4
![Page 5: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/5.jpg)
Preparar datos espaciales
5
Preparar datos espaciales
![Page 6: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/6.jpg)
Crear tablas
-- Create table for customer information.CREATE TABLE MY2_CUSTOMERS (
customer_id NUMBER,last_name VARCHAR2(30),first_name VARCHAR2(30),street_address VARCHAR2(40),city VARCHAR2(30),state_province_code VARCHAR2(2),postal_code VARCHAR2(9),cust_geo_location SDO_GEOMETRY);
6
-- Create table for store information.CREATE TABLE MY2_STORES (
store_id NUMBER,description VARCHAR2(100),street_address VARCHAR2(40),city VARCHAR2(30),state_province_code VARCHAR2(2),postal_code VARCHAR2(9),store_geo_location SDO_GEOMETRY);
![Page 7: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/7.jpg)
Insertamos datos de test
-- Insert customer data.INSERT INTO MY2_CUSTOMERS VALUES
(1001,'Nichols', 'Alexandra', '17 Maple Drive', 'Nashua', 'NH','03062',SDO_GEOMETRY(2001, 8307,
SDO_POINT_TYPE (-71.48923,42.72347,NULL), NULL, NULL));
-- Insert stores data.INSERT INTO MY2_STORES VALUES
7
INSERT INTO MY2_STORES VALUES(101,'Nashua megastore', '123 Commercial Way', 'Nashua', 'NH','03062',SDO_GEOMETRY(2001, 8307,
SDO_POINT_TYPE (-71.49074,42.7229,NULL),NULL,NULL));
![Page 8: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/8.jpg)
Agregamos metadatos espaciales…
-- Add metadata to spatial view USER_SDO_GEOM_METADATA.
INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
VALUES ('MY2_CUSTOMERS', 'CUST_GEO_LOCATION', SDO_DIM_ARRAY
(SDO_DIM_ELEMENT('LONG', -180.0, 180.0, 0.5), SDO_DIM_ELEMENT('LAT', -90.0, 90.0, 0.5)),
8307);
8
INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID)
VALUES ('MY2_STORES', 'STORE_GEO_LOCATION', SDO_DIM_ARRAY
(SDO_DIM_ELEMENT('LONG', -180.0, 180.0, 0.5), SDO_DIM_ELEMENT('LAT', -90.0, 90.0, 0.5)),
8307);
![Page 9: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/9.jpg)
Creamos índices espaciales…
-- Create spatial indexes.
CREATE INDEX my2_customers_sidx ON my2_customers(cust_geo_location)INDEXTYPE IS mdsys.spatial_index;
CREATE INDEX my2_stores_sidx ON my2_stores(store_geo_location)INDEXTYPE IS mdsys.spatial_index;
9
![Page 10: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/10.jpg)
Crear una nueva capa con mapbuilder
10
Crear una nueva capa con mapbuilder
![Page 11: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/11.jpg)
Crear nueva capa
11
![Page 12: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/12.jpg)
Crear nueva capa
12
![Page 13: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/13.jpg)
Crear nueva capa
13
![Page 14: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/14.jpg)
Crear nueva capa
14
![Page 15: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/15.jpg)
Crear nueva capa
15
![Page 16: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/16.jpg)
Crear nueva capa
16
![Page 17: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/17.jpg)
Crear una aplicación ADF GIS
17
Crear una aplicación ADF GIS
![Page 18: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/18.jpg)
Creamos una aplicacion de tipo Fusion Web Application
18
![Page 19: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/19.jpg)
Creamos un servicio GIS basado en JPA
public class Customer implements Serializable {...@Convert(value="JGeometry")@StructConverter(name="JGeometry", converter="JGEOMETRY")private JGeometry location;...}
public class CustomerServiceFacade {
19
public class CustomerServiceFacade {private EntityManagerFactory emf = ...
...}
![Page 20: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/20.jpg)
Creamos un Data Control a partir del servicio
20
![Page 21: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/21.jpg)
Aplicación terminada
21
![Page 22: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/22.jpg)
Aplicación basada en servicios web geoespaciales
22
Aplicación basada en servicios web geoespaciales
![Page 23: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/23.jpg)
23
![Page 24: Geo2010 s005 building-adf_gis_applications](https://reader035.vdocuments.site/reader035/viewer/2022081403/55621e26d8b42ad44d8b494d/html5/thumbnails/24.jpg)
24