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

Similar Messages

  • Probs with adding network and topology themes

    Hallo everybody,
    I wanted to add my network and topology data with the following sql-code
    INSERT INTO USER_SDO_THEMES VALUES(
    'THEME_DEMO_NETWORK',
    'Stromnetz Netzwerkmodell',
    'STROMNETZ_NW_LINK$',
    'TOPO_GEOMETRY',
    '<?xml version="1.0" standalone="yes"?>
    <styling_rules
    theme_type="network"
    network_name="STROMNETZ_NW"
    network_level="1">
    <rule>
    <features>
    <link
    style="C.RED"
    direction_style="M.IMAGE105_BW"
    direction_position="0.85"
    direction_markersize="8">
    </link>
    <node
    style="M.CIRCLE"
    markersize="5">
    </node>
    </features>
    </rule>
    </styling_rules>' );
    INSERT INTO USER_SDO_THEMES VALUES(
    'THEME_TOPO_NSLA',
    'Topologie fuer NSLA',
    'NS_LEITUNGSABSCHNITT_TOPO_TAB',
    'POSITION',
    '<?xml version="1.0" standalone="yes"?>
    <styling_rules theme_type="topology" topology_name="STROMNETZ">
    <rule>
    <features style="C.RED">
    </features>
    </rule>
    <styling_rules>');
    The rows are added to the user_sdo_themes but when I click on the network theme in the definition tool I get the error-message: No style attribute in row 1 is found. Only the valid elements are shown in the table. And there aren't any rows in the following table. What is wrong?
    When I add my topology theme to a map where I already have 2 other themes in the data of the topology theme isn't displayed.
    Both network and topology are valid.
    Another question is ... can there be problems by using the following char ' and that char " I took the code from the Mapviewer documentation and there are these different chars used.
    I have two different users spatial and scott. In both users I have imported the mvdemo so I have in both the same styles metadata. I needn't to define the style for my network like "SPATIAL:C.RED" or something like that? At the moment I only work with user spatial.
    Hope somebody can help. Thanks
    Katrin

    Hallo Daniel, hallo Joao,
    thanks for your reply. I have tried with SPATIAL:C.RED but I think my error is that I have created the map with the topology theme/network theme (I have posted before) with the Map Definition tool. Could that be the error?
    In my log file there is following exception
    [oracle.sdovis.DBMapMaker, Wed Jun 29 14:11:29 CEST 2005, DEBUG] LoadThemeData running thread: Thread-8
    [oracle.sdovis.JDBCDataSource4PT, Wed Jun 29 14:11:29 CEST 2005, FINEST] [ THEME_DEMO_FLST ]: 2558531.6666666665,5684295.0,2558998.333333333,5684645.0
    [oracle.sdovis.JDBCDataSource4PT, Wed Jun 29 14:11:29 CEST 2005, FINEST] [PT Query] SELECT ROWID||'FLAECHE', FLAECHE, 'SCOTT:C.COUNTIES', FLST_NR_ZAEHLER, 'SCOTT:T.CITY NAME', 1 FROM FLURSTUECK_TAB WHERE MDSYS.SDO_FILTER(FLAECHE, MDSYS.SDO_GEOMETRY(2003, 82015, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?, ?, ?, ?)), 'querytype=WINDOW') = 'TRUE'
    [oracle.sdovis.DBMapMaker, Wed Jun 29 14:11:29 CEST 2005, DEBUG] LoadThemeData running thread: Thread-9
    [oracle.sdovis.DBMapMaker, Wed Jun 29 14:11:29 CEST 2005, DEBUG] LoadThemeData running thread: Thread-10
    [oracle.sdovis.JDBCDataSource4PT, Wed Jun 29 14:11:29 CEST 2005, DEBUG] [ FLURSTUECK_TAB ] sql exec time: 38ms, total time loading 6 features: 155ms.
    [oracle.sdovis.JDBCDataSource4PT, Wed Jun 29 14:11:29 CEST 2005, FINEST] [ THEME_TOPO_NSLA ]: 2558531.6666666665,5684295.0,2558998.333333333,5684645.0
    [oracle.sdovis.JDBCDataSource4PT, Wed Jun 29 14:11:29 CEST 2005, FINEST] [PT Query] SELECT ROWID||'POSITION', POSITION, 'SPATIAL:C.RED', null, 'null', -1 FROM NS_LEITUNGSABSCHNITT_TOPO_TAB WHERE MDSYS.SDO_FILTER(POSITION, MDSYS.SDO_GEOMETRY(2003, 82015, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?, ?, ?, ?)), 'querytype=WINDOW') = 'TRUE'
    [oracle.sdovis.JDBCDataSource4PT, Wed Jun 29 14:11:29 CEST 2005, FINEST] [ THEME_DEMO_GEB ]: 2558531.6666666665,5684295.0,2558998.333333333,5684645.0
    [oracle.sdovis.JDBCDataSource4PT, Wed Jun 29 14:11:29 CEST 2005, FINEST] [PT Query] SELECT ROWID||'FLAECHE', FLAECHE, 'SCOTT:C.BLACK', null, 'null', -1 FROM GEBAEUDE_TAB WHERE MDSYS.SDO_FILTER(FLAECHE, MDSYS.SDO_GEOMETRY(2003, 82015, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?, ?, ?, ?)), 'querytype=WINDOW') = 'TRUE'
    [oracle.sdovis.JDBCDataSource4PT, Wed Jun 29 14:11:29 CEST 2005, DEBUG] [ NS_LEITUNGSABSCHNITT_TOPO_TAB ] sql exec time: -1120047089477ms, total time loading 0 features: 90ms.
    [oracle.sdovis.JDBCDataSource4PT, Wed Jun 29 14:11:29 CEST 2005, ERROR] *** SQL Exception while querying theme: THEME_TOPO_NSLA
    [oracle.sdovis.JDBCDataSource4PT, Wed Jun 29 14:11:29 CEST 2005, ERROR] java.sql.SQLException: ORA-29900: operator binding does not exist
    ORA-06553: PLS-306: wrong number or types of arguments in call to 'SDO_FILTER'
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:625)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:181)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_for_describe(T4CPreparedStatement.java:661)
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:951)
         at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:693)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1057)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2901)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2942)
         at oracle.sdovis.JDBCDataSource4PT.loadFeaturesInWindow(JDBCDataSource4PT.java:344)
         at oracle.sdovis.JDBCDataSource4PT.prepareFeatures(JDBCDataSource4PT.java:256)
         at oracle.sdovis.PredefinedTheme.prepareData(PredefinedTheme.java:85)
         at oracle.sdovis.DBMapMaker$LoadThemeData.run(DBMapMaker.java:1300)
    [oracle.sdovis.JDBCDataSource4PT, Wed Jun 29 14:11:29 CEST 2005, DEBUG] [ GEBAEUDE_TAB ] sql exec time: 70ms, total time loading 6 features: 77ms.
    [oracle.sdovis.DBMapMaker, Wed Jun 29 14:11:29 CEST 2005, INFO] **** time spent on loading features: 307ms.
    [oracle.sdovis.VectorRenderer, Wed Jun 29 14:11:29 CEST 2005, FINEST] Theme isClickable=false
    [oracle.sdovis.VectorRenderer, Wed Jun 29 14:11:29 CEST 2005, DEBUG] time to render theme THEME_DEMO_FLST with 6 styled features: 5ms
    [oracle.sdovis.VectorRenderer, Wed Jun 29 14:11:29 CEST 2005, FINEST] Theme isClickable=false
    [oracle.sdovis.VectorRenderer, Wed Jun 29 14:11:29 CEST 2005, DEBUG] time to render theme THEME_DEMO_GEB with 6 styled features: 1ms
    [oracle.sdovis.VectorRenderer, Wed Jun 29 14:11:29 CEST 2005, FINEST] Theme isClickable=false
    [oracle.sdovis.VectorRenderer, Wed Jun 29 14:11:29 CEST 2005, DEBUG] time to render theme THEME_TOPO_NSLA with 0 styled features: 1ms
    [oracle.sdovis.VectorRenderer, Wed Jun 29 14:11:29 CEST 2005, DEBUG] time to label theme THEME_DEMO_FLST with 6 styled features: 56ms
    [oracle.sdovis.VectorRenderer, Wed Jun 29 14:11:29 CEST 2005, DEBUG] time to label theme THEME_DEMO_GEB with 6 styled features: 0ms
    [oracle.sdovis.VectorRenderer, Wed Jun 29 14:11:29 CEST 2005, DEBUG] time to label theme THEME_TOPO_NSLA with 0 styled features: 0ms
    If this is the error how can I create my map with network and/or topology themes in sql*plus. I can't take Map definition tool for this taske!? At the moment I use only SQL*Plus.
    Sorry for this long post.
    Thanks Katrin

  • Topology Theme / Advanced Styling - Errors

    Hello
    We're undertaking some evaluation / proof of concept activities with mapviewer connected to fusion middleware 11g / 11g2 database
    Our application would require a topological data model and we have successfully created a small topological testbed.
    The topological model can be successfully interrogated in mapbuilder and displays in mapviewer when simple line styles are applied.
    There are two problems:
    1) when displayed as a themeBasedFOI in mapviewer the topological theme is not clickable so cannot be interrogated (yes all the obvious settings have been tried)
    2) the topology theme cannot be combined with an advanced Style (to enable lines to have different styles according to a attribute columns in the topology table)
    The styling problem manifests itself as a dialogue box displaying "Error 0" when using mapbuilder and an error "SEVERE: Error rendering FOI image java.lang.ArrayIndexOutOfBoundsException: 0" on the mapviewer console.
    As these problems do not manifest themselves when using geometry themes and the topological data seems otherwise to work correctly I'm inclined to think this is a bug in the topology code but would be interested to know if anyone else has experienced / resolved this?
    Mal
    Edited by: user5883580 on 28-Oct-2010 08:53
    Edited by: user5883580 on 28-Oct-2010 08:53

    The processing of geometry themes and topology themes are different. The attribute 'rule#0' that you see on the query for geometry themes is something internal of MapViewer that is added on the query. This does not apply for topology themes. You can use advanced style with topology themes. The idea is similar to geometry themes, where you add some attribute to be used by the advanced style. Post the advanced style definition and the topology theme definition that you were trying to use.
    Joao

  • 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

  • MapViewer topology and get_geometrymember function

    Hallo everybody,
    can Mapviewer show geometries that come from the member function get_geometry of a topology object. Or may I calculate for all my topology the geometry in this way and then store it?
    Thanks Jade

    yes mapviewer can show the results of get_geometry call.

  • 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

  • Mapviewer topology demo data?

    Hello,
    i just downloaded the new MapViewer, Map Builder & Quickstart 10.1.3.3 for WebLogic kit and noticed that there is no longer the topology demo data included, although there are some mapviewer demos that could use that data.
    In my archive i found some older mapviewer release that includs the topology demo data set, but i've had troubles getting it imported (IMP-00067).
    Is there some new release of the topology data that i can download?
    Thanks for help in advance,
    Dirk

    In 10g, all demo programs are installed via separate companion CD. DM demo programs are part of the companion CD and you need to install the demos from there.

  • MapViewer Topology Query

    Am attempting to understanding the inner workings of MapView specifically with topology for the purposes of building/editing .jsp applications. When I look at the source for the demo topology.jsp, I can see the mapRequest construct which includes the query - select topoColumn from featureTable. The rest of the mapRequest has information on the topology name, datasource, SRID, etc. When a map request is executed, the session log reveals a complex query that includes a number of joins with the topology tables (node, face, edge, feature). Where is the intelligence/code that tells Oracle/MapViewer to make that complex join?

    topology.jsp with slight modifications to labels and map size but not the map request.
    Default settings:
    Map Viewer URL: http://m42b:8888/mapviewer/omserver
    DataSource: mvdemo
    Title: <blank>
    Topology Name: tiger2005
    Map Center X Coord: -71.0
    Map Center Y Corod: 42.0
    Map Size: 35.0
    Show Mode: Debug
    Feature Table: counties_topo
    Topology Column: feature
    Render Style: c.counties
    Label Column: feature
    Label Style: t.city_name
    Spatial Reference ID (SRID): 8307
    Test #1: The above settings produce the correct map
    Test #2: Changed Show Mode to "Features"; java.sql.SQLException:ORA-00918: column ambiguously
    defined error, did not specify which column, map not displayed
    Test #3: Added the following code at line 154 of topology.jsp
    String query = "select " + topoColumn;
    if(labelColumn != null && labelColumn.length() > 0 &&
    labelStyle != null && labelStyle.length() > 0)
    query += "," + labelColumn;
    query += " from " + featureTable + " where state_name = 'New Hampshire'";
    Changed Show Mode to "Debug"; the entire map was returned, not the subset for New Hampshire
    Test #4: Added " where state_name = 'New Hampshire'"; to line 113; changed Show Mode to
    "Features"; returned the same error message as test #2, map not displayed.
    SQL> select feature from counties_topo where state_name = 'New Hampshire';
    FEATURE(TG_TYPE, TG_ID, TG_LAYER_ID, TOPOLOGY_ID)
    SDO_TOPO_GEOMETRY(3, 1605, 1, 10)
    SDO_TOPO_GEOMETRY(3, 1606, 1, 10)
    SDO_TOPO_GEOMETRY(3, 1607, 1, 10)
    SDO_TOPO_GEOMETRY(3, 1608, 1, 10)
    SDO_TOPO_GEOMETRY(3, 1634, 1, 10)
    SDO_TOPO_GEOMETRY(3, 1635, 1, 10)
    SDO_TOPO_GEOMETRY(3, 1636, 1, 10)
    SDO_TOPO_GEOMETRY(3, 1637, 1, 10)
    SDO_TOPO_GEOMETRY(3, 1652, 1, 10)
    SDO_TOPO_GEOMETRY(3, 1653, 1, 10)
    10 rows selected.
    SQL> select * from user_sdo_topo_metadata where table_name = 'COUNTIES_TOPO';
    OWNER TOPOLOGY TOPOLOGY_ID TOLERANCE
    SRID TABLE_SCHEMA
    TABLE_NAME
    COLUMN_NAME TG_LAYER_ID TG_LAYER_T TG_LAYER_LEVEL
    CHILD_LAYER_ID NODE_SEQUENCE EDGE_SEQUENCE
    FACE_SEQUENCE TG_SEQUENCE DIGITS_RIGHT_OF_DECIMAL
    MVDEMO TIGER2005 10 .05
    8307 MVDEMO
    COUNTIES_TOPO
    FEATURE 1 POLYGON 0
    TIGER2005_NODE_S TIGER2005_EDGE_S
    TIGER2005_FACE_S TIGER2005_TG_S 16

  • 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
    &lt;?xml version="1.0" standalone="yes"?&gt;
    &lt;map_request
    title="Testing Cities"
    basemap="SOUTHWEST"
    datasource ="mvdemo"
    width="640"
    height="480"
    bgcolor="#a6cae0"
    antialiase="false"
    format="GIF_STREAM"&gt;
    &lt;center size="12"&gt;
    &lt;geoFeature&gt;
    &lt;geometricProperty&gt;
    &lt;point&gt;
    &lt;coordinates&gt;-120, 39&lt;/coordinates&gt;
    &lt;/point&gt;
    &lt;/geometricProperty&gt;
    &lt;/geoFeature&gt;
    &lt;/center&gt;
    &lt;themes&gt;
    &lt;theme name="Cities"&gt;
    &lt;jdbc_query
    datasource="mvdemo"
    spatial_column="LOCATION"
    render_style="M.EXIT 5X5"
    jdbc_srid="8307"&gt;
    select city,location from cities where state_abrv='CA'
    &lt;/jdbc_query&gt;
    &lt;/theme&gt;
    &lt;/themes&gt;
    &lt;/map_request&gt;
    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

  • 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

  • Map Builder Preview rendering errors

    I am having problems using Map Builder. I have wasted quite a bit of time trying to fix these problems assuming I was doing something wrong, or something was wrong with my data.
    Error 1: I create a map using 2 themes. One theme is a geometry theme of topo edge primitives. The other is a topology theme of features built from those primitives. The geometry theme is assigned a red line style. The topology(feature) theme is assigned a blue line style. the geometry theme is listed first, to draw first. I expect to see the red overdrawn by the blue. The preview show red lines. When viewed in Acquis Data Editor, this map displays as expected (blue lines) and when a feature is removed (disassociated from the topo primitive) the underlying primitive shows up as red. When I stop and restart Map Builder, the preview rendering is as expected, blue on top.
    Error 2: I create a map using 1 theme. This theme is a geometry theme of topo edge primitives. I assign node and edge styles. When I preview the map, the nodes (only one node per edge) are displayed at the center of the straight edges, at what appears to be mid-distance between the end points of the edges of the shaped edges (not on the edge), and in the center of rings created by edges that have the same start and end node. They look like they are attempting to be what ESRI calls label points. Again, when I view this map in Acquis Data Editor, the nodes show up on the ends of the edges where I usually tend to look for nodes to show up. Stopping and restarting Map Builder does not fix this rendering problem.
    Are these known bugs and when can I expect to use the preview button reliably?
    Alden

    For the red line style, L.EDGE, the xml def is:
    <?xml version="1.0" standalone="yes"?>
    <svg height="1in" width="1in">
    <desc/>
    <g class="line" style="fill:#FF33FF;stroke-width:1.0">
    <line class="base"/>
    </g>
    </svg>
    For the blue line style, L.FEATURESTYLE, the xml def is:
    <?xml version="1.0" standalone="yes"?>
    <svg height="1in" width="1in">
    <desc/>
    <g class="line" style="fill:#3366FF;stroke-width:1.0">
    <line class="base"/>
    </g>
    </svg>
    For the geometry (edge primitive) theme, TOPO_EDGE, the xml def is:
    <?xml version="1.0" standalone="yes"?>
    <styling_rules>
    <rule>
    <features style="C.FACE"> </features>
    </rule>
    <rule>
    <features style="M.NODE"> </features>
    </rule>
    <rule>
    <features style="L.EDGE"> </features>
    </rule>
    </styling_rules>
    For the topology(feature) theme, GLOBAL, the xml def is:
    <?xml version="1.0" standalone="yes"?>
    <styling_rules theme_type="topology" topology_name="MGF_TOPO">
    <rule>
    <features style="L.Featurestyle"> </features>
    </rule>
    </styling_rules>
    For the base map, TEST2, the xml def is:
    <?xml version="1.0" standalone="yes"?>
    <map_definition>
    <theme name="TOPO_EDGE"/>
    <theme name="GLOBAL"/>
    </map_definition>
    As I said earlier, this does display blue lines after a restart of MapBuilder but upon first creating this map and themes, the initial display is red lines.
    As to error 2: I understand now that Acquis probably does a specialty mapping of metatdata and uses the NODE$ table, applying the style definition for the edge theme (M.NODE) to display them.

  • Scale based marker are too small

    Hi,
    I'm using Image Marker Styles with a marker size in meter.
    In a wholeImage MapViewer displays them correct. But if I use single FOI images MapViewer displays them too small.
    I got this behavior with MapViewer Ver11_B091229. MapViewer Ver11_B090416 displays the Marker in a correct size.
    Thanks,
    Cord

    Hi Cord,
    when you say displays too small, is it always small for different zoom levels? The marker does not change sizes as you zoom in/out while rendering as a non wholeImage FOI ltheme? Some issues have been found with scalable styles and FOI entities (more related with advanced styles). If you have access to patches, please try patch 9668208 and let us know the results.
    Thanks.
    Joao

  • 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

Maybe you are looking for