Spatial geometry object
Hi
As execute query that retrieving data from oracle 9i spatial database, please look at these error message:
java.sql.SQLException: ORA-13268: error obtaining dimension from USER_SDO_GEOM_METADATA
ORA-06512: at "MDSYS.MD", line 1723
ORA-06512: at "MDSYS.MDERR", line 8
ORA-06512: at "MDSYS.SDO_3GL", line 365
Cheers, Helen
Hi
please look at these:
SQL> select * from user_sdo_geom_metadata where table_name='CCB_TAB';
TABLE_NAME
COLUMN_NAME
DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
SRID
CCB_TAB
TIGER.SPATIALINDEXFUNCS_PAK.GET_POLYLINE_GEOMETRY(TLID)
SDO_DIM_ARRAY(SDO_DIM_ELEMENT('Lon', -180, 180, .005), SDO_DIM_ELEMENT('Lat', -9
0, 90, .005))
8265
TABLE_NAME
COLUMN_NAME
DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
SRID
Cheers, Helen
Similar Messages
-
Ora-13033 Invalid data in the sdo_elem_info_array in sdo geometry object
Hi,
I am getting this error when I am creating spatial index on geometry.
I suspect I have some problem with some rows of my geometry data. I have identified and fixed these problems so far. but I still getting error on spatial index creation.
-emptry Gtype in some rows
-wrong Gtype in some rows
Complete Error.
ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
ORA-13249: internal error in Spatial index: mdidxrbd
ORA-13249: iError in Spatial Index: index build fialed
ORA-13200: Internal error RowID:AAANZE/AAFAAALFaAAP..... in spatial indexing
ORA-13206: internal error [] while creating the spatial index
ORA-13033: Invalid data in the sdo_elem_info_array in sdo geometry object
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_10I", line 10
I have line data for this table and below is the sample data.
GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
SDO_GEOMETRY(2002, 2958, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
598520.994, 4837106.63, 598462.359, 4837164.63))
SDO_GEOMETRY(2002, 2958, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
599229.43, 4837127.13, 599089.675, 4837264.62))
SDO_GEOMETRY(2002, 2958, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
599280.002, 4837024.46, 599295.689, 4837048.09, 599296.21, 4837055.13, 599294.64
5, 4837062.43, 599229.43, 4837127.13))
SDO_GEOMETRY(2002, 2958, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
GEOMETRY(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO, SDO_ORDINATES)
599089.675, 4837264.62, 599028.567, 4837324.34))
SDO_GEOMETRY(2002, 2958, NULL, SDO_ELEM_INFO_ARRAY(1, 2, 1), SDO_ORDINATE_ARRAY(
595925.144, 4839146.42, 596002.765, 4839128.11, 596007.989, 4839126.85, 596013.5
22, 4839123.09, 596056.926, 4839089.74, 596100.769, 4839065.62, 596106.694, 4839
063.81, 596110.438, 4839064.27, 596115.548, 4839066.47, 596181.122, 4839135.22,
596183.623, 4839140.59, 596183.706, 4839145.03, 596183.319, 4839148.15, 596181.1
78, 4839152.64, 596174.794, 4839163.26, 596165.136, 4839174.75, 596143.191, 4839
194.57))
Please also note that I have correct dimension in "sdo user geom meta data" table and in my table.
Any help is greatly appreciated.
RoseHi Rose
If you take a look at the error message, you will find a line there that starts with ORA-13200
ORA-13200: Internal error RowID:AAANZE/AAFAAALFaAAP
This points to the ROW containing the geometry that triggers this error (described in the error message).
So if you could post the geometry of that specific row that might help. Use the following sql statement:
Select geometry from YOUR_TABLE_NAME WHERE ROWID = 'AAANZE/AAFAAALFaAAP';
tx
Luc -
I have installed UIM 7.2.2 on Oracle Linux 5.6_64 bit. There was no error message during the installation. But we are getting java.lang.ClassNotFoundException: oracle.spatial.geometry.JGeometry exception during runtime, specially while opening UIM home page in the browser.
Any suggestion?
Thanks,
MolayHi,
Please let me know the iPlanet service pack number that you are using.
Thanks
Ganesh .R
Developer Technical Support
Sun Microsystems
http://www.sun.com/developers/support -
Muliple Geometry Objects into a Single geometry
Hello,
Is it possible to store multiple geometry objects into one geometry. ie I am having an ARC and SHAPE geometry , I need to combine these geometries into one geometry .
So that the geomtry which I have created is a container for ARC and SHAPE.
Thanks in Advance
SenthilHi Senthil,
I am confused a little by your terminology, so I will try to answer as best I can.
A single geometry can be made from multiple elements.
The elements that make up the geometry can be all the same kind (points, lines, polygons).
The elements that make up the geometry can be heterogeneous (points and lines, lines and polygons, polygons and points, points lines and polygons). These are known as heterogeneous collections (sdo_gtype 2004 if 2 dimensional). -
hello,
I'm writing a servlet which should pass a Geometry object to an applet. The problem is that the applet
getParameter method doesn't seem to work with Geometry objects. Can anyone suggest anything please ?
Here's the code I was using in the applet access the Geometry object:
Geometry geom = (Geometry)getParameter("geomObject");
Thanks in advance,
Trish.What do you mean by this "PO number should open in workbench"?
Do you want the PO transaction to open? Or what is this "workbench"?
If you want to display the PO, you can try the following:
- Most likely you have the PO business object BUS2012 in the workflow container (check this in SWDD)
- Bind this object from the WF container to the user decision step/task (into the "_Adhoc_Objects" container element)
-Now you will have the PO object as an attachment in the work item, and when you click it in business workplace, the purchasing document should open
-Please make sure to start new workflow after your changes, since your changes will not have an effect to the old WF instances.
Regards,
Karri -
How to use OO4O to read & write geometry objects?
What is OO4O ?
Joel P�rez -
Spatial relations and geometry objects
hi guyes
is it possible to make a special relation between 2 geometries on the fly?
i.e:
select f.id from farms f,PUMP p where SDO_RELATE((SDO_GEOMETRY(3001, -1, SDO_POINT_TYPE(54.1506485714,23.02908,0), NULL, NULL)),f.geometry,'mask=ANYINTERSECTION')='TRUE' ;
i mean to give one of the geometries on the fly and the other from a database..
but the problem that the function SDO_RELATE works only for spatial indexed features
so is there any suggestions???
thanx
Tokahttp://download.oracle.com/docs/cd/B19306_01/appdev.102/b14255/sdo_objgeom.htm#i865398
-
WM and long table incl.spatial geometry?
Hi all,
KMS maintains the Danish Cadastre of land parcels, currently utilizing Oracle 8.1.7 in conjunction with a GIS system storing the graphics. In the near future the DataBase and all applications are to be rewritten in order incorporate all the graphics as SDO_geometry in Oracle Spatial, which we already utilize for other purposes, namely
vers.: (32 bit) Oracle9i Enterprise Edition Release 9.2.0.2.0 - Production on Sun/SunOS 5.8 (64 bit) = Solaris 2.8
I have read some introcuctionary papers about the Workspace Manager on the WM homepage and elsewhere as well as read parts of the "Oracle9i Application Developer's Guide - Workspace Manager Release 2 (9.2)". But I have no practical experience with Workspace Manager.
Could some of you people using Workspace Manager inform me whether it is feasible to version enable a cadastral table
1) holding of the order 25 million rows?
2) each row storing an SDO_geometry?
Does a version enabled table
3) respond slower than otherwise to queries and updates?
4) require lots more storage space?
I am aware that one of the reasons behind developing Oracle Workspace Manager is to handle Long Term Transactions. On the KMS Cadastre there are a lot of short transactions and a few long transactions (days, weeks even months), which rather often are in conflict, because they take place in same geograhical location. The update frequency will of course be low on the 25 million records, as annually only about 20% of all parcels are updated.
- Thanks in advance,
Jens Ole Jensen
Kort & MatrikelStyrelsen (WWW: http://www.kms.dk)
DanmarkCould some of you people using Workspace Manager inform me whether it is feasible to version enable a cadastral table
1) holding of the order 25 million rows?
2) each row storing an SDO_geometry?
Yes. You can version such a table.
Does a version enabled table
3) respond slower than otherwise to queries and updates?
There will be a performance impact due to versioning. But, it will not be very noticeable.
4) require lots more storage space?
No. Workspace Manager only versions rows that have been changed. In your case, since updates are fewer, as you mention, and since only changed rows are versioned, the growth in storage space should not be much.
Hope this helps. We will be glad to help in tuning and sizing.
regards
Arun -
SqlDeveloper 3.0 using Spatial Geometry Data
Hi All,
I am new to Oracle Spatial and have an SDO_GEOMETRY column on a table.
I have populated it successfully with SDO_GEOMETRY function call using the latitude and longitude values.
update GEO_DATA
set GEO_POINT = SDO_GEOMETRY(2001
,4269
,SDO_POINT_TYPE(x, y, NULL)
,NULL
,NULL)
where x and y are longitude and latitude values.
The value of GEO_POINT looks like this: MDSYS.SDO_GEOMETRY(2001,4269,MDSYS.SDO_POINT_TYPE(-71.65555556,48.56472222,NULL),NULL,NULL)
It is my understanding that prior to version3.0 of SQL Developer required the third part tool "GeoRaptor" and that SQL Developer 3.0 does not.
I would like to view my Spatial data using SQL Developer but do not know part of the tool I should be using to view it in a map view.
I tried the “Map View” from the “Tools” menu but do not understand how to use it.
I can view it in the table but not as true spatial data.
Any assistance would be greatly appreciated.
Best Regards,
GaryHi Darren,
The VARCHAR() FOR BIT DATA is a binary data type and Data Federator does not support binaries. But if in your case, it makes sense to map this column to a VARCHAR data type you can configure the DB2 connector to view this column as a VARCHAR.
Your column can be mapped explicitly to a data type of your choice using a property: castColumnType.
This property can be set updating the resource you selected when you registered you DB2 data source.
If the resource is "jdbc.db2", then:
1. Launch Data Federator Administrator
2. Click on "Administration" tab
3. Click on "Connector Settings"
4. Select the right resource: "jdbc.db2"
5. Click "Add a property"
6. Select "castColumnType"
7. Set its value to: VARCHAR() FOR BIT DATA=VARCHAR
8. Click on Ok
You should see this column as a VARCHAR.
Regards,
Mokrane
PS: For the target table issue, we have forwarded your mail to the Data Federator Designer team. -
Retrieve Coordinates from Spatial GEOM Object????
I have searched and searched and searched and I cannot find ANY documentation that tells you how to retrive polygon coordinates from an Oracle 9 database once you've placed them there.
You can perform all sorts of nifty functions that give you all sorts of data from Geometry compare algorythms...but you cant do a simple select statement that retrives your data and allows you to have it as a string!!
I have found reference to a GeometryFactory that was supported for jdbc in version 8, but as I am learning very rapidly about Oracle...you can't count on ANYTHING staying the same between releases...nor can you count on continued support.
Is there a function or stored procedure that I am missing that will let me retrieve coordinates? Or do I have to convince my company (who has already spent a LOT of money in converting from our PERFECTLY GOOD Sybase database to Oracle!) to purcase a third party application just so we can retrieve the data from the database?i dont know about the java sdoapi, but you could modify David's code to concatenate the coordinate values as in:
declare
l_sep varchar2(1);
coord_str varchar2(4000);
begin
for rec in (select * from parcels_sdo where rownum=1) loop
for i in 1..rec.shape.sdo_ordinates.count loop
coord_str := coord_str || l_sep || to_char(rec.shape.sdo_ordinates(i));
l_sep := ',';
end loop;
dbms_output.put_line(coord_str);
end loop;
end;
[email protected]> /
654500.14,4415779.16,654486.39,4416014.48,654054.68,4416005.11,654057.13,4416000.21,654058.22,4415986.75,654500.14,4415779.16
with a little tweaking, you can make this a function that can be called in a sql statement and get the resultset you want:
select get_ordinates(shape) from table_name where condition
hope this helps
--kassim -
Spatial(Geometry) Clustering
I'm trying to cluster some of my spatial and I'm not sure if I can do what I want.
I'm trying to cluster my data based on a spatial area. I can see that I can create clusters of all the data but what if I wanted to cluster only some of the data. That is generate clusters only for the pacific northwest instead of the whole world.
Alternatively, can I generate cluster based on distance? Group together nearby geometries into a single entry if the geometries are within a set distance. Can I also filter the results based on area?
MarkMark,
What is the purpose of your desire to cluster the data?
Are you looking for statistically significant correlations eg trade area analysis of geocoded in-store survey points?
Or are you simply looking for a method to spatially cluster data for physical organisation/storage and performance reasons?
Assuming you want to simply cluster data from an organisational perspective, have a look at this article of mine:
http://www.spatialdbadvisor.com/oracle_spatial_tips_tricks/138/spatial-sorting-of-data-via-morton-key
You have not provided any sample data so all I can do is suggest you look at the article and if it seems to implement what you want, try it against your data posting back to this thread any issues you have via real SQL.
regards
Simon -
Programatically Creating a SDO GEOMETRY Object and Finding its Centroid
Dear Gurus,
I have the following requirement.
List of Lat Long pairs will be loaded from a text file. Ex: List<String> list = new ArrayList<String>(); //Here String is lat value,long value_
Each list contains lat lon pairs of a polygon.
Similarly we have n number of lists.From each list, using the lat long pairs i need to find out the centroid. Can you please suggest me the best way of doing it.
** Note : we don't have any DB operations. Everything needs to be done using Java API.
Thanks & Regards,
Kiran KonjetiThis is more a mathematical question
This should be the solution http://local.wasp.uwa.edu.au/~pbourke/geometry/polyarea/
Timo -
Package oracle.spatial.geometry
hi guys,
do you know how to install the Oracle Spatial Java Class Library?
i'm using Jdeveloper 10g.
thank youHi Angelo,
Assuming that you have the jar files, you could add the spatial library to your project properties by right clicking the mouse on the project node, going to Project Properties, Libraries (under Profiles, Development), and then creating a new library name pointing to the spatial library files (jar files). -
Java 3D, putting a texture on a IndexedTriangleFanArray Geometry Object
Hello,
Could any body please help me to put a texture on my IndexedTriangleFanArrayObject? I'm able to put texture on Primitives but I don't know how to do it on the Geometry I designed here. I've tried several ways but it does never work correctly. My texture is a *.jpg file.
I did put into comments the part that didn't work here below.
package ignitionSwitch;
import javax.media.j3d.Appearance;
import javax.media.j3d.Geometry;
import javax.media.j3d.ImageComponent2D;
import javax.media.j3d.IndexedTriangleFanArray;
import javax.media.j3d.Material;
import javax.media.j3d.Shape3D;
import javax.media.j3d.Texture;
import javax.media.j3d.Texture2D;
import javax.media.j3d.TextureAttributes;
import javax.media.j3d.TextureUnitState;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Color3f;
import javax.vecmath.Point3f;
import javax.vecmath.TexCoord2f;
import obj3D.Lanceur;
import com.sun.j3d.utils.image.TextureLoader;
public class IgnitionSwitch extends TransformGroup {
TextureUnitState st;
Color3f white = new Color3f(1.0f, 1.0f, 1.0f);
Color3f black = new Color3f(0f, 0f, 0f);
float isFront = 0.0f;
float isback = -1.0f;
float r = 0.1f;
int n;
double a;
float x, y;
Lanceur l;
public IgnitionSwitch(Lanceur l) {
this.l = l;
this.setCapability(Shape3D.ALLOW_GEOMETRY_WRITE);
this.setCapability(Shape3D.ALLOW_APPEARANCE_WRITE);
this.setCapability(Shape3D.ALLOW_APPEARANCE_READ);
this.addChild(createShape());
Shape3D createShape(){
Shape3D ignistionSwitch = new Shape3D();
ignistionSwitch.setGeometry(ignitionSwitch());
ignistionSwitch.setAppearance(createApp());
return ignistionSwitch;
* Ignition Switch
private Geometry ignitionSwitch() {
IndexedTriangleFanArray ifa;
int N = 68;
int totalN = (N + 1);
Point3f coords[] = new Point3f[totalN]; // 69 Points
TexCoord2f[] textCoord = new TexCoord2f[totalN];
int[] indices = new int[totalN];
int[] texIndices = new int[totalN];
int[] stripCounts = new int[]{ totalN };
int n;
int indice;
double a;
float x, y;
coords[0 * (N + 1)] = new Point3f(0.0f, 0.0f, isFront);
textCoord[0] = new TexCoord2f(0.1f, 0.0f);
indices[0] = 0;
for (a = 0, n = 0; n < N; a = (2*Math.PI) / (N - 1) * ++n) {
if (a<= Math.PI){
r = 0.1f;
x = (float) (r * Math.cos(a));
y = (float) (r * Math.sin(a));
} else {
r = 0.07f;
x = (float) (r * Math.cos(a));
y = (float) (r * Math.sin(a));
indice = n+1;
coords[indice] = new Point3f(x, y, isFront);
indices[indice] = indice;
System.out.println("Indice :" + indice + " x: "+ x + " y: "+ y);
textCoord[indice] = new TexCoord2f(x, y);
texIndices[indice] = indice;
// coords[1 * (N + 1) + n + 1] = new Point3f(x, y, tbArriere);
// colors[1 * (N + 1) + n + 1] = black;
// textureCoords[0] = new Point3f(-0.1f, -0.1f, isFront);
// textureCoords[1] = new Point3f(0.1f, -0.1f, isFront);
// textureCoords[2] = new Point3f(0.1f, 0.1f, isFront);
// textureCoords[3] = new Point3f(-0.1f, 0.1f, isFront);
// texIndices[0] = 0;
// texIndices[1] = 1;
// texIndices[2] = 2;
// texIndices[3] = 3;
ifa = new IndexedTriangleFanArray(totalN, IndexedTriangleFanArray.COORDINATES | IndexedTriangleFanArray.TEXTURE_COORDINATE_2 | IndexedTriangleFanArray.COLOR_3, totalN, stripCounts);
ifa.setCoordinates(0, coords);
ifa.setCoordinateIndices(0, indices);
// ifa.setCoordinates(0, textureCoords);
ifa.setTextureCoordinateIndices(0, 0, texIndices);
ifa.setTextureCoordinates(0, 0, textCoord);
// tfa.setTextureCoordinate(0, new Point2f(0.0f, 1.0f));
// tfa.setTextureCoordinate(1, new Point2f(0.0f,0.0f));
// tfa.setTextureCoordinate(2, new Point2f( 1.0f,0.0f));
// tfa.setTextureCoordinate(3, new Point2f( 1.0f, 1.0f));
return ifa;
protected Appearance createApp() {
TextureLoader textLoad = new TextureLoader("c:/temp/ignitionSwitch.jpg", l);
ImageComponent2D textImage = textLoad.getImage();
Texture2D texture = new Texture2D(Texture2D.BASE_LEVEL, Texture.RGB,
textImage.getWidth(), textImage.getHeight());
texture.setImage(0, textImage);
texture.setBoundaryModeS(Texture2D.CLAMP);
texture.setBoundaryModeT(Texture2D.CLAMP);
Appearance app = new Appearance();
app.setTexture(texture);
app.setCapability(Appearance.ALLOW_TEXTURE_WRITE);
app.setCapability(Appearance.ALLOW_TEXTURE_READ);
app.setCapability(Appearance.ALLOW_TEXGEN_WRITE);
TextureAttributes textAttr = new TextureAttributes();
textAttr.setTextureMode(TextureAttributes.REPLACE);
app.setTextureAttributes(textAttr);
app.setMaterial(new Material());
return app;
} // endHi
I’m a Lightwave-Director 2004 user and swapping the
image texture on the shader works well for me. You can try add the
meshDeform Modifier to the model and check & save as a text
file the textureCoordinateList of the meshes before and after
swapping the texture`s image in the model, if both list
aren’t equal there’s some problem with the texture
coordinates on memory and could be resolved copying the texCoords
before swapping and pasted again after that. I remember some issue
about changing images on textures from imported W3D files on Dir 9,
it doesn’t happens on runtime created geometry or Director
2004.
Have a nice coding!!! -
Query about Function based geometry object problem
Hi, I got stuck with a query like this:
SELECT count(*)
FROM property_point WHERE
get_geom(v_start,v_end,t_start,t_end).get_gtype() = 1 --point
AND --get all the points within the rectangle (min,min, now,now)
SDO_RELATE(get_geom(v_start,v_end,t_start,t_end),
mdsys.sdo_geometry(2003,NULL,NULL,
mdsys.sdo_elem_info_array(1,1003,3),
mdsys.sdo_ordinate_array(
to_number(to_char(to_date('01-JAN-1992','DD-MON-YYYY'),'J')),
to_number(to_char(to_date('01-JAN-1992','DD-MON-YYYY'),'J')),
to_number(to_char(sysdate,'J')),
to_number(to_char(sysdate,'J')))),
'mask=INSIDE querytype=WINDOW') = 'TRUE'
OR
get_geom(v_start,v_end,t_start,t_end).get_gtype() = 2 --line
AND --get all the lines interact with transaction now
SDO_RELATE(get_geom(v_start,v_end,t_start,t_end),
mdsys.sdo_geometry(2002,NULL,NULL,
mdsys.sdo_elem_info_array(1,2,1),
mdsys.sdo_ordinate_array(
to_number(to_char(sysdate,'J')),
to_number(to_char(to_date('01-JAN-1992','DD-MON-YYYY'),'J')),
to_number(to_char(sysdate,'J')),
to_number(to_char(to_date('31-DEC-2008','DD-MON-YYYY'),'J')))),
'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'
AND --get all the lines interact with valid now
SDO_RELATE(get_geom(v_start,v_end,t_start,t_end),
mdsys.sdo_geometry(2002,NULL,NULL,
mdsys.sdo_elem_info_array(1,2,1),
mdsys.sdo_ordinate_array(
to_number(to_char(to_date('01-JAN-1992','DD-MON-YYYY'),'J')),
to_number(to_char(sysdate,'J')),
to_number(to_char(to_date('31-DEC-2008','DD-MON-YYYY'),'J')),
to_number(to_char(sysdate,'J')))),
'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'
OR
get_geom(v_start,v_end,t_start,t_end).get_gtype() = 3 --rectangle
AND --interact with transaction now
SDO_RELATE(get_geom(v_start,v_end,t_start,t_end),
mdsys.sdo_geometry(2002,NULL,NULL,
mdsys.sdo_elem_info_array(1,2,1),
mdsys.sdo_ordinate_array(
to_number(to_char(sysdate,'J')),
to_number(to_char(to_date('01-JAN-1992','DD-MON-YYYY'),'J')),
to_number(to_char(sysdate,'J')),
to_number(to_char(to_date('31-DEC-2008','DD-MON-YYYY'),'J')))),
'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'
AND --interact with valid now
SDO_RELATE(get_geom(v_start,v_end,t_start,t_end),
mdsys.sdo_geometry(2002,NULL,NULL,
mdsys.sdo_elem_info_array(1,2,1),
mdsys.sdo_ordinate_array(
to_number(to_char(to_date('01-JAN-1992','DD-MON-YYYY'),'J')),
to_number(to_char(sysdate,'J')),
to_number(to_char(to_date('31-DEC-2008','DD-MON-YYYY'),'J')),
to_number(to_char(sysdate,'J')))),
'mask=ANYINTERACT querytype=WINDOW') = 'TRUE'
which returns 0 rows.
But if only use the first condition, say
SELECT count(*)
FROM property_point WHERE
get_geom(v_start,v_end,t_start,t_end).get_gtype() = 1 --point
AND --get all the points within the rectangle (min,min, now,now)
SDO_RELATE(get_geom(v_start,v_end,t_start,t_end),
mdsys.sdo_geometry(2003,NULL,NULL,
mdsys.sdo_elem_info_array(1,1003,3),
mdsys.sdo_ordinate_array(
to_number(to_char(to_date('01-JAN-1992','DD-MON-YYYY'),'J')),
to_number(to_char(to_date('01-JAN-1992','DD-MON-YYYY'),'J')),
to_number(to_char(sysdate,'J')),
to_number(to_char(sysdate,'J')))),
'mask=INSIDE querytype=WINDOW') = 'TRUE'
will return 688 rows.
besides, 2nd and 3rd condition will return 0 and 5 rows.
Why it became 0 when putting them together?
This is the structure of table property_point and function get_geom
and I am using 10.1.0.3 version
CREATE TABLE property_point (
SALES_ID number,
AGENT_ID number,
SALES_PRICE number,
LOCATION MDSYS.SDO_GEOMETRY,
V_START date,
V_END date,
T_START date,
T_END date);
CREATE OR REPLACE FUNCTION get_geom(v_start in date, v_end in date, t_start in date, t_end in date)
return MDSYS.SDO_GEOMETRY deterministic is
I wonder if I missed anything here?I have not used this myself, but check if this works for you.
RSPO_DOWNLOAD_SPOOLJOB
Regards,
Ravi
Note : Please mark the helpful answers
Maybe you are looking for
-
Cannot change dock size after Yosemite upgrade
Ever since upgrading to Yosemite, my dock is large and seemingly fixed in size at the bottom of my screen. I used to be able to enter System Preferences and change the dock size with the slider. When I do the same thing now, the slider moves but th
-
Compressor 3.5 hangs on creating DVD
All I want to do is burn a simple standard definition viewing DVD. No matter if I use *"Share - Burn DVD"* in Final Cut Pro 7 or the new *"Burn DVD"* in Compressor 3.5, the encoding/processing goes almost all the way through and then *hangs forever*
-
Hi, I am deploying a simple web application on OC4J which comes with 9iAS infraStructure installation. I changed server.xml, application.xml, default-web-site.xml & application.xml in the META-INF folder of my app but i couldn't access the appln afte
-
Why is the iphone 4s 199$ but in the UK £499?
Why is the iPhone 4s 199$ but in the UK £499? They say nothing about contracts involved and in the news paper "I" it states that the iPhone 4s can be sold for as little as £99. How do you justify this? this was stated in the news paper dated weds 6t
-
How can I revert back to Mavericks?
I use my MacBook Air for work. After upgrading to Yosemite, I cannot receive email from my company's Exchanger server (I can send email from it.. and my iCloud email seems ok). I've tried disabling/enabling the account, I've tried setting it offline,