Mapviewer and WMS

Hi,
I am trying to make the WMS servlet filter work, without success. I got my own datasource with styles/themes etc, and I am able to genereate previews using mapclient.jsp. GetCapabilities seems correct to me:
<Layer>
<Name>WMS</Name>
<Title>Oracle WebMapServer-lag etter datakilde.</Title>
<SRS>SDO:8307</SRS>
<LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
<Layer>
<Name>GMIVA_SDO</Name>
<Title>Datasource GMIVA_SDO</Title>
<Layer>
<Name>VALINES</Name>
<Title>Basemap VALINES</Title>
<SRS>SDO:0</SRS>
<LatLonBoundingBox minx="-180.0" miny="-90.0" maxx="180.0" maxy="90.0"/>
</Layer>
</Layer>
</Layer>
When making a GetMap request, I get the following exception (Norwegian is translated in bold):
<ServiceExceptionReport version="1.1.1">
<ServiceException>
<![CDATA[<oms_error>Message:[oms] kilden for kartdataene ble ikke funnet.( datasource not found)
Thu Apr 20 10:22:23 CEST 2006
Severity: 0
Description:
     at oracle.lbs.mapserver.oms.doPost(oms.java:334)
     at oracle.lbs.mapserver.oms.doGet(oms.java:235)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
     at oracle.lbs.webmapserver.WMSServletFilter.doFilter(WMSServletFilter.java:212)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
     at java.lang.Thread.run(Unknown Source)
</oms_error>]]>
</ServiceException>
</ServiceExceptionReport>
What am I doing wrong here ? Any suggestion is welcome !

With MapViewer 11g EA1 (early access release 1), you can supply a custom SDO-EPSG srid map file; when present, this file tells MapViewer to automatically convert between equivalent SDO and EPSG srids. This is set in the mapViewerConfig.xml file, for instance:
<wms_config host="www.my_corp.com" port="80">
    <title>
        WMS 1.1 interface for Oracle Application Server 10g MapViewer
    </title>
    <abstract>
        This WMS service is provided through Oracle MapViewer.
    </abstract>
    <keyword_list>
       <keyword>bird</keyword>
       <keyword>roadrunner</keyword>
       <keyword>ambush</keyword>
    </keyword_list>
    <sdo_epsg_mapfile>
      ../config/epsg_srids.properties
    </sdo_epsg_mapfile>
  </wms_config>the format of the file (which must have .properties as file extension) is very simple. Each line contains one map from a SDO srid to an EPSG srid:
<sdo_srid>=<epsg_srid>
for instance a simple file may contain:
   81922=20248
   8307=4326
  ...Once you restart MapViewer it should recognize incoing wms req with EPSG srid, and also use EPSG srids when generating the capabilities response.
on a somewhat related note, if you havn't tried the MapViewer 11g EA1, it has a great feature called Oracle Maps, which gives your map a Google-maps look and feel. This Oracle Maps can be hooked up with any existing WMS services, and essentially turns any WMS served map layer into high-performant draggable web map. For details check out my blog here http://www.giscape.com/oraclemaps.
thanks

Similar Messages

  • 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,
    NilsO

    Hi 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

  • Question re: MapViewer and Network Model functions

    Hi all,
    Quick question re: MapViewer and it's support for the Network Model and the shortest-path functions. If I create a base map with a network theme based on my (large) network, and then use a jdbc_network_query on the same network to do some shortest path analysis will MapViewer use the (hopefully) cached copy of the Network to calculate the shortest path? i.e can I expect good response times once the cache is warmed up?
    Thanks,
    Steve

    Hi Steve,
    MapViewer uses the Network Java library to run the shortest path algorithm. This library is independent of the MapViewer cache, and also not thread safe. So for now the network is always loaded. The load time may be reduced if the request has a MBR, but it is not the ideal solution. There is a working going on, and we hope to avoid this load in future versions.
    Thanks.

  • Jboss with mapviewer and network configuration.

    Hello All,
    developped succesfully an application piece with mapviewer and network (10.x) ndm on OAS.
    Now should integrate in solution running on JBoss 4.0.5.
    First problem arises when cannot reach new mapviewer html admin pages.
    Anybody has experience on this?
    Thank you,
    David

    Thank you again Justin.
    I think I'm getting closer but not working yet.
    Was missing the step you pointed out.
    Used succesfully the AdfInstaller from OTN after copying the 36 lib files to JBOSS_HOME/server/default/lib.
    But can't run /mapviewer/faces/home.jspx yet.
    Next I post errors for before (a) and after (b) having deleted folder jboss\server\default\deploy\jbossweb-tomcat55.sar\jsf-libs [Understood this as equivalent step from doc "JBoss Deployment Notes" although written for version 4.0.3]
    Also tried to delete folders tmp, log and data, but get same error.
    (A)
    Error raised on executing
    /mapviewer/faces/home.jspx
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:395)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
    On the log at the jboss cmd prompt:
    22:22:08,421 ERROR [STDERR] Thu Dec 06 22:22:08 CET 2007 INFO [oracle.lbs.mapcac
    he.mcservlet] *** Oracle MapCacheServer started. ***
    22:22:55,812 ERROR [UIComponentTag] Faces context not found. getResponseWriter w
    ill fail. Check if the FacesServlet has been initialized at all in your web.xml.
    22:22:55,953 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.NullPointerException
    at javax.faces.webapp.UIComponentTag.setupResponseWriter(UIComponentTag.
    java:929)
    at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:310)
    (B)
    Error raised on executing
    /mapviewer/faces/home.jspx
    org.apache.jasper.JasperException: org.apache.myfaces.taglib.core.ViewTag
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810
    On the log at the jboss cmd prompt:
    22:50:56,156 INFO [STDOUT] INFO [oracle.lbs.mapserver.core.MapperConfig] settin
    g logging level to error
    22:51:01,859 ERROR [STDERR] Thu Dec 06 22:51:01 CET 2007 INFO [oracle.lbs.mapcac
    he.mcservlet] *** Oracle MapCacheServer started. ***
    22:51:47,687 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
    java.lang.NoClassDefFoundError: org.apache.myfaces.taglib.core.ViewTag
    at org.apache.jsp.home_jspx._jspx_meth_f_view_0(home_jspx.java:137)
    at org.apache.jsp.home_jspx._jspService(home_jspx.java:118)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:334)
    22:51:47,687 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servle
    threw exception
    java.lang.NoClassDefFoundError: org.apache.myfaces.taglib.core.ViewTag
    at org.apache.jsp.home_jspx._jspx_meth_f_view_0(home_jspx.java:137)
    at org.apache.jsp.home_jspx._jspService(home_jspx.java:118)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    Also would like to solve error related to georaster that seems a missing class:
    22:58:42,343 ERROR [STDERR] Exception in thread "Thread-81"
    22:58:42,343 ERROR [STDERR] java.lang.NoClassDefFoundError: javax/media/jai/Data
    BufferFloat
    22:58:42,359 ERROR [STDERR] at oracle.sdovis.theme.GeoRasterThemeProducer.pr
    epareData(GeoRasterThemeProducer.java:577)
    22:58:42,359 ERROR [STDERR] at oracle.sdovis.GeoRasterTheme.prepareData(GeoR
    asterTheme.java:90)
    22:58:42,359 ERROR [STDERR] at oracle.sdovis.LoadThemeData.run(LoadThemeData
    .java:66)
    Regards,
    David

  • Openstreetmap in mapviewer using wms

    Hi,
    I am trying to integrate openstreetmap with Map vieweer using a wms.
    After followring the post in Oracle Maps (SPATIAL/Mapviewer): Oracle Maps uses &quot;Openstreetmap&quot; as WMS I have been able to integrate it
    But the wms used here is only for Europe map.
    So can any one please let me know which wms url I should be using for World map of Openstreetmap ?
    and what will be the parameter values when creating the tile layer in Map viewer?
    Thanks

    Was addressed in the SR. It required the correct SRID in one case and the right request parameters in the other.

  • Mapviewer 11EA & WMS

    Hi!,
    I've tested the terramap server us:
    String[] layers2 = {"USGS Digital Ortho-Quadrangles"};
    String[] styles2 = null;
    mvHandle.addWMSMapTheme("wms_theme2","http://terraserver.microsoft.com/ogccapabilities.ashx",layers2,styles2,null);
    I know, the WMS url should be the base url for the GetCapabilities request.
    But! MapViewer seems to take the url for a map request.
    --> http://terraserver.microsoft.com/ogccapabilities.ashx?VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326& BBOX=-122,37,-122,37&WIDTH=600&HEIGHT=400&FORMAT=image/png&BGCOLOR=0xffffff&TRANSPARENT=TRUE&LAYERS=USGS+Digital+Ortho-Quadrangles &EXCEPTIONS=application/vnd.ogc.se_inimage
    This is not correct while the GetMap request MUST be taken from within the GetMap tag!
    <Capability>
    <Request>
    <GetCapabilities>
    <GetMap>
    For that case it would be:
    <Get>
    <!-- The URL here for invoking GetMap using HTTP GET
    is only a prefix to which a query string is appended. -->
    <OnlineResource xmlns:xlink="http://www.w3.org/1999/xlink"
    xlink:type="simple"
    xlink:href="http://terraservice.net/ogcmap.ashx" />
    </Get>
    So I'm wondering about the capability of MapViewer. Does anyone has similar experiences or/and suggestions?
    regards, Andreas
    Message was edited by:
    Andreas.Brodkorb

    Hi jpaiva,
    Yes, i know that.
    I said
    mvHandle.addWMSMapTheme("wms_theme2","http://terraserver.microsoft.com/ogccapabilities.ashx",layers2,styles2,null);
    where http://terraserver.microsoft.com/ogccapabilities.ashx is the capabilities URL.
    The getMap URL is different! from that. Regarding the ogc specification it is the way, that mapviewer should read the GetMap URL from within the GetCapabiltites response! It does not. I know this and use for that way not
    http://terraserver.microsoft.com/ogccapabilities.ashx but
    http://terraservice.net/ogcmap.ashx
    I wanted to remark, that this way may be a bit complicated, because many OGC-Services are known over their Capabilities URL. If mapviewer would read the capabilities document and would generate the map request with the URL given with that capabilities document i would be more than happy ;)
    regards, Andreas
    btw: so i must read the capabilities document...

  • Mapviewer as WMS *Client*

    Hi forum
    A partner of ours has asked me to examine, whether it's possible to include WMS data in Mapviewer requests. I have found, that Mapviewer can act as a WMS server, but can it also act as a WMS client to other WMS servers?
    I'd like to integrate a WMS layer from another server than my own Mapviewer into my request using the Mapviewer Java client lib (mvclient.jar). Is this possible - and if not, does anyone know, if there's any free 100% WMS 1.1.1-compliant Java client libraries out there to integrate in the client application? All talk in the documentation is about how to use Mapviewer as a WMS server itself, and this is not what I'm looking for in this case.
    Regards,
    Jacob

    See the doc (appndx D) on adding a WMS Theme.
    D.3 Adding a WMS Map Theme
    You can add a WMS map theme to the current map request. The WMS map theme is
    the result of a GetMap request, and it becomes an image layer in the set of layers
    (themes) rendered by OracleAS MapViewer.
    To add a WMS map theme, use the WMS-specific features of either the XML API (see
    Section D.3.1) or the JavaBean-based API (see Section D.3.2).

  • Schedule line CT and WMS

    hello, friends.
    in a scenario without WMS, i split a sales order quantity into several schedule lines.  in one schedule line, i specify the category as CT.
    all items are delivered, including the item with sked line cat CT(movement type [blank]) in a separate delivery document.  all deliveries were successfully picked, goods issue posted and collectively invoiced.
    however, when i tried this approach in a make-to-order scenario with WMS, the delivery with sked line CT could not be picked (using LT03) or posted for goods issue.   the error messages i got were:
    VL608  Delivery has not been completely processed by WM.
    VL609  Delivery has not been putaway/picked completely
    i also got an error while determining reference movement type for WM via table T156S.
    hope somebody can help solve this issue.
    many thanks.
    jy

    hello again.
    oooopppsss!!!! sorry, i was able to solve it.
    what i did was delete the batch split item, and manually entered the picking quantity and batch in the same line as item 10 (the main item).  goods issue can now be posted.
    many thanks.
    jy

  • Confused about Mapviewer and SQL in OBIEE 11g.

    I read in another post that you cant use mapviewer unless you have an oracle database.
    Here is my confusion. The mapviewer product comes with OBIEE 11g, Correct?
    If I use Google Maps, and load the map information into an SQL data base, why wouldnt I be able to get it to work?
    I cant believe that Oracle, who makes a big deal about how OBIEE can work with "Any data source", would provide a key function
    that would only work with an Oracle data base, thereby purposely excluding many of their customers from using that key function.
    Someone please clear this up for me because we need to use maps and we use SQL Server 2008  for our data warehouse.

    Hi katherine,
    FILTER(count(distinct("customer info dimesion"."customerID")) USING ("TradeType Dimesion"."TradeType" = '001'))I think your formula there is mistake like many braces...instead type this in your f(x)
    =>Filter(count(distinct customer_id) USING trade type='001')
    This filter function is same like a case statement,if you filter still gives error write a case statement
    CASE WHEN TradeType Dimesion.TradeType='001' THEN count(distinct customer info dimesion.customerID) ELSE 0 END
    Will it be helpful?,follow this etiquette http://forums.oracle.com/forums/ann.jspa?annID=939
    By,
    KK

  • MapViewer and AUTO:42004 coordinate system

    How can I use Oracle MapViewer against an external WMS server using the coordinate system AUTO:42004?
    I have tried it, but the min/max longitude values in the BBOX parameter become wrong.
    - Ingebrigt -

    Ingebrigt
    The AUTO keyword is not supported in the current release.
    From the MV doc Sec D.2.1.14 SRS Parameter
    "The namespace AUTO, for projections that have an arbitrary center of projection, is not supported. "
    Jayant

  • Mapviewer and file directory for apps

    Hello,
    i have mapviewer 11 EA1 pre-deployed and oracle 10.2 data base. I want to build up a little data mart with an interface to mapviewer to use geographical card material. Every query should be handled inside a browser. So i want to use servlet and jsp.
    I've built a jsp which works well within jdeveloper(embedded oc4j client). I can see the card material within the brower. Now my question is where in the file system(windows xp) can i put my jsp and servlet to make queries from inside of a browser and "it runs of its own". If i would use tomcat it's something like localhost:8080/gis but how is it in combination with mapviewer. I don't want to separate the servlets for my data mart and the gis-query. All should be in one directory, naturally with subdirectories.
    Hopefully, someone can help me
    thanks a lot

    Hi,
    /Users/YourUsername/Library/Safari/Bookmarks.plist
    Copy it to the new machine and you should be fine.

  • MapViewer and Google Maps

    Hi
    The MapViewer 11g manual refers to MVGoogleTileLayer. Is it possible to access this layer via MapViewer by using a <map_tile_theme map_tile_layer="???"/> within a <theme> of a <map_request>? I've read the docs and searched as best I can, but everything points to using JavaScript and I would like to do it via a map request.
    Many thanks
    Mike

    Hi Mike,
    this can be done if you use the latest patch (10084760). Basically the steps would be:
    1) On the web administration page, create an external tile layer of type Google maps. You will need to set your key parameter.
    2) To test your tile layer, you can select it on Manage Map Tile Layers web page, and click on the "View Map/Manage Tiles'.
    3) Then you can go to the Requests page and try a map request. For example:
    <?xml version="1.0" standalone="yes"?>
    <map_request
      datasource="mvdemo"
      width="630"
      height="367"
      transparent="true"
      istilereq="true"
      antialiase="true"
      format="PNG_STREAM"
    >
      <box>
        <coordinates> -10527518.8515625,4490828.208984375 -10000518.8515625,5000828.208984375   </coordinates>
      </box>
      <themes>
        <theme name="tile_theme" datasource="mvdemo">
          <map_cache_theme map_cache_name="google_map"
                     snap_to_cache_scale="true" />  
        </theme>
      </themes>
    </map_request>Joao

  • Mapviewer and Safari

    Is MapViewer meant to work with Safari? If I try and drag and drop a map around, I can pick up the map tile itself, but can't drag the whole map. Anyone know a workaround?

    I've been experimenting with trying to disable the default behaviour of Safari,
    So far - I've come up empty.
    Any Idea's would be great...

  • Mapviewer and georaster...

    Using MapViewer_10(georaster.jsp), I am trying to display a georaster map...
    1. PL/SQL
    create table GEORASTER_TABLE
    (georid number primary key,
    type varchar2(32),
    GEORASTER sdo_georaster);
    call sdo_geor_utl.createDMLTrigger('GEORASTER_TABLE', 'GEORASTER');
    create table RDT_GEOR of sdo_raster
    (primary key (rasterid, pyramidLevel, bandBlockNumber,
    rowBlockNumber, columnBlockNumber))
    lob(rasterblock) store as (nocache nologging);
    commit;
    declare
    geor SDO_GEORASTER;
    begin
    delete from georaster_table where georid = 1;
    insert into georaster_table
    values( 1, 'TIFF', sdo_geor.init('RDT_GEOR', 1) );
    select georaster into geor
    from georaster_table where georid = 1 for update;
    sdo_geor.importFrom(geor, '', 'TIFF', 'file',
    '/u00/SFTP_USER_DIR/img1.tif');
    update georaster_table set georaster = geor where georid = 1;
    commit;
    end;
    declare
    gr1 sdo_georaster;
    begin
    select GEORASTER into gr1
    from GEORASTER_TABLE where georid = 1;
    sdo_geor.changeFormat(gr1, 'blocksize=(256,256,3) interleaving=BIP');
    update GEORASTER_TABLE set GEORASTER = gr1 where georid = 1;
    commit;
    end;
    declare
    gr sdo_georaster;
    begin
    select georaster into gr
    from GEORASTER_TABLE where georid = 1 for update;
    sdo_geor.generatePyramid(gr, 'resampling=NN');
    update GEORASTER_TABLE set georaster = gr where georid = 1;
    commit;
    end;
    DECLARE
    gr sdo_georaster;
    BEGIN
    SELECT georaster INTO gr FROM GEORASTER_TABLE WHERE georid = 1 FOR UPDATE;
    sdo_geor.georeference(gr, 262148, 1,
    sdo_number_array(1,0,1),
    sdo_number_array(0,-1,1));
    UPDATE GEORASTER_TABLE SET georaster = gr WHERE georid = 1;
    COMMIT;
    END;
    /DECLARE
    sptext sdo_geometry;
    BEGIN
    SELECT sdo_geor.generateSpatialExtent(a.georaster) INTO sptext
    FROM GEORASTER_TABLE a WHERE a.georid=1 FOR UPDATE;
    UPDATE GEORASTER_TABLE a SET a.georaster.spatialextent = sptext WHERE
    a.georid=1;
    COMMIT;
    END;
    commit;
    INSERT INTO user_sdo_themes VALUES (
    'GEORASTER_TABLE',
    'GeoTiff image',
    'GEORASTER_TABLE',
    'GEORASTER',
    '<?xml version="1.0" standalone="yes"?>
    <styling_rules theme_type="georaster" raster_table="RDT_GEOR"
    raster_id="1" raster_bands="0,1,2">
    </styling_rules>' );
    commit;
    select v.georid, sdo_geor.validateGeoraster(v.georaster) isvalid from georaster_table v
    -- TRUE --
    select v.georid, sdo_geor.schemavalidate(v.georaster) isvalid from georaster_table v
    -- TRUE --
    2. MapViewer
    Data Sourse: mvdemo
    SRID: 262148
    X center: 0
    Y center: 0
    Map Size: 10
    Request Mode: rasterid
    GeoRaster Table: GEORASTER_TABLE
    GeoRaster Column: GEORASTER
    Raster ID: 1
    Raster Table: RDT_GEOR
    Pyramid Level:
    Bands: 0,1,2
    Query Condition:
    3. Click Submit and see the blue square..........
    What i'm doing wrong?

    Hi Maxim,
    some comments:
    1) To use the georaster.jsp page you don't need to create the predefined theme.
    2) You should register the GeoRaster spatial extent on the metadata view, and also create a spatial index. Something like (the dimension element values are just sample, you should use values that refer to your data):
    INSERT INTO USER_SDO_GEOM_METADATA VALUES
    ( 'georaster_table',
      'georaster.spatialextent',
      SDO_DIM_ARRAY(
        SDO_DIM_ELEMENT('X', 496602.844, 695562.844, 0.000005),
        SDO_DIM_ELEMENT('Y',8788409.499,8973749.499, 0.000005)
      262148 -- SRID
    CREATE INDEX geor_idx ON georaster_table(georaster.spatialextent)
      INDEXTYPE IS MDSYS.SPATIAL_INDEX;3) I think you should review your georeference parameters. I'm seeing resolution equal 1 and the top corner as 1,1. Look the Tiff parameters (resolution and coordinates) and use them.

  • Integrating Mapviewer and OBIEE 11G

    Hi all,
    I am unable to get a map to be displayed in an answers report.
    I have imported Layers, Background Maps and images into Answers under the Administration - Manage Map Data
    In there I am able to display a map from the menu options Edit Background map.
    However when adding a map view to answers report I get the following error:
    View Display Error
    A basemap is required to render a map. Please ensure that atleast one basemap is defined in the spatial meta-data
    Error Details
    Error Codes: EMGUNIA3
    Location: saw.views.evc.activate, saw.httpserver.processrequest, saw.rpc.server.responder, saw.rpc.server, saw.rpc.server.handleConnection, saw.rpc.server.dispatch, saw.threadpool, saw.threadpool, saw.threads
    If anybody have a working integration, please let me know what I am missing.
    Regards,
    Hakan

    on Presentation OBIEE 11g , you need to integrate MapViewer with OBIEE11g :
    * when you Build Themes (Layers) using Map Builder, don't forget to add Info Columns .
    Example : in Region Table , Region_ID, Name , Description
    once you do that, keep in note when you add this theme (layer) in Presentation (OBIEE11g) on Administration-->Map Management --> Manage Map Data ---> Layers .. Then Add your Theme (Layer).
    * Double Click your Layer (Theme) and click ( +) icon to add New BI Key , these BI Keys are same columns you added in Map Builder Info Columns (Region_ID, Name, Description) you should add them serialized exactly like how you did it in Map Builder info columns which mean don't add (Name,Region_ID,Description) ... that will may unable to view map properly.
    this step above you keep adding it each Subject Areas one by one if need for map, once you finish doing this, this mean you integrate Mapviewer with OBIEE11g...
    don't forget to add at lease one measure in your answer to view map properly , so that you can add PIE, BAR charts or Color Schemes...
    good luck

Maybe you are looking for

  • How to add multiple annotation in selection one by one

    Hi, I want to add annotation one by one to selection thru code. I tried to use   AVDocSetSelection (avDoc, ASAtomFromString( "Annotation"), (void *)pdAnnot, true); but this clear the previous selection.And I am not able to add multiple annotation. So

  • TS2529 iTunes backup error

    iTunes does not backup "because an error occurred" on my Mac.  Any suggestions on how to back up my iPhone 4S without errors?  All hardware and software are up-to-date (iTunes, iPhone and Mac).

  • Mac wont load anything on power up

    when i turn on my mac the screen looks very distorted, pixels all over the place all pinky blues, and can only just make out the start up apple logo, then a dark line moves down the screen, and a box appears saying that my mac needs to be restarted,

  • More uploading errors.  This time site works but mobile me can't be updated

    Someone gave me some advice to be patient as the apple servers are weird at times. I did find that my site published, then all pages turned red, wasn't published, etc. Each time I upload it is close to 4 hours so each experiment is taking a long time

  • Querry runing slow.

    below qurrery is runing slow. it's taking 16 mins. Can any one please help me out why it 's taking this much time. SELECT t1.ebiz_cntrl_no, COUNT (DISTINCT (tl.mast_ebiz_lp_no)) pallet_count, trl.pro_no, trl.trailer_type, t1.comp_id FROM dirp_trn_ebi