?
Solved

Need help doing a dissolve in Oracle

Posted on 2011-02-22
4
Medium Priority
?
1,151 Views
Last Modified: 2013-11-11
I am trying to dissolve a large number of polygons. In ArcGIS the operation simply was not practical so I am trying to do it in Oracle.  For my initial test I am trying this:

 SELECT TRANSTECH,MAXADDOWN,MAXADUP,HOCONAME,HOCONUM,SDO_AGGR_UNION(
  MDSYS.SDOAGGRTYPE(c.shape, 0.005))SHAPE
  FROM ADDRESS_EXTRACT_FC_BUFFER_RI c
  where c.objectid < 101
group by TRANSTECH,MAXADDOWN,MAXADUP,HOCONAME,HOCONUM,SHAPE;

But I am getting the following error:

ORA-22901: cannot compare VARRAY or LOB attributes of an object type
22901. 00000 -  "cannot compare nested table or VARRAY or LOB attributes of an object type"
*Cause:    Comparison of nested table or VARRAY or LOB attributes of an
           object type was attempted in the absence of a MAP or ORDER
           method.
*Action:   define a MAP or ORDER method for the object type.
Error at Line: 12 Column: 54

If I do the aggregate function on the shape column only  it works successfully.  I tried adding an ordered hint but no sucess either.

Any Ideas will be greatly appreciated.
Thanks,
0
Comment
Question by:OR1
2 Comments
 

Accepted Solution

by:
OR1 earned 0 total points
ID: 34954963
I got around the error I was having.  The statement runs without errors not and it gives me the same number of features I would expect from doing it with ArcGIS.  The problem I have now is that it is very slow. It took 1 hour to run on 3335 polygons. If there something I am doing wrong?

select TRANSTECH,MAXADDOWN,MAXADUP,HOCONUM,HOCONAME,SDO_AGGR_UNION(
  MDSYS.SDOAGGRTYPE(c.shape, 0.005))SHAPE
   FROM ADDRESS_EXTRACT_FC_BUFFER_RI c
  group by TRANSTECH,MAXADDOWN,MAXADUP,HOCONUM,HOCONAME;


Also I will have to convert this into something I can export to a new  geodatabase  feature class.  I was thinking about selecting the results of the query into a a table and register it later as a feature class. Does  that sound like the right approach?

Thanks,
0
 
LVL 5

Assisted Solution

by:mrfixit22
mrfixit22 earned 2000 total points
ID: 34985603
you can use http://ss64.com/ora/syntax.html exp.  I would like to have the shape file to work with.
If you can let me know and I will give your a place to send it.
0

Featured Post

Configuration Guide and Best Practices

Read the guide to learn how to orchestrate Data ONTAP, create application-consistent backups and enable fast recovery from NetApp storage snapshots. Version 9.5 also contains performance and scalability enhancements to meet the needs of the largest enterprise environments.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
Introduction This article is designed to assist GIS (Geographic Information System) and GPS (Global Positioning System) developers using ESRI ArcGIS and other spatial information management systems.   For the uninitiated the concept of projectio…
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question