GeoRaster Loader
Hello everybody,
I've been spending a long time with this problem. I started use GeoRaster Loader - that demo tool provided by Oracle to load georaster objects into the bank - with a bank 10g and a client 9i. Because a problem with a program I changed the client to 10g and after this I couldn't run the GeoRaster Loader more.
The program needs a lot of files in many locations, so I did a .bat to set the classpath and the parameters. The .bat is like this:
set meuora=E:\oracle\product\10.2.0\db_1
set pacotes=%meuora%\ord\jlib\jai_codec.jar;%meuora%\ord\jlib\jai_core.jar;%meuora%\jdbc\lib\classes12.jar;%meuora%\jdbc\lib\ojdbc14.jar;%meuora%\rdbms\jlib\xdb.jar;%meuora%\lib\xmlparserv2.jar;%meuora%\lib\xmlcomp.jar;%meuora%\lib\xschema.jar;%meuora%\jlib\jewt4.jar;%meuora%\md\lib\sdoapi.jar;%meuora%\md\lib\sdoutl.jar;%meuora%\md\demo\georaster\java\georaster_tools.jar;%meuora%\jdbc\lib\nls_charset12.jar
java -Xmx128M -cp %pacotes% GeoRasterLoader ldt orcl 1521 SYS XXXXX thin 32 T GEO.MAPAS IMAGEM "blocking=true blocksize=(256,256,1)" "imagem1.tif,1,GEO.mrdt_1,imagem1.tfw"
When I run this bath file I receive this answer:
F:\Georaster\Scripts>java -Xmx128M -cp E:\oracle\product\10.2.0\db_1\ord\jlib\ja
i_codec.jar;E:\oracle\product\10.2.0\db_1\ord\jlib\jai_core.jar;E:\oracle\produc
t\10.2.0\db_1\jdbc\lib\classes12.jar;E:\oracle\product\10.2.0\db_1\jdbc\lib\ojdb
c14.jar;E:\oracle\product\10.2.0\db_1\rdbms\jlib\xdb.jar;E:\oracle\product\10.2.
0\db_1\lib\xmlparserv2.jar;E:\oracle\product\10.2.0\db_1\lib\xmlcomp.jar;E:\orac
le\product\10.2.0\db_1\lib\xschema.jar;E:\oracle\product\10.2.0\db_1\jlib\jewt4.
jar;E:\oracle\product\10.2.0\db_1\md\lib\sdoapi.jar;E:\oracle\product\10.2.0\db_
1\md\lib\sdoutl.jar;E:\oracle\product\10.2.0\db_1\md\demo\georaster\java\georast
er_tools.jar;E:\oracle\product\10.2.0\db_1\jdbc\lib\nls_charset12.jar GeoRasterL
oader ldt orcl 1521 SYS xxxxx thin 32 T GEO.MAPAS IMAGEM "blocking=true blocksi
ze=(256,256,1)" "imagem1.tif,1,GEO.mrdt_1,imagem1.tfw"
Exception in thread "main" java.lang.NoClassDefFoundError: GeoRasterLoader
Caused by: java.lang.ClassNotFoundException: GeoRasterLoader
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Does somebody help me to resolve this problem? It seems to be a problem with classpath...
Thanks,
Leandro Lima
try this:
F:\Georaster\Scripts>java -Xmx128M -cp E:\oracle\product\10.2.0\db_1\ord\jlib\ja
i_codec.jar;E:\oracle\product\10.2.0\db_1\ord\jlib\jai_core.jar;E:\oracle\produc
t\10.2.0\db_1\jdbc\lib\classes12.jar;E:\oracle\product\10.2.0\db_1\jdbc\lib\ojdb
c14.jar;E:\oracle\product\10.2.0\db_1\rdbms\jlib\xdb.jar;E:\oracle\product\10.2.
0\db_1\lib\xmlparserv2.jar;E:\oracle\product\10.2.0\db_1\lib\xmlcomp.jar;E:\orac
le\product\10.2.0\db_1\lib\xschema.jar;E:\oracle\product\10.2.0\db_1\jlib\jewt4.
jar;E:\oracle\product\10.2.0\db_1\md\lib\sdoapi.jar;E:\oracle\product\10.2.0\db_
1\md\lib\sdoutl.jar;E:\oracle\product\10.2.0\db_1\md\demo\georaster\java\georast
er_tools.jar;E:\oracle\product\10.2.0\db_1\jdbc\lib\nls_charset12.jar oracle.spatial.georaster.tools.GeoRasterLoader ldt orcl 1521 SYS xxxxx thin 32 T GEO.MAPAS IMAGEM "blocking=true blocksi
ze=(256,256,1)" "imagem1.tif,1,GEO.mrdt_1,imagem1.tfw"
Similar Messages
-
Hey all, I have a version of an Oracle GeoRaster Loader. I'm not sure where I downloaded it from, whether it's the newest version and I've no documentation. I can't find any of this on OTN so my question is, is there a zip file available with the software/code available anywhere? I have read that it's supposed to be available with the companion CD but when I started up the 10.2.0.1. I couldnt find any reference to it.. Any suggestions would be greatly appreciated.. Thanks
PaulPaul, please select the second option: Oracle Database 10G Products.
note, all instructions (the README file) regarding the GeoRaster client-side tools (loader, exporter and viewer) and the executable must be installed from the Companion CD. The user manual have very limited decriptions. in addition, there are a lot of improvements in the 10gR2 release (see the 10gR2 "What's New").
regards
jeffrey -
I user oracle 11g and create business table with a georaster column, rdt table and insert a georaster with init function, now I load a tiff image into it, but I got error, such as
Error occurred. Please refer to oracle error code ORA-13403;Violated constraint:
raster data table CITY_IMAGES_RDT does not have a unique name across all schema
s
any suggestion are welcome!
Edited by: user6307561 on 2009-6-1 上午7:16Thanks a lot, qxie!
I search the database, and use the rdt table unique funcition of georaster, it shows that my rdt table is unique.
but the system table have now the record of the rdt, so I use the
EXECUTE sdo_geor_admin.registerGeoRasterObjects;
after I use it, I can load the image into database successfully!
thanks! -
Load raster data to georaster table error
I use the follow script to load raster data, but get some error,:
---create georaster table
CREATE TABLE city_images (image_id NUMBER, image_description VARCHAR2(50), image MDSYS.SDO_GEORASTER);
--create tablespace
create tablespace rdt_tbs_1 datafile 'D:\product\11.1.0\db\oradata\rdt\rdt_data_01.dbf' size 256m uniform size 4M;
--create RDT table
CREATE TABLE city_images_rdt OF MDSYS.SDO_RASTER
(PRIMARY KEY (rasterID, pyramidLevel, bandBlockNumber,
rowBlockNumber, columnBlockNumber))
TABLESPACE rdt_tbs_1 NOLOGGING
LOB(rasterBlock) STORE AS lobseg
CHUNK 32768
CACHE READS
NOLOGGING
PCTVERSION 0
STORAGE (PCTINCREASE 0)
--赋予访问文件的权限
call dbms_java.grant_permission('MDSYS','SYS:java.io.FilePermission', 'D:\work\raster\image2\Extract_20.img', 'read' );
call dbms_java.grant_permission('PUBLIC','SYS:java.io.FilePermission', 'D:\work\raster\image2\Extract_20.img', 'read' );
--insert data
INSERT INTO city_images VALUES(1,'IMG',SDO_GEOR.INIT('city_images_rdt'));
--load data
DECLARE
geor MDSYS.SDO_GEORASTER;
BEGIN
INSERT INTO city_images values( 1, 'IMG', MDSYS.sdo_geor.init('city_images_rdt') );
SELECT image INTO geor FROM city_images WHERE image_id = 1 FOR UPDATE;
MDSYS.sdo_geor.importFrom(geor,NULL, 'IMG', 'file', 'D:\work\raster\image2\Extract_20.img');
UPDATE city_images SET image = geor WHERE image_id = 1;
END;
I use the system user, when I load data. It give me some error like this:ORA-13464: load GeoRaster data error: - Unable to render RenderedOp for this operation. ORA-06512: 在 "MDSYS.MD", line 1723 ORA-06512: 在 "MDSYS.MDERR", line 17 ORA-06512: 在 "MDSYS.SDO_GEOR", line 5006 ORA-06512: 在 line 5Extract_20.img file has an extension IMG and thus must be in the ERDAS Imagine file format. The GeoRaster loader doesn't support this format and that's why you saw the error mesg. To load img files, you have to use third-party ETL tool for GeoRaster, or otherwise follow the instructions in section 3.3.1 in the georaster 11g developer's guide.
with your scripts, a few recommendations:
1. add "primary key" to you image_id definition (... image_id number PRIMARY KEY ...) when you define city_images table.
you have two identical INSERT stmts, which should have led to a different error mesg because you have a select stmt before the loading stmt.
2. when you create the tablespace for RDTs or add datafile to a tablespace, use "autoextend", for example,
create tablespace tbs_gr1 datafile 't_gr1_1.f'
size 300M reuse autoextend on next 20M;
3. always create user(s) for all such databases, instead of using SYSTEM user.
regards,
jeffrey xie -
MapBuilder Error:Can not find a GeoRaster object with specified rdt and rid
Hello,
I can't GeoRaster data in the preview of the MapBuilder and MapViewer. The GeoRasterViewer shows the Raster images without problems.
MapBuilders error message:
19.11.2008 13:07:11 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
SCHWERWIEGEND: GeoRaster load Exception:
oracle.spatial.georaster.GeoRasterException: Can not find a GeoRaster object with specified rdt and rid.
at oracle.spatial.georaster.JGeoRaster.validateConn(JGeoRaster.java:608)
at oracle.sdovis.theme.GeoRasterThemeProducer$JGeoRasterGTP.<init>(GeoRasterThemeProducer.java:2037)
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:694)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:75)
19.11.2008 13:07:11 oracle.sdovis.LoadThemeData run
SCHWERWIEGEND: Exception fetching data for theme RAS_DGK.
Message:GeoRaster load Exception: Can not find a GeoRaster object with specified rdt and rid.
Description:
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:1109)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:75)
19.11.2008 13:07:11 oracle.sdovis.MapMaker buildDataMBR
WARNUNG: null MBR resulted from buildDataMBR.
The errror message of MapViewer is nearly the same with some more informations about the spatial query and the coordintes of the query window. If I run that spatial query in the sqldeveloper it returns a result!
I did following stebs:
- saved a tiff-Image in a GeoRaster table with pyramid an tiled images.
- checked the sdo_geom_metadata --> they are correct
- checked the sdo_georaster object for the rdt table name and rasterid --> they are correct
- checked the rdt table --> objects with that rid are saved
- checked the mdsys.sdo_geor_sysdata table --> entry is correct
- validate the geraster with the sdo_geor.validategeoraster function --> object is valid
- updated the spatial extend of the image and try again the preview functio--> the same error
The databse server is a virtual Linux server with Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit.
The web server is a Window 2003 R2 Server with a weblogic server and mapviewer patch 5 (Ver1033p5_B081010).
For a test I did the same (the same table script, the same raster data, the same import method) on a developer pc (WinXP Pro SP2) with Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 (32bit) the same mapbuilder version but with the MapViewer QuickStartKid and it works fine!!!
Has anyone an idea?
Greeting,
Cord
Edited by: Corti on Nov 19, 2008 2:14 PMHi Joao,
Thanks so far.
I'm previewing a GeoRaster theme. I created it with the MapBuilder GeoRaster wizard. The theme difinition is (out of the export file):
RAS_DGK|
null|
RAS_DGK|
GEORASTER|
<?xml version="1.0" standalone="yes"?>
<styling_rules theme_type="georaster">
</styling_rules>|
(GeoRaster table name is "RAS_DGK", theme name is also "RAS_DGK")
I get following log information:
preview without a coordinate or scale:
MapBuilder Error (as pop up): MAPVIEWER 01005: no spatial data to render
log file:
20.11.2008 10:17:27 oracle.sdovis.LoadThemeData run
FEINER: LoadThemeData running thread: Thread-43
20.11.2008 10:17:27 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FEINER: Original query window: -Infinity,-Infinity,NaN,NaN
20.11.2008 10:17:27 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FEINER: [Query] select grt.GEORASTER, grt.GEORASTER.metadata.getClobVal() from RAS_DGK grt
20.11.2008 10:17:27 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FEINER: Fetch size: 100
20.11.2008 10:17:27 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
SCHWERWIEGEND: GeoRaster load Exception:
oracle.spatial.georaster.GeoRasterException: Can not find a GeoRaster object with specified rdt and rid.
at oracle.spatial.georaster.JGeoRaster.validateConn(JGeoRaster.java:608)
at oracle.sdovis.theme.GeoRasterThemeProducer$JGeoRasterGTP.<init>(GeoRasterThemeProducer.java:2037)
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:694)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:75)
20.11.2008 10:17:27 oracle.sdovis.LoadThemeData run
SCHWERWIEGEND: Exception fetching data for theme RAS_DGK.
Message:GeoRaster load Exception: Can not find a GeoRaster object with specified rdt and rid.
Description:
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:1109)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:75)
20.11.2008 10:17:27 oracle.sdovis.MapMaker buildDataMBR
WARNUNG: null MBR resulted from buildDataMBR.
preview with a center coordinate of the image and a scale:
20.11.2008 10:18:43 oracle.sdovis.SRS getOptimalQueryWindow
AM FEINSTEN: *** isGeodetic=false, unit=METER
20.11.2008 10:18:43 oracle.sdovis.LoadThemeData run
FEINER: LoadThemeData running thread: Thread-45
20.11.2008 10:18:43 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FEINER: Original query window: 2550045.7746478873,5608500.0,2551954.2253521127,5609500.0
20.11.2008 10:18:43 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FEINER: [Query] select grt.GEORASTER, grt.GEORASTER.metadata.getClobVal() from RAS_DGK grt WHERE MDSYS.SDO_FILTER(grt.GEORASTER.spatialextent, MDSYS.SDO_GEOMETRY(2003, 31466, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?,?,?,?)), 'querytype=WINDOW') = 'TRUE'
20.11.2008 10:18:43 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FEINER: Fetch size: 100
20.11.2008 10:18:43 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
SCHWERWIEGEND: GeoRaster load Exception:
oracle.spatial.georaster.GeoRasterException: Can not find a GeoRaster object with specified rdt and rid.
at oracle.spatial.georaster.JGeoRaster.validateConn(JGeoRaster.java:608)
at oracle.sdovis.theme.GeoRasterThemeProducer$JGeoRasterGTP.<init>(GeoRasterThemeProducer.java:2037)
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:694)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:75)
20.11.2008 10:18:43 oracle.sdovis.LoadThemeData run
SCHWERWIEGEND: Exception fetching data for theme RAS_DGK.
Message:GeoRaster load Exception: Can not find a GeoRaster object with specified rdt and rid.
Description:
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:1109)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:75)
20.11.2008 10:18:43 oracle.sdovis.DBMapMaker renderEm
INFO: **** time spent on loading features: 234ms.
20.11.2008 10:18:43 oracle.sdovis.RenderingEngine prepareForRendering
AM FEINSTEN: xfm: 0.284 0.0 0.0 -0.284 -724212.9999999999 1593097.9999999998
20.11.2008 10:18:43 oracle.sdovis.ImageRenderer renderGeoRasterTheme
WARNUNG: GeoRaster theme RAS_DGK has no rendered images.
20.11.2008 10:18:43 oracle.sdovis.VectorRenderer render
FEINER: time to render theme RAS_DGK with 0 styled features: 0ms
20.11.2008 10:18:43 oracle.sdovis.DBMapMaker renderEm
INFO: **** time spent on rendering: 16ms
If I run the sql statement in the log file, it returns a result.
select grt.georid, grt.GEORASTER, grt.GEORASTER.metadata.getClobVal()
from ras_dgk grt
WHERE MDSYS.SDO_FILTER(grt.GEORASTER.spatialextent,
MDSYS.SDO_GEOMETRY(2003, 31466, NULL,
MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3),
MDSYS.SDO_ORDINATE_ARRAY(2550045.7746478873,5608500.0,2551954.2253521127,5609500.0)), 'querytype=WINDOW') = 'TRUE';
GEORID
2
GEORASTER
MDSYS.SDO_GEORASTER(20001,MDSYS.SDO_GEOMETRY(2003,31466,null,MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3),MDSYS.SDO_ORDINATE_ARRAY(2550000,5608000,2552000,5610000)),RDT_RAS_DGK,522,oracle.xdb.XMLType@194a7ec)
GEORASTER.metadata.getClobVal()
<georasterMetadata xmlns="http://xmlns.oracle.com/spatial/georaster">
<objectInfo>
<rasterType>20001</rasterType>
<isBlank>false</isBlank>
<defaultRed>1</defaultRed>
<defaultGreen>1</defaultGreen>
<defaultBlue>1</defaultBlue>
</objectInfo>
<rasterInfo>
<cellRepresentation>UNDEFINED</cellRepresentation>
<cellDepth>8BIT_U</cellDepth>
<totalDimensions>2</totalDimensions>
<dimensionSize type="ROW">
<size>6299</size>
</dimensionSize>
<dimensionSize type="COLUMN">
<size>6299</size>
</dimensionSize>
<ULTCoordinate>
<row>0</row>
<column>0</column>
</ULTCoordinate>
<blocking>
<type>REGULAR</type>
<totalRowBlocks>4</totalRowBlocks>
<totalColumnBlocks>4</totalColumnBlocks>
<rowBlockSize>2048</rowBlockSize>
<columnBlockSize>2048</columnBlockSize>
</blocking>
<interleaving>BSQ</interleaving>
<pyramid>
<type>DECREASE</type>
<resampling>NN</resampling>
<maxLevel>6</maxLevel>
</pyramid>
<compression>
<type>NONE</type>
</compression>
</rasterInfo>
<spatialReferenceInfo>
<isReferenced>true</isReferenced>
<SRID>31466</SRID>
<modelCoordinateLocation>UPPERLEFT</modelCoordinateLocation>
<modelType>FunctionalFitting</modelType>
<polynomialModel rowOff="0" columnOff="0" xOff="0" yOff="0" zOff="0" rowScale="1" columnScale="1" xScale="1" yScale="1" zScale="1">
<pPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>17668678.695368 0 -3.14949718277477</polynomialCoefficients>
</pPolynomial>
<qPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1</polynomialCoefficients>
</qPolynomial>
<rPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>-8031218.31607409 3.14949718277477 0</polynomialCoefficients>
</rPolynomial>
<sPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1</polynomialCoefficients>
</sPolynomial>
</polynomialModel>
</spatialReferenceInfo>
<layerInfo>
<layerDimension>BAND</layerDimension>
<subLayer>
<layerNumber>1</layerNumber>
<layerDimensionOrdinate>0</layerDimensionOrdinate>
<layerID>1</layerID>
<colorMap>
<colors>
<cell value="0" blue="255" red="255" green="255" alpha="255"/>
<cell value="1" blue="0" red="0" green="0" alpha="255"/>
</colors>
</colorMap>
</subLayer>
</layerInfo>
</georasterMetadata>
I checked also the content of rdt table and it contains entries with that raster id (= 522).
Finally the log file when I use the preview directly on the GeoRaster table without a theme:
20.11.2008 10:23:46 oracle.sdovis.LoadThemeData run
FEINER: LoadThemeData running thread: Thread-55
20.11.2008 10:23:46 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FEINER: Original query window: -Infinity,-Infinity,NaN,NaN
20.11.2008 10:23:46 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FEINER: [Query] select grt.GEORASTER from RAS_DGK grt where grt.GEORASTER.rasterid = ? and grt.GEORASTER.rasterdatatable = ?
20.11.2008 10:23:46 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FEINER: Fetch size: 100
20.11.2008 10:23:46 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
SCHWERWIEGEND: GeoRaster load Exception:
oracle.spatial.georaster.GeoRasterException: Can not find a GeoRaster object with specified rdt and rid.
at oracle.spatial.georaster.JGeoRaster.validateConn(JGeoRaster.java:608)
at oracle.sdovis.theme.GeoRasterThemeProducer$JGeoRasterGTP.<init>(GeoRasterThemeProducer.java:2037)
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:694)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:75)
20.11.2008 10:23:46 oracle.sdovis.LoadThemeData run
SCHWERWIEGEND: Exception fetching data for theme RAS_DGK.
Message:GeoRaster load Exception: Can not find a GeoRaster object with specified rdt and rid.
Description:
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:1109)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:75)
20.11.2008 10:23:46 oracle.sdovis.MapMaker buildDataMBR
WARNUNG: null MBR resulted from buildDataMBR.
If you need more information - please ask for it.
Cord -
GeoRaster querying returns negative and invalid cell coordinates
Hi!
I'm using Oracle 10.2.0.1 and loading raster data into GeoRaster - loading all works but when querying cell coordinates I get negative and unexpected values. Here is my process:
-- Create GeoRaster table
DROP TABLE tm;
CREATE TABLE tm (id NUMBER, description VARCHAR2(50), image SDO_GEORASTER);
-- Create trigger to keep metadata up to date
EXECUTE sdo_geor_utl.createDMLTrigger('TM', 'IMAGE');
-- Create raster data table
DROP TABLE tm_rdt;
CREATE TABLE tm_rdt OF SDO_RASTER
(PRIMARY KEY (rasterID, pyramidLevel, bandBlockNumber, rowBlockNumber, columnBlockNumber))
TABLESPACE tbsp
NOLOGGING LOB(rasterBlock)
STORE AS lobseg (TABLESPACE tbsp CHUNK 8192 CACHE READS NOLOGGING PCTVERSION 0 );
-- Grant privs on file locations
exec dbms_java.grant_permission( 'PUBLIC', 'SYS:java.io.FilePermission', 'D:\Users\tm.tif','read,write' );
exec dbms_java.grant_permission( 'TEST', 'SYS:java.io.FilePermission', 'D:\Users\tm.tif','read,write' );
exec dbms_java.grant_permission( 'MDSYS', 'SYS:java.io.FilePermission', 'D:\Users\tm.tif','read,write' );
exec dbms_java.grant_permission( 'PUBLIC', 'SYS:java.io.FilePermission', 'D:\Users\tm.tfw','read,write' );
exec dbms_java.grant_permission( 'TEST', 'SYS:java.io.FilePermission', 'D:\Users\tm.tfw','read,write' );
exec dbms_java.grant_permission( 'MDSYS', 'SYS:java.io.FilePermission', 'D:\Users\tm.tfw','read,write' );
-- Initialise GeoRaster object and import image
DECLARE
l_gr SDO_GEORASTER;
BEGIN
-- Initialise GeoRaster objects
INSERT INTO tm (id, description, image)
VALUES (1, 'TM', sdo_geor.init('TM_RDT'));
-- Import the images
SELECT image INTO l_gr FROM tm WHERE id = 1 FOR UPDATE;
SDO_GEOR.IMPORTFROM(l_gr, 'spatialExtent=true', 'TIFF', 'file', 'D:\Users\tm.tif', 'WORLDFILE', 'file', 'D:\Users\tm.tfw,3035');
UPDATE tm SET image = l_gr WHERE id = 1;
COMMIT;
END;
DECLARE
gr sdo_georaster;
BEGIN
SELECT image INTO gr FROM tm WHERE id = 1 FOR UPDATE;
sdo_geor.setModelSRID(gr, 3035);
gr.spatialExtent := sdo_geor.generateSpatialExtent(gr);
UPDATE tm SET image = gr WHERE id = 1;
COMMIT;
END;
The raster file was originally a .MAP file which I converted to a .TIF file via ArcCatalog 9.2.
I created a World File whose contents are:
5000
0
0
-5000
-1697500
2697500
The .MAP file and .TIF file have the following Spatial Reference (Oracle SID 3035):
PROJCS["PCS_Lambert_Azimuthal_Equal_Area",GEOGCS["GCS_User_Defined",DATUM["D_User_Defined",SPHEROID["User_Defined_Spheroid",6378388.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Lambert_Azimuthal_Equal_Area"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",9.0],PARAMETER["Latitude_Of_Origin",48.0],UNIT["Meter",1.0]
In the Raster file:
Columns, Rows = 680, 810
Number of Bands = 1
Cellsize = 5000,5000
Extent Top = 2700000
Extent Left = -1700000
Extent Right = 1700000
Extent Bottom = -1350000
Origin Location = Upper Left
So, loaded the raster into Oracle all ok; but when I try and find the cell coord for a real-world coord in WGS84 (location of a point in Iceland), it returns invalid cell coords:
SELECT sdo_geor.getCellCoordinate(t.image, 0, SDO_GEOMETRY(2001, 8307, SDO_POINT_TYPE(-19.4833, 64.6833, 0), NULL, NULL))
FROM tm t;
Returns: SDO_NUMBER_ARRAY(-443, 930) which isn't a true cell coord in my raster??
Also, if I test out to get the corners of the raster:
SELECT sdo_geor.getCellCoordinate(image, 0, sdo_geometry(2001, 3035, sdo_point_type(1700000,2700000,null), null,null)) FROM tm WHERE id=1;
Should return the top right corner at (680,0), it actually returns: SDO_NUMBER_ARRAY(0, 680) - the other way round?!?!
I'm slowing going mad on this, so any ideas/thoughts would be greatly appreciated!!!Hi,
I just did some test. The results you got actually was right. The point (-19.4833, 64.6833, 0) you give is in 8307. After it is transformed into coordinate system 3035, the system your georaster in. We get the model coordinates (2954416.89, 4914665.16, 0). The model coordinate of your up-left corner cell of your georaster is (-1697500, 2697500), so the cell coordinates of the give point is col = int((2954416.89 - (-1697500))/5000) = int(930.38) = 930, and row = int((4914665.16 - 2697500)/(-5000)) = int(-443.43) = -430. That is what you got. The point you give is outside of your georaster on the top.
SQL> select sdo_cs.transform(
sdo_geometry(2001, 8307, SDO_POINT_TYPE(-19.4833, 64.6833, 0), null,null),
3035) from dual; 2 3
SDO_CS.TRANSFORM(SDO_GEOMETRY(2001,8307,SDO_POINT_TYPE(-19.4833,64.6833,0),NULL,
SDO_GEOMETRY(2001, 3035, SDO_POINT_TYPE(2954416.89, 4914665.16, 0), NULL, NULL)
For point (1700000,2700000,null), it is at the top-right corner. Its cell coordinates should be (0,680). Be noticed, the cell coordinates has order of ROW, COLUMN.
Please let me know if you have further question. -
Can't preview the georaster theme in mapbuilder
I create a raster table and I can see the raster image in GeoRasterViewer.Then I create a raster theme in mapbuilder, but can't preview it in mapbuilder.The error message is:
2008-9-8 8:53:50 oracle.sdovis.DBMapMaker clear
Message: clearing internal theme list and cache
2008-9-8 8:53:50 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
Message: GeoRaster load Exception:
oracle.spatial.georaster.GeoRasterException: Can not find a GeoRaster object with specified rdt and rid.
at oracle.spatial.georaster.JGeoRaster.validateConn(JGeoRaster.java:605)
at oracle.sdovis.theme.GeoRasterThemeProducer$JGeoRasterGTP.<init>(GeoRasterThemeProducer.java:2016)
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:683)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:74)
2008-9-8 8:53:50 oracle.sdovis.LoadThemeData run
Message: Exception fetching data for theme GEORASTER_TABLE.
Message:GeoRaster load Exception: Can not find a GeoRaster object with specified rdt and rid.
Description:
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:1098)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:74)
2008-9-8 8:53:50 oracle.sdovis.DBMapMaker renderEm
Message: **** time spent on loading features: 0ms.
2008-9-8 8:53:50 oracle.sdovis.ImageRenderer renderGeoRasterTheme
Warn: GeoRaster theme GEORASTER_TABLE has no rendered images.
2008-9-8 8:53:50 oracle.sdovis.DBMapMaker renderEm
Message: **** time spent on rendering: 15ms
What should I do?
Thanks for your help!
a-Lihi Joao,
Yes, I used import image tool in mapbuilder.Now it's ok when i added the orai18n.jar.But there's some new problem:
2008-9-10 9:11:05 oracle.sdovis.DBMapMaker clear
Message: clearing internal theme list and cache
2008-9-10 9:11:05 oracle.sdovis.theme.GeoRasterThemeProducer isDataWithinScale
Message: Screen resolution: 0.3082191780821918
2008-9-10 9:11:05 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
Warn: Query window is out of GeoRaster area, for raster Id 22.0
2008-9-10 9:11:05 oracle.sdovis.DBMapMaker renderEm
Message: **** time spent on loading features: 79ms.
2008-9-10 9:11:05 oracle.sdovis.ImageRenderer renderGeoRasterTheme
Warn: GeoRaster theme 123 has no rendered images.
2008-9-10 9:11:05 oracle.sdovis.ScaleBarRenderer findRange
Warn: cannot find a suitable range for scalebar.
2008-9-10 9:11:05 oracle.sdovis.ScaleBarRenderer renderScaleBar
Warn: cannot render scale bar.
2008-9-10 9:11:05 oracle.sdovis.DBMapMaker renderEm
Message: **** time spent on rendering: 0ms
How did I set the scale?or there're some other problems?
Thanks for your help
a-Li -
Unable to view the image in Oracle Mapbuilder
Hi,
I am unable to view the image using oracle mapviewer.
It stated that:
No spatial data to render...
INFO [oracle.sdovis.CacheMgr2] Spatial Data Cache opened. Region=SDOVIS_DATA.
INFO [oracle.sdovis.CacheMgr2] max_cache_size=32 MB.
INFO [oracle.sdovis.CacheMgr2] sub region sdovis_subreg_ias_spatial_jdbc:oracle:thin:@dbdev:1521:orcl created in cache.
INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
INFO [oracle.sdovis.DBSRSCache] Loading SRS information from MDSYS.cs_srs (srid=8307).
DEBUG [oracle.sdovis.DBSRSCache] Registering srs 8307, isGeodetic=true, unit=DECIMAL DEGREE
DEBUG [oracle.sdovis.ltd] LoadThemeData running thread: Thread-8
FINEST [oracle.sdovis.theme.grtp] Theme definition SRID: 8307
FINEST [oracle.sdovis.theme.grtp] Bands: Red - 1 Green - 1 Blue - 1
DEBUG [oracle.sdovis.theme.grtp] [Query] select grt.IMAGE from NYP_IMAGES grt where grt.IMAGE.rasterid = ? and grt.IMAGE.rasterdatatable = ?
ERROR [oracle.sdovis.theme.grtp] java.lang.NullPointerException
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:589)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:90)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:66)
ERROR [oracle.sdovis.ltd] Message:GeoRaster load Exception: null
Description:
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:855)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:90)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:66)
WARN [oracle.sdovis.MapMaker] null MBR resulted from buildDataMBR.
INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
DEBUG [oracle.sdovis.ltd] LoadThemeData running thread: Thread-10
FINEST [oracle.sdovis.theme.grtp] Theme definition SRID: 8307
DEBUG [oracle.sdovis.theme.grtp] [Query] select grt.IMAGE from NYP_IMAGES grt where grt.IMAGE.rasterid = ? and grt.IMAGE.rasterdatatable = ?
ERROR [oracle.sdovis.theme.grtp] java.lang.NullPointerException
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:589)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:90)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:66)
ERROR [oracle.sdovis.ltd] Message:GeoRaster load Exception: null
Description:
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:855)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:90)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:66)
WARN [oracle.sdovis.MapMaker] null MBR resulted from buildDataMBR.
INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
DEBUG [oracle.sdovis.ltd] LoadThemeData running thread: Thread-12
WARN [oracle.sdovis.theme.grtp] GeoRaster SRID can not be 0.
WARN [oracle.sdovis.MapMaker] null MBR resulted from buildDataMBR.
INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
DEBUG [oracle.sdovis.ltd] LoadThemeData running thread: Thread-14
FINEST [oracle.sdovis.theme.pgtp] [ NYP_IMAGES ]: -Infinity,-Infinity,NaN,NaN
FINEST [oracle.sdovis.theme.pgtp] [ NYP_IMAGES ]: SELECT rowid, tb_prv.IMAGE.SPATIALEXTENT, 'dbdev_NYP_IMAGES_render', null, 'null', -1 FROM NYP_IMAGES tb_prv
INFO [oracle.sdovis.CacheMgr2] Creating/replacing a geometry cache group: sdovis_subreg_ias_spatial_jdbc:oracle:thin:@dbdev:1521:orcl : NYP_IMAGES_IMAGE.SPATIALEXTENT_PDT_GEOM.
DEBUG [oracle.sdovis.theme.pgtp] [ NYP_IMAGES ] sql exec time: 16ms, total time loading 1 features: 78ms.
FINEST [oracle.sdovis.MapMaker] mbr of all themes: java.awt.geom.Rectangle2D$Double[x=-330.05,y=-206.35000000000002,w=3308.6025,h=2565.5175]
INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 78ms.
FINEST [oracle.sdovis.RE] xfm: 0.15474460805665913 0.0 0.0 -0.15474460805665913 185.0792593502091 365.0684501275084
DEBUG [oracle.sdovis.VectorRenderer] time to render theme NYP_IMAGES with 1 styled features: 16ms
DEBUG [oracle.sdovis.VectorRenderer] time to label theme NYP_IMAGES with 1 styled features: 0ms
INFO [oracle.sdovis.DBMapMaker] **** time spent on rendering: 31ms
INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
DEBUG [oracle.sdovis.ltd] LoadThemeData running thread: Thread-16
WARN [oracle.sdovis.theme.grtp] GeoRaster SRID can not be 0.
WARN [oracle.sdovis.MapMaker] null MBR resulted from buildDataMBR.
INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
FINEST [oracle.sdovis.SRS] *** isGeodetic=true, unit=DECIMAL DEGREE
FINEST [oracle.sdovis.SRS] before adjusting: minX = -1196.0304250629722, maxX=3844.532925062972 minY=-206.3499999999999, maxY=2359.1675 w=5040.563350125944, h=2565.5175
FINEST [oracle.sdovis.SRS] After adjusting: minX = 0.0, maxX=360.0 minY=-90.0, maxY=90.0 w=5040.563350125944, h=2565.5175
WARN [oracle.sdovis.SRS] Resizing query window to be within valid bounds.
DEBUG [oracle.sdovis.ltd] LoadThemeData running thread: Thread-18
FINEST [oracle.sdovis.theme.pgtp] [ NYP_IMAGES ]: 0.0,-90.0,360.0,90.0
FINEST [oracle.sdovis.theme.pgtp] [ NYP_IMAGES ]: SELECT rowid, tb_prv.IMAGE.SPATIALEXTENT, 'dbdev_NYP_IMAGES_render', null, 'null', -1 FROM NYP_IMAGES tb_prv WHERE MDSYS.SDO_FILTER(tb_prv.IMAGE.SPATIALEXTENT, MDSYS.SDO_GEOMETRY(2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?, ?, ?, ?)), 'querytype=WINDOW') = 'TRUE'
DEBUG [oracle.sdovis.theme.pgtp] [ NYP_IMAGES ] sql exec time: 859ms, total time loading 1 features: 859ms.
INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 859ms.
FINEST [oracle.sdovis.RE] xfm: 2.1666666666666665 0.0 0.0 -2.1666666666666665 0.0 198.5
DEBUG [oracle.sdovis.VectorRenderer] time to render theme NYP_IMAGES with 1 styled features: 16ms
DEBUG [oracle.sdovis.VectorRenderer] time to label theme NYP_IMAGES with 1 styled features: 0ms
INFO [oracle.sdovis.DBMapMaker] **** time spent on rendering: 16ms
INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
FINEST [oracle.sdovis.SRS] *** isGeodetic=true, unit=DECIMAL DEGREE
FINEST [oracle.sdovis.SRS] before adjusting: minX = 3.173803526448353, maxX=356.82619647355165 minY=-90.0, maxY=90.0 w=353.6523929471033, h=180.0
FINEST [oracle.sdovis.SRS] After adjusting: minX = 3.173803526448353, maxX=356.82619647355165 minY=-90.0, maxY=90.0 w=353.6523929471033, h=180.0
DEBUG [oracle.sdovis.ltd] LoadThemeData running thread: Thread-20
FINEST [oracle.sdovis.theme.pgtp] [ NYP_IMAGES ]: 3.173803526448353,-90.0,356.82619647355165,90.0
FINEST [oracle.sdovis.theme.pgtp] [ NYP_IMAGES ]: SELECT rowid, tb_prv.IMAGE.SPATIALEXTENT, 'dbdev_NYP_IMAGES_render', null, 'null', -1 FROM NYP_IMAGES tb_prv WHERE MDSYS.SDO_FILTER(tb_prv.IMAGE.SPATIALEXTENT, MDSYS.SDO_GEOMETRY(2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?, ?, ?, ?)), 'querytype=WINDOW') = 'TRUE'
DEBUG [oracle.sdovis.theme.pgtp] [ NYP_IMAGES ] sql exec time: 0ms, total time loading 1 features: 0ms.
INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 16ms.
FINEST [oracle.sdovis.RE] xfm: 2.2055555555555553 0.0 0.0 -2.2055555555555553 -6.99999999999992 198.50000000000003
DEBUG [oracle.sdovis.VectorRenderer] time to render theme NYP_IMAGES with 1 styled features: 15ms
DEBUG [oracle.sdovis.VectorRenderer] time to label theme NYP_IMAGES with 1 styled features: 0ms
INFO [oracle.sdovis.DBMapMaker] **** time spent on rendering: 31ms
INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
FINEST [oracle.sdovis.DBMapMaker] adding predefined theme [name=GEORTHEME]
FINEST [oracle.sdovis.ThemeTable] key_column using default: ROWID
DEBUG [oracle.sdovis.ltd] LoadThemeData running thread: Thread-22
FINEST [oracle.sdovis.theme.grtp] Theme definition SRID: 8307
FINEST [oracle.sdovis.theme.grtp] Bands: Red - 1 Green - 1 Blue - 1
DEBUG [oracle.sdovis.theme.grtp] [Query] select grt.IMAGE from NYP_IMAGES grt where grt.IMAGE.rasterid = ? and grt.IMAGE.rasterdatatable = ?
ERROR [oracle.sdovis.theme.grtp] java.lang.NullPointerException
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:589)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:90)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:66)
ERROR [oracle.sdovis.ltd] Message:GeoRaster load Exception: null
Description:
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:855)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:90)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:66)
WARN [oracle.sdovis.MapMaker] null MBR resulted from buildDataMBR.
INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
DEBUG [oracle.sdovis.ltd] LoadThemeData running thread: Thread-24
WARN [oracle.sdovis.theme.grtp] GeoRaster SRID can not be 0.
WARN [oracle.sdovis.MapMaker] null MBR resulted from buildDataMBR.
INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
FINEST [oracle.sdovis.SRS] *** isGeodetic=true, unit=DECIMAL DEGREE
FINEST [oracle.sdovis.SRS] before adjusting: minX = 3.173803526448353, maxX=356.82619647355165 minY=-90.0, maxY=90.0 w=353.6523929471033, h=180.0
FINEST [oracle.sdovis.SRS] After adjusting: minX = 3.173803526448353, maxX=356.82619647355165 minY=-90.0, maxY=90.0 w=353.6523929471033, h=180.0
DEBUG [oracle.sdovis.ltd] LoadThemeData running thread: Thread-26
FINEST [oracle.sdovis.theme.pgtp] [ NYP_IMAGES ]: 3.173803526448353,-90.0,356.82619647355165,90.0
FINEST [oracle.sdovis.theme.pgtp] [ NYP_IMAGES ]: SELECT rowid, tb_prv.IMAGE.SPATIALEXTENT, 'dbdev_NYP_IMAGES_render', null, 'null', -1 FROM NYP_IMAGES tb_prv WHERE MDSYS.SDO_FILTER(tb_prv.IMAGE.SPATIALEXTENT, MDSYS.SDO_GEOMETRY(2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?, ?, ?, ?)), 'querytype=WINDOW') = 'TRUE'
DEBUG [oracle.sdovis.theme.pgtp] [ NYP_IMAGES ] sql exec time: 765ms, total time loading 1 features: 765ms.
INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 765ms.
FINEST [oracle.sdovis.RE] xfm: 2.2055555555555553 0.0 0.0 -2.2055555555555553 -6.99999999999992 198.50000000000003
DEBUG [oracle.sdovis.VectorRenderer] time to render theme NYP_IMAGES with 1 styled features: 31ms
DEBUG [oracle.sdovis.VectorRenderer] time to label theme NYP_IMAGES with 1 styled features: 0ms
INFO [oracle.sdovis.DBMapMaker] **** time spent on rendering: 125ms
INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
FINEST [oracle.sdovis.DBMapMaker] adding predefined theme [name=GEORTHEME]
DEBUG [oracle.sdovis.ThemeTable] Got SRID for base table NYP_IMAGES from data source cache
FINEST [oracle.sdovis.ThemeTable] key_column using default: ROWID
DEBUG [oracle.sdovis.ltd] LoadThemeData running thread: Thread-28
FINEST [oracle.sdovis.theme.grtp] Theme definition SRID: 8307
DEBUG [oracle.sdovis.theme.grtp] [Query] select grt.IMAGE from NYP_IMAGES grt where grt.IMAGE.rasterid = ? and grt.IMAGE.rasterdatatable = ?
ERROR [oracle.sdovis.theme.grtp] java.lang.NullPointerException
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:589)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:90)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:66)
ERROR [oracle.sdovis.ltd] Message:GeoRaster load Exception: null
Description:
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:855)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:90)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:66)
WARN [oracle.sdovis.MapMaker] null MBR resulted from buildDataMBR.
For the image i want to view, the data i got for the image that is being stored in the georaster object are:
IMAGE(RASTERTYPE, SPATIALEXTENT(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELE
SDO_GEORASTER(20001, SDO_GEOMETRY(2003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003,
1), SDO_ORDINATE_ARRAY(-180, -90, -180, 1073, -180, 2237, 1320, 2237, 2821, 223
7, 2821, 1073, 2821, -90, 1320, -90, -180, -90)), 'NYP_IMAGES_RDT', 131, XMLTYPE
(<georasterMetadata xmlns="http://xmlns.oracle.com/spatial/georaster">
<objectI))
May i know whether the image is georeferenced?
If it is successfully georeference, why does it stated that no spatial data to render?
Regards,
EstherIMAGE_ID IMAGE_DESCRIPTION
IMAGE(RASTERTYPE, SPATIALEXTENT(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELE
161 TIFF
SDO_GEORASTER(20001, SDO_GEOMETRY(2003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003,
1), SDO_ORDINATE_ARRAY(-180, -90, -180, 1073, -180, 2237, 1320, 2237, 2821, 223
7, 2821, 1073, 2821, -90, 1320, -90, -180, -90)), 'NYP_IMAGES_RDT', 131, XMLTYPE
(<georasterMetadata xmlns="http://xmlns.oracle.com/spatial/georaster">
<objectInfo>
<rasterType>20001</rasterType>
<isBlank>false</isBlank>
<defaultRed>1</defaultRed>
<defaultGreen>1</defaultGreen>
<defaultBlue>1</defaultBlue>
</objectInfo>
<rasterInfo>
<cellRepresentation>UNDEFINED</cellRepresentation>
<cellDepth>4BIT</cellDepth>
<totalDimensions>2</totalDimensions>
<dimensionSize type="ROW">
<size>2327</size>
</dimensionSize>
<dimensionSize type="COLUMN">
<size>3001</size>
</dimensionSize>
<ULTCoordinate>
<row>0</row>
<column>0</column>
</ULTCoordinate>
<blocking>
<type>REGULAR</type>
<totalRowBlocks>10</totalRowBlocks>
<totalColumnBlocks>12</totalColumnBlocks>
<rowBlockSize>256</rowBlockSize>
<columnBlockSize>256</columnBlockSize>
</blocking>
<interleaving>BIP</interleaving>
<pyramid>
<type>DECREASE</type>
<resampling>NN</resampling>
<maxLevel>3</maxLevel>
</pyramid>
<compression>
<type>NONE</type>
</compression>
</rasterInfo>
<spatialReferenceInfo>
<isReferenced>true</isReferenced>
<isRectified>true</isRectified>
<SRID>82394</SRID>
<spatialResolution dimensionType="X">
<resolution>28.5</resolution>
</spatialResolution>
<spatialResolution dimensionType="Y">
<resolution>28.5</resolution>
</spatialResolution>
<modelCoordinateLocation>UPPERLEFT</modelCoordinateLocation>
<modelType>FunctionalFitting</modelType>
<polynomialModel rowOff="0" columnOff="0" xOff="0" yOff="0" zOff="0" rowScal
e="1" columnScale="1" xScale="1" yScale="1" zScale="1">
<pPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>-479.9329824561403 0 0.03508771929824561</polyno
mialCoefficients>
</pPolynomial>
<qPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1</polynomialCoefficients>
</qPolynomial>
<rPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>43256.28210526316 -0.03508771929824561 0</polyno
mialCoefficients>
</rPolynomial>
<sPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1</polynomialCoefficients>
</sPolynomial>
</polynomialModel>
</spatialReferenceInfo>
<layerInfo>
<layerDimension>BAND</layerDimension>
<subLayer>
<layerNumber>1</layerNumber>
<layerDimensionOrdinate>0</layerDimensionOrdinate>
<layerID>subLayer1</layerID>
<colorMap>
<colors>
<cell value="0" blue="0" red="0" green="0" alpha="255"/>
<cell value="1" blue="20" red="20" green="20" alpha="255"/>
<cell value="2" blue="36" red="36" green="36" alpha="255"/>
<cell value="3" blue="48" red="48" green="48" alpha="255"/>
<cell value="4" blue="52" red="52" green="52" alpha="255"/>
<cell value="5" blue="72" red="72" green="72" alpha="255"/>
<cell value="6" blue="121" red="121" green="121" alpha="255"/>
<cell value="7" blue="133" red="133" green="133" alpha="255"/>
<cell value="8" blue="153" red="153" green="153" alpha="255"/>
<cell value="9" blue="178" red="178" green="178" alpha="255"/>
<cell value="10" blue="178" red="178" green="186" alpha="255"/>
<cell value="11" blue="186" red="186" green="186" alpha="255"/>
<cell value="12" blue="198" red="198" green="214" alpha="255"/>
<cell value="13" blue="230" red="230" green="234" alpha="255"/>
IMAGE_ID IMAGE_DESCRIPTION
IMAGE(RASTERTYPE, SPATIALEXTENT(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELE
<cell value="14" blue="242" red="242" green="242" alpha="255"/>
<cell value="15" blue="255" red="255" green="255" alpha="255"/>
</colors>
</colorMap>
</subLayer>
</layerInfo>
</georasterMetadata>
Is this being georeferenced? -
Geo Images Data for testing GeoRasterLoader
Oracle 10g GeoRaster provide a sample application to
loader and view Geo Image. I test it with a geo image dataset of .jpg and jgw, GeoRaster Loader Reports warning, and GeoRaster Viewer could not view it.
I'm wonder, is this the fault of geo image dataset? so where could I get some geo images dataset to test GeoRasterLoader or GeoRasterViewer
Thanx in advanced
Richard leeHi,
There seems to be downloadable data at the following sites - note that Oracle has no relationship with the entities that provide this data, and there may be registration or a fee required.
http://www.remotesensing.org/
http://www.gisdatadepot.com/
http://www.state.ma.us/mgis/ -
Uploading images using MapBuilder
Dear everyone
I have some jpeg raster images with world coordinate jgw files and I wish to upload using Map Builder.
The files are stored on a Unix server but Map Builder is located in a windows XP operating system. Is there away of connacting to the remote Unix server in Map Builder. All I can see is the local windows file system when I click on image file name. I also cannot see how to connect to a remote server within this dialogue box.
Am I right in thinking that jpeg raster images can only be uploaded in Map Builder with Oracle 10.2.
Kind regards
TimTim,
In general for 10gR2, you should use the GeoRasterLoader, instead of MapBuilder, to load images either remotely or locally. For this command line Java tool, please follow chapter 1 of the GeoRaster manual to find out where the georaster loader and exporter and viewer are. For 10gR2, you must install the sdo demos from the Company CD, which includes the GeoRaster tools and a README file on how to use it. To run this java loader, simply connect thru the configuration of your server-side listener.
both GeoRasterLoader and MapBuilder don't support remote files.
hope this helps,
Jeffrey -
How to run georasterLoader?
Hi,
Can anyone please advice me on how to run the georaster loader.
Where should i type the codes?
java oracle.spatial.georaster.tools.GeoRasterLoader "hostname" "instanceName" "portNum" "dbuser" "dbpassword" "clienttype" "rowPref" "trueIfClientSide" "imageTableName" "georColName" "storageParams" "pathToImageFile1,rasterid1,rdtName1[,worldFileName1[,SRID1]]" "pathToImageFile2,rasterid2,rdtName2[,worldFileName2[,SRID2]]" ... "pathToImageFileN,rasteridN,rdtNameN[,worldFileNameN[,SRIDN]"
Thanks and regards,
EstherHi,
I think we should run the code in command prompt (outside of SQL prompt). Certainly all the required resources/libraries for GeoRasterTool are set properly in "classpath". -
Dear all
I inserted a Raster map tiff file into Oracle as GeoRaster data. I then viewed it in MapBuilder to check, however ,it can not be previewed and there is a message: no spatial data to render.
I do not know how to solve. Ask for a help,Thanks!
Kind regards
Doudou
Email: [email protected] [email protected]------error information------
2009-6-1 15:35:47 oracle.sdovis.DBMapMaker clear
信息: clearing internal theme list and cache
2009-6-1 15:35:47 oracle.sdovis.theme.GeoRasterThemeProducer prepareData
严重: GeoRaster load Exception:
java.lang.NullPointerException
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:735)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:74)
2009-6-1 15:35:47 oracle.sdovis.LoadThemeData run
严重: Exception fetching data for theme GEORTHEME00.
Message:GeoRaster load Exception: null
Description:
at oracle.sdovis.theme.GeoRasterThemeProducer.prepareData(GeoRasterThemeProducer.java:1098)
at oracle.sdovis.GeoRasterTheme.prepareData(GeoRasterTheme.java:95)
at oracle.sdovis.LoadThemeData.run(LoadThemeData.java:74)
2009-6-1 15:35:47 oracle.sdovis.MapMaker buildDataMBR
警告: null MBR resulted from buildDataMBR. -
How can i load Metadata file into georaster?
Hello everybody,
I stone a tiff file in my db,I stone tiff file like this:
1.create GeoRaster Table:
create table rm_image_t(
georid number,
file_type varchar2(30),
image_file mdsys.sdo_georaster);
2.create trigger:
exec sdo_geor_utl.createdmltrigger('rm_image_t','image_file');
3.Create raster data table:
create table rdt1 of mdsys.sdo_raster(
primary key(rasterid,pyramidlevel,bandblocknumber,rowblocknumber,columnblocknumber))
lob(rasterblock) store as (nocache nologging);
4.Grant:
exec dbms_java.grant_permission('OPER','SYS:java.io.FilePermission','c:\aaa.tif','read');
call dbms_java.grant_permission('MDSYS','SYS:java.io.FilePermission','c:\aaa.tif','read' );
call dbms_java.grant_permission('OPER','SYS:java.io.FilePermission', 'c:\aaa.tif','read' );
call dbms_java.grant_permission('PUBLIC','SYS:java.io.FilePermission','c:\aaa.tif','read' );
call dbms_java.grant_permission('MDSYS','SYS:java.io.FilePermission','c:\aaa.tif','read' );
call dbms_java.grant_permission('OPER','SYS:java.io.FilePermission', 'c:\aaa.tif','read');
call dbms_java.grant_permission('PUBLIC','SYS:java.io.FilePermission','c:\aaa.tif','read');
5.Insert tiff file:
DECLARE
geor SDO_GEORASTER;
BEGIN
-- Initialize an empty GeoRaster object into which the external image
-- is to be imported.
INSERT INTO rm_image_t
values( 1, 'TIFF', sdo_geor.init('rdt1') );
-- Import the TIFF image.
SELECT image_file INTO geor FROM rm_image_t
WHERE georid = 1 FOR UPDATE;
sdo_geor.importFrom(geor,'blocksize=(512,512) compression=DEFLATE', 'TIFF', 'file','c:\aaa.tif');
UPDATE rm_image_t SET image_file = geor WHERE georid = 1;
COMMIT;
END;
Then:
SQL> SELECT t.georid,
2 sdo_geor.validategeoraster(t.image_file) isvalid
3 from rm_image_t t order by georid;
GEORID ISVALID
1 TRUE
But I do not know how to load tiff_file's metadata into georaster.
Can you help me?thanks!My metadata file called aaa.met,it has the following info:
GROUP = METADATA_FILE
PRODUCT_CREATION_TIME = 2004-02-12T15:09:20Z
PRODUCT_FILE_SIZE = 703.1
STATION_ID = "EDC"
GROUND_STATION = "SGS"
GROUP = ORTHO_PRODUCT_METADATA
SPACECRAFT_ID = "Landsat7"
SENSOR_ID = "ETM+"
ACQUISITION_DATE = 2001-10-03
WRS_PATH = 138
WRS_ROW = 036
SCENE_CENTER_LAT = +34.6152272
SCENE_CENTER_LON = +91.7569675
SCENE_UL_CORNER_LAT = +35.5648302
SCENE_UL_CORNER_LON = +90.9958720
SCENE_UR_CORNER_LAT = +35.2772270
SCENE_UR_CORNER_LON = +92.9740331
SCENE_LL_CORNER_LAT = +33.9414953
SCENE_LL_CORNER_LON = +90.5596099
SCENE_LR_CORNER_LAT = +33.6605964
SCENE_LR_CORNER_LON = +92.5005228
SCENE_UL_CORNER_MAPX = 318373.500
SCENE_UL_CORNER_MAPY = 3937531.500
SCENE_UR_CORNER_MAPX = 497638.500
SCENE_UR_CORNER_MAPY = 3903787.500
SCENE_LL_CORNER_MAPX = 274455.000
SCENE_LL_CORNER_MAPY = 3758352.000
SCENE_LR_CORNER_MAPX = 453691.500
SCENE_LR_CORNER_MAPY = 3724636.500
BAND1_FILE_NAME = "aaa.tif"
GROUP = PROJECTION_PARAMETERS
REFERENCE_DATUM = "WGS84"
REFERENCE_ELLIPSOID = "WGS84"
GRID_CELL_ORIGIN = "Center"
UL_GRID_LINE_NUMBER = 1
UL_GRID_SAMPLE_NUMBER = 1
GRID_INCREMENT_UNIT = "Meters"
GRID_CELL_SIZE_PAN = 14.250
GRID_CELL_SIZE_THM = 57.000
GRID_CELL_SIZE_REF = 28.500
FALSE_NORTHING = 0
ORIENTATION = "NUP"
RESAMPLING_OPTION = "NN"
MAP_PROJECTION = "UTM"
END_GROUP = PROJECTION_PARAMETERS
GROUP = UTM_PARAMETERS
ZONE_NUMBER = +46
END_GROUP = UTM_PARAMETERS
SUN_AZIMUTH = 147.9348938
SUN_ELEVATION = 46.4220192
QA_PERCENT_MISSING_DATA = 0
CLOUD_COVER = 0
PRODUCT_SAMPLES_PAN = 17814
PRODUCT_LINES_PAN = 15754
PRODUCT_SAMPLES_REF = 8907
PRODUCT_LINES_REF = 7877
PRODUCT_SAMPLES_THM = 4454
PRODUCT_LINES_THM = 3939
OUTPUT_FORMAT = "GEOTIFF"
END_GROUP = ORTHO_PRODUCT_METADATA
GROUP = L1G_PRODUCT_METADATA
BAND_COMBINATION = "123456678"
CPF_FILE_NAME = "L7CPF20011001_20011231_04"
GROUP = MIN_MAX_RADIANCE
LMAX_BAND1 = 191.600
LMIN_BAND1 = -6.200
LMAX_BAND2 = 196.500
LMIN_BAND2 = -6.400
LMAX_BAND3 = 152.900
LMIN_BAND3 = -5.000
LMAX_BAND4 = 241.100
LMIN_BAND4 = -5.100
LMAX_BAND5 = 31.060
LMIN_BAND5 = -1.000
LMAX_BAND61 = 17.040
LMIN_BAND61 = 0.000
LMAX_BAND62 = 12.650
LMIN_BAND62 = 3.200
LMAX_BAND7 = 10.800
LMIN_BAND7 = -0.350
LMAX_BAND8 = 243.100
LMIN_BAND8 = -4.700
END_GROUP = MIN_MAX_RADIANCE
GROUP = MIN_MAX_PIXEL_VALUE
QCALMAX_BAND1 = 255.0
QCALMIN_BAND1 = 1.0
QCALMAX_BAND2 = 255.0
QCALMIN_BAND2 = 1.0
QCALMAX_BAND3 = 255.0
QCALMIN_BAND3 = 1.0
QCALMAX_BAND4 = 255.0
QCALMIN_BAND4 = 1.0
QCALMAX_BAND5 = 255.0
QCALMIN_BAND5 = 1.0
QCALMAX_BAND61 = 255.0
QCALMIN_BAND61 = 1.0
QCALMAX_BAND62 = 255.0
QCALMIN_BAND62 = 1.0
QCALMAX_BAND7 = 255.0
QCALMIN_BAND7 = 1.0
QCALMAX_BAND8 = 255.0
QCALMIN_BAND8 = 1.0
END_GROUP = MIN_MAX_PIXEL_VALUE
GROUP = PRODUCT_PARAMETERS
CORRECTION_METHOD_GAIN_BAND1 = "CPF"
CORRECTION_METHOD_GAIN_BAND2 = "CPF"
CORRECTION_METHOD_GAIN_BAND3 = "CPF"
CORRECTION_METHOD_GAIN_BAND4 = "CPF"
CORRECTION_METHOD_GAIN_BAND5 = "CPF"
CORRECTION_METHOD_GAIN_BAND61 = "CPF"
CORRECTION_METHOD_GAIN_BAND62 = "CPF"
CORRECTION_METHOD_GAIN_BAND7 = "CPF"
CORRECTION_METHOD_GAIN_BAND8 = "CPF"
CORRECTION_METHOD_BIAS = "IC"
BAND1_GAIN = "H"
BAND2_GAIN = "H"
BAND3_GAIN = "H"
BAND4_GAIN = "L"
BAND5_GAIN = "H"
BAND6_GAIN1 = "L"
BAND6_GAIN2 = "H"
BAND7_GAIN = "H"
BAND8_GAIN = "L"
BAND1_GAIN_CHANGE = "0"
BAND2_GAIN_CHANGE = "0"
BAND3_GAIN_CHANGE = "0"
BAND4_GAIN_CHANGE = "0"
BAND5_GAIN_CHANGE = "0"
BAND6_GAIN_CHANGE1 = "0"
BAND6_GAIN_CHANGE2 = "0"
BAND7_GAIN_CHANGE = "0"
BAND8_GAIN_CHANGE = "0"
BAND1_SL_GAIN_CHANGE = "0"
BAND2_SL_GAIN_CHANGE = "0"
BAND3_SL_GAIN_CHANGE = "0"
BAND4_SL_GAIN_CHANGE = "0"
BAND5_SL_GAIN_CHANGE = "0"
BAND6_SL_GAIN_CHANGE1 = "0"
BAND6_SL_GAIN_CHANGE2 = "0"
BAND7_SL_GAIN_CHANGE = "0"
BAND8_SL_GAIN_CHANGE = "0"
END_GROUP = PRODUCT_PARAMETERS
GROUP = CORRECTIONS_APPLIED
STRIPING_BAND1 = "NONE"
STRIPING_BAND2 = "NONE"
STRIPING_BAND3 = "NONE"
STRIPING_BAND4 = "NONE"
STRIPING_BAND5 = "NONE"
STRIPING_BAND61 = "NONE"
STRIPING_BAND62 = "NONE"
STRIPING_BAND7 = "NONE"
STRIPING_BAND8 = "NONE"
BANDING = "N"
COHERENT_NOISE = "N"
MEMORY_EFFECT = "N"
SCAN_CORRELATED_SHIFT = "N"
INOPERABLE_DETECTORS = "N"
DROPPED_LINES = N
END_GROUP = CORRECTIONS_APPLIED
END_GROUP = L1G_PRODUCT_METADATA
END_GROUP = METADATA_FILE
END
I want load it into db and query the tif_file use coordinates.
Can you pls tell me how to do it? -
Hello Again,
Anybody has been able to import RAW DATA rather than IMAGE DATA into GeoRaster. In addition to this, does your data have to conform to the GeoRaster XML Metadata structure or can you create a new one?
Thanks.
Aditthe metadata must conform to the xml metadata defined by georaster.
Oracle spatial georaster has loaders for a few types of raster data, but typically you will have to go to one of oracle's partners or write your own loader.
You question mingles data and metadata, so I'm not sure which answer you are looking for... -
ORA-13464: error loading GeoRaster data:
Hi:
I trying to load raster image in SQL PLUS WORKSHEET(gis/*****@SDB as sysdba ),Using SQL Scripts ,but getted error:
declare
error at 1 line:
the Permission (java.io.FilePermission c:\temp\AnShan.tif read) has not been granted to GIS. The PL/SQL to grant this is dbms_java.grant_permission( 'GIS', 'SYS:java.io.FilePermission', 'c:\temp\AnShan.tif', 'read' )
ORA-06512: 在 "MDSYS.MD", line 1723
ORA-06512: 在 "MDSYS.MDERR", line 17
ORA-06512: 在 "MDSYS.SDO_GEOR", line 2889
ORA-06512: 在 line 9
the scripts:
declare
geor MDSYS.SDO_GEORASTER;
begin
insert into gis.RasterImages values( 4, 'TIFF', mdsys.sdo_geor.init('rdt_1', 4) );
-- import the first TIFF image
select image into geor from gis.RasterImages where geoid = 4 for update;
mdsys.sdo_geor.importFrom(geor, '', 'TIFF', 'file','c:\temp\AnShan.tif');
update gis.RasterImages set image = geor where geoid = 4;
commit;
end;
I am sure that I have given read priv for the file also,
First,I create conn with system /*****,and execute SQL:
call dbms_java.grant_permission('GIS', 'SYS:java.io.FilePermission','c:\temp\AnShan.tiff', 'read' );
call dbms_java.grant_permission('PUBLIC', 'SYS:java.io.FilePermission',
'c:\temp\AnShan.tiff', 'read' );
call dbms_java.grant_permission('MDSYS', 'SYS:java.io.FilePermission','c:\temp\AnShan.tif', 'read' );
the sentences executed successfully.I am not sure what went wrong.
Please help me!
LGSI think the new error you saw was due to the cross-schema issue on 10.1.0.2/10.1.0.3 (as described in another thread on creating pyramids).
You should connect as system to grant the permissions. With 10.1.0.2/10.1.0.3, importFrom should be called from the same schema where the GeoRaster tables are defined. (Upgrading to 10.1.0.4 or higher if you want to perform cross-schema operations.)
Other than the connection part, your scripts looked OK. Please make sure that the file with the specified file name does exist and is on the same machine where the database is running. Note that even if the grant_permission call is executed successfully, it does not necessarily mean the following file operations will always succeed. For example, grant_permission can be called successfully on a file that does not even exist. If a file with the specific name is later created, no permissions are granted on the new file. The case with the schema 'GIS' is similar. You need to make sure that the schema 'GIS' and the file do exist before the grant_permission call; and grant_permission can be called repeatedly, if necessary.
Hope this helps.
Maybe you are looking for
-
Can't download any apps off my phone, Tablet dos not connect to phone
Someone please help me, cause I am honestly about to loose my mind. I have a Torch and I've only had it for a year now and all my services arent working, I'm considering switching to an IPhone if I can't figure this all out today. So first problem I'
-
Cannot change charset from 'ISO-8859-1' to 'UTF-8' ?
I've programed a web application with Facelets. As I start the first page "index.html" I got the following exception: "java.lang.IllegalStateException: Attempt to change ContentType after calling getWriter() (cannot change charset from 'ISO-8859-1' t
-
How to Create an Input Form using a Transient View Object?
I would like to use a Transient View Object to store data from input forms across a multiple-page enrollment process. My question is how to I create the input form using the Transient View Object on the .jspx page? Do I drag/drop an ADF creation form
-
Installing Oracle 9i on Win Server 2008
Hello all, I just wanted to know that is it possible to install Oracle 9i on Windows Server 2008.. is it supported on server 2008.. i surfed the internet to get more information about this and what i got was that Oracle 9i is not supported on 2008..
-
Generate an unique number without sequence
Hello, I need generate an unique number without sequence. I am using Oracle 11.2, here is the details. The column idSeq is unique withing one specific idType. I don't want a sequence for each idType. create table tb_test (idSeq number(5), idType numb