Select to view content in your preferred language

Oracle Query Layer not Displaying

3772
3
05-09-2013 06:14 AM
CrystalCarreon
Emerging Contributor
I am having an issue with an Oracle query layer using SDO_Geometry not displaying. I have created a polygon layer/table within oracle, registered the table with the SDO_GEOM_METADATA and created a spatial index...twice. Unfortunately, I am still unable to see the polygons display in an ArcMap query layer. I am able to bring the data into arcmap, open the table, select and identify it and actually see the shape flash, so I know it is there. Also, I can export a shapefile and the shapes render perfectly fine, but for some reason they will not display from the query layer directly. I have checked over the index parameters in the registry and nothing seems off, see: INSERT INTO all_sdo_geom_metadata (owner, table_name, column_name, diminfo, srid) VALUES ('DB', 'TABLE', 'GEOM', MDSYS.sdo_dim_array (MDSYS.sdo_dim_element ('X', -180,180,5.0e-10), MDSYS.sdo_dim_element ('Y',-90,90,5.0e-10)),4326); index creation: CREATE INDEX wm_dim_table_si ON TABLE (geom) INDEXTYPE IS MDSYS.spatial_index PARAMETERS ('tablespace=DB_INDEX03 layer_gtype=MULTIPOLYGON');

I've done everything, others have prescribed but I still can't view the data directly...Any hints as to what else I should try or should be looking at? Any help is greatly appreciated. My nexts thoughts are that I should check and validate the geometry on the polygons. Also, there are about 30,000 polygons in this table, is there a threshold in armap for query layers? It wouldn't seem so, however I am at a loss right now...
0 Kudos
3 Replies
MichaelVolz
Esteemed Contributor
I believe a Query Layer requires ST_Geometry type.
0 Kudos
MikeBranchini
Deactivated User
Have you tried validating the geometry in oracle?  I'm not sure the SQL to do it off my head, but for instance, if you use SQL Developer, right click on the table and choose Spatial->Validate Geometry using Tolerance.  I've had issues with SDO Geometry drawing, and that has fixed the issue some times.
0 Kudos
VinceAngelo
Esri Esteemed Contributor
Your SDO metadata is formed incorrectly.  The SRID should not be 4326 (use 8307 for WGS_1984), and the coordinate resolution should not be in angstroms (use 0.05 meters). -V
0 Kudos