Mapviewer dynamic themes

Can anyone see what I am doing wrong here? I am just trying to display locations of cities I have in my table. the base map returns with no cities defined. I can get these to plot when I use the mapdef tool and create a map with themes, but I want to create dynamic themes. Here is the code, and below that is the SQL results from running the same query in SQLplus.
thanks in advance!
-Scott
<?xml version="1.0" standalone="yes"?>
<map_request
title="Testing Cities"
basemap="SOUTHWEST"
datasource ="mvdemo"
width="640"
height="480"
bgcolor="#a6cae0"
antialiase="false"
format="GIF_STREAM">
<center size="12">
<geoFeature>
<geometricProperty>
<point>
<coordinates>-120, 39</coordinates>
</point>
</geometricProperty>
</geoFeature>
</center>
<themes>
<theme name="Cities">
<jdbc_query
datasource="mvdemo"
spatial_column="LOCATION"
render_style="M.EXIT 5X5"
jdbc_srid="8307">
select city,location from cities where state_abrv='CA'
</jdbc_query>
</theme>
</themes>
</map_request>
Example of SQL results from above query:
SIERRA ARMY DEPOT
SDO_GEOMETRY(1, NULL, SDO_POINT_TYPE(-120.15, 41.361, NULL), NULL, NULL)
MOFFET FEDERAL AIRFIELD
SDO_GEOMETRY(1, NULL, SDO_POINT_TYPE(-122.04745, 37.41883, NULL), NULL, NULL)
FORT BAKER
SDO_GEOMETRY(1, NULL, SDO_POINT_TYPE(-122.49954, 37.86682, NULL), NULL, NULL)
LOS ANGELES AIR FORCE BASE
SDO_GEOMETRY(1, NULL, SDO_POINT_TYPE(-118.3832, 33.94609, NULL), NULL, NULL)
NORTH ISLAND NAVAL AIR STATION
SDO_GEOMETRY(1, NULL, SDO_POINT_TYPE(-117.20133, 32.70655, NULL), NULL, NULL)
MIRAMAR MARINE CORPS AIR STATION
SDO_GEOMETRY(1, NULL, SDO_POINT_TYPE(-117.14253, 32.868381, NULL), NULL, NULL)

Hi Scott,
it may be related with your render style. Is it stored on your database? Try to use another style, for example a marker style M.CIRCLE (if you have it stored). If you don't get the right result, then post the log information.
Joao

Similar Messages

  • MapViewer Dynamic Theme help

    I am using MapViewer 10g to create a JSP map, using JSP Tags as in the TagMap example. All works well, however, in building the page in question, beside creating and printing the map, I also use a within_distance query to print out a list of values. Now, on the map, I would like to be able to draw or add a dynamic theme which would be a semi-transparent raster circle, with a varying radius (dependent on the within_distance size) at the center of the map (X,Y). Any help would be greatly appreciated.

    there is a bug in the addJDBCTheme tag where the asis attribute is ignored; normally if you set asis="true" then it should work (no spatial filter will be applied to your dynamic theme since it has no spatial index anyway). But somehow the asis attribute is ignored by the taglib.
    The work around is to use the client api itself, as show below:
    <%@ taglib uri="http://xmlns.oracle.com/j2ee/jsp/tld/ordim/mvtaglib.tld" prefix="mapviewer"%>
    <P>Testing a point</P>
    <P>
    <mapviewer:init datasource="mvdemo"
    url="http://localhost:8888/mapviewer/omserver"
    id="mvhandle" />
    <mapviewer:importBaseMap name="demo_map" />
    <%
    mvhandle.addJDBCTheme("mvdemo", "centerPoint",
    "SELECT mdsys.sdo_geometry(2001, null, mdsys.sdo_point_type(-83, 39, null), null, null) geom FROM dual",
    "geom", null, "M.CIRCLE", null, null, true); %>
    <mapviewer:setParam centerX="-83" centerY="39" size="2" />
    <mapviewer:run />
    showing the map: <p>
    <img src = "<mapviewer:getMapURL />" align=left />
    </P>

  • Mapview dynamic theme generation questions

    In exercising the MapViewer tool with thematics map I had a view questions on the capabilities of the component:
    1. Is there a way in the map _request element reference a dynamically defined expression (column)
    that is returned from the query defined in the value of the "<jdbc_query>" element. I want to show counts from an inline view,
    but for brevity consider the the SQL
    select geom, state , state || '-' || state_abrv concat_state_name from states
    It seems that both the "label_column" attribute of the "<jdbc_query>" element and the "column" attribute of a "<rule>" element in
    a style rule can only reference columns that exist in the base table either of the base map/theme or in the query .
    I cannot seem to use a specification of "concat_state_name"
    in the "label_column" attribute ... throws ClassCastException. Should this be possible ?
    If not would the workaround would appear to use a view that is dynamically defined and insert a new map based on the view ?
    2. In my inline view example, I found in the "<jdbc_query>" element that when I specifed a "render_style" that
    was an advanced style with buckets it automatically selected my count expression and rendered the map correctly, which
    is great, but it might be a good idea to make it explicit if 1. could be handled (or can).
    3. For thematic maps it would be nice to dynamically define the buckets (<AdvancedStyle>)
    within the map request as the potient for permutations of numeric ranges in any application could vary.
    It looks like <styling_rules> might be able to handle this if you can use the BETWEEN operator or something
    like runway_number >= 10 and runway_number < 20 as expressions. Are these valid and if so where are they specified
    in the map_request ? I did not see them nested anywhere in the DTD yet the Example 2-1 in the documentation would
    imply they can be specified in the map request and the tool map definition tool does not seem to support the concept of a
    variable in the base table. The workaround would appear to be to dynamically add the theme using an insert.

    In exercising the MapViewer tool with thematics map I had a view questions on the capabilities of the component:
    1. Is there a way in the map _request element reference a dynamically defined expression (column)
    that is returned from the query defined in the value of the "<jdbc_query>" element. I want to show counts from an inline view,
    but for brevity consider the the SQL
    select geom, state , state || '-' || state_abrv concat_state_name from states
    It seems that both the "label_column" attribute of the "<jdbc_query>" element and the "column" attribute of a "<rule>" element in
    a style rule can only reference columns that exist in the base table either of the base map/theme or in the query .
    I cannot seem to use a specification of "concat_state_name"
    in the "label_column" attribute ... throws ClassCastException. Should this be possible ?
    If not would the workaround would appear to use a view that is dynamically defined and insert a new map based on the view ? MapViewer does allow dynamic expressions in <jdbc_query>. Can you test the following simple request:
    <?xml version="1.0" standalone="yes"?>
    <map_request datasource = "mvdemo">
    <themes>
    <theme name="theme1" min_scale="5.0E7" max_scale="0.0">
    <jdbc_query
    datasource="mvdemo"
    jdbc_srid="0"
    spatial_column="geom"
    render_style="C.RED"
    label_style="T.STREET NAME"
    label_column="concat_state_name"
    >select geom, state , state || '-' || state_abrv concat_state_name from states where state_abrv='MA' </jdbc_query>
    </theme>
    </themes>
    </map_request>
    As long as the name specified in lable_column matches the alias you give in the select list it should work.
    If not then maybe you need to use the view-based approach. It will definately work in the up-coming 9.0.4 version.
    2. In my inline view example, I found in the "<jdbc_query>" element that when I specifed a "render_style" that
    was an advanced style with buckets it automatically selected my count expression and rendered the map correctly, which
    is great, but it might be a good idea to make it explicit if 1. could be handled (or can).
    3. For thematic maps it would be nice to dynamically define the buckets (<AdvancedStyle>)
    within the map request as the potient for permutations of numeric ranges in any application could vary.
    It looks like <styling_rules> might be able to handle this if you can use the BETWEEN operator or something
    like runway_number >= 10 and runway_number < 20 as expressions. Are these valid and if so where are they specified
    in the map_request ? Yes that may indeed be a good thing to have in a future version of mapviewer. In the mean time yes you can always use such expressions as you provided in the styling_rules (which is only for predefined themes) or in a <jdbc_theme>.
    I did not see them nested anywhere in the DTD yet the Example 2-1 in the documentation would
    imply they can be specified in the map request and the tool map definition tool does not seem to support the concept of a
    variable in the base table. The workaround would appear to be to dynamically add the theme using an insert. The map definition tool is lagging behind in terms of supporting all the functions actually available in MapViewer server.
    Thanks,
    LJ

  • Can a Hyperlink be created based on the results of a Dynamic Theme Query?

    What I would like to do is create a link from the results of a dynamic theme. The following code displays the names of locations on my map, is there any way that the location name once placed on the map can be a hyperlink that will run a SQL statement that will show the status of that name. My map is based on 3 status levels identified by markers, green marker is up, red is down, amber is degraded. If the Marker is red I want to be able to click the name or the Marker that is on the map to find out what the problem actually is.
    Thanks in advance!
    &lt;mv:addJDBCTheme
         name="Locations_Names"
         datasource="mvdemo"
         spatial_column="map_loc_data"
         srid="8307"
         label_style="T.CITY NAME"
         label_column="location"
         min_scale="7.05" max_scale="0"&gt;     
              select l.location, l.map_loc_data
              from resources.locations_test l
              where l.location_id IN
              (Select distinct d_loc_id
              from cii.devices
              HAVING max(d_ops_status) &lt;= 2 GROUP BY d_loc_id)
    &lt;/mv:addJDBCTheme&gt;

    LJ,
    Any chance you can see what is wrong with the following code. I have gone over it line by line with an example out of the Oracle Pro spatial Data book, but I can not see what the problem is.
    I know you will not be able to run it but the error I am getting is:
    500 Internal Server Error
    java.lang.NoSuchMethodError at Oracle.lbs.mapclient.MapViewer.getUserPoint(MapViewer.java:3512)
         at oracle.lbs.mapclient.MapViewer.identify(MapViewer.java:4560)
         at oracle.lbs.mapclient.taglib.MapViewerIdentifyTag.doEndTag(MapViewerIdentifyTag.java:171)
         at tnoscmaps.MapofUS._jspService(_MapofUS.java:286)
         [SRC:/TNOSCMAPS/MapofUS.jsp:130]
    To me this is pointing to the following section:
    <mv:identify
    id="identifyResults"
    datasource="mvdemo"
    table="locations_test"
    spatial_column="map_loc_data"
    srid="8307"
    x="<%= imgCX %>"
    y="<%= imgCY %>"
    >
    location, state
    </mv:identify>
    This is my complete set of code for this page:
    <%@ page contentType="text/html;charset=UTF-8" %>
    <%@ taglib uri="/WEB-INF/mvtaglib.tld" prefix="mv" %>
    <%@ page session="true" %>
    <%@ page import="oracle.lbs.mapclient.MapViewer" %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>CONUS TNOSC SITES</title>
    </head>
    <body bgcolor="#FFFF00">
    <%
    // Name of this File
    String jspURL = response.encodeURL(request.getRequestURI());
    // URL of Mapviewer servlet
    String mapViewerURL =
    "http://"+ request.getServerName()+":"+request.getServerPort()+
    request.getContextPath()+"/omserver";
    String[][] featureInfo = null;
    if( request.getParameter("session-initialized") == null ||
    request.getParameter("new-session") == "true") {
    %>
    <!-- Initialize MapViewer handle.and save it in the session -->
    <mv:init
    url="<%=mapViewerURL%>"
    datasource="mvdemo"
    id="mvHandleSimpleViewerTags" />
    <!-- Set map format and size -->
    <mv:setParam
    title="CONUS TNOSC SITES"
    width="800"
    height="500"/>
    <!-- Add themes from the base map -->
    <mv:importBaseMap name="US_MAP"/>
    <!-- Dynamic Themes -->
    <mv:addJDBCTheme
         name="Locations_Names"
         datasource="mvdemo"
         spatial_column="map_loc_data"
         srid="8307"
         label_style="T.CITY NAME"
         label_column="location"
         min_scale="7.05" max_scale="0">     
              select l.location, l.map_loc_data
              from resources.locations_test l
              where l.location_id IN
              (Select distinct d_loc_id
              from cii.devices
              HAVING max(d_ops_status) <= 2 GROUP BY d_loc_id)
    </mv:addJDBCTheme>
    <mv:addJDBCTheme
         name="Locations_Green_Status"
         datasource="mvdemo"
         spatial_column="map_loc_data"
         srid="8307"
         render_style="M.GREEN"
         min_scale="50" max_scale="0">     
    SELECT l.map_loc_data, l.location_id
    FROM resources.locations_test l
    WHERE l.location_id IN (SELECT d_loc_id
    FROM cii.devices
         GROUP BY d_loc_id HAVING MAX(d_ops_status) = 0)
    </mv:addJDBCTheme>
    <mv:addJDBCTheme
         name="Locations_AMBER_Status"
         datasource="mvdemo"
         spatial_column="map_loc_data"
         srid="8307"
         render_style="M.AMBER"
         min_scale="50" max_scale="0">     
    SELECT l.map_loc_data, l.location_id
    FROM resources.locations_test l
    WHERE l.location_id IN (SELECT d_loc_id
    FROM cii.devices
         GROUP BY d_loc_id HAVING MAX(d_ops_status) = 1)
    </mv:addJDBCTheme>
    <mv:addJDBCTheme
         name="Locations_RED_Status"
         datasource="mvdemo"
         spatial_column="map_loc_data"
         srid="8307"
         render_style="M.RED"
         min_scale="50" max_scale="0">     
    SELECT l.map_loc_data, l.location_id
    FROM resources.locations_test l
    WHERE l.location_id IN (SELECT d_loc_id
    FROM cii.devices
         GROUP BY d_loc_id HAVING MAX(d_ops_status) = 2)
    </mv:addJDBCTheme>
    <!-- Set initial map center and size -->
    <mv:setParam
    centerX="-96.0"
    centerY="39.0"
    size="37" />
    <%
    MapViewer mvHandle = (MapViewer) session.getAttribute("mvHandleSimpleViewerTags");
    String userAction = request.getParameter("userAction");
    String imgCX = request.getParameter("userClick.x");
    String imgCY = request.getParameter("userClick.y");
    if("identify".equals(userAction)) {
    %>
    <mv:identify
    id="identifyResults"
    datasource="mvdemo"
    table="locations_test"
    spatial_column="map_loc_data"
    srid="8307"
    x="<%= imgCX %>"
    y="<%= imgCY %>"
    >
    location, state
    </mv:identify>
    <%
    featureInfo = identifyResults;
    else {
    %>
    <mv:run
    action="<%=userAction%>"
    x="<%= imgCX %>"
    y="<%= imgCY %>" />
    <%
    %>
    <!-- Output the HTML content -->
    <center><h1>CONUS TNOSC SITES</h1></center>
    <form name="viewerForm" method="post" action="<%= jspURL %>" >
    <center>
    <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" >
    <tr bgcolor="#FFFFFF">
    <td valign="top">
    <table border="0" cellpadding="0" cellspacing="0">
    <!-- Map display -->
    <tr>
    <td valign="top" align="center" >
    <input type="image"
    border="1"
    src="<mv:getMapURL />"
    name="userClick"
    alt="Click on the map for selected action"
    >
    </td>
    </tr>
    <!-- Map click action -->
    <tr>
    <td align="center">
    <input type="radio" name="userAction" value="recenter"
    <%= "recenter".equals(userAction)?"checked":""%> ><B>Re-center</B>
    <input type="radio" name="userAction" value="zoomin"
    <%= "zoomin".equals(userAction)?"checked":""%> ><B>Zoom In</B>
    <input type="radio" name="userAction" value="zoomout"
    <%= "zoomout".equals(userAction)?"checked":""%> ><B>Zoom Out</B>
    <input type="radio" name="userAction" value="identify"
    <%= "identify".equals(userAction)?"checked":""%> ><B>Identify Issue</B>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    <!-- Current position -->
    <tr>
    <td align="center">
    <i>Center</i>[<b><%=mvHandle.getRequestCenter().getX()+","+
    mvHandle.getRequestCenter().getY()%></b>]  
    <i>Scale</i>[<b><%=mvHandle.getMapScale()%></b>]
    </td>
    </tr>
    <!-- Identification result -->
    <% if (featureInfo !=null && featureInfo.length>0) {%>
    <tr><td align="center">
    <table border="1">
    <% for (int i=0; i<featureInfo.length; i++) {%>
    <tr>
    <% String[] row = featureInfo;
    for (int k=0; k<row.length; k++) {%>
    <td><%= row[k] %></td>
    <% } %>
    </tr>
    <% } %>
    </table>
    </td></tr>
    <% } %>
    </table>
    </center>
    <input type="hidden" name="session-initialized" value="true" >
    </form>
    </body>
    </html>

  • XMLParseException during dynamic theme generation

    Hi,
    I4m having problems with SQL statements in some requests to MapViewer during dynamic theme generation.
    When I put in the WHERE clause the operator "less than" the request fails. An XMLParseException is generated.
    For example:
    <jdbc_query XXXXXXX>
    select geom from table where column < 10
    </jdbc_query>
    the following exception is generated:
    oracle.xml.parser.v2.XMLParseException: Expected name instead of .
    When I change de symbol < to &lt; (like MapViewer Users Guide recommends):
    <jdbc_query XXXXXXX>
    select geom from table where column &lt; 10
    </jdbc_query>
    the following exception is generated:
    oracle.xml.parser.v2.XMLParseException: Unexpected EOF
    If the is no WHERE clause (select geom from table) the request works.
    What can be wrong ? Can I use the less than operator in the WHERE clause ?
    Thanks in advance,
    Rodrigo     

    OK. The OC4J version is 1.0.2.2.1. I4m using Oracle8i Enterprise Edition Release 8.1.7.0.0.
    Some examples of XML requests:
    1) This works fine
    <?xml version="1.0" standalone="yes"?>
    <map_request
    title=""
    basemap="MAP1"
    datasource="DS1"
    width="1098"
    height="648"
    bgcolor="#FFFFFF"
    antialiase="false"
    format="GIF_URL">
    <center size="73063.00272634998">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates> 376875.541941716, 7810266.276712325</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <themes>
    <theme name ="PLANTIOS_MPD">
                   <jdbc_query
                   asis="true"
    spatial_column="GEOM"
                   render_style="C.PLANTIOS_MPD"
                   jdbc_host="MyServer"
                   jdbc_port="1521"
                   jdbc_sid="db01"
                   jdbc_user="scott"
                   jdbc_password="tiger"
                   jdbc_mode="thin">
                   select geom from table where column = 50
    </jdbc_query>
         </theme>
    </themes>
    </map_request>
    2) This doesn4t work ('<' replaces '=' in SQL WHERE clause)
    <?xml version="1.0" standalone="yes"?>
    <map_request
    title=""
    basemap="MAP1"
    datasource="DS1"
    width="1098"
    height="648"
    bgcolor="#FFFFFF"
    antialiase="false"
    format="GIF_URL">
    <center size="73063.00272634998">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates> 376875.541941716, 7810266.276712325</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <themes>
    <theme name ="PLANTIOS_MPD">
                   <jdbc_query
                   asis="true"
    spatial_column="GEOM"
                   render_style="C.PLANTIOS_MPD"
                   jdbc_host="MyServer"
                   jdbc_port="1521"
                   jdbc_sid="db01"
                   jdbc_user="scott"
                   jdbc_password="tiger"
                   jdbc_mode="thin">
                   select geom from table where column < 50
    </jdbc_query>
         </theme>
    </themes>
    </map_request>
    3) This also doesn4t work ('&lt;' replaces '=' in SQL WHERE clause)
    <?xml version="1.0" standalone="yes"?>
    <map_request
    title=""
    basemap="MAP1"
    datasource="DS1"
    width="1098"
    height="648"
    bgcolor="#FFFFFF"
    antialiase="false"
    format="GIF_URL">
    <center size="73063.00272634998">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates> 376875.541941716, 7810266.276712325</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <themes>
    <theme name ="PLANTIOS_MPD">
                   <jdbc_query
                   asis="true"
    spatial_column="GEOM"
                   render_style="C.PLANTIOS_MPD"
                   jdbc_host="MyServer"
                   jdbc_port="1521"
                   jdbc_sid="db01"
                   jdbc_user="scott"
                   jdbc_password="tiger"
                   jdbc_mode="thin">
                   select geom from table where column &lt; 50
    </jdbc_query>
         </theme>
    </themes>
    </map_request>
    Thanks,
    Rodrigo

  • Map Viewer Query Rewriting for Dynamic themes and  Materialized Views.

    Hi,
    I am usng a WMS request to render FOI points in my map.
    Internally query rewrite is happening in Mapviewer for this dynamic theme and my data points query is getting converted as
    select FROM
    ( select status, shape from MatView.MyTab where id = '3' )
    WHERE MDSYS.SDO_FILTER(shape, MDSYS.SDO_GEOMETRY(2003, 4283, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(144.948120117188,-37.8162934802451,144.950866699219,-37.8141237016045)), 'querytype=WINDOW') = 'TRUE'
    here the rewritten query is not correct and is throwing exceptions in mapviewer log
    How can I make this query to be written correctly.
    (My orginal query before rewrite is: select status,shape from MatView.MyTab where id='3' )
    I am using a materialised view : MatView is a materialized view.
    When I used normal tables, the query is re written correctly.But for this materialized view this is happening.
    How can I correct the error?
    Is this has something to do with some Spatial Indexing in Materialised view or Query Rewriting for materialized view?
    Edited by: 841309 on Mar 10, 2011 11:04 PM

    Oops!
    The Materialized view was not accessible from the schema I tried :)
    And so when I gave permissions,it formed the correct query.
    So if permission is not there,map viewer will rewrite the query in a wrong way! New information.

  • Dynamic Themes in mapinit.jsp

    Hi ,
    How can I pass dynamic themes using mapinit.jsp ,
    For example alongwith all the parameters like map size , basemap etc..
    I want to give a new date parameter . based on the given date I need to put a where clause in my themes like where date=parameter.date.
    I have salesperson whose location changes on daily basis and user need to see their location on date basis , for example where all the salesman were on 28-10-2006 and where all the sales man were on 25-10-2006 and so on ..
    Please help

    Thanks a lot that worked out.But still as I have my complete requirement is I need to display set of radio buttons when I click on this link.
    Can this be possible by javascript.Can anyone give me an idea of how to do this. The actual scenario is like I get the a list of 30 dates and their corresponding radio buttons from a webservice. What I do is I read all the values from that webservice and convert them into text( actually I get the codes) and need to display that as a calendar to the user and when they click on a particular date { I copied a calender from the net and placed that code in my jsp to display the calender)
    the set of radio buttons should be displayed underneath the calender.That is both the calender and the list of radio buttons should be on the same page.
    Thanks in advance.
    Pavan.

  • How do u use SDO_RELATE for dynamic theme

    Hi ,
    I have line geometry. For this line geometry I have to create a buffer using SDO_GEOM.SDO_BUFFER and I have to check whether the given point geometry is with in this buffer.
    How can i do it?
    i have used buffer and SDO_RELATE but its giving error as
    "SDO_RELATE can not be used with out Spatial Index". Here my buffer is a dynamic theme.
    Is there any possibility to create index for dynamic theme?
    Thanks and Regards
    Aravindan

    Hello
    We did something familiar in a sence.
    We used an analysis based sdo_NN.
    Also therefor the spatial index is required and used.
    We created a Materialized view containing the sdo_buffered result geometry, based on additional where clauses for the base table..
    We defined a spatial index on the materialized view result table, and an additional view containing the sdo_nn operator to this materialized view result table.
    So when we changed the requirements in which geometry had to be buffered in the first step, we refreshed to materialized view. This caused the de sdo_index being updated. this way the view with the operator was actualized.
    I hope this explained a little bit the way we did this, maybe this can help you out.
    Luc

  • Mapviewer topology theme

    Can someone provide the syntax for a predefined topology theme rendering primitives (node/edge/face). I've seen the examples for dynamic themes, but not for predefined stored in user_sdo_themes.
    Thanks, David

    Hi David,
    currently there is no predefined theme definition for a topology "debug" mode, which shows the topology primitives (node/edge/face). We may consider this later.
    But for topology features, the predefined theme definition is similar to the geometry theme, with some additional parameters (topology name for example).
    INSERT INTO user_sdo_themes  VALUES (
       'NECOUNTIES',
       'Topology theme',
       'SC_AREAS',
       'FEATURE',
       '<?xml version="1.0" standalone="yes"?>
        <styling_rules theme_type="topology" topology_name="SC">
          <rule >
            <features style="C.COUNTIES"></features>
            <label column="F_NAME" style="T.CITY NAME"> </label>
          </rule>
        </styling_rules>' );Joao

  • Add dynamic theme with no query

    Is it possible to add a dynamic theme without doing a database query? I'm adding linear features to my map request dynamically and wish to do the same for themes.

    This uses a select statement but not on a database table:
        <theme name="theme1">
           <jdbc_query
             datasource="mvdemo"
             spatial_column="geom"
             render_style="C.BLUE"
            >
               select mdsys.sdo_geometry(2003, null, null,
               mdsys.sdo_elem_info_array(1, 1003, 2, 27, 2003, 1),
               mdsys.sdo_ordinate_array(25,30, 20,35, 15,30, 10,25, 15,20, 10,15,
               15,10, 20,5, 25,10, 30,15, 25,20, 30,25, 25,30,
               15,25,25,25,20,15,15,25)) geom from dual
           </jdbc_query>
         </theme>
         ...

  • Trouble with passing parameters to a dynamic theme

    Hello experts,
    I have been wrestling with this for days now, and can't seem to understand what is going on here. I don't think it's difficult to figure out and I'm sure I'm not the only one who has come across this, I just feel like I am missing something.
    In a nutshell - I have a predefined theme called TEST_DYNAMIC_THEME_NEW2. Its styling rules are as follow:
    <?xml version="1.0" standalone="yes"?>
    <styling_rules caching="NONE">
        <rule>
            <features style="C.RED"> select geom, :1 FROM TRACT_CURRENT_GEO </features>
      </rule>
    </styling_rules>I am obviously trying to pass a parameter to this theme, representing a column name. Perhaps this is not possible, but I don't know why not.
    The error message I'm getting in Firebug is as follows:
    <?xml version="1.0" encoding="UTF-8" ?> <oms_error> MAPVIEWER-06009: Error processing an FOI request.
    Root cause:SQLException: ORA-01722: invalid number
    </oms_error>On the other hand, when I am in mapbuilder and I Preview the theme it works fine. It asks for a parameter value for :1, I give it a column name, and a big red map displays in the Preview screen (this is what I want to see [at least for now]).
    Any ideas, folks?
    Thank you all very much for your time,
    John

    jpaiva,
    I thought that this might be the case. What I was clearly attempting to do is set up a predefined theme that would reference a specific table, but then the queried column could change based on a bind variable. If I want to continue down this path, perhaps the best solution would be to simply create a dynamic jdbc theme query on the client side.
    Thanks!

  • MapViewer geometry theme 'mouse_click' doesn't always work in FF3

    I have code that works with IE7 but not FireFox 3 (I'm using MapViewer Ver1033p5_B080908 and an 11.1.0.6 db). I've been able to duplicate it by only slightly modifying Oracle Maps demo #5, "Theme Based FOI layer visibility". Code is shown below.
    I'm displaying two geometry themes. I need to know when the user clicks on either theme or the background. I add the themes and call setEventListener('mouse_click') for both themes and the mapview. In IE7 I get the expected result - one of the three handlers gets called depending on where I click. In FF3 (specifically 3.0.3) only the "top" theme's mouse handler is active. Cicking on the bottom theme - even when there is no overlap at all - only calls the mapview's handler. Same is true with info tooltips - they display for both themes in IE7, but only for the top theme in FF3. (http://www.navsys.com/BruceB/mapviewer.gif shows the two themes - one green, the other pink. On FF3 I never get a "hand" cursor or a tooltip over any of the pink areas, and clicking calls the mapview handler, not the theme handler.)
    Incidently if I hide the "top" theme, then the mouse clicks/tooltip work again on the other theme.
    Is this expected?
    Thanks!
    -Bruce
    <html>
    <head>
    <META http-equiv="Content-Type" content="text/html" charset=UTF-8">
    <TITLE>Map Cache Server/Map Client</TITLE>
    <link rel="stylesheet" type="text/css" href="../t.css" />
    <script language="Javascript" src="/mapviewer/fsmc/jslib/oraclemaps.js"></script>
    <script language=javascript>
    var mapview;
    function showMap()
    var baseURL = "http://"+document.location.host+"/mapviewer";
    var mapCenterLon = -83.498
    var mapCenterLat = 31.453;
    var mapZoom = 4;
    var mpoint = MVSdoGeometry.createPoint(mapCenterLon,mapCenterLat,8307);
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    mapview.addMapTileLayer(new MVMapTileLayer("mapdata.demo_map"));
    mapview.setCenter(mpoint);
    mapview.setZoomLevel(mapZoom);
    mapview.setEventListener('mouse_click',backgroundClick);
    addThemeBasedFOI();
    mapview.addNavigationPanel() ;
    mapview.display();
    function addThemeBasedFOI()
    var themebasedfoi1 = new MVThemeBasedFOI('themebasedfoi1','grim.T_121_GBOTEST_70265_F');
    themebasedfoi1.enableAutoWholeImage(true) ;
         themebasedfoi1.setEventListener('mouse_click',theme1clicked);
    mapview.addThemeBasedFOI(themebasedfoi1);
    var themebasedfoi2 = new MVThemeBasedFOI('themebasedfoi2','grim.TR_GBOTEST_86094_F');
    themebasedfoi2.setEventListener('mouse_click',theme2clicked);
    mapview.addThemeBasedFOI(themebasedfoi2);
    function setVisible(item)
    var themebasedfoi = mapview.getThemeBasedFOI(item.value);               
    themebasedfoi.setVisible(!themebasedfoi.isVisible());
    function theme1clicked(pt,foidata,me)
         alert('Tour clicked');
    function theme2clicked(pt,foidata,me)
         alert('Best clicked');
    function backgroundClick()
    alert('background click');
    </script>
    </head>
    <body onload="javascript:showMap();">
    <h3>Oracle Maps example - show/hide Theme Based FOI layers </h3>
    <ul>
    <LI ><INPUT TYPE="checkbox" value="themebasedfoi1" onclick="setVisible(this)" checked/>Show County population layer
    <LI ><INPUT TYPE="checkbox" value="themebasedfoi2" onclick="setVisible(this)" checked/>Show Customer layer
    </ul>
    <div id="map" style="left:0px;top:10px;width:100%; height:60%"></div>
    <HR/>
    </body>
    </html>

    Alan McClean has alluded to the cause of this behaviour but I think others would benefit from a full explanation because it doesn't appear to be documented. I might add that Business Objects support were no help at all on this (they suggested I had a problem with my mouse, PC or network which I don't).
    Normal response to a mouse double-click on a document name in InfoView XI3:
    The double-click action performs the default action on the right-click list. This is the option you see in bold when you right-click on a document name. The default action is 'View' document. So when you double-click on the document it opens for viewing.
    In CMC, under Applications>InfoView if you set 'Default viewing action on listing page:' to 'View the latest successful instance of the object' then the double-click behaviour changes:
    The double-click action now tries to open the latest successful instance of a document. I found that any document in my Inbox or any document with instances (e.g. scheduled report) will still open for viewing using the double-click. For any other document the double-click fails silently. I assume this is because there simply isn't a latest instance to open.
    Conclusions:
    1. Don't use the 'View the latest successful instance of the object'. I have reset my CMC setting back to 'View the object'.
    2. I think Business Objects should change the double-click behaviour so that rather than fail silently it opens the document.

  • Oracle ADF with Mapviewer - POINT THEME not visible ( Urgent Please)

    Hi All,
    I am new to oracle adf and mapviewer and I am configuring a application to display a base map ( with some tables) and point theme ( different table) which can be selectable.
    I have created a base map using oracle map builder and created tile layer.
    Using Oracle ADF Geo Map component , configured the above base map and mapviewer server
    and defined data control to create point theme....and configured long/lat values .
    But no luck, unable to see the point theme on the map. Please help me ASAP.
    Regards
    Kumar

    To add to the above points.. I am only getting below warning message in weblogic console.
    <UIXComponentBase> <getClientId> getClientId should not be called while the view is being constructed. Component ID: j_id1013
    <UIXComponentBase> <getClientId> getClientId should not be called while the view is being constructed. Component ID: j_id1065
    <UIXComponentBase> <getClientId> getClientId should not be called while the view is being constructed. Component ID: j_id1065
    <UIXComponentBase> <getClientId> getClientId should not be called while the view is being constructed. Component ID: j_id1066
    <UIXComponentBase> <getClientId> getClientId should not be called while the view is being constructed. Component ID: j_id1066
    Please suggest

  • Dynamic themes

    Hi dears,
    i am trying to display all themes in list item with check box. when select couple of themes from my list it has to display in map and when i deselect my themes those has to disappear from my map.
    please some one help how can i do this dynamically
    Thanks
    Kabeer

    if some one can provide me sample code appreciated
    Thanks
    Kabeer

  • Zoom to content of dynamic themes

    hello,
    i added some geometries using the .addJDBCTheme() method of mapviewer bean (select ...)
    how can i get the minimum bounding rectangle only of this selected geometies?

    You can define this JDBCTheme as a bounding theme on your request. In this case your map window will cover the extent of the geometries for this JDBCTheme. See the bounding_themes element description on the Users Guide (I guess section 3.2.2).

Maybe you are looking for

  • Unable to delete request from write-optimized DSO (Error during rollback)

    Hi Gurus, I am trying to delete a delta request from a Write-Optimized DSO. This request was uploaded with a DTP from another Write-optimized DSO. The actual overall status of the request is RED and the description of that status is now: 'Error durin

  • Sccm 2012 r2

    why is it so F&^^%%ing hard to just get updates to install with 2012 R2? 07 was simple, this POS is convoluted and when everything on the server looks fine but you get BS messages in the client logs it is frustrating. And MS has soooo many articles o

  • Conditions from Quotation to Purchase order

    Dear Team, Requirement is 1. Client maintain quotation with discounts, delivery costs in ME47 1st Qs: System does NOT show condition types [which I have created] in Conditions of Quotation e.g. ZR01 [copy of RA01] 2. While creating PO refernce to RFQ

  • Wrong file/data size in Wave Header

    Hi all, I record audio from the Mic into a byteArrayOutputStream and afterwards like to store it in a file. This is the main code:      private void sendAudio() {                byte audioData[] = byteArrayOutputStream.toByteArray();                A

  • Adobe Mastersuite CS4 - Concerned About Moving To Windows 8.1

    I have Adobe Mastersuite CS4 on Windows XP and it works just fine for my needs.    Since Microsoft has discontinued support of Windows XP I am moving to Windows 8.1.  Right now I simply don't have the money to upgrade my suite and from a functional p