?
Solved

Need help doing a dissolve in Oracle

Posted on 2011-02-22
4
Medium Priority
?
1,088 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Have you ever had to make fundamental changes to a table in Oracle, but haven't been able to get any downtime?  I'm talking things like: * Dropping columns * Shrinking allocated space * Removing chained blocks and restoring the PCTFREE * Re-or…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
Suggested Courses

770 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