Bounding Theme With Mapviewer Bean

Hello
I using the MapViewer Bean to render a map in Oracle Forms. I can successfully show the map and use addJDBCTheme to add a dynamic theme. I am now trying to zoom in/out on the map so the image returned shows all items in the dynamic theme. Does anyone no how to do this using the bean?
TIS Chris

Hi Joao
Thanks for the reply.
Although I have read about this procedure in some MapViewer documentation I am unable to get to it through the MapViewer java class - I am writing a bean that utilises this class and this method does not appear to to be in this class. Do you know of any other way a can access it?
Thanks
Chris

Similar Messages

  • How to use bounding theme with jdbc theme

    Hello
    I'm using oracle maps javascript API to locate geometry with jdbc theme based foi, so how to use bounding theme with jdbc theme? Give me help, thanks.

    Hi,
    You can find some information & code samples at this link :-
    http://download-west.oracle.com/docs/cd/B19306_01/java.102/b14355/xadistra.htm#g1077100
    Regards,
    Sandeep

  • Must I put the raster data in Oracle if I want to use them with MapViewer?

    I want to publish some raster data with MapViewer, must i put them in oracle, can I could put them in folder?

    you must store the images in oracle database. GeoRaster is recommended for the storage. Please post your MapViewer specific questions to the MapViewer forum:
    MapViewer

  • Adding multiple FOI themes with MapViewer with jdbc_query

    Hi,
    I'd like to add two themes to a map with the Javascript Mapviewer.
    When I use mapview.addThemeBasedFOI(theme); only the theme that finished loading first will display. Is it possible to add multiple themes or am I doing something wrong?
    The second thing I tried was using a jdbc_query theme. My javascript looks like this:
               var baseURL = "http://" + document.location.host + "/mapviewer";
                // Create an MVMapView instance to display the map
                var mapview = new MVMapView(document.getElementById("map"), baseURL);
                // Add a base map layer as background.
                mapview.addBaseMapLayer(new MVBaseMap("mvdemo.demo_map"));
                // Add a theme-based FOI layer
                var theme = '<themes><theme name="JDBC_THEME2" >' +
                            '<jdbc_query asis="true" spatial_column="location" jdbc_srid="8307" ' +
                            'render_style="C.RB13_6" datasource="mvdemo">' +
                            '<![CDATA[select sdo_geom.sdo_buffer(A.location,1,0.005,' +
                            '\'unit=mile arc_tolerance=0.005\') location ' +
                            ' from customers A where sales<=100]]>' +
                            '</jdbc_query></theme><theme name="JDBC_THEME" >' +
                            '<jdbc_query asis="true" spatial_column="location" jdbc_srid="8307" ' +
                            'render_style="C.RED" datasource="mvdemo">' +
                            'select sdo_geom.sdo_buffer(A.location,1,0.005,' +
                            '\'unit=mile arc_tolerance=0.005\') location ' +
                            ' from customers A where sales>100' +
                            '</jdbc_query></theme></themes>' ;
                console.log(theme);
                buffertheme = new MVThemeBasedFOI('buffertheme', theme);
                mapview.addThemeBasedFOI(buffertheme);
                // Set the initial map center and zoom level
                mapview.setCenter(MVSdoGeometry.createPoint(-122.45, 37.7706, 8307));
                mapview.setZoomLevel(4);
                // Add a navigation panel on the right side of the map
                mapview.addNavigationPanel('east');
                // Add a scale bar
                mapview.addScaleBar();
                // Display the map.
                mapview.display();I used the examples from page 222 and 225 from the Mapviewer manual (mapviewer_10131_ug.pdf) and it uses the MVDEMO schema.
    The xml for the themes:
    <themes>
        <theme name="JDBC_THEME2">
            <jdbc_query asis="true" spatial_column="location" jdbc_srid="8307" render_style="C.RB13_6" datasource="mvdemo">
                <![CDATA[select sdo_geom.sdo_buffer(A.location,1,0.005,'unit=mile arc_tolerance=0.005') location from customers A where sales<=100]]></jdbc_query>
        </theme>
        <theme name="JDBC_THEME">
            <jdbc_query asis="true" spatial_column="location" jdbc_srid="8307" render_style="C.RED" datasource="mvdemo">
                select sdo_geom.sdo_buffer(A.location,1,0.005,'unit=mile arc_tolerance=0.005') location from customers A
                where sales>100
            </jdbc_query>
        </theme>
    </themes>In this example I want to display 2 different colors, one for sales>100 and one for sales<=100. Again, only the first color is displaying. I searched for some examples and found <map_request> xml files where multiple themes are allowed, is it also allowed with the Javascript Mapviewer?
    Thanks for you help!
    Jeroen

    Hi
    Are you trying to concatenating or adding it ? i mean you said adding year measure1measure2
    year is character type so i guess that you want to display like 2011 45000 isnt it
    then use concatenation or try to change the measure value to dimension to keep side by side
    Hope this helps u

  • Problem with WMS themes & Oracle MapViewer Version 11.1.1.2

    Hello, in my application I load the background raster from a external server using wms. With differents version of mapviewer 11 with a weblogic server (e.g: release 1, release 11.1.1.4) all it's allrigth, but when I change the mapviewer to release 11.1.1.2 I can't see the raster and I get the next error:
    21-sep-2011 11:33:10 oracle.sdovis.theme.WMSMapThemeDefinition setSrs
    INFO: Theme SRID set to 23030 for EPSG 82337
    21-sep-2011 11:33:10 oracle.sdovis.theme.WMSMapThemeProducer prepareData
    SEVERE: MAPVIEWER-01048: Cannot load WMS map image.
    21-sep-2011 11:33:10 oracle.sdovis.theme.DynGeomThemeProducer prepareData
    I can understand why..., I don't know what's is the problem because differents versions of mapviewer work without problem on the same weblogic server (Weblogic 11 patchset R2).
    Anyone know if mapviewer 11.1.1.2 has a problem with WMS?
    Thanks for your answer!!

    although with Oracle Fusion Middleware MapViewer Version 11g ps3 (11.1.1.4) and 11g ps4 (11.1.1.5.1) everything work ok in my WebLogic Server: 10.3.3.0, with Mapviewer Version 11.1.1.2 I get the next error:
    29-sep-2011 13:25:53 oracle.sdovis.theme.WMSMapThemeDefinition setSrs
    INFO: Theme SRID set to 23030 for EPSG 82337
    sun.awt.image.ImageFormatException: Not a JPEG file: starts with 0xff 0xd9
         at sun.awt.image.JPEGImageDecoder.readImage(Native Method)
         at sun.awt.image.JPEGImageDecoder.produceImage(JPEGImageDecoder.java:119)
         at sun.awt.image.InputStreamImageSource.doFetch(InputStreamImageSource.java:246)
         at sun.awt.image.ImageFetcher.fetchloop(ImageFetcher.java:172)
         at sun.awt.image.ImageFetcher.run(ImageFetcher.java:136)
    29-sep-2011 13:25:53 oracle.sdovis.theme.WMSMapThemeProducer prepareData
    SEVERE: MAPVIEWER-01048: Cannot load WMS map image.
    I've seen that the wms external service works ok and returns an url with the correct image, but something wrong happens inside of mapviewer that don't allow generate the image....

  • MapViewer Bean Feature Selection

    I have written a java applet that uses the Mapviewer bean to set up and render a map based on Oracle spatial data. So far, so good. I have written tools to Zoom in, Zoom out, Pan etc etc. I now need to extend this as follows:
    1. Given the primary key of a feature (or set of features), I need the mapviewer to be able to highlight those features in the map (using some specified highlight color) and to zoom to the relevant extent.
    2. I need to be able to allow the user to select a rectangle on the map (using a rubberband tool that I already have in place) and have the mapviewer highlight all the features within the rectangle and also return the primary keys for all features found using a spatial query.
    The java applet needs to be thin. It will be running on slow networks so it can't be downloading large amounts of data.
    Having read the documentation, you need to set the themes to clickable before you can highlight them. This then means that the features are downloaded to the client - presumably ending up with large amounts of network traffic.
    Is there any way we can achieve what we need as described above?

    Please post here. The dev team will collect and track them internally. Or if you are a customer you can always go to metalink.oracle.com and post over there. The product id for mapviewer is 1215.
    thanks,
    LJ

  • Thematics with mapviewer java api

    I'm looking for a way to dynamically set the upper and lower bounds for an advanced equal color scheme style. This style will be applied to an addJDBCTheme with a sql statement defined based on user input. Any ideas? Thanks!

    You can find documentation at:
    http://otn.oracle.com/products/mapviewer/index.html
    and
    http://otn.oracle.com/software/products/mapviewer/index.html
    On the second you will find the lastest version, with the Oracle Application Server MapViewer 9.0.4 Preview Version (Users guide).
    Remember that to create the advanced style, you have to issue a XML request. You can do this on MapViewer page after your instalation. After that you can use the API to add a JDBC theme with this style.

  • OracleAS MapViewer Bean

    Hello,
    I'm using the OracleAS MapViewer Bean in my JSP application. As said in the use guide, this Bean is used for all maps created during the current session. But for me, it's a problem because when I close a first map (with addPointFeature, addWMSMapTheme and addJDBCTheme functions) and want to create a second one (with the same functions but with another data), information of the firsts is always there.
    Does anyone know how to put the scope of the Bean to page and not still to session?
    (As in the tag
    <jsp:usebean
    id="BeanName"
    class="com.XXX.class"
    scope="page">
    </jsp:usebean>
    Thanks in advance.

    The API has methods (such as deleteAllThemes, removeAllPointFeatures) to clean your current request. You can use these methods before creating the second map.

  • When I highlight objects, I'm able to move them with the arrow key but I can't drag them with my mouse.

    When I highlight objects, I'm able to move them with the arrow key but I can't drag them with my mouse.

    Without system info and other details like e.g. your settings for bounding box display nobody can tell you much.
    Mylenium

  • OBIEE 10g integration with mapviewer

    hello all,
    i am trying integrate mapviewer map in obiee dashboard. and i am able to show maps which do not use bi answers data for any kind of interaction (i.e,no "nsdp" section in the map file). this works fine. if i am using any dashboard prompt to filter the map ( for example if want to see a particular county from a statewide map using dashboard prompt as filter) it is giving error as below:
    *[MVThemeBasedFOIControl.foiLoaded] MAPVIEWER-05523: Cannot process response from MapViewer server. (MAPVIEWER-06009: Error processing an FOI request.*
    Root cause:FOIServlet:Missing IN or OUT parameter at index:: 1)
    there are two databases with same set of data. one is poc which was created by some one else. so we had to setup new schema to properly define all the data.
    so problem occurs when using new schema as datasource. all the html datasource configurations are properly defined on mapviewer for new data.
    followed these steps in setting up new schema:
    ->initially did not run any scripts nor created mvdemo , started clean and loaded the required tables using map builder from GIS shape files with geometry projected to world_mercator(54004). on the contrary POC schema two geometry columns in each table where one is actual coordinate system from GIS file and then it is projected to world_mercator system and loaded into second column using sql. all the geometry indexes looked similar.
    ->created all the mapping metadata exactly same as the POC. where all the themes uses world_mercator geometry.
    both schemas are on same database. i have no idea of what causing the error when i use dashboard prompts. i am not sure if there are additional steps to be followed in creating database or if something else is missing some where. i have no prior experience with mapviewer and oracle spatial. this is kind of learning curve for me.
    please let me know any suggestions or solutions .
    regards,
    mallik
    Edited by: 863261 on Jun 2, 2011 12:33 PM
    Edited by: 863261 on Jun 8, 2011 5:49 AM

    Hello,
    Is your environment similar to this in http://obiee-bip.blogspot.com/2010/10/obiee-integration-with-oracle-access.html or something different like diid you have create groups in OAM .?
    Also assuming your repository groups and presentation catalog groups are already setup. In the different authorization init block you have created enable the ‘Required for Authentication’ check box.
    NOTE: According to Oracle Access Manager (OAM) and Oracle Business Intelligence (OBI) Integration [ID 1217103.1]
    Creation of group should be done by loging as Administrator user to rpd and webcat. This should be done on different machine that does not have OAM integration. With OAM integration only OAM user can log into presentation services and they don’t have Administrator user privileges.
    Hope this helps. Pls mark if it does.
    Thanks,
    SVS

  • MapViewer Bean Feature Requests & Bug Tracking?

    Hi-
    I'm wondering where I should post feature req's and bugs for the MapViewer bean. Is there a place where these things are tracked?

    Please post here. The dev team will collect and track them internally. Or if you are a customer you can always go to metalink.oracle.com and post over there. The product id for mapviewer is 1215.
    thanks,
    LJ

  • 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

  • Complex predefined JDBC Theme with stacked styles ?

    Is it possible to have a predefined Complex JDBC Theme and use stacked styles ?
    complex JDBC themes use the features element of the theme to store a sql statement. I have tried adding other styles but it seems mapviewer only uses the first style rule.
    Just want to check if there are workarounds to this or if I'm missing something.
    I can always add extra predefined themes but I'm worried about the performance hit of querying the same table multiple times just to get different styles applied to the same data.

    Predefined themes with full SQL query defined use just one styling rule (the first one).
    If you are able to define query conditions for your theme, then you may have a couple of options:
    1) define several styling rules, each one with its query condition and styles.
    2) define one rule with query condition and an advanced rendering rules. On the advanced rendering
    rules section you can define several styles to be applied on your theme data.
    Joao

  • JSP tags with java beans !! Design Help needed ..

    Hi,
    I have three tables State,District,College.
    My requirement is to get the fields from three tables one time from the DB and populate them with the JSP(so that the DB connections will not be much).
    For that :::
    I have designed to have three Beans StateBean,DistrictBean and CollegeBean.
    Every row in State table will be a StateBean and will be added to an ArrayList called StateBeanList
    similarly I got two other lists DistrictBeanList and CollegeBeanList.
    And I am using application.setAttribute() to send all the information to the JSP by using RequestDespatcher..
    When I run the servlet on tomcat it is getting OutOfMemory Exception in java Heap..Can I increase the heap size on tomcat ?
    Apart from increasing the heap size I want to know good design...
    My actual requirement is::: in the forwared JSP I need to populate state text field and after selecting state field I need to get the district fileds populated in other text filed, by the value of district field I need to populate college field... we can see it many websites...
    Please suggest me the good design..
    Thanks in Advance,
    Vidhya...

    vidhya517 wrote:
    I have three tables State,District,College.
    My requirement is to get the fields from three tables one time from the DB and populate them with the JSP(so that the DB connections will not be much).
    For that :::
    I have designed to have three Beans StateBean,DistrictBean and CollegeBean.
    Every row in State table will be a StateBean and will be added to an ArrayList called StateBeanList
    similarly I got two other lists DistrictBeanList and CollegeBeanList.I would rather let StateBean have a Set<DistrictBean> property and let DistrictBean have a Set<CollegeBean> property. List instead of Set is also okay.
    And I am using application.setAttribute() to send all the information to the JSP by using RequestDespatcher..
    When I run the servlet on tomcat it is getting OutOfMemory Exception in java Heap..Can I increase the heap size on tomcat ?
    Apart from increasing the heap size I want to know good design...How many states, districts and colleges do you have in total? What is your initial heap size? You can just alter it as startup parameters/arguments.
    My actual requirement is::: in the forwared JSP I need to populate state text field and after selecting state field I need to get the district fileds populated in other text filed, by the value of district field I need to populate college field... we can see it many websites...
    Please suggest me the good design..

  • Visualizing map data with mapviewer

    Hello. I have successfully deployed mapviewer using oc4j standalone. What I want to do now is to visualize maps based on data from tables I have in my database. I have successfully added a datasource using the admin tools on the http://localhost:8888/mapviewer/ site as I am getting the following response:
    <?xml version="1.0" ?>
    - <non_map_response>
    <add_data_source succeed="true" />
    </non_map_response>
    How can I visualize this data in a map format? Is mapviewer simply a middle tier application or is there some way I can view the data like in an applet?

    This also relates to your subsequent post on visualizing data with the Map Definition Tool.
    As Justin suggested, use the 9.0.4 preview version if you're getting started with MapViewer. And use the demo JSPs to do some basic visualization.
    Assuming your database version is 9.2.x.x do the following (if the database version is 8i or 9.0.1.x then you need to install some views. See section 1.4.2.3 in the doc for the steps and where to locate the sql scripts):
    1. Install the demo data (in mvdemo.dmp), and
    2. Use the demo JSPs mapinit.jsp or mapclient.jsp to view the demo data as a map.
    The doc (section 1.6) explains how to do this.
    Now for the map def tool.
    That is only for setting up symbology, styling rules, and specifying which themes make up a map. It does not render the maps.
    To simply view your spatial data without any fancy styling and symbology (e.g. to test that Mapviewer works and your data is valid) use the jview demo jsp.
    Hope this helps. If it does not, complain.

Maybe you are looking for

  • SNP Heuristic: Creation of purchase requisition

    Hi experts, we face following problem: heuristic creates purchase orders when there is no source of supply. Background: there is a forecast demand for a location product on a customer location without transport lane to the production plant due to fal

  • How to upload an image from my computer using in-browser editing

    When I use in-browser editing to change an image on my Muse site, there is not an option to upload the image "from my computer" like it shows in the documentation.  How can my clients update an image on their Muse sites from their own computers?

  • Mounting a UFS file system using  NFS on Solaris 10

    Quick question: If I have a Solaris 10 server running ZFS can I just mount and read a UFS partition without any issues?

  • Using java object in a non java application

    Can you tell me how will i be able to use a java object(how can i instantiate a java class) in a non java application.I have read about COM,DCOM but these are fine only with micrososft platforms .Can anyone offer me alternative solutions...i also hav

  • A little aid on finding Component by Id needed

    Hi, in javascript resource i have a function below which is meant to set focus to another Textitem (function is invoked by a textitem's key press event ) the problem is AdfPage.PAGE.findComponentByAbsoluteId('form:pgl1:pgl2:ph1:form2:password') retur