get all the vertices of a geometry of polygons

I tried to use sdo_util. GetVertices to retrieve all vertices of a geometry column. Some of the geometry of gType 2007 which contains several elements. GetVertices function seems to give the vertices of the first item only. How can I get all vertices then?

Published by: 937152 on May 29, 2012 11:56

Why you all NULL values in your sdo_elem_info_array and sdo_ordinate_array? It's very very bad - see http://docs.oracle.com/cd/E11882_01/server.112/e17766/e12700.htm#sthref3897

Despite this, I can get all the 'tops' return of the geometry of your sample - notice that I changed your SELECT a little statement.

jot_test@JOHNOT> create table assessment_parcel_merged (
  2  id number,
  3  geometry sdo_geometry);

Table created.

jot_test@JOHNOT>
jot_test@JOHNOT> insert into assessment_parcel_merged
  2  (id, geometry)
  3  values
  4  (506833,
  5  mdsys.sdo_geometry(2007,82232,null,
  6  mdsys.sdo_elem_info_array(1,1003,1,13,1003,1,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null),
  7  mdsys.sdo_ordinate_array(632941.3695,5536245.0144,632939.95209944,5536241.97593627,633251.020958124,5536096.38289373,633369.443364573,5536040.95632826,633371.0274,5536043.9168,632941.3695,5536245.0144,631892.0616,5536736.1337,631892.8842984,5536702.62493823,632873.47478553,5536243.66593412,632884.740084103,5536267.81696815,632886.1576,5536270.8559,631892.0616,5536736.1337,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null,null)));

1 row created.

jot_test@JOHNOT>
jot_test@JOHNOT> select sdo_geom.validate_geometry_with_context(geometry, 0.0005) as geom_validate
  2  from assessment_parcel_merged;

GEOM_VALIDATE
------------------------------------------------------------------------------------------------------------------------
13033

1 row selected.

jot_test@JOHNOT>
jot_test@JOHNOT> set null null
jot_test@JOHNOT> select o.x, o.y
  2  from assessment_parcel_merged a, table(sdo_util.getvertices(a.geometry)) o
  3  where a.id = 506833;

         X          Y
---------- ----------
 632941.37 5536245.01
632939.952 5536241.98
633251.021 5536096.38
633369.443 5536040.96
633371.027 5536043.92
 632941.37 5536245.01
631892.062 5536736.13
631892.884 5536702.62
632873.475 5536243.67
 632884.74 5536267.82
632886.158 5536270.86
631892.062 5536736.13
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null
null       null

50 rows selected.

John

Tags: Database

Similar Questions

Maybe you are looking for

  • Satellite P300D - 21K - Sound completely stopped working

    Hello I used my P300D - 21K with no problems for a few weeks now. But today the sound completely stopped working on the laptop. It seems that there is laptop thinks it is running through it, like the sound level meter, the exit bar is pulsated up and

  • Satellite M50-266 - strange scratches on the screen

    Hey,. After 4 weeks of inactivity, I turned on my Satellite M50 - 226 (bought in May 2006) and saw some strange scratches on the screen. I have a built-in ATI Radeon X 600. Already I have updated all drivers, while ATI Catalyst does not recognize the

  • Start Impossible load or run a file specified in the registry.

    On startup, I get a message indicating "Impossible load or run a file specified in the registry" and "make sure that the file exists on your computer or remove the registry." How can I access the registry to delete this file? File is a file to user\a

  • Lost my webworks Simulator!

    Hey all,. I use the plug-in for visual studio, and for the last 3 weeks the Simulator has worked very well.  Now I got problems to debug a widget and the Simulator does not.  The cause was using underscore in the name. But now the charges on my bar S

  • IllegalStateException uncaught

    I want to add previous and before the button for the command of the "BrowserField" in my application. But often it gives ' JVM error 104: eception IllegalStateException "for education"browserFieldHistory.goBack ()"and"browserFieldHistory.goForward ()