Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Need help doing a dissolve in Oracle

Posted on 2011-02-22
4
Medium Priority
?
1,116 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
This video shows how to copy a database user from one database to another user DBMS_METADATA.  It also shows how to copy a user's permissions and discusses password hash differences between Oracle 10g and 11g.

636 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