search
top

Ricerca oggetti geometrici complessi

In una tabella oracle contenente dati spaziali può capitare che alcuni oggetti siano non correttamente digitalizzati e presentino parti complesse.

Al fine di ricercare tali oggetti è utilie poter accedere ai dati presenti nella struttura geospaziale della tabella oracle, in particolare nella proprietà sdo_elem_info

che contiene le informazioni relative alla struttura geometrica le cui coordinate sono specificate nel campo sdo_ordinates, per fare qesta ricerca ho utilizzato la seguente query:

 

select 
T.ID (select s.column_value from table(t.geometry.sdo_elem_info) s where column_value>1000 AND ROWNUM=1 ) 
from area_puc t 
where (select s.column_value from table(t.geometry.sdo_elem_info) s where column_value>1000 AND ROWNUM=1 )>1003

 

 


Leave a Reply

Your email address will not be published. Required fields are marked *

* Copy This Password *

* Type Or Paste Password Here *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This site is helping to EcoPlus with the captcha installed.


top