1 CREATE OR REPLACE VIEW forum_view10 AS 2 SELECT l.objectid loc_id,r.objectid rec_id,l.point 3 FROM rectangles2 r 4 LEFT OUTER JOIN locations l 5* ON SDE.st_within(l.point,r.poly) = 1 SQL> / View created. % sdelayer -o register -l forum_view10,point -e np -R 3 -C loc_id,USER -t ST_GEOMETRY ArcSDE 10.1 for Oracle11g Build 768 Thu Aug 23 15:57:13 2012 Layer Administration Utility ----------------------------------------------------- Successfully Created Layer. % sdequery -N -t forum_view10 ArcSDE 10.1 Generic Query Tool Tue Feb 26 10:20:40 2013 ------------------------------------------------------------------------ 8000 rows found in 988.24 ms
% cat ident.ctl COORDREF_XY -210,-120,1000000 COORDSYS GCS_WGS_1984 ENVELOPE 0,0,20,20 SKIP 1 REGISTER loc_id(USER) META id1:VERBOSE="TRUE" META id1:SUMMARIZE="true" META id1:TABLE="rectangles2" META id1:COLUMN="poly" META id1:ALIAS="point" META id1:USE_CACHE="true" COLUMNS loc_id Int32 - 10 N rec_id Identity(id1,objectid) - 10 Y point WKTShape - 1 Y END % sdequery -t locations -C objectid,point -d - -q | \ ascinfo -o scan -f - -C ident.ctl ArcSDE 10.1 Dynamic ASCII Table Utility Tue Feb 26 10:39:07 2013 ------------------------------------------------------------------------ ! id1: Cache size limited to 128.00Mb ! id1: Connecting to instance 'localhost:esri_sde' as 'staff'... ! id1: Connection created at Tue Feb 26 10:39:07 2013 ! id1: 20 features cached using 124.8Kb in 85.52 ms 8000 rows found in 271.95 ms ! id1: 8000 features found in 194.05 ms (24 us/query) ! id1: Disconnected at Tue Feb 26 10:39:07 2013 8000 rows read in 237.88 ms
% asc2sde -o create -l rectangles,poly -g 5 -C rect.ctl ASCII to ArcSDE 10.1 Loader Utility Mon Feb 25 14:33:45 2013 ------------------------------------------------------------------------ Results: Records read: 20 Rows created: 20 Insert time: 39.64 ms (504.49 TPS) Elapsed time: 993.10 ms % asc2sde -o create -l locations,point -g 3 -C pnts.ctl ASCII to ArcSDE 10.1 Loader Utility Mon Feb 25 14:34:11 2013 ------------------------------------------------------------------------ Results: Records read: 8000 Rows created: 8000 Insert time: 1.27 secs (6290.73 TPS) Elapsed time: 3.04 secs 1 create view forum_view as 2 select l.objectid loc_id,r.objectid rec_id,r.poly 3 from locations l,rectangles r 4* where SDE.st_intersects(r.poly,l.point) = 1 SQL> / View created. % sdelayer -o register -l forum_view,poly -e na+ -R 3 -C loc_id,USER -t ST_GEOMETRY ArcSDE 10.1 for Oracle11g Build 768 Thu Aug 23 15:57:13 2012 Layer Administration Utility ----------------------------------------------------- Successfully Created Layer. % sdequery -N -t locations ArcSDE 10.1 Generic Query Tool Mon Feb 25 14:35:29 2013 ------------------------------------------------------------------------ 8000 rows found in 220.49 ms % sdequery -N -t rectangles ArcSDE 10.1 Generic Query Tool Mon Feb 25 14:35:36 2013 ------------------------------------------------------------------------ 20 rows found in 10.89 ms % sdequery -N -t forum_view ArcSDE 10.1 Generic Query Tool Mon Feb 25 14:35:48 2013 ------------------------------------------------------------------------ 8000 rows found in 5.47 secs 1 create view forum_view2 as 2 select l.objectid loc_id,r.objectid rec_id,r.poly 3 from locations l,rectangles r 4* where SDE.st_contains(r.poly,l.point) = 1 SQL> / View created. % sdelayer -o register -l forum_view2,poly -e na+ -R 3 -C loc_id,USER -t ST_GEOMETRY ArcSDE 10.1 for Oracle11g Build 768 Thu Aug 23 15:57:13 2012 Layer Administration Utility ----------------------------------------------------- Successfully Created Layer. % sdequery -N -t forum_view2 ArcSDE 10.1 Generic Query Tool Mon Feb 25 15:05:36 2013 ------------------------------------------------------------------------ 8000 rows found in 5.56 secs 1 create view forum_view3 as 2 select l.objectid loc_id,r.objectid rec_id,r.poly 3 from locations l,rectangles r 4* where SDE.st_within(l.point,r.poly) = 1 SQL> / View created. % sdelayer -o register -l forum_view3,poly -e na+ -R 3 -C loc_id,USER -t ST_GEOMETRY ArcSDE 10.1 for Oracle11g Build 768 Thu Aug 23 15:57:13 2012 Layer Administration Utility ----------------------------------------------------- Successfully Created Layer. % sdequery -N -t forum_view3 ArcSDE 10.1 Generic Query Tool Mon Feb 25 15:15:32 2013 ------------------------------------------------------------------------ 8000 rows found in 1.10 secs
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.