Georaster metadata in Mapviewer
I've loaded a grayscale tif into Georaster and can view in Mapviewer (10.1.2). I'm manipulating the Georaster appearance by updating its metadata through SDO_GEOR.setGrayScale. I can see the change when viewed in the standalone GeorasterViewer, but Mapviewer doesn't reflect the change. Does Mapviewer read all of the Georaster metadata?
In case it hasn't been pointed out, I'll also mention that the Georaster documentation has a
typo in the example code for SDO_GEOR.setGrayScale: sdo_grayscale should be sdo_geor_grayscale.
Cheers,
David Lapp
Farallon Geographics, Inc.
number of bands = 1
pixel values range = 0-255
map request =
"<?xml version=\"1.0\" standalone=\"yes\" ?>\n"+
"<map_request \n"+
" width=\"600\" height=\"400\"\n"+
" basemap=\"" + baseMap + "\"\n"+
" datasource=\"" + dataSource + "\"\n"+
" bgcolor=\"#CCFFFF\"\n"+
" format=\"GIF_URL\" >\n"+
" <center size=\"" + size + "\">\n"+
" <geoFeature>\n"+
" <geometricProperty typeName=\"center\">\n"+
" <Point>\n"+
" <coordinates>\n"+
" " + cx + ", " + cy + "\n"+
" </coordinates>\n"+
" </Point>\n"+
" </geometricProperty>\n"+
" </geoFeature>\n"+
" </center>\n"+
" <themes>\n"+
" <theme name=\"themeG200\">\n"+
" <jdbc_query spatial_column=\"geometry\"\n"+
" jdbc_srid=\"40977\"\n"+
" render_style=\"L.BLACK OUTLINE\"\n"+
" jdbc_host=\"localhost\"\n"+
" jdbc_sid=\"oradbl10\"\n"+
" jdbc_port=\"1521\"\n"+
" jdbc_user=\"mvdemo\"\n"+
" jdbc_password=\"pwd\"\n"+
" jdbc_mode=\"thin\"\n"+
" > select geometry from smc_ortho \n"+
" </jdbc_query>\n"+
" </theme>\n"+
" <theme name=\"themeSt\">\n"+
" <jdbc_query spatial_column=\"geometry\"\n"+
" jdbc_srid=\"40977\"\n"+
" render_style=\"L.YELLOW\"\n"+
" jdbc_host=\"localhost\"\n"+
" jdbc_sid=\"oradbl10\"\n"+
" jdbc_port=\"1521\"\n"+
" jdbc_user=\"mvdemo\"\n"+
" jdbc_password=\"pwd\"\n"+
" jdbc_mode=\"thin\"\n"+
" > select geometry from SMC_ST \n"+
" </jdbc_query>\n"+
" </theme>\n"+
" <theme name=\"themeGeoraster\">\n"+
" <jdbc_georaster_query\n"+
" georaster_table=\"smc_georaster\"\n"+
" georaster_column=\"georaster\"\n"+
" raster_bands=\"0,1,2\"\n"+
" jdbc_srid=\"40977\"\n"+
" datasource=\"mvdemo\"\n"+
" asis=\"false\"> select georaster from smc_georaster where georaster_id=1\n"+
" </jdbc_georaster_query>\n"+
" </theme>\n"+
" </themes>\n"+
"</map_request>\n";
Similar Messages
-
I've been having issues when I load GeoRaster that the defaultRed, defaultGreen, and defaultBlue are being always set to 1.
<defaultRed>1</defaultRed>
<defaultGreen>1</defaultGreen>
<defaultBlue>1</defaultBlue>
Is it possible to manually update this field using some SQL? The above should look like
<defaultRed>1</defaultRed>
<defaultGreen>2</defaultGreen>
<defaultBlue>3</defaultBlue>
I can view the contents of the XML file using
select SYS.XMLTYPE.GETSTRINGVAL( g.georaster.METADATA ) from GEORASTERTABLE g;
but I have no idea how to update the contents. Any help would be greatly appreciated
Regards
PaulGot the solution from metalink..
To get the current values
SELECT sdo_geor.getDefaultColorLayer(georaster) FROM georaster_table WHERE georid
=1;
And to update to 1,2,3
DECLARE
grobj sdo_georaster;
BEGIN
SELECT georaster INTO grobj FROM georaster_table WHERE georid=1 FOR UPDATE;
sdo_geor.setDefaultRed(grobj, 1);
sdo_geor.setDefaultGreen(grobj, 2);
sdo_geor.setDefaultBlue(grobj, 3);
UPDATE georaster_table SET georaster = grobj WHERE georid=1;
COMMIT;
END;
/ -
Hi,
I have a table with few georasters inside and I try to display them on a map in mapviewer.
Everything works fine except one detail: the georasters have some NODATA value. And this NODATA is shown in black on the map (actually it overlaps some data from the other images).
The NODATA attibute is correctly set in my georaster xml.
Does somebody knows a way to avoid displaying the NODATA?
I had a look at the mapviewer documentation and the only work around I found is to define a georaster theme for each individual image and set a polygon_mask in each theme. But it's not convenient at all!
Thanks in advance...
GanaelHi Ganael,
you may try to create a colormap for your GeoRaster and assign the alpha value to 0 (which means transparency) for the black pixel. A GeoRaster may have a colormap on the metadata such as:
<layerID>subLayer1</layerID>
<colorMap>
<colors>
<cell value="0" blue="0" red="0" green="0" alpha="255"/>
<cell value="1" blue="255" red="255" green="255" alpha="255"/>
<cell value="2" blue="164" red="0" green="151" alpha="255"/>
...Lets say, that the cell value="0" corresponds to your NODATA (black), then you need to make the alpha value = "0". On the GeoRaster documentation you may find some examples of how to set and to get colormap values.
Joao -
How to open a GeoRaster Theme on Mapviewer?
Hello,
I would like to open a Georaster theme on DEMO map. I'm using MVDEMO datasource, so all settings are set to default values.
In MapBuilder, "Themes > GeoRaster Themes > WORLD_RASTER" is defined as demo data and I can preview it too.
The XML is like below,
<?xml version="1.0" standalone="yes"?>
<styling_rules theme_type="georaster" raster_id="1" raster_table="RDT_WORLD_RASTER">
</styling_rules>
I have tried to open this Raster Theme like standart Geometry theme and also as JDBC theme , but it didnt work.
So, I need your assistance to open GeoRaster theme on the map.
Thanks,
MKHi,
Thanks for your help but I do not want to create a basemap, isnt it possible to make a theme with GeoRaster data?
I want to show the GeoRaster theme on my basemap as theme.
Thanks,
MK -
SOS! Please help me about GeoRaster Mapviewer problem!!
Hi!
I am very miserable. I want to see GeoRaster Data with MapViewer 10. I have finished all guides but No result. The following details:
- I load image into Georaster successfully and estable extentspatial, metadata,etc.. as Mapviewer guide for Georaster theme at location 2.3.6.
- After that, I copy jai_core.jar and jai_codec.jar into ../web/Web-Inf/lib.
- Then repair MapviewerConfig.xml to respone to my Database.
- Then at window of Mapviewer, I paste my Map request following:
xml_request=<?xml version="1.0" standalone="yes" ?>
<map_request
title=""
datasource="ThoaGlobName"
width="288"
height="192"
format="GIF_URL" >
<themes>
<theme name="geor_theme" >
<jdbc_georaster_query
jdbc_srid="82216"
datasource="ThoaGlobName"
georaster_table="ThoaImage"
georaster_column="Image"
raster_id="1"
raster_table="ThoaImageRDT"
asis="false">
</jdbc_georaster_query>
</theme>
</themes>
</map_request>
Then click Submit button.
I see MapViewer give errors following:
<?xml version="1.0" encoding="UTF-8" ?>
<oms_error>Message:[oms] error parsing given xml map request. Fri Sep 29 22:56:18 PDT 2006 Severity: 0 Description: oracle.xml.parser.v2.XMLParseException: Start of root element expected. at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:205) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:305) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:267) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:253) at oracle.lbs.mapserver.oms.parse(oms.java:606) at oracle.lbs.mapserver.oms.getXMLDocument(oms.java:864) at oracle.lbs.mapserver.oms.doPost(oms.java:303) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Unknown Source)</oms_error>
PLEASE HELP ME! I do not know where I wrong. It is time for me to post my final test. I am very worried! I am regard high your help.Thank you so much!If you take a look in this category of different forums, you will find one that discusses e.g. GeoRaster.
-
Using MapViewer to view a georaster: blue display
Hi,
I uploaded a tiff file into a georaster table. I followed all the steps to georeference the raster, generate the spatial extent, create the pyramids, etc.
Then I executed the steps to make my raster ready for viewing:
- Insert a row into the USER_SDO_GEOM_METADATA
- Create a spatial index on the spatial extent of the GeoRaster table
Once I use 'MapViewer' all I see is a blue screen. I'm using the 'georaster.jsp' that come up with 'MapViewer' installation to view my raster. Any ideas of what could be wrong ?
Any help is appreciated
JeffJoao,
The log file under "c:\mypath\MapViewer\mvqs10_1_2_0_2\oc4j\j2ee\home\applications\mapviewer\web\WEB-INF\log\mapviewer.log' is indedd empty.
1)
To georeference the tiff, I used a .tfw file, set the SRID and generate the spatial extent:
DECLARE
geo SDO_GEORASTER;
BEGIN
SELECT GEORASTER INTO geo FROM Raster1 WHERE ID=1 FOR UPDATE;
SDO_GEOR.IMPORTFROM(geo,'blocksize=(512,512)','TIFF','file','/export/home/oracle/large.TIFF',
'WORLDFILE','file','/export/home/oracle/large.tfw');
UPDATE Raster1 SET GEORASTER = geo WHERE ID=1;
COMMIT;
END;
DECLARE
geo sdo_georaster;
BEGIN
SELECT georaster INTO geo FROM Raster1 WHERE id=1 FOR UPDATE;
sdo_geor.setModelSRID(geo, 32611);
UPDATE Raster1 SET georaster = geo WHERE id=1;
END;
UPDATE Raster1 c
SET c.georaster.spatialExtent = sdo_geor.generateSpatialExtent(georaster)
WHERE c.id = 1;
COMMIT;
2) Here is the result of the metadata query:
GEORASTER.METADATA
<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>14241</size>
</dimensionSize>
<dimensionSize type="COLUMN">
<size>16201</size>
</dimensionSize>
<ULTCoordinate>
<row>0</row>
<column>0</column>
</ULTCoordinate>
<blocking>
<type>REGULAR</type>
<totalRowBlocks>28</totalRowBlocks>
<totalColumnBlocks>32</totalColumnBlocks>
<rowBlockSize>512</rowBlockSize>
<columnBlockSize>512</columnBlockSize>
</blocking>
<interleaving>BIP</interleaving>
<pyramid>
<type>DECREASE</type>
<resampling>NN</resampling>
<maxLevel>5</maxLevel>
</pyramid>
<compression>
<type>NONE</type>
</compression>
</rasterInfo>
<spatialReferenceInfo>
<isReferenced>true</isReferenced>
<isRectified>true</isRectified>
<SRID>32611</SRID>
<spatialResolution dimensionType="X">
<resolution>15.0</resolution>
</spatialResolution>
<spatialResolution dimensionType="Y">
<resolution>15.0</resolution>
</spatialResolution>
<modelCoordinateLocation>CENTER</modelCoordinateLocation>
<modelType>FunctionalFitting</modelType>
<polynomialModel rowOff="0.0" columnOff="0.0" xOff="0.0" yOff="0.0" zOff="0.
0" rowScale="1.0" columnScale="1.0" xScale="1.0" yScale="1.0" zScale="1.0">
<pPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>251920.0 0.0 -0.06666666666666667</polynomialCoe
fficients>
</pPolynomial>
<qPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1.0</polynomialCoefficients>
</qPolynomial>
<rPolynomial pType="1" nVars="2" order="1" nCoefficients="3">
<polynomialCoefficients>-34120.0 0.06666666666666667 0.0</polynomialCoef
ficients>
</rPolynomial>
<sPolynomial pType="1" nVars="0" order="0" nCoefficients="1">
<polynomialCoefficients>1.0</polynomialCoefficients>
</sPolynomial>
</polynomialModel>
</spatialReferenceInfo>
<layerInfo>
<layerDimension>BAND</layerDimension>
</layerInfo>
</georasterMetadata> -
Can't display Georaster in Oracle Maps
Please help!
I'm trying to display a georaster in Oracle Maps, without success. The georasters in question display normally in PCI's Focus, eSpatial's iSMART, and MapBuilder preview, but nothing is display in Oracle Maps.
I have copied jai_codec.jar, jai_core.jar, jai_imageio-1.1.2.jar into
D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\lib. I don't get any errors in mapviewer.log set to finest (appended to bottom of post).
I'm using AS 10.1.3.1.0, MapViewer 10.1.3.1 from patch 6453515, and the 10.1.0.3.1 enterprise database.
In Oracle Maps I have this code:
foi = new MVThemeBasedFOI('MOSAIC2','MOSAIC2');
this.mapview.addThemeBasedFOI(foi);
The georaster has spatial extents:
SQL> SELECT g.GEORASTER.spatialextent FROM MOSAICS g WHERE g.MOSAICID=2;
GEORASTER.SPATIALEXTENT(SDO_GTYPE, SDO_SRID, SDO_POINT(X, Y, Z), SDO_ELEM_INFO,
SDO_GEOMETRY(2003, 8307, NULL, SDO_ELEM_INFO_ARRAY(1, 1003, 1), SDO_ORDINATE_ARRAY(-83.5357, 31.4825, -83.5357, 31.472635, -83.5357, 31.462765, -83.52891, 31.462765, -83.522115, 31.462765, -83.522115, 31.472635, -83.522115, 31.4825, -83.52891, 31.4825, -83.5357, 31.4825))
The spatial extent is in USER_SDO_GEOM_METADATA and is indexed:
SQL> select * from USER_SDO_GEOM_METADATA where TABLE_NAME='MOSAICS';
TABLE_NAME
COLUMN_NAME
DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
SRID
MOSAICS
GEORASTER.SPATIALEXTENT
SDO_DIM_ARRAY(SDO_DIM_ELEMENT('X', -180, 180, .0005), SDO_DIM_ELEMENT('Y', -90, 90, .0005))
8307
The georaster has metadata:
select TO_CLOB(m.GEORASTER.METADATA) from MOSAICS m where m.MOSAICID=2;
<georasterMetadata xmlns="http://xmlns.oracle.com/spatial/georaster">
<objectInfo>
<rasterType>21001</rasterType>
<isBlank>false</isBlank>
<defaultRed>1</defaultRed>
<defaultGreen>2</defaultGreen>
<defaultBlue>3</defaultBlue>
</objectInfo>
<rasterInfo>
<cellRepresentation>UNDEFINED</cellRepresentation>
<cellDepth>8BIT_U</cellDepth>
<totalDimensions>3</totalDimensions>
<dimensionSize type="ROW">
<size>3947</size>
</dimensionSize>
<dimensionSize type="COLUMN">
<size>2717</size>
</dimensionSize>
<dimensionSize type="BAND">
<size>3</size>
</dimensionSize>
<ULTCoordinate>
<row>0</row>
<column>0</column>
<band>0</band>
</ULTCoordinate>
<blocking>
<type>REGULAR</type>
<totalRowBlocks>8</totalRowBlocks>
<totalColumnBlocks>6</totalColumnBlocks>
<totalBandBlocks>3</totalBandBlocks>
<rowBlockSize>512</rowBlockSize>
<columnBlockSize>512</columnBlockSize>
<bandBlockSize>1</bandBlockSize>
</blocking>
<interleaving>BIP</interleaving>
<pyramid>
<type>DECREASE</type>
<resampling>NN</resampling>
<maxLevel>5</maxLevel>
</pyramid>
<compression>
<type>NONE</type>
</compression>
</rasterInfo>
<spatialReferenceInfo>
<isReferenced>true</isReferenced>
<isRectified>true</isRectified>
<SRID>8307</SRID>
<spatialResolution dimensionType="X">
<resolution>5e-006</resolution>
</spatialResolution>
<spatialResolution dimensionType="Y">
<resolution>5e-006</resolution>
</spatialResolution>
<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>6296500.000000001 0 -200000</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>16707140 200000 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>Not Specified</layerID>
</subLayer>
<subLayer>
<layerNumber>2</layerNumber>
<layerDimensionOrdinate>1</layerDimensionOrdinate>
<layerID>Not Specified</layerID>
</subLayer>
<subLayer>
<layerNumber>3</layerNumber>
<layerDimensionOrdinate>2</layerDimensionOrdinate>
<layerID>Not Specified</layerID>
</subLayer>
</layerInfo>
</georasterMetadata>
Nothing displays at any zoom level in Oracle Maps.
The georaster has pyramids generated by:
DECLARE
gr sdo_georaster;
BEGIN
SELECT georaster INTO gr
FROM MOSAICS WHERE MOSAICID = 2 FOR UPDATE;
sdo_geor.deletePyramid(gr);
sdo_geor.generatePyramid(gr, 'rLevel=5, resampling=NN');
UPDATE MOSAICS SET georaster = gr WHERE MOSAICID = 2;
COMMIT;
END;
The georaster validates:
SQL> select sdo_geor.validateGeoraster(a.georaster),sdo_geor.schemaValidate(a.ge
oraster) from MOSAICS a where MOSAICID=2;
SDO_GEOR.VALIDATEGEORASTER(A.GEORASTER)
SDO_GEOR.SCHEMAVALIDATE(A.GEORASTER)
TRUE
TRUE
Thanks very much for any suggestions!
-Bruce
mapviewer.log from a session, set to "FINEST"
Jan 25, 2008 5:24:16 PM oracle.lbs.mapserver.core.MapperConfig loadMapViewerConfig
FINEST:
Allowed IPs:
Excluded IPs:
Jan 25, 2008 5:24:16 PM oracle.sdovis.GlobalVisContext <clinit>
WARNING: will use 96 as default dpi.
Jan 25, 2008 5:24:16 PM oracle.lbs.mapserver.core.MapperConfig registerNSDataProviders
FINEST: Non-Spatial Data Provider registered: defaultNSDP
Jan 25, 2008 5:24:16 PM oracle.sdovis.SDataProviderMgr registerProvider
INFO: Spatial Provider shapefileSDP has been registered.
Jan 25, 2008 5:24:16 PM oracle.lbs.mapserver.core.MapperConfig registerSDataProviders
FINEST: Spatial Data Provider registered: shapefileSDP
Jan 25, 2008 5:24:17 PM oracle.sdovis.SRS <clinit>
INFO: Using 96 as default dpi.
Jan 25, 2008 5:24:18 PM oracle.sdovis.DBSRSCache loadGeodeticSrids
FINEST: Number of geodetic srids loaded: 748.
Jan 25, 2008 5:24:18 PM oracle.sdovis.CacheMgr2 init
INFO: Spatial Data Cache opened. Region=SDOVIS_DATA.
Jan 25, 2008 5:24:18 PM oracle.sdovis.CacheMgr2 init
INFO: max_cache_size=32 MB.
Jan 25, 2008 5:24:18 PM oracle.sdovis.CacheMgr2 createSubRegion
INFO: sub region sdovis_subreg_mvdemo_jdbc:oracle:thin:@jmsdb5:1521:jmsdb created in cache.
Jan 25, 2008 5:24:18 PM oracle.lbs.mapserver.core.MapperPool addMapper
INFO: added a mapper instance to the pool [data src=mvdemo]
Jan 25, 2008 5:24:18 PM oracle.lbs.mapserver.core.MapperPool addMapper
INFO: added a mapper instance to the pool [data src=mvdemo]
Jan 25, 2008 5:24:18 PM oracle.lbs.mapserver.core.MapperPool addMapper
INFO: added a mapper instance to the pool [data src=mvdemo]
Jan 25, 2008 5:24:18 PM oracle.sdovis.DBSRSCache loadGeodeticSrids
FINEST: Number of geodetic srids loaded: 130.
Jan 25, 2008 5:24:18 PM oracle.sdovis.CacheMgr2 createSubRegion
INFO: sub region sdovis_subreg_grim_jdbc:oracle:thin:@odm2:1521:odm2 created in cache.
Jan 25, 2008 5:24:18 PM oracle.lbs.mapserver.core.MapperPool addMapper
INFO: added a mapper instance to the pool [data src=grim]
Jan 25, 2008 5:24:18 PM oracle.lbs.mapserver.core.MapperPool addMapper
INFO: added a mapper instance to the pool [data src=grim]
Jan 25, 2008 5:24:18 PM oracle.lbs.mapserver.core.MapperPool addMapper
INFO: added a mapper instance to the pool [data src=grim]
Jan 25, 2008 5:24:19 PM oracle.sdovis.DBSRSCache loadGeodeticSrids
FINEST: Number of geodetic srids loaded: 130.
Jan 25, 2008 5:24:19 PM oracle.lbs.mapserver.core.MapperPool addMapper
INFO: added a mapper instance to the pool [data src=wms]
Jan 25, 2008 5:24:19 PM oracle.lbs.mapserver.core.MapperPool addMapper
INFO: added a mapper instance to the pool [data src=wms]
Jan 25, 2008 5:24:19 PM oracle.lbs.mapserver.core.MapperPool addMapper
INFO: added a mapper instance to the pool [data src=wms]
Jan 25, 2008 5:24:19 PM oracle.lbs.mapserver.core.MapperConfig loadConfigFile
INFO: Map Recycling thread started.
Jan 25, 2008 5:24:19 PM oracle.lbs.mapserver.oms$ColdStart run
INFO: *** Oracle MapViewer started. ***
Jan 25, 2008 5:24:20 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:/private/scratch\. Cache root directory will be set to default root directory.
Jan 25, 2008 5:24:20 PM oracle.sdovis.DBSRSCache register
INFO: Loading SRS information from MDSYS.cs_srs (srid=8307).
Jan 25, 2008 5:24:20 PM oracle.sdovis.DBSRSCache parseAndAdd
FINER: Registering srs 8307, isGeodetic=true, unit=DECIMAL DEGREE
Jan 25, 2008 5:24:21 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:/scratch/mapcache\. Cache root directory will be set to default root directory.
Jan 25, 2008 5:24:21 PM oracle.sdovis.DBSRSCache register
INFO: Loading SRS information from MDSYS.cs_srs (srid=8307).
Jan 25, 2008 5:24:21 PM oracle.sdovis.DBSRSCache parseAndAdd
FINER: Registering srs 8307, isGeodetic=true, unit=DECIMAL DEGREE
Jan 25, 2008 5:24:21 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadAdapterClass
INFO: D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\mapcache\adapterlibs\grim.USGS_DOQ.jar
Jan 25, 2008 5:24:21 PM oracle.lbs.foi.FOIServer init
INFO: *** Oracle Feature of Interest (FOI) Server started. ***
Jan 25, 2008 5:24:21 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
will be set to default root directory.
Jan 25, 2008 5:24:21 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadAdapterClass
INFO: D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\mapcache\adapterlibs\grim.USGS_DRG.jar
Jan 25, 2008 5:24:21 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
will be set to default root directory.
Jan 25, 2008 5:24:21 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadAdapterClass
INFO: D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\mapcache\adapterlibs\grim.USGS_URBAN.jar
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:/scratch/mapcache\. Cache root directory will be set to default root directory.
Jan 25, 2008 5:24:22 PM oracle.sdovis.DBSRSCache register
INFO: Loading SRS information from MDSYS.cs_srs (srid=8307).
Jan 25, 2008 5:24:22 PM oracle.sdovis.DBSRSCache parseAndAdd
FINER: Registering srs 8307, isGeodetic=true, unit=DECIMAL DEGREE
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadAdapterClass
INFO: D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\mapcache\adapterlibs\wms.USGS_DOQ.jar
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
will be set to default root directory.
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadAdapterClass
INFO: D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\mapcache\adapterlibs\wms.USGS_DRG.jar
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
will be set to default root directory.
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadAdapterClass
INFO: D:\APPSVR\j2ee\MapViewer\applications\MapViewer10131\web\WEB-INF\mapcache\adapterlibs\wms.USGS_URBAN.jar
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:/scratch/mapcache\. Cache root directory will be set to default root directory.
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
will be set to default root directory.
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:/private/scratch\. Cache root directory will be set to default root directory.
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
will be set to default root directory.
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:/scratch/mapcache\. Cache root directory will be set to default root directory.
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
will be set to default root directory.
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
WARNING: Invalid cache root directory:D:APPSVRj2eeMapViewerapplicationsMapViewer10131webmapcache\. Cache root directory
will be set to default root directory.
Jan 25, 2008 5:24:22 PM oracle.lbs.mapcache.MCSServlet$ColdStart run
INFO: *** Oracle MapCacheServer started. ***
Jan 25, 2008 5:26:21 PM oracle.lbs.mapcache.MCSServlet doPost
FINER: <request type="unknown request type" data_source="MVDEMO"/>
Jan 25, 2008 5:26:21 PM oracle.lbs.mapcache.MCSServlet doPost
FINER: <request type="unknown request type" data_source="MVDEMO"/>
Jan 25, 2008 5:26:22 PM oracle.lbs.mapcache.MCSServlet doPost
FINER: <request type="unknown request type" data_source="MVDEMO"/>
Jan 25, 2008 5:26:22 PM oracle.lbs.mapcache.MCSServlet doPost
FINER: <request type="unknown request type" data_source="MVDEMO"/>
Jan 25, 2008 5:26:22 PM oracle.lbs.mapcache.MCSServlet doPost
FINER: <request type="unknown request type" data_source="MVDEMO"/>
Jan 25, 2008 5:26:59 PM oracle.lbs.foi.FOIServlet dumpURLParams
FINEST: Servlet URL parameters (/foi):
[width] [2048]
[height] [1536]
[theme] [grim.MOSAIC2]
[dstsrid]
[8307]
[cachefoi] [yes]
[bbox] [-84.1257287289893:30.988239674744463:-82.76821692338207:32.006373528949894]
[request] [getfoi]
[area] [no]
[clickable] [yes]
[version] [1.0]
End of servlet URL parameters (/foi).
Jan 25, 2008 5:26:59 PM oracle.lbs.foi.FOIServlet doPost
FINEST: user making foi request: null
Jan 25, 2008 5:26:59 PM oracle.lbs.mapserver.core.MapperPool getMapper
FINER: getMapper(grim) begins...
Jan 25, 2008 5:26:59 PM oracle.lbs.mapserver.core.MapperPool getMapper
FINER: getMapper() succeeded.
Jan 25, 2008 5:26:59 PM oracle.sdovis.DBMapMaker addPredefinedTheme
FINEST: adding predefined theme [name=MOSAIC2]
Jan 25, 2008 5:26:59 PM oracle.sdovis.ThemeTable getCommonAttributes
FINEST: key_column using default: ROWID
Jan 25, 2008 5:26:59 PM oracle.sdovis.ThemeTable getGeoRasterTheme
FINER: Operation name: normalize
Jan 25, 2008 5:26:59 PM oracle.sdovis.LoadThemeData run
FINER: LoadThemeData running thread: Thread-37
Jan 25, 2008 5:26:59 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINEST: Theme definition SRID: 8307
Jan 25, 2008 5:26:59 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINER: Original query window: -84.1257287289893,30.988239674744463,-82.76821692338207,32.006373528949894
Jan 25, 2008 5:26:59 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINER: [Query] select grt.GEORASTER from MOSAICS grt where grt.GEORASTER.rasterid = ?
Jan 25, 2008 5:26:59 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINER: Fetch size: 10
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINEST: Data SRID: 8307
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer isDataWithinScale
FINER: [Master scale] 0.06363336588783941 [Scale factor for theme MOSAIC2] 1.0
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer isDataWithinScale
INFO: Screen resolution: 0.0027150236112144814
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINER: ULT offset: 0,0
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getSpatialResolution
FINEST: Res X: 5.000000001587068E-6 Res Y: 5.000000001587068E-6 Pyramidlevel: 0
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINEST: Upper Left Model Coordinate: -83.5357 , 31.4825
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getSpatialResolution
FINEST: Res X: 5.000000001587068E-6 Res Y: 5.000000001587068E-6 Pyramidlevel: 0
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getPyramidLevel
FINEST: Pyramid level: 5 GeoRaster: 102.0 for screen resolution: 0.0027150236112144814
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getSpatialResolution
FINEST: Res X: 1.6000000005078618E-4 Res Y: 1.6000000005078618E-4 Pyramidlevel: 5
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINEST: GeoRaster Dimension: width= 2717.0 height= 3947.0
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINER: [DimX] 83[DimY] 122
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINER: Converting to cell coordinate: [pyramidLevel] 5 [X] -84.1257287289893 [Y] 32.006373528949894
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getCellCoordinate
FINEST: getCellCoordinate query: SELECT
sdo_geor.getCellCoordinate(grt.GEORASTER,?,sdo_geometry(2001,8307,sdo_point_type(?,?,null), null,null)) coord FROM MOSAICS
grt WHERE grt.GEORASTER.rasterid = ? and grt.GEORASTER.rasterdatatable = ?
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getCellCoordinate
FINEST: Row:-3275 Column: -3688
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINER: Converting to cell coordinate: [pyramidLevel] 5 [X] -82.76821692338207 [Y] 30.988239674744463
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getCellCoordinate
FINEST: getCellCoordinate query: SELECT
sdo_geor.getCellCoordinate(grt.GEORASTER,?,sdo_geometry(2001,8307,sdo_point_type(?,?,null), null,null)) coord FROM MOSAICS
grt WHERE grt.GEORASTER.rasterid = ? and grt.GEORASTER.rasterdatatable = ?
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeDefinition getCellCoordinate
FINEST: Row:3089 Column: 4796
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINER: Calling JGeoRaster.getRasterImage - area: 0 , 0 , , 83 , 122
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINER: End of JGeoRaster.getRasterImage call.
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer performImageProcessing
FINER: Operation name: normalize
Jan 25, 2008 5:27:00 PM oracle.sdovis.theme.GeoRasterThemeProducer performImageProcessing
FINER: Normalize operation.
Jan 25, 2008 5:27:02 PM oracle.sdovis.theme.GeoRasterThemeProducer prepareData
FINEST: # image loaded: 1
Jan 25, 2008 5:27:02 PM oracle.lbs.mapserver.core.MapperPool freeMapper
FINER: freeMapper() begins...
Jan 25, 2008 5:27:02 PM oracle.lbs.foi.FOIServlet sendGZippedResponse
FINEST: Sending FOI response in gzip format.Hi Bruce,
for GeoRaster themes you can define a specific pyramid level to render, or you can leave the pyramid level null on the theme definition, and in this case MapViewer calculates the best level to render. The second option is recommended as it avoids loading unnecessary data given the current display parameters. If you are seeing your image get blocked, most likely at this zoom level and up you have reached the highest pyramid level of the GeoRaster. Even in MapBuilder if you keep zoom in, you get a blocked image after reaching the highest resolution level.
Joao -
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 -
Scale in MapViewer and MapBuilder
Hello everyone,
short question on scale-definitions in MapBuilder compared to MapViewer:
I'm using google coordinates on a tilelayer to convert some local data to 3785
<coordinate_system srid="3857" minX="-2.0037508E7" minY="-2.0037508E7" maxX="2.0037508E7" maxY="2.0037508E7"/>
<tile_image width="256" height="256"/>
<zoom_levels levels="19" min_scale="262144.0" max_scale="1.0" min_tile_width="76.43702697753906" min_tile_height="2.0037508E7">
<zoom_level level="0" name="" description="" scale="1.0" tile_width="2.0037508E7" tile_height="2.0037508E7"/>
<zoom_level level="1" name="" description="" scale="2.0" tile_width="1.0018754E7" tile_height="1.0018754E7"/>
<zoom_level level="2" name="" description="" scale="4.0" tile_width="5009377.0" tile_height="5009377.0"/>
<zoom_level level="3" name="" description="" scale="8.0" tile_width="2504688.5" tile_height="2504688.5"/>
<zoom_level level="4" name="" description="" scale="16.0" tile_width="1252344.25" tile_height="1252344.25"/>
<zoom_level level="5" name="" description="" scale="32.0" tile_width="626172.125" tile_height="626172.125"/>
<zoom_level level="6" name="" description="" scale="64.0" tile_width="313086.0625" tile_height="313086.0625"/>
<zoom_level level="7" name="" description="" scale="128.0" tile_width="156543.03125" tile_height="156543.03125"/>
<zoom_level level="8" name="" description="" scale="256.0" tile_width="78271.515625" tile_height="78271.515625"/>
<zoom_level level="9" name="" description="" scale="512.0" tile_width="39135.7578125" tile_height="39135.7578125"/>
<zoom_level level="10" name="" description="" scale="1024.0" tile_width="19567.87890625" tile_height="19567.87890625"/>
<zoom_level level="11" name="" description="" scale="2048.0" tile_width="9783.939453125" tile_height="9783.939453125"/>
<zoom_level level="12" name="" description="" scale="4096.0" tile_width="4891.9697265625" tile_height="4891.9697265625"/>
<zoom_level level="13" name="" description="" scale="8192.0" tile_width="2445.98486328125" tile_height="2445.98486328125"/>
<zoom_level level="14" name="" description="" scale="16384.0" tile_width="1222.992431640625" tile_height="1222.992431640625"/>
<zoom_level level="15" name="" description="" scale="32768.0" tile_width="611.4962158203125" tile_height="611.4962158203125"/>
<zoom_level level="16" name="" description="" scale="65536.0" tile_width="305.74810791015625" tile_height="305.74810791015625"/>
<zoom_level level="17" name="" description="" scale="131072.0" tile_width="152.87405395507812" tile_height="152.87405395507812"/>
<zoom_level level="18" name="" description="" scale="262144.0" tile_width="76.43702697753906" tile_height="76.43702697753906"/>
</zoom_levels>
on zoomlevel 18 I'm "closest" to the ground, on 1 I can see the whole world (no data there in my theme but theoretically...) - all fine (except black borders between tiles - other problem).
Now I want to improve image quality by choosing pyramid-levels for the zoom-level and tried to figure out a way to set up basemaps in mapbuilder using ratio.
That's where I noticed, that MapBuilder seems to use a different way of calculating scale in comparison to MapViewer. E.g. in my case scale 262144 is zoom-level 18 in MapViewer, but viewing the picture in MapBuilder I have to chose scale 1024 to get the same picture (which is zoom-level 10 in MapViewer).
Did I get anything wrong about this? Or is there anything I can do to sync the scales in order to make working with mapbuilder and mapviewer combined easier?
Also is there a way to see which pyramid-level of the georaster-file is used to calculate a maptile in MapViewer?
Thanks,
NilsOHi NilsO,
first about the pyramid level of GeoRaster used. MapViewer/MapBuilder calculates the closest pyramid level for the current map scale (based on map and device windows). You can find this information in the log when the GeoRaster theme images are being generated (you may need to set the logging to finest).
About the tile layer definition, in XML tile layer definition the values of min_scale and max_scale are interpreted differently from MapViewer base map definition. So I think in your case the min_scale should be 1.0 and the max_scale should be 262144 in XML, and the zoom levels would be in reverse order that you have.
How did you generate this tile layer definition?
The visualization scales in MapBuilder/MapViewer and Oracle maps in general should be consistent, although rendering in MapBuilder does not use the zoom levels of Oracle Maps (can be any scale). Please try changing the tile layer definition as mentioned above, to see if you still get the scale differences.
Joao -
Basic question about querying georaster tables
hello all
i have a table with georaster column containing georeferenced images covering large area. can i query the table to get an image covering any user given cooordinates . the user given coordinates can span more than one image in the table. is this possible
thanksHi,
Yes this is possible to operate with several GeoRaster images in one or several tables. But before this you should create specific GeoRaster metadata structure to join those separate images. You can find information about this procedure in GeoRaster documentation.
Regards,
Andrejus -
how can the publication the Mapview on WebLogic there any tutorial as saying.
Rafiou,
yes you are in the right place. SURE, you can load the pictures into GeoRaster objects and define a GeoRaster theme for each GeoRaster, then you can display, pan, zoom in and zoom out the pictures on internet using MapViewer.
The pictures can easily be tiled either when you load them or afterwards by using the GeoRaster tuning tool: sdo_geor.changeFormatCopy. in general you should call sdo_geor.generatePyramid to generate pyramids for each GeoRaster object. MapViewer will pick up the right pyramid level from the database when you zoom in and out. Also, you can use Oracle Maps and leverage caching to speed up and support multi-users.
regards,
Jeffrey Xie -
Use GDAL Import data to Georaster ERROR!
I use GDAL to import data into Georaster, but it give me an error: ERROR 1:OCI_NEED_DATA. The import data command is : gdal_translate -of georaster tt.png "geor:system/123@orcl". Do anyone can tell me how to resolute this question?
Edited by: user11264673 on 2009-7-12 上午6:49I use such format:
gdal_translate -of georaster D:\product\11.1.0\db\OSGeo4W\image2\Extract_20.img georaster:system/123,,city_images,georaster
-co "DESCRIPTION=(ID NUMBER, NAMEFILE VARCHAR2(45), GEORASTER MDSYS.SDO_GEORASTER)"
-co "INSERT=VALUES(19,'West fields', SDO_GEOR.INIT('city_images_rdt',19))"
It also have the same problem,like these below:
D:\product\11.1.0\db\OSGeo4W>gdal_translate -of georaster Extract_20.img georaster:system/123,orcl,city_images,georaster -co "DE
SCRIPTION=(ID NUMBER, NAMEFILE VARCHAR2(45), GEORASTER MDSYS.SDO_GEORASTER)" -co
"INSERT=VALUES(19,'West fields', SDO_GEOR.INIT('city_images_rdt',19))"
GDAL: Auto register D:\product\11.1.0\db\OSGeo4W\apps\gdal-16\bin\gdalplugins\gd
al_GEOR.dll using GDALRegister_GEOR.
GDAL: GDALOpen(Extract_20.img, this=016781A8) succeeds as HFA.
Input file size is 8534, 6478
GDAL: QuietDelete(georaster:system/123,,city_images,georaster) invoking Delete()
GDAL: GDALOpen(georaster:system/123,,city_images,georaster, this=01825608) succe
eds as GeoRaster.
PL/SQL:
DECLARE
TAB VARCHAR2(68) := UPPER(:1);
COL VARCHAR2(68) := UPPER(:2);
CNT NUMBER := 0;
BEGIN
EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM USER_TABLES
WHERE TABLE_NAME = :1 ' INTO CNT USING TAB;
IF CNT = 0 THEN
EXECUTE IMMEDIATE 'CREATE TABLE '||TAB||' (ID NUMBER, NAMEFILE VARCHAR2(45),
GEORASTER MDSYS.SDO_GEORASTER)';
SDO_GEOR_UTL.createDMLTrigger( TAB, COL );
END IF;
END;
PL/SQL:
DECLARE
TAB VARCHAR2(68) := UPPER(:1);
COL VARCHAR2(68) := UPPER(:2);
CNT NUMBER := 0;
GR1 SDO_GEORASTER := NULL;
BEGIN
GR1 := SDO_GEOR.createBlank(21001, SDO_NUMBER_ARRAY(0, 0, 0), SDO_NUMBER_ARRAY
(6478, 8534, 3), 0, 'CITY_IMAGES_RDT', 19);
GR1.spatialExtent := NULL;
INSERT INTO city_images VALUES(19,'West fields', GR1) RETURNING georaster INTO
GR1;
SELECT GR1.RASTERDATATABLE INTO :rdt FROM DUAL;
SELECT GR1.RASTERID INTO :rid FROM DUAL;
EXECUTE IMMEDIATE 'SELECT COUNT(*) FROM USER_OBJECT_TABLES
WHERE TABLE_NAME = :1' INTO CNT USING :rdt;
IF CNT = 0 THEN
EXECUTE IMMEDIATE 'CREATE TABLE '||:rdt||' OF MDSYS.SDO_RASTER
(PRIMARY KEY (RASTERID, PYRAMIDLEVEL, BANDBLOCKNUMBER,
ROWBLOCKNUMBER, COLUMNBLOCKNUMBER))
LOB(RASTERBLOCK) STORE AS (NOCACHE NOLOGGING)';
END IF;
SDO_GEOR.createTemplate(GR1, 21001, 'dimSize=(6478,8534,3) blockSize=(256,256,
1) cellDepth=8BIT_U interleaving=BSQ compression=NONE ', null, 'TRUE');
UPDATE city_images T SET georaster = GR1 WHERE T.georaster.RasterDataTable = :
rdt AND T.georaster.RasterId = :rid;
END;
GDAL: GDALClose(georaster:system/123,,city_images,georaster, this=01825608)
PL/SQL:
SELECT TABLE_NAME, COLUMN_NAME
FROM USER_SDO_GEOR_SYSDATA
WHERE RDT_TABLE_NAME = UPPER(:1) AND RASTER_ID = :2
PL/SQL:
SELECT T.GEORASTER.RASTERDATATABLE,
T.GEORASTER.RASTERID,
T.GEORASTER.METADATA.getClobVal()
FROM CITY_IMAGES T
WHERE T.GEORASTER.RasterDataTable = UPPER('CITY_IMAGES_RDT') AND T.GEORASTER.Ra
sterId = 19
ERROR 1: OCI_NEED_DATA
GDAL: GDALOpen(georaster:system,123,,CITY_IMAGES_RDT,19, this=01822B18) succeeds
as GeoRaster.
GEOR: SetProjection(GEOGCS["WGS_1984",DATUM["WGS_1984",SPHEROID["WGS 84",637813
7,298.2572235630016],TOWGS84[0,0,0,0,0,0,0]],PRIMEM["Greenwich",0],UNIT["degree"
,0.0174532925199433],AUTHORITY["EPSG","4326"]]) -
Raster map is not displaying on map
Hi Dear,
i have a problem displaying raster map. raster maps are successfully loaded and i created raster theme and able to display raster maps on map builder. then i created a map which contains 2 geometry themes and 1 raster theme i am able to see all these themes together in mapbuilder displaying fine. but when i am trying to display on map its displaying only geometry themes
not displaying rasters on map
here is my raster theme xml code
<?xml version="1.0" standalone="yes"?>
<styling_rules theme_type="georaster">
</styling_rules>
do i need to add any more additions to my raster theme to display on my map ?
please some one let me know
Thanks
KabeerHi Joao
i copied those jar files to my mapviewer WEB-INF\lib directory and its working fine. its displaying my vector and raster data on my map.
but there was small thing i what i recognized that before copying these files i had a georaster theme map and it does not display even if i run Purge cached metadata from mapviewer.
i created again another georaster theme map and created cache then it worked with me.
Thanks once again
Regards
Kabeer -
Oracle10g Spatial - Some information
Hi,
Some of the talks at Oracle World this week will discuss publicly for the first time some of the new features in Spatial for Oracle10g. There has been some interest expressed in this forum in finding out what to expect, so some information has been put together specifically to post here.
A brief list of major features include:
Topology Data Model - The ability to store and maintain spatial data in a topologically consistent way using nodes, edges, and faces. The topology model is a persistent (stored) model. Java and PL/SQL APIs are provided for applications/users who want to update topology data. The ability to select spatial features from the topological primitives is supported, as is the ability to store spatial features in a separate geometry column.
Network Data Model - The ability to store and maintain connectivity (graph) information in the database. The network data model includes a routing engine, and it can be integrated with spatial data, linear referenced spatial data, or topology data. Cost information can be stored and accounted for when doing network analysis.
GeoRaster - The ability to store, index, and retrieve Raster data (image, grid, raster, you name it) using the Oracle 10g database. Oracle Spatial GeoRaster includes an xml metadata schema for GeoRaster metadata. GeoRaster supports georeferenced data so you can dynamically determine which pixels/cells to fetch from an image based on a set of Earth coordinates and determine Earth coordinates based on pieces of an image. It also includes the ability to publish GeoRaster data as GIFF or JPEG images.
GeoCoding - New function to generate long/lat from Address data.
Spatial data mining features for use in demographics, epidemiology, insurance, business analysis, etc.
New, supported Java API (ships with Spatial). Includes in-memory R-tree indexing.
In the Application server associated with 10g, a faster and improved version of MapViewer.
A short (incomplete) list of other new features include:
Transportable tablespace support for tables with Spatial indexes.
Generate the location of a point given a start point and bearing.
Generate GML (geography markup language) from spatial data.
SDO_JOIN feature to optimally combine two layers based on spatial interactions.
Default for SDO_RELATE and SDO_FILTER is now querytype=window, which no longer needs to be specified.
New operators for specific interactions, such as SDO_INSIDE and SDO_ANYINTERACT.
New function to validate WKTEXT of user-defined coordinate systems.
MBR type is now supported for geodetic data (internally densifies every degree of latitude).
LRS enhancements to include signed offset for some functions.
New function to estimate the R-tree index size before it is created.
Interior buffers (negative buffer distance).
...and many others.
Thanks for using spatial, and hopefully the new features will help with current development as well as give ideas for future work using spatial.I got some info at https://www.oracleworld2003.com/published/40125/40125_Lopez.doc and at
https://www.oracleworld2003.com/published/40125/40125_Lopez_v3.ppt
However, I would like to know some details about nw functions, model etc.
Thanks
Syed -
How to create spatial views in sqldeveloper
Hi,
I've installed an oracledatabase with spatial. until now I used mapviewer with the jsp's of it, and oracle apex (formerly htmldb) to show maps.
now i've installed sqldeveloper with georaptor included . my database is up and running, I have made a connection to my database, use the same sdo metadata, have mapviewer started and added the datasource (as admin).
if I try to see the map in sqldeveloper I get a message : no layer selected
can anyone tll me what I have forgotten or what I do wrong ?
Thanks in advance !Hi GeoRaptor users,
The current version of GeoRaptor does not work for SQL Developer 1.1
For this version of Oracle SQL Developer, i made the CVS head revision (1.7) of GeoRaptor available till the GA is being released.
Select Help -> Check for Updates...
Select Add, enter GeoRaptor and http://testnext.com/oracle/sqldeveloper/georaptor-20070207/install.xml, and click OK.
Cheers,
Jeroen van Schaijk
Maybe you are looking for
-
JSP page do not close after loading a file
Hello, i am having a bit of a problem. i have the following code that help me load reports (pdf and xls) from my server in the user browser. What i do in my code : jsp Page 1(generationInProgress) i create one of these reports (xml with blob) --> jsp
-
Hi Frds In my smartform output(Print Preview) the header line is coming THICKER . How to reduce it ? Thanks Pari Vendhan.R
-
Ask the Expert: Architecting your Collaboration Solution with Social and Video
With Gebran Chahrouri Welcome to the Cisco Support Community Ask the Expert conversation. This is an opportunity to learn and ask questions about ways that Enterprise Social and Video are woven into traditional Voice solutions and Architectures with
-
Using iDVD project file after deleting original iMovieHD
I've been using iMovieHD and iDVD to convert my home movies from miniDV tapes to DVDs. I've been putting two one-hour tapes together into one iMovie and then creating an iDVD project with themes, chapters, etc. Each two-hour iMovie file takes up >20
-
I finally managed to navigate in DVD SP. Made my first Menu linked to a 2nd (sub menu). There I have the buttons linked to my videos. In Style I enable Motion and the asset is linked to the video. All buttons play fine. But then, of a sudden, none of