SDO_BUFFER Geometry in Mapviewer

I'm using the sdo_geom.sdo_buffer procedure to successfully generate a buffer around a point, but I can't seem to get the buffer to display the way I'd like. This is what I am doing to get a gray buffer:
mv.addJDBCTheme(dataSrc, "ASSET_CIRCLES", circleQuery,
"geometry", "8307", "SQL_QUERY", null, "L.CIRCLE" , true);
What I'd like is a colored buffer. In playing around w/ it, I was able to change the color of the circle's border, but can't seem to change the interior fill color. Any suggestions?
Thanks.

L.CIRCLE is likely a line style and so only determines how the border is rendered.
Use a color style instead. You may need to create one that has the desired stroke and fill colors. E.g.
select definition from user_Sdo_styles where name='C.CHARCOAL W/ ROSY BROWN BORDER' ;
DEFINITION
<?xml version="1.0" standalone="yes"?>
<svg width="1in" height="1in">
<desc></desc>
<g class="color" style="stroke:#bc8f8f;fill:#808080">
<rect width="50" height="50"/></g>
</svg>
SQL>

Similar Messages

  • Spatial query on view to another schema

    Hi,
    I am getting the following error on this query :
    select ufi from cadastre where
    sdo_filter(geometry,
    mdsys.sdo_geometry(2003,8311,NULL,
    sdo_elem_info_array(1,1003,3),
    sdo_ordinate_array(130.967,-12.510,131.000,-12.486))) = 'TRUE';
    ORA-13226: interface not supported without a spatial index
    Cadastre is a view of a table stored in another schema.
    This query works :
    select ufi from sdo_owner.parcel where
    sdo_filter(geometry,
    mdsys.sdo_geometry(2003,8311,NULL,
    sdo_elem_info_array(1,1003,3),
    sdo_ordinate_array(130.967,-12.510,131.000,-12.486))) = 'TRUE';
    I have an entry in user_sdo_geom_metadata for CADASTRE , do i also need an entry in user_sdo_index_info for the query to work.
    Does any one have any ideas ?
    James

    Dan,
    I have worked out why it happens. We have a parcel table that is made up of polygons and points. The points are parcel's that have no legal boundary or survey boundary, just a point where a house might be located.
    What i had forgotten was that i had created a function to convert these points into a polygon on the fly. This buffer function is called from the view.
    example
    create view cadastre
    as
    select
    ufi,
    parcel_key,
    buffer(geometry) "GEOMETRY"
    from sdo_owner.parcel;
    I am guessing that because the geometry is no longer geometry from a table but created geometry it does not have a spatial index associated with it.
    Here is the buffer function
    CREATE OR REPLACE FUNCTION buffer
    geometry MDSYS.SDO_GEOMETRY,
    layer_name VARCHAR2
    RETURN MDSYS.SDO_GEOMETRY
    AS
    temp_geom MDSYS.SDO_GEOMETRY;
    diminfo MDSYS.SDO_DIM_ARRAY;
    start_x FLOAT;
    start_y FLOAT;
    end_x FLOAT;
    end_y FLOAT;
    BEGIN
    SELECT u.diminfo INTO diminfo
    FROM user_sdo_geom_metadata u
    WHERE u.table_name = UPPER(layer_name);
    IF geometry.GET_GTYPE() = 1 THEN
    temp_geom := sdo_geom.sdo_buffer(geometry,diminfo,4,'units=m arc_tolerance=0.005');
    return temp_geom;
    END IF;
    IF geometry.GET_GTYPE() = 2 THEN
    temp_geom := sdo_geom.sdo_buffer(geometry,diminfo,4,'units=m arc_tolerance=0.005');
    RETURN temp_geom;
    END IF;
    IF geometry.GET_GTYPE() = 6 THEN
    temp_geom := sdo_geom.sdo_buffer(geometry,diminfo,4,'units=m arc_tolerance=0.005');
    RETURN temp_geom;
    END IF;
    RETURN geometry;
    END;
    James

  • 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.

  • Is possible to represent data from a view in MapViewer?

    I have tried to represent data from a view instead a table with the Java-Beans API but I couldn't beacause it doesn't represent any geometry referenced by the view. I think it should be implemented because is very common to use views. Are there any way to represent them in MapViewer?
    Thanks.

    Like a table, you also need to register the view in spatial metadata (user_sdo_geom_metadata). Did you register the view and its spatial column there?

  • 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

  • Trying to get multiple cell values within a geometry

    I am provided with 3 tables:
    1 - The GeoRaster
    2 - The geoRasterData table
    3 - A VAT table who's PK is the cell value from the above tables
    Currently the user can select a point in our application and by using the getCellValue we get the cell value which is the PK on the 3rd table and this gives us the details to return to the user.
    We now want to give the worst scenario within a given geometry or distance. So if I get back all the cell values within a given geometry/distance I can then call my other functions against the 3rd table to get the worst scores.
    I had a conversation open for this before where JeffreyXie had some brilliant input, but it got archived while I was waiting on Oracle to resolve a bug (about 7 months)
    See:
    Trying to get multiple cell values within a geometry
    If I am looking to get a list of cell values that interact with my geometry/distance and then loop through them, is there a better way?
    BTW, if anybody wants to play with this functionality, it only seems to work in 11.2.0.4.
    Below is the code I was using last, I think it is trying to get the cell values but the numbers coming back are not correct, I think I am converting the binary to integer wrong.
    Any ideas?
    CREATE OR REPLACE FUNCTION GEOSUK.getCellValuesInGeom_FNC RETURN VARCHAR2 AS
    gr sdo_georaster;
    lb blob;
    win1 sdo_geometry;
    win2 sdo_number_array;
    status VARCHAR2(1000) := NULL;
    CDP varchar2(80);
    FLT number := 0;
    cdl number;
    vals varchar2(32000) := null;
    VAL number;
    amt0 integer;
    amt integer;
    off integer;
    len integer;
    buf raw(32767);
    MAXV number := null;
    r1 raw(1);
    r2 raw(2);
    r4 raw(200);
    r8 raw(8);
    MATCH varchar2(10) := '';
    ROW_COUNT integer := 0;
    COL_COUNT integer := 0;
    ROW_CUR integer := 0;
    COL_CUR integer := 0;
    CUR_XOFFSET integer := 0;
    CUR_YOFFSET integer := 0;
    ORIGINY integer := 0;
    ORIGINX integer := 0;
    XOFF number(38,0) := 0;
    YOFF number(38,0) := 0;
    BEGIN
    status := '1';
    SELECT a.georaster INTO gr FROM JBA_MEGARASTER_1012 a WHERE id=1;
    -- first figure out the celldepth from the metadata
    cdp := gr.metadata.extract('/georasterMetadata/rasterInfo/cellDepth/text()',
    'xmlns=http://xmlns.oracle.com/spatial/georaster').getStringVal();
    if cdp = '32BIT_REAL' then
    flt := 1;
    end if;
    cdl := sdo_geor.getCellDepth(gr);
    if cdl < 8 then
    -- if celldepth<8bit, get the cell values as 8bit integers
    cdl := 8;
    end if;
    dbms_lob.createTemporary(lb, TRUE);
    status := '2';
    -- querying/clipping polygon
    win1 := SDO_GEOM.SDO_BUFFER(SDO_GEOMETRY(2001,27700,MDSYS.SDO_POINT_TYPE(473517,173650.3, NULL),NULL,NULL), 10, .005);
    status := '1.2';
    sdo_geor.getRasterSubset(gr, 0, win1, '1',
    lb, win2, NULL, NULL, 'TRUE');
    -- Then work on the resulting subset stored in lb.
    status := '2.3';
    DBMS_OUTPUT.PUT_LINE ( 'cdl: '||cdl );
    len := dbms_lob.getlength(lb);
    cdl := cdl / 8;
    -- make sure to read all the bytes of a cell value at one run
    amt := floor(32767 / cdl) * cdl;
    amt0 := amt;
    status := '3';
    ROW_COUNT := (WIN2(3) - WIN2(1))+1;
    COL_COUNT := (WIN2(4) - WIN2(2))+1;
    --NEED TO FETCH FROM RASTER
    ORIGINY := 979405;
    ORIGINX := 91685;
    --CALCUALATE BLOB AREA
    YOFF := ORIGINY - (WIN2(1) * 5); --177005;
    XOFF := ORIGINX + (WIN2(2) * 5); --530505;
    status := '4';
    --LOOP CELLS
    off := 1;
    WHILE off <= LEN LOOP
    dbms_lob.read(lb, amt, off, buf);
    for I in 1..AMT/CDL LOOP
    if cdl = 1 then
    r1 := utl_raw.substr(buf, (i-1)*cdl+1, cdl);
    VAL := UTL_RAW.CAST_TO_BINARY_INTEGER(R1);
    elsif cdl = 2 then
    r2 := utl_raw.substr(buf, (i-1)*cdl+1, cdl);
    val := utl_raw.cast_to_binary_integer(r2);
    ELSIF CDL = 4 then
    IF (((i-1)*cdl+1) + cdl) > len THEN
    r4 := utl_raw.substr(buf, (i-1)*cdl+1, (len - ((i-1)*cdl+1)));
    ELSE
    r4 := utl_raw.substr(buf, (i-1)*cdl+1, cdl+1);
    END IF;
    if flt = 0 then
    val := utl_raw.cast_to_binary_integer(r4);
    else
    val := utl_raw.cast_to_binary_float(r4);
    end if;
    elsif cdl = 8 then
    r8 := utl_raw.substr(buf, (i-1)*cdl+1, cdl);
    val := utl_raw.cast_to_binary_double(r8);
    end if;
    if MAXV is null or MAXV < VAL then
    MAXV := VAL;
    end if;
    IF i = 1 THEN
    VALS := VALS || VAL;
    ELSE
    VALS := VALS ||'|'|| VAL;
    END IF;
    end loop;
    off := off+amt;
    amt := amt0;
    end loop;
    dbms_lob.freeTemporary(lb);
    status := '5';
    RETURN VALS;
    EXCEPTION
        WHEN OTHERS THEN
            RAISE_APPLICATION_ERROR(-20001, 'GENERAL ERROR IN MY PROC, Status: '||status||', SQL ERROR: '||SQLERRM);
    END;

    Hey guys,
    Zzhang,
    That's a good spot and as it happens I spotted that and that is why I am sure I am querying that lob wrong. I always get the a logic going past the total length of the lob.
    I think I am ok using 11.2.0.4, if I can get this working it is really important to us, so saying to roll up to 11.2.0.4 for this would be no problem.
    The error in 11.2.0.3 was an internal error: [kghstack_underflow_internal_3].
    Something that I think I need to find out more about, but am struggling to get more information on is, I am assuming that the lob that is returned is all cell values or at lest an array of 4 byte (32 bit) chunks, although, I don't know this.
    Is that a correct assumption or is there more to it?
    Have either of you seen any documentation on how to query this lob?
    Thanks

  • Mapviewer view zoomed out within BI report

    Hello,
    I'm trying to troubleshoot an issue with a mapviewer map within a BI report showing the map zoomed way out. This map is a FL state map with the cities within the states marked. The geometry theme "FL_CITIES" preview fine on the MapBuilder.jar client application.
    However, when rendering the map in OBI report, Mapview just shows a grey screen. When I click on the map, then a small map of FL displays, but it is zoomed out.
    I tried to update the mapZoom to a different number on
    mapview.setZoomLevel(mapZoom);
    but there is no change in rendering of the map.
    Has anyone else encountered this behavior? I'm on 10.1.3.3. I've cut and pasted the showMap() function:
    function showMap()
    baseURL = "http://"+document.location.host+"/mapviewer";
    var mpoint = MVSdoGeometry.createPoint(-82.6, 28.2,8307);
    mapview = new MVMapView(document.getElementById("map"), baseURL);
    var mapZoom = 0;
    mapview.addBaseMapLayer(new MVBaseMap("MVDEMO.DEMO_MAP"));
    mapview.setZoomLevel(mapZoom);
    mapview.addCopyRightNote(
    "<font color=black>"+
    "Oracle MapViewer"+
    "</font>"+
    "&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp");
    mapview.addMapTileLayer(new MVBaseMap("elocation_mercator.world_map","http://elocation.oracle.com/mapviewer/mcserver" ));
    var mapZoom=5;
    mapview.addCopyRightNote("Oracle eLocation - &#169;2008 Oracle Corp. &#169;2008NAVTEQ&#8482;");
    mapview.addNavigationPanel("WEST",false,false,null);
    mapview.setCenter(mpoint);
    mapview.setZoomLevel(mapZoom);
    flFOI = new MVThemeBasedFOI('flFOI','mvdemo.fl');
    mapview.addThemeBasedFOI(flFOI);
    countiesFOI = new MVThemeBasedFOI('countiesFOI','mvdemo.fl_counties');
    mapview.addThemeBasedFOI(countiesFOI);
    regionsFOI = new MVThemeBasedFOI('regionsFOI','mvdemo.fl_cities');
    regionsFOI.setRenderingStyle("V.UI_DATA_CITIES");
    //setupNsdp(regionsFOI);
    regionsFOI.setBoundingTheme(true);
    // regionsFOI.enableLabels(true);
    mapview.addThemeBasedFOI(regionsFOI);
    mapview.display();

    Thank u so much for ur reply,
    According to the link provided, I hav created session variable, but I getting the following error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 23006] The session variable, NQ_SESSION.U_USER, has no value definition. (HY000)
    how to set the value to the variable?

  • MapViewer metadata problem - accessing spatial data in a different schema.

    I have a MapViewer application that uses data from three different schemas.
    1. Dynamic Themes come from schema A.
    2. Static Themes come from schema B.
    3. A newly added static theme in B whose data comes from schema C.
    The mapviewer datasource points to schema B where the static themes, data and metadata are defined while the dynamic themes have their own datasource specified as part of addJDBCTheme(...).
    To get the newly added map to work I've had to add a view in schema B that points to C instead of referencing directly the table and I've had to add the metadata twice, once for schema B and once for schema C.
    If I put the metadata in just one of the two schemas I get the following errors.
    08/11/21 13:58:57 ERROR [oracle.sdovis.ThemeTable] cannot find entry in ALL_SDO_GEOM_METADATA table for theme: AMBITOS_REST
    08/11/21 13:58:57 ERROR [oracle.sdovis.ThemeTable] java.sql.SQLException: Invalid column index
    OR
    08/11/21 13:53:39 ERROR [oracle.sdovis.theme.pgtp] java.sql.SQLException: ORA-29902: error in executing ODCIIndexStart() routine
    ORA-13203: failed to read USER_SDO_GEOM_METADATA view
    It's not a big deal but I'd like to know if anyone else has has similar problems.
    Saludos,
    Lew.
    Edited by: Lew2 on Nov 21, 2008 6:42 AM

    Hi Lew,
    if you are using a recent version (10.1.3.1 or later) there is no need to use a view and to create the metadata in both schemas.
    You need to grant selection on tables between the schemas.
    You can try the following. Assume you have the MVDEMO schema (from MapViewer kit) and SCOTT schema.
    1) grant select on MVDEMO Counties table to SCOTT
    SQL> grant select on counties to scott;
    2) Now you are ready to create a predefined theme in schema SCOTT using the MVDEMO Counties table.
    - Open MapBuilder and loads the SCOTT schema.
    - On the Data navigator (bottom left tree), go to Geometry tables and you should see the MVDEMO node and the COUNTIES node inside it.
    - Start a wizard to create a geometry theme based on this Counties table.
    - At the end you should see that the base table name is MVDEMO.COUNTIES. Therefore MapViewer will use the metadata in MVDEMO schema and there is no need to replicate it in SCOTT schema.
    Joao

  • ORA 00600 Error when using Mapviewer addJDBCTheme

    Hello
    I am receiveing the 600 error via my OC4J window when using mapviewers addJDBCTheme with the passTthrough boolean set to false (the query is rewitten by mapviewer to limit it to the results to the map view). If I perfrom the same query with passThrough set to true, no problems. I have a feeling this may relate to the index on my table. OC4J output for error below.
    Any ideas appriciated.
    Chris
    Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.oms] request.getRemoteUser = null
    Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.oms] request= <?xml version="1.0" standalone="yes"?>
    <map_request
    datasource="atrium2"
    srid="81989"
    width="500"
    height="500"
    bgcolor="#ffffff"
    antialiase="true"
    format="PNG_URL">
    <center size="800.0">
    <geoFeature>
    <geometricProperty typeName="center">
    <Point>
    <coordinates>278872.6,187144.0</coordinates>
    </Point>
    </geometricProperty>
    </geoFeature>
    </center>
    <themes>
    <theme name="BUIDLING" user_clickable="false" />
    <theme name="BLOCKS" user_clickable="false">
    <jdbc_query
    label_column="mbl_title"
    spatial_column="spat_data"
    label_style="TEXTBLACK"
    render_style="TEST3"
    jdbc_srid="81989"
    datasource="atrium2"
    asis="false">select spat_data, mbl_bka_id, mbl_title from WPE_SPATIAL_BLOCKS_VIEW_10G c
    </jdbc_query>
    </theme>
    </themes>
    </map_request>
    Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.JSDOGeometry] exception while getting srid from a geometry node: For input string: ""
    Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper(atrium2) begins...
    Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper() succeeded.
    Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.SRS] got srs object for :81989
    Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding additional themes...
    Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a predefined theme BUIDLING
    Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.DBMapMaker] adding predefined theme [name=BUIDLING]
    Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a JDBC Theme:
    ThemeDescriptor=
    name=BLOCKS
    type=2
    minScale=Infinity
    maxScale=-Infinity
    srid=81989
    host=null
    sid=null
    port=null
    user=null
    mode=null
    query=select spat_data, mbl_bka_id, mbl_title from WPE_SPATIAL_BLOCKS_VIEW_10G c
    spatialColumn=spat_data
    renderStyleName=TEST3
    labelColumn=mbl_title
    labelStyleName=TEXTBLACK
    renderStyleDef=null
    labelStyleDef=null
    localThem=null
    Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.SRS] *** isGeodetic=false, unit=METER
    Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-67
    Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.theme.pgtp] [ BUIDLING ]: 278472.6,186744.0,279272.6,187544.0
    Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.theme.pgtp] [ BUIDLING ]: SELECT ROWID, GEOLOC, 'PRISM_ADM:BROWN_LINE', null, 'null', -1 FROM SPAT_BUILDING WHERE MDSYS.SDO_FILTER(GEOLOC, MDSYS.SDO_GEOMETRY(2003, 81989, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?, ?, ?, ?)), 'querytype=WINDOW') = 'TRUE'
    Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-68
    Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.sdovis.theme.DGTP] [Master scale] 153.60000000000002 [Theme scale factor] 1.0
    Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.theme.DGTP] [DynGeomTheme] rewritten query: SELECT * FROM ( select spat_data, mbl_bka_id, mbl_title from WPE_SPATIAL_BLOCKS_VIEW_10G c ) WHERE MDSYS.SDO_FILTER(spat_data, MDSYS.SDO_GEOMETRY(2003, 81989, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(278472.6,186744.0,279272.6,187544.0)), 'querytype=WINDOW') = 'TRUE'
    Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.sdovis.theme.pgtp] [ BUIDLING ] sql exec time: 15ms, total time loading 209 features: 125ms.
    Tue Aug 09 10:58:53 BST 2005 WARN [oracle.sdovis.theme.DGTP] java.sql.SQLException: ORA-00600: internal error code, arguments: [kdsgrp1], [], [], [], [], [], [], []
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:242)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:554)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1478)
         at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:969)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2387)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2660)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:777)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:241)
         at oracle.sdovis.Theme.prepareData(Theme.java:174)
         at oracle.sdovis.DBMapMaker$LoadThemeData.run(DBMapMaker.java:1740)
    Tue Aug 09 10:58:53 BST 2005 ERROR [oracle.sdovis.DBMapMaker] Message:null
    Description: Nested exception is:
    java.sql.SQLException: ORA-00600: internal error code, arguments: [kdsgrp1], [], [], [], [], [], [], []
    java.sql.SQLException: ORA-00600: internal error code, arguments: [kdsgrp1], [], [], [], [], [], [], []
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:242)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:554)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1478)
         at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:969)
         at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2387)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2660)
         at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:777)
         at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:241)
         at oracle.sdovis.Theme.prepareData(Theme.java:174)
         at oracle.sdovis.DBMapMaker$LoadThemeData.run(DBMapMaker.java:1740)
    Tue Aug 09 10:58:53 BST 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 15250ms.
    Tue Aug 09 10:58:53 BST 2005 FINEST [oracle.sdovis.RE] xfm: 0.625 0.0 0.0 -0.625 -174045.375 117215.0
    Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to render theme BUIDLING with 209 styled features: 15ms
    Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to render theme BLOCKS with 0 styled features: 0ms
    Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to label theme BLOCKS with 0 styled features: 0ms
    Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to label theme BUIDLING with 209 styled features: 0ms
    Tue Aug 09 10:58:53 BST 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on rendering: 15ms
    Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 16ms
    Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 15265ms
    Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 31ms
    Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 15312ms

    Chris,
    Can you run this rewritten query
    SELECT * FROM ( select spat_data, mbl_bka_id, mbl_title from WPE_SPATIAL_BLOCKS_VIEW_10G c ) WHERE MDSYS.SDO_FILTER(spat_data, MDSYS.SDO_GEOMETRY(2003, 81989, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(278472.6,186744.0,279272.6,187544.0)), 'querytype=WINDOW') = 'TRUE'
    in sql*plus without any errors?
    The asumptions is there is a spatial index on spat_data and all the geometries are valid.
    Also there will be a trace file on the db server. That'll give more details on what the likely cause is.
    Jayant

  • MapViewer Html5 API. Error with Variable Pie Chart Style Model

    Hello,
    I have a serious problem related to Variable Pie Chart Style. MapViewer - Mapbuilder version: 11.1.1.7.3.
    [ALERT]  MAPVIEWER_9023:Cannot load style.
        Source: OM.style.StyleStore.parseXMLStyle
    OMS: oracle.mapviewer.share.stylex.VariablePieChartStyleModel cannot be cast to oracle.mapviewer.share.stylex.BucketStyleModel
    In Mapbuilder, I have a geometry theme with rendering style, an advanced variable pie with variable range, style. This is the XML of advanced style:
    <?xml version="1.0" ?>
    <AdvancedStyle>
        <VariablePieChartStyle startradius="5" increment="4">
               <PieSlice name="T004_2009" color="#0033FF"/>
               <PieSlice name="T004_2010" color="#FF0033"/>
               <PieSlice name="T004_2011" color="#33FF00"/>
            <Buckets>
                <RangedBucket seq="0" label="0 - 20%" low="0" high="100000"/>
                <RangedBucket seq="1" label="20 - 40%" low="100001" high="370000"/>
                <RangedBucket seq="2" label="40 - 60%" low="370001" high="1000000"/>
                <RangedBucket seq="3" label="60 - 80%" low="1000001" high="2500000"/>
                <RangedBucket seq="4" label="80 - 100%" low="2500001" high="2.0E7"/>
        </Buckets>
       </VariablePieChartStyle>
    </AdvancedStyle>
    and this is the XML of the theme:
    <?xml version="1.0" standalone="yes"?>
    <styling_rules key_column="ID" caching="NONE">
        <hidden_info>
            <field column="INSTITUTION1" name="Port Name"/>
            <field column="T004_2009_CHAR" name="2009"/>
            <field column="T004_2010_CHAR" name="2010"/>
            <field column="T004_2011_CHAR" name="2011"/>
            <field column="T004_2012_CHAR" name="2012"/>
            <field column="T004_2013_CHAR" name="2013"/>
            <field column="T004_2014_CHAR" name="2014"/>
      </hidden_info>
        <rule column="PASSENGERS_2009,PASSENGERS_2010,PASSENGERS_2011">
            <features style="V.T004_PASSENGERS_VPIE"> (NVL(PASSENGERS_2009, 0) !=0 AND NVL(PASSENGERS_2010,0) != 0 AND NVL(PASSENGERS_2011, 0) != 0) </features>
            <label column="INSTITUTION1" style="T.CITY_NAME_H"> 1 </label>
      </rule>
    </styling_rules>
    When I preview the theme in mapbuilder everything seems fine.
    The problem arises, when I try to add a layer with this theme and style in my map in my APEX (version:4.2.6) application.
    This is the javascript:
    layer = new OM.layer.VectorLayer("layer1",
                def:{
                    type:OM.layer.VectorLayer.TYPE_PREDEFINED,
                    dataSource:ds, theme:themename,
                    url: baseURL
            map.addLayer(layer) ;
    and this is the error I get:
    [ALERT]  MAPVIEWER_9023:Cannot load style.
        Source: OM.style.StyleStore.parseXMLStyle
    OMS: oracle.mapviewer.share.stylex.VariablePieChartStyleModel cannot be cast to oracle.mapviewer.share.stylex.BucketStyleModel
    I' d appreciate any help.
    Thanks in advance,
    Vasso

    Hi,
    You're setting XML data in a JSON model, that's why the binding is incorrect.
    Depending on what your MII transaction is returning, you need to either retrieve the JSON part in the XML, or use a XML Model.
    Regards,
    Tanguy

  • Using Mapviewer with Oracle Locator

    We're currently using Oracle Locator as a datasource for Mapviewer 10g and we're running into a slight problem when loading simple points from a table. We have the table containing these ponits added to the USER_SDO_GEOM_METADATA table and the spatial index is created on the specific column with the SDO_GEOMETRY type. When the map loads up the following error is generated when a dynamic jdbc query is run:
    MAPVIEWER-06009: Error processing an FOI request.
    Root cause:FOIServlet:ORA-29900: operator binding does not exist
    ORA-06540: PL/SQL: compilation error
    ORA-06553: PLS-907: cannot load library unit MDSYS.SDO_3GL (referenced by MDSYS.SDO_FILTER)
    I've looked in the database for the MDSYS.SDO_3GL object and it's definitely there, so I'm a little lost on what could be causing this. I thought perhaps that our user schema may not have execute privileges associated with that specific procedure, but I believe the entire point of MDSYS is that it's available to any user on the database.
    Any help with this would be greatly appreciated.
    Edited by: user1175540 on Oct 29, 2010 7:10 PM

    We're currently using the javascript api for oracle maps (using the matching javascript file, oraclemaps.js, that came directly from the mapviewer application download). All that I'm calling is a single table and then getting some hidden info columns as well off of it too. I've tried this on a different schema and database that's also only running Locator and the query runs just fine with the points on the map displaying as intended.
    Here's the current theme request that I'm submitting:
    <theme name= 'lowerTheme' >
    <jdbc_query spatial_column='GEOMETRY' jdbc_srid='8307' render_style= 'V.AVCD_BUILD' datasource='mvdemo' >
    select * from build where subtype in('ABC','123','DEF')
    <hidden_info>
    <field column='SUBTYPE' name='Type'/>
    <field column='NAME' name='Name'/>
    <field column='ADDR' name='Address'/>
    <field column='CITY' name='City'/>
    <field column='STATE' name='State'/>
    <field column='ZIP_CODE' name='ZIP Code'/>
    </hidden_info>
    </jdbc_query>
    <rendering>
    <style name='V.AVCD_BUILD' value_columns='SUBTYPE'/>
    </rendering>
    </theme>
    Within the actual function adding that theme to the 'mapview' variable I'm creating a new MVThemeBasedFOI object using the name 'lowerTheme' and the above definition for the second parameter in the constructor.
    Is there a listing of procedures on the MDSYS schema that I should check to make sure they're valid for spatial queries to work?
    Thanks in advance for the help.

  • Sdo_buffer in Ora 10.2.0.4

    Hi,
    i'm running 2 dbs (R 10.2.0.4), one with windows and the other with linux. on the windows box the sdo_buffer works fine (buffer is computed) on the linux box the same statement results with 0-buffer.
    are there any patch-levels regarding the OS (Windows vs Linux) ?
    any suggestion ?
    Edited by: juppo007 on 31.03.2010 05:29

    the mentioned Geometry (VG-NR 303) is:
    MDSYS.SDO_GEOMETRY(2003, 8307, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,1), MDSYS.SDO_ORDINATE_ARRAY(9.549311,47.582256,9.538158,47.585304,9.437511,47.538124,9.413537,47.527152,9.415096,47.525301,9.4082739999973,47.5231859999917,9.40340099999,47.5245079999662,9.39151099998129,47.522788999921,9.38488499998607,47.5017699999387,9.36656299998985,47.4897409999214,9.35291899999645,47.4814129999226,9.32933400000691,47.4736129999407,9.32192700000757,47.4675319999569,9.32329200000694,47.4639629999592,9.296199,47.465946,9.269885,47.442812,9.257801,47.432765,9.236555,47.434484,9.228369,47.427478,9.225835,47.421926,9.218038,47.405666,9.233242,47.390199,9.220962,47.382399,9.21453,47.364289,9.18704699917612,47.3476330000881,9.15819899863946,47.3345450000278,9.13039699794128,47.3313260000053,9.09719199683627,47.3356030000608,9.07750499602416,47.3330910000328,9.06074299523214,47.3270099999344,9.04748899453611,47.3296539999761,9.00480999184711,47.3048059993701,9.02681599333377,47.2894889991295,9.04780099456774,47.2860999991797,9.04385099435481,47.2776349989996,9.08639199645546,47.243234998798,9.10253555486423,47.2348670426165,9.10254154254773,47.2348742086742,9.10257121822297,47.2348710220964,9.14843622065071,47.2050760150544,9.14843815723205,47.2050746135459,9.14843986296803,47.2050730790354,9.16672885928311,47.1866410756564,9.1667311353001,47.1866279209723,9.19750399941013,47.1826989994088,9.21036799956856,47.1775509995101,9.22777899972697,47.1821659996551,9.23743599980615,47.1729329997167,9.22177599969553,47.163166999587,9.22073199970725,47.1452329995639,9.312079,47.154466,9.348879,47.144345,9.357753,47.133691,9.395303,47.130117,9.408933,47.110779,9.395013,47.101899,9.376164,47.104069,9.4309719999673,47.0649980001031,9.47076400017053,47.0675829996375,9.47208100016807,47.0606749996371,9.47537300017892,47.0525819996122,9.48229400024704,47.055972999498,9.4860700002689,47.0490269994548,9.49273200035533,47.0561239993296,9.53981500113295,47.0648819984333,9.55913700153588,47.0481209979459,9.60851700321915,47.0633879966931,9.61204700342227,47.0786189967294,9.63337000441301,47.0837039961738,9.63613400461608,47.1011019963159,9.6219190039645,47.1102019968057,9.63534400466573,47.1275999966983,9.62507800417935,47.132149997003,9.62231400410297,47.1508859973095,9.60651900341005,47.149011997604,9.59664800305212,47.1623949979359,9.56584800203848,47.1706919985065,9.57414000230585,47.1795249984619,9.56782300212573,47.1872869986168,9.5844070026886,47.2054869985788,9.56941100221986,47.2188159988816,9.56759500216414,47.2181069988938,9.56042100196281,47.2234909990129,9.55592700183761,47.2218949990421,9.55236800174598,47.2239449990917,9.56674000216596,47.2422629991273,9.53149500129395,47.2699919995746,9.53491100136943,47.2736419995845,9.54827900168831,47.2825619995962,9.55340900182432,47.2906559996459,9.556829,47.298428,9.586776,47.315761,9.597437,47.340921,9.606228,47.35288,9.625868,47.366081,9.656705,47.368383,9.670828,47.377676,9.675451,47.390437,9.672066,47.392043,9.651534,47.404891,9.650349,47.413723,9.645052,47.437759,9.658573,47.448315,9.659791,47.45354,9.63936,47.456354,9.622476,47.457694,9.61455,47.466452,9.610175,47.471141,9.604278,47.462726,9.601076,47.461677,9.595305,47.463283,9.591438,47.468272,9.587253,47.475338,9.584177,47.48037,9.577299,47.485187,9.562295,47.496429,9.563084,47.506064,9.611954,47.529369,9.593261,47.570712,9.56701,47.579303,9.549311,47.582256))
    thx - Juppo

  • My first map in mapviewer

    Hello everybody,
    I´m very new to mapviewer and to the oracle environment.
    I would like to ask you how can i solve some problems detected on the log file of map viewer in order to write and run my first js code for oracle maps api.
    I correcely installed Oracle 11g R2 on windows 7 ultimate 64bit using the 64bit version, togheter with weblogic server (the most updated jar version), created a single domain called gis-domain and deployed mapviewer1112 version.
    I also create a new mvdemo/mvdemo@orcl and imported the schema for mvdemo files.
    In fact I can connect to my localhost:7001 and see the tutorials and teh demo.
    The problem arrives when I tried to write some code and test it in the web.
    this is the commun error I got in a windows.
    [MVGlobalVariables.getMapCacheConfig] MAPVIEWER-05511: Error occurred when sending request to MapViewer server. ([Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost:7001/mapviewer/fsmc/jslib/oraclemaps.js :: anonymous :: line 1514" data: no])
    and the following log:
    31.01.2011 16:38:01 oracle.lbs.mapserver.core.MapperConfig loadMapViewerConfig
    AM FEINSTEN:
    Allowed IPs:
    Excluded IPs:
    31.01.2011 16:38:04 oracle.lbs.mapserver.core.MapperConfig registerNSDataProviders
    AM FEINSTEN: Non-Spatial Data Provider registered: defaultNSDP
    31.01.2011 16:38:04 oracle.sdovis.SDataProviderMgr registerProvider
    INFO: Spatial Provider shapefileSDP has been registered.
    31.01.2011 16:38:04 oracle.lbs.mapserver.core.MapperConfig registerSDataProviders
    AM FEINSTEN: Spatial Data Provider registered: shapefileSDP
    31.01.2011 16:38:04 oracle.lbs.mapserver.core.MapperConfig loadMapViewerConfig
    AM FEINSTEN: Data source mvdemo will get web user name from: J2EE_USER
    31.01.2011 16:38:08 oracle.sdovis.ds.NativeOracleDataSource <init>
    WARNUNG: I/O-Fehler: The Network Adapter could not establish the connection
    java.sql.SQLRecoverableException: I/O-Fehler: The Network Adapter could not establish the connection
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:538)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:185)
         at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource.java:152)
         at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:122)
         at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.java:797)
         at oracle.lbs.mapserver.core.MapperConfig.loadMapViewerConfig(MapperConfig.java:1572)
         at oracle.lbs.mapserver.core.MapperConfig.loadConfigFile(MapperConfig.java:609)
         at oracle.lbs.mapserver.core.MapperConfig.<init>(MapperConfig.java:363)
         at oracle.lbs.mapserver.MapServerImpl.<init>(MapServerImpl.java:131)
         at oracle.lbs.mapserver.MapServerImpl.<init>(MapServerImpl.java:115)
         at oracle.lbs.mapserver.oms$ColdStart.run(oms.java:300)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:375)
         at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422)
         at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:686)
         at oracle.net.ns.NSProtocol.connect(NSProtocol.java:246)
         at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1056)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
         ... 16 more
    Caused by: java.net.UnknownHostException: elocation.us.oracle.com
         at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
         at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:850)
         at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1201)
         at java.net.InetAddress.getAllByName0(InetAddress.java:1154)
         at java.net.InetAddress.getAllByName(InetAddress.java:1084)
         at java.net.InetAddress.getAllByName(InetAddress.java:1020)
         at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:117)
         at oracle.net.nt.ConnOption.connect(ConnOption.java:130)
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:353)
         ... 21 more
    31.01.2011 16:38:08 oracle.sdovis.ds.NativeOracleDataSource <init>
    WARNUNG: connecting to database using jdbc thin driver...
    31.01.2011 16:38:08 oracle.sdovis.ds.NativeOracleDataSource <init>
    SCHWERWIEGEND: I/O-Fehler: The Network Adapter could not establish the connection
    java.sql.SQLRecoverableException: I/O-Fehler: The Network Adapter could not establish the connection
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:538)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:185)
         at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource.java:169)
         at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:122)
         at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.java:797)
         at oracle.lbs.mapserver.core.MapperConfig.loadMapViewerConfig(MapperConfig.java:1572)
         at oracle.lbs.mapserver.core.MapperConfig.loadConfigFile(MapperConfig.java:609)
         at oracle.lbs.mapserver.core.MapperConfig.<init>(MapperConfig.java:363)
         at oracle.lbs.mapserver.MapServerImpl.<init>(MapServerImpl.java:131)
         at oracle.lbs.mapserver.MapServerImpl.<init>(MapServerImpl.java:115)
         at oracle.lbs.mapserver.oms$ColdStart.run(oms.java:300)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:375)
         at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422)
         at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:686)
         at oracle.net.ns.NSProtocol.connect(NSProtocol.java:246)
         at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1056)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
         ... 16 more
    Caused by: java.net.UnknownHostException: elocation.us.oracle.com
         at java.net.InetAddress.getAllByName0(InetAddress.java:1158)
         at java.net.InetAddress.getAllByName(InetAddress.java:1084)
         at java.net.InetAddress.getAllByName(InetAddress.java:1020)
         at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:117)
         at oracle.net.nt.ConnOption.connect(ConnOption.java:130)
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:353)
         ... 21 more
    31.01.2011 16:38:08 oracle.sdovis.ds.NativeOracleDataSource <init>
    SCHWERWIEGEND: I/O-Fehler: The Network Adapter could not establish the connection
    java.sql.SQLRecoverableException: I/O-Fehler: The Network Adapter could not establish the connection
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:419)
         at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:538)
         at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:228)
         at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
         at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:521)
         at java.sql.DriverManager.getConnection(DriverManager.java:582)
         at java.sql.DriverManager.getConnection(DriverManager.java:185)
         at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource.java:169)
         at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:122)
         at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.java:797)
         at oracle.lbs.mapserver.core.MapperConfig.loadMapViewerConfig(MapperConfig.java:1572)
         at oracle.lbs.mapserver.core.MapperConfig.loadConfigFile(MapperConfig.java:609)
         at oracle.lbs.mapserver.core.MapperConfig.<init>(MapperConfig.java:363)
         at oracle.lbs.mapserver.MapServerImpl.<init>(MapServerImpl.java:131)
         at oracle.lbs.mapserver.MapServerImpl.<init>(MapServerImpl.java:115)
         at oracle.lbs.mapserver.oms$ColdStart.run(oms.java:300)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:375)
         at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:422)
         at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:686)
         at oracle.net.ns.NSProtocol.connect(NSProtocol.java:246)
         at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1056)
         at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:308)
         ... 16 more
    Caused by: java.net.UnknownHostException: elocation.us.oracle.com
         at java.net.InetAddress.getAllByName0(InetAddress.java:1158)
         at java.net.InetAddress.getAllByName(InetAddress.java:1084)
         at java.net.InetAddress.getAllByName(InetAddress.java:1020)
         at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:117)
         at oracle.net.nt.ConnOption.connect(ConnOption.java:130)
         at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:353)
         ... 21 more
    31.01.2011 16:38:08 oracle.lbs.mapserver.core.MapperConfig createMappers
    SCHWERWIEGEND: Error creating NativeOracleDataSource.
    31.01.2011 16:38:08 oracle.lbs.mapserver.core.MapperConfig loadMapViewerConfig
    WARNUNG: MAPVIEWER-00011: Fehler beim Erstellen einer Map-Datenquelle.(mvdemo)
    31.01.2011 16:38:08 oracle.lbs.mapserver.core.MapperConfig loadConfigFile
    INFO: Map Recycling thread started.
    31.01.2011 16:38:08 oracle.lbs.mapserver.oms$ColdStart run
    INFO: *** Oracle MapViewer started. ***
    31.01.2011 16:38:09 oracle.lbs.foi.FOIServer init
    INFO: *** Oracle Feature of Interest (FOI) Server started. ***
    31.01.2011 16:38:09 oracle.lbs.mapcache.MCSServlet$ColdStart run
    INFO: *** Oracle MapTileServer started. ***
    I tried already many adjustements but I cannot understand what the log tell me.
    Can anyone help me please.
    buendia
    *second round*
    Hello buendia again here,
    after having browsed few discussions and read few article finally my last log looks promising....
    much besser.
    In fact yet I made sure that there is a listener opened and I edited the config file as the blogspot mapviewer suggested, but still I got the same error massage on the screen when I try my simple html file:
    [MVGlobalVariables.getMapCacheConfig] MAPVIEWER-05511: Error occurred when sending request to MapViewer server. ([Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.send]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost:7001/mapviewer/fsmc/jslib/oraclemaps.js :: anonymous :: line 1514" data: no])
    and now after having tested my simple USA map and also in JDeveloper the "Geotags" tutorial I got a little bit stacked.
    Can anyone suggest which kind of errors I´m making?
    I´ll attached my log:
    31.01.2011 23:31:22 oracle.lbs.mapserver.core.MapperConfig loadMapViewerConfig
    AM FEINSTEN:
    Allowed IPs:
    Excluded IPs:
    31.01.2011 23:31:23 oracle.lbs.mapserver.core.MapperConfig registerNSDataProviders
    AM FEINSTEN: Non-Spatial Data Provider registered: defaultNSDP
    31.01.2011 23:31:23 oracle.sdovis.SDataProviderMgr registerProvider
    INFO: Spatial Provider shapefileSDP has been registered.
    31.01.2011 23:31:23 oracle.lbs.mapserver.core.MapperConfig registerSDataProviders
    AM FEINSTEN: Spatial Data Provider registered: shapefileSDP
    31.01.2011 23:31:23 oracle.lbs.mapserver.core.MapperConfig loadMapViewerConfig
    AM FEINSTEN: Data source mvdemo will get web user name from: J2EE_USER
    31.01.2011 23:31:27 oracle.sdovis.DBSRSStore loadGeodeticSrids
    AM FEINSTEN: Number of geodetic srids loaded: 924.
    31.01.2011 23:31:27 oracle.sdovis.CacheMgr2 init
    INFO: Spatial Data Cache opened. Region=SDOVIS_DATA.
    31.01.2011 23:31:27 oracle.sdovis.CacheMgr2 init
    INFO:      max_cache_size=32 MB.
    31.01.2011 23:31:27 oracle.sdovis.CacheMgr2 createSubRegion
    INFO: sub region sdovis_subreg_mvdemo_jdbc:oracle:thin:@localhost:1521:orcl created in cache.
    31.01.2011 23:31:27 oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=mvdemo]
    31.01.2011 23:31:27 oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=mvdemo]
    31.01.2011 23:31:27 oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=mvdemo]
    31.01.2011 23:31:27 oracle.lbs.mapserver.core.MapperConfig loadMapCacheServerSettings
    SCHWERWIEGEND: Cannot create default cache root directory: C:\mapviewer\mapviewer.ear\web.war\WEB-INF\conf\mapviewer.ear\web.war\tilecache\
    31.01.2011 23:31:27 oracle.lbs.mapserver.core.MapperConfig loadConfigFile
    INFO: Map Recycling thread started.
    31.01.2011 23:31:27 oracle.lbs.mapserver.oms$ColdStart run
    INFO: *** Oracle MapViewer started. ***
    31.01.2011 23:31:29 oracle.lbs.foi.FOIServer init
    INFO: *** Oracle Feature of Interest (FOI) Server started. ***
    31.01.2011 23:31:29 oracle.sdovis.SRSCache parseAndAdd
    FEINER: Registering srs 32632, isGeodetic=false, unit=METER
    31.01.2011 23:31:29 oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNUNG: Invalid cache root directory:/scrtach/mvdemomaps\. Cache root directory will be set to default root directory.
    31.01.2011 23:31:29 oracle.sdovis.SRSCache parseAndAdd
    FEINER: Registering srs 8307, isGeodetic=true, unit=DECIMAL DEGREE
    31.01.2011 23:31:29 oracle.sdovis.SRSCache parseAndAdd
    FEINER: Registering srs 3785, isGeodetic=false, unit=METER
    31.01.2011 23:31:29 oracle.sdovis.SRSCache parseAndAdd
    FEINER: Registering srs 54004, isGeodetic=false, unit=METER
    31.01.2011 23:31:29 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.CUSTOMER_MAP
    31.01.2011 23:31:29 oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNUNG: Invalid cache root directory:/scrtach/mvdemomaps\. Cache root directory will be set to default root directory.
    31.01.2011 23:31:29 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.BOZEN
    31.01.2011 23:31:29 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.DEMO_MAP
    31.01.2011 23:31:30 oracle.lbs.mapcache.MCSServlet$ColdStart run
    INFO: *** Oracle MapTileServer started. ***
    31.01.2011 23:31:49 oracle.lbs.mapcache.MCSServlet doPost
    FEINER: [mcs] recevied request: <request type=" ...
    31.01.2011 23:31:49 oracle.lbs.mapcache.MCSServlet doPost
    FEINER: <request type="unknown request type"/>
    31.01.2011 23:31:49 oracle.lbs.mapcache.MCSServlet doPost
    FEINER: [mcs] recevied request: <request type=" ...
    31.01.2011 23:31:49 oracle.lbs.mapcache.MCSServlet doPost
    FEINER: <request type="unknown request type" data_source="MVDEMO"/>
    01.02.2011 00:13:07 oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNUNG: Invalid cache root directory:/scrtach/mvdemomaps\. Cache root directory will be set to default root directory.
    01.02.2011 00:13:07 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.BOZEN
    01.02.2011 00:13:07 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.CUSTOMER_MAP
    01.02.2011 00:13:07 oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNUNG: Invalid cache root directory:/scrtach/mvdemomaps\. Cache root directory will be set to default root directory.
    01.02.2011 00:13:07 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.DEMO_MAP
    01.02.2011 00:13:08 oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNUNG: Invalid cache root directory:/scrtach/mvdemomaps\. Cache root directory will be set to default root directory.
    01.02.2011 00:13:08 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.BOZEN
    01.02.2011 00:13:08 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.CUSTOMER_MAP
    01.02.2011 00:13:08 oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNUNG: Invalid cache root directory:/scrtach/mvdemomaps\. Cache root directory will be set to default root directory.
    01.02.2011 00:13:08 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.DEMO_MAP
    01.02.2011 00:14:20 oracle.sdovis.ds.DSUtil createArrayTypes
    INFO: SQL array type created by MapViewer: MV_STRINGLIST
    01.02.2011 00:14:20 oracle.sdovis.ds.DSUtil createArrayTypes
    INFO: SQL array type created by MapViewer: MV_NUMBERLIST
    01.02.2011 00:14:20 oracle.sdovis.ds.DSUtil createArrayTypes
    INFO: SQL array type created by MapViewer: MV_DATELIST
    01.02.2011 00:14:21 oracle.sdovis.DBSRSStore loadGeodeticSrids
    AM FEINSTEN: Number of geodetic srids loaded: 924.
    01.02.2011 00:14:21 oracle.sdovis.CacheMgr2 createSubRegion
    INFO: sub region sdovis_subreg_geotags_jdbc:oracle:thin:@localhost:1521:orcl created in cache.
    01.02.2011 00:14:21 oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=geotags]
    01.02.2011 00:14:21 oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=geotags]
    01.02.2011 00:14:21 oracle.lbs.mapserver.core.MapperPool addMapper
    INFO: added a mapper instance to the pool [data src=geotags]
    01.02.2011 00:14:21 oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNUNG: Invalid cache root directory:/scrtach/mvdemomaps\. Cache root directory will be set to default root directory.
    01.02.2011 00:14:21 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.BOZEN
    01.02.2011 00:14:21 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.CUSTOMER_MAP
    01.02.2011 00:14:21 oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNUNG: Invalid cache root directory:/scrtach/mvdemomaps\. Cache root directory will be set to default root directory.
    01.02.2011 00:14:21 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.DEMO_MAP
    01.02.2011 00:14:21 oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNUNG: Invalid cache root directory:/scrtach/mvdemomaps\. Cache root directory will be set to default root directory.
    01.02.2011 00:14:21 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.BOZEN
    01.02.2011 00:14:21 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.CUSTOMER_MAP
    01.02.2011 00:14:21 oracle.lbs.mapcache.config.CacheInstanceConfig loadCacheStorageDef
    WARNUNG: Invalid cache root directory:/scrtach/mvdemomaps\. Cache root directory will be set to default root directory.
    01.02.2011 00:14:21 oracle.lbs.mapcache.cache.MapCache <init>
    INFO: Initialize tile layer MVDEMO.DEMO_MAP
    01.02.2011 01:16:43 oracle.lbs.foi.FOIServlet destroy
    SCHWERWIEGEND: !!! Oracle FOI server destroyed. !!!
    01.02.2011 01:16:43 oracle.lbs.foi.FOIImageRecycleThread run
    FEIN: FOI image recycle thread interrupted.
    01.02.2011 01:16:43 oracle.lbs.foi.FOIImageRecycleThread run
    FEIN: FOI image recyle thread terminated.
    01.02.2011 01:16:43 oracle.lbs.mapserver.core.MapperConfig destroy
    FEINER: destroying MapperConfig: connection manager, mapper pool and janitor thread.
    01.02.2011 01:16:43 oracle.lbs.foi.FOIImageRecycleThread run
    FEIN: FOI image recycle thread interrupted.
    01.02.2011 01:16:43 oracle.lbs.mapserver.core.MapperPool destroyAll
    WARNUNG: destroying ALL mapmaker instances.
    01.02.2011 01:16:43 oracle.lbs.foi.FOIImageRecycleThread run
    FEIN: FOI image recyle thread terminated.
    01.02.2011 01:16:43 oracle.sdovis.DBMapMaker clear
    INFO: Clearing in-memory geometry and metadata caches.
    01.02.2011 01:16:43 oracle.sdovis.CacheMgr2 invalidate
    INFO: Invalidated subregion sdovis_subreg_mvdemo_jdbc:oracle:thin:@localhost:1521:orcl
    01.02.2011 01:16:43 oracle.sdovis.CacheMgr2 invalidate
    INFO: Invalidated subregion sdovis_subreg_mvdemo_jdbc:oracle:thin:@localhost:1521:orcl
    01.02.2011 01:16:43 oracle.lbs.mapserver.core.MapperPool destroyAll
    FEINER: Oracle connection cache for datasource mvdemo is closed
    01.02.2011 01:16:43 oracle.sdovis.ds.NativeOracleDataSource close
    INFO: Closing connection cache:mvdemo_conncache
    01.02.2011 01:16:43 oracle.sdovis.DBMapMaker clear
    INFO: Clearing in-memory geometry and metadata caches.
    01.02.2011 01:16:43 oracle.sdovis.CacheMgr2 invalidate
    INFO: Invalidated subregion sdovis_subreg_mvdemo_jdbc:oracle:thin:@localhost:1521:orcl
    01.02.2011 01:16:43 oracle.sdovis.CacheMgr2 invalidate
    INFO: Invalidated subregion sdovis_subreg_mvdemo_jdbc:oracle:thin:@localhost:1521:orcl
    01.02.2011 01:16:43 oracle.lbs.mapserver.core.MapperPool destroyAll
    FEINER: Oracle connection cache for datasource mvdemo is closed
    01.02.2011 01:16:43 oracle.sdovis.DBMapMaker clear
    INFO: Clearing in-memory geometry and metadata caches.
    01.02.2011 01:16:43 oracle.sdovis.CacheMgr2 invalidate
    INFO: Invalidated subregion sdovis_subreg_mvdemo_jdbc:oracle:thin:@localhost:1521:orcl
    01.02.2011 01:16:43 oracle.sdovis.CacheMgr2 invalidate
    INFO: Invalidated subregion sdovis_subreg_mvdemo_jdbc:oracle:thin:@localhost:1521:orcl
    01.02.2011 01:16:43 oracle.lbs.mapserver.core.MapperPool destroyAll
    FEINER: Oracle connection cache for datasource mvdemo is closed
    01.02.2011 01:16:43 oracle.sdovis.DBMapMaker clear
    INFO: Clearing in-memory geometry and metadata caches.
    01.02.2011 01:16:43 oracle.sdovis.CacheMgr2 invalidate
    INFO: Invalidated subregion sdovis_subreg_geotags_jdbc:oracle:thin:@localhost:1521:orcl
    01.02.2011 01:16:43 oracle.sdovis.CacheMgr2 invalidate
    INFO: Invalidated subregion sdovis_subreg_geotags_jdbc:oracle:thin:@localhost:1521:orcl
    01.02.2011 01:16:43 oracle.lbs.mapserver.core.MapperPool destroyAll
    FEINER: Oracle connection cache for datasource geotags is closed
    01.02.2011 01:16:43 oracle.sdovis.ds.NativeOracleDataSource close
    INFO: Closing connection cache:geotags_conncache
    01.02.2011 01:16:43 oracle.sdovis.DBMapMaker clear
    INFO: Clearing in-memory geometry and metadata caches.
    01.02.2011 01:16:43 oracle.sdovis.CacheMgr2 invalidate
    INFO: Invalidated subregion sdovis_subreg_geotags_jdbc:oracle:thin:@localhost:1521:orcl
    01.02.2011 01:16:43 oracle.sdovis.CacheMgr2 invalidate
    INFO: Invalidated subregion sdovis_subreg_geotags_jdbc:oracle:thin:@localhost:1521:orcl
    01.02.2011 01:16:43 oracle.lbs.mapserver.core.MapperPool destroyAll
    FEINER: Oracle connection cache for datasource geotags is closed
    01.02.2011 01:16:43 oracle.sdovis.DBMapMaker clear
    INFO: Clearing in-memory geometry and metadata caches.
    01.02.2011 01:16:43 oracle.sdovis.CacheMgr2 invalidate
    INFO: Invalidated subregion sdovis_subreg_geotags_jdbc:oracle:thin:@localhost:1521:orcl
    01.02.2011 01:16:43 oracle.sdovis.CacheMgr2 invalidate
    INFO: Invalidated subregion sdovis_subreg_geotags_jdbc:oracle:thin:@localhost:1521:orcl
    01.02.2011 01:16:43 oracle.lbs.mapserver.core.MapperPool destroyAll
    FEINER: Oracle connection cache for datasource geotags is closed
    01.02.2011 01:16:43 oracle.lbs.mapserver.oms destroyMV
    WARNUNG: Oracle MapViewer shut down.
    01.02.2011 01:16:43 oracle.lbs.mapcache.MCSServlet destroy
    SCHWERWIEGEND: !!! Oracle MapTileServer destroyed. !!!
    01.02.2011 01:16:43 oracle.lbs.webmapserver.WMSServletFilter destroy
    SCHWERWIEGEND: !!! Oracle Web Map Server destroyed. !!!
    Thanks again
    Buendia
    Edited by: user8677521 on Feb 1, 2011 3:46 PM

    Hello,
    actually now I can show mvdemo maps and my own mapbuilder generated maps.
    But i´m not so sure if my script is correct now in fact instead to use
    var baseURL = 'http://'+document.location.host+'/mapviewer/';
    I go with
    var baseURL = 'http://localhost:7001/mapviewer/';
    with it set up all is working fine.
    What do you think about it?
    The only thing at the moment that concern me is the rendering of my generated maps.
    In fact I wanted to use a unique shape file from where i created sub classes to show as a series of FOI. But when I want to see those subset on top of my base tyle mapviewer does not work at all get stacked with the clock running.
    I tried to separate previously my file in 8 chunks (8 sub classes...8 FOI) and all works well.
    Do you know a way to fix this endless waiting time!
    Thanks a lot for your help
    Buendia

  • Spatial index - mapviewer demo

    Hi,
    I tried the mapclient.jsp demo of the maviewer demo and it only returns a blue image. I check the log file and found this:
    [oracle.sdovis.JDBCDataSource4PT, Thu May 18 10:21:36 CST 2006, ERROR] *** SQL Exception while querying theme: THEME_DEMO_COUNTIES
    [oracle.sdovis.JDBCDataSource4PT, Thu May 18 10:21:36 CST 2006, ERROR] java.sql.SQLException: ORA-13226: interface not supported without a spatial index
    seems like a spatial index is missing. My question is,
    - is the spatial index created when I imported the mvdemo.dmp file?
    - is this the same index that is stated in the oracle_home\mapviewer\lbs\admin\mapdefinition.sql?
    - or, is this index should be included in the database installation?
    - who should be creating this index?
    - if I create this index, how would I do this?
    I really need your assistance. I'll be presenting this demo to my boss two days from now, my team is pushing the idea of migrating our existing gis system to Oracle Spatial. We need this demo badly.
    Thanks for the support?

    First, which MapViewer version are you using and which database version?
    Second, the indexes are usually built on import. You can check if they exist and if not create them.
    To check if the indexes exist
    select * from user_sdo_index_info
    An sample index creation statement is:
    create index counties_sides on counties(geometry) indextype is mdsys.spatial_index;
    If the index exists and is invalid then drop it and recreate it. Drop it using
    drop index counties_sidx force ;

  • How To Clear Mapviewer Tile Cache

    I am running a standalone version of Mapviewer using Weblogic Server.
    Weblogic and Mapviewer are running on a linux server with CentOS 5.8 64bit.
    - MapViewer Version: Ver11_1_1_7_1_B130516
    - Weblogic Server 10.3.6
    I am using Mapbuilder installed on a Win7 64bit client.
    - Mapbuilder Build: Ver11_1_1_7_1_B130516
    My datasource is an Oracle 11.2.0.3 database running on a linux server with CentOS 5.8 64bit.
    I am using the new HTML5 JavaScript mapping API to render my map.  I am using any one of the following browsers:
    IE10 (v10.0.9200.16635)
    Firefox (v23.0)
    Chrome (v28.0.1500.95 m
    I have created the following Mapbuilder objects:
    Geometry Theme: SRA_SUITE304_F1_ROOM
    - for the label styling rules, I have set the Label Function = 1, so that labels will be displayed for the objects
    Base Map: SRA_ALL
    <?xml version="1.0" standalone="yes"?>
    <map_definition>
          <theme name="SRA_SUITE304_F1_ROOM"/>
      </map_definition>
    Tile Layer: SRA_ALL
    <map_tile_layer name="SRA_ALL" image_format="PNG" http_header_expires="168.0" concurrent_fetching_threads="3">
         <internal_map_source data_source="ICLOGIT1" base_map="SRA_ALL" bgcolor="#ccccff"/>
         <coordinate_system srid="4326" minX="-74.54" minY="39.407" maxX="-74.53" maxY="39.41"/>
         <tile_image width="256" height="256"/>
         <zoom_levels levels="10" min_scale="100.0" max_scale="1600.0" min_tile_width="6.097560975612876E-5" min_tile_height="9.090909090913742E-4">
              <zoom_level level="0" name="level0" description="" scale="1600.0" tile_width="9.090909090913742E-4" tile_height="9.090909090913742E-4"/>
              <zoom_level level="1" name="level1" description="" scale="1175.0" tile_width="7.142857142860797E-4" tile_height="7.142857142860797E-4"/>
              <zoom_level level="2" name="level2" description="" scale="864.0" tile_width="5.263157894739535E-4" tile_height="5.263157894739535E-4"/>
              <zoom_level level="3" name="level3" description="" scale="634.0" tile_width="3.846153846155814E-4" tile_height="3.846153846155814E-4"/>
              <zoom_level level="4" name="level4" description="" scale="466.0" tile_width="2.7777777777791986E-4" tile_height="2.7777777777791986E-4"/>
              <zoom_level level="5" name="level5" description="" scale="342.0" tile_width="2.0833333333343992E-4" tile_height="2.0833333333343992E-4"/>
              <zoom_level level="6" name="level6" description="" scale="251.0" tile_width="1.5151515151522904E-4" tile_height="1.5151515151522904E-4"/>
              <zoom_level level="7" name="level7" description="" scale="185.0" tile_width="1.1235955056185523E-4" tile_height="1.1235955056185523E-4"/>
              <zoom_level level="8" name="level8" description="" scale="136.0" tile_width="8.264462809921583E-5" tile_height="8.264462809921583E-5"/>
              <zoom_level level="9" name="level9" description="" scale="100.0" tile_width="6.097560975612876E-5" tile_height="6.097560975612876E-5"/>
       </zoom_levels>
    </map_tile_layer>
    I am using the following HTML to display the map using the Tile Layer SRA_ALL:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>SRA2 - Map 01 - 10 Zoom Levels</title>
    <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>
    <script type='text/javascript' src='http://xxxx.xxxx.com:7002/mapviewer/jslib/v2/oraclemapsv2.js'></script>
    <style type= 'text/css '>body {cursor:default;}</style>
    <script language="JavaScript" type="text/javascript">
    var baseURL="http://xxxx.xxxx.com:7002/mapviewer";  // location of mapviewer
        function showMap()
            var map = new OM.Map(
            document.getElementById('map'),
                mapviewerURL:baseURL
            var tileLayer2 = new OM.layer.TileLayer(
            "SRA_ALL",
                dataSource:"xxxx",
                tileLayer:"SRA_ALL"
            map.addLayer(tileLayer2) ;
            map.addScaleBar() ;
            map.addNavigationPanelBar() ;
            map.setMapCenter(new OM.geometry.Point(-74.537446,39.409008,4326) );
            map.setMapZoomLevel(3) ;
            map.init() ;
    </script>
    </head>
    <body onload="javascript:showMap()">
        <DIV id=map style="width:99%;height:99%"></DIV>
    </body>
    </html>
    This produces a correctly rendered map in my browsers, which displays the labels I expect.
    Next, I changed the Labeling Function on my Geometry Theme: SRA_SUITE304_F1_ROOM, setting it to -1, so that object labels would not be displayed.
    In Mapbuilder, I can preview the geometry theme, and it shows that no labels are displayed.
    Still in Mapbuilder, I can preview the base map that the geometry theme is assigned to, and the basemap also shows that no labels are displayed for that theme.
    I saved all my changes in Mapbuilder.
    However, when I view my map (using the same HTML code) in the browser, the map still shows the labels.
    I have tried all of the following:
    1) purging the geometry cache for the affected map datasource using the MapViewer Administration Console
    2) purging the browser cache
    3) restarting the mapviewer server
    4) restarting the entire supporting weblogic server
    None of these actions cause the map viewed in my browser to be updated to show the map without labels.
    Note: If I create a new Tile Layer using the same base map, my changes are visible in the browser map.
    What am I missing here?
    What cache do I need to clear so that my map is displayed correctly in my browser after I make changes to the underlying Mapbuilder objects?
    Thanks in advance for your help.

    Thanks.  That was the last key to the puzzle.
    Here are the steps I now follow to ensure that changes made to underlying MapBuilder objects are visible in the browser.
    Perform the following steps:
    1) Modify the object (style, theme, base map, tile layer) in MapBuilder, and save all changes.
    2) Using MapViewer Administration Console, Purge Cached Metadata for each affected datasource.
    3) On the MapViewer server, clear the Map Cache directory.  The location of the Map Cache directory is specified in the mapViewerConfig.xml file under the section "Map Cache Server Setting".
    e.g.
    cd <map cache dir>
    rm -rf *
    4) Clear the browser cache and temp files for the browser you are using (e.g. IE, Firefox, Chrome).  If you think you are not clearing the cache completely, then use the appropriate "private browsing" feature of the browser to view the map.  You should then be able to see the changes made to the map in the browser.

Maybe you are looking for

  • Account 5000056 is blocked by payment run 19.02.2011 QW

    Hi experts, While running F110 in APP, I am not able to schedule the proposal successfully. I have gone thru all posts in SDN for it, even deleted the sceduled proposals, even tried with different vendors and invoices but not able to solve it. Trying

  • Help ! using Calendar & adding text to a page problem !!

    Let's hope I make this clear enough for someone to understand. I am making up a Calendar & I want to add text to certain pages ( photo ). I click on 'Design' & pick option 2 ( the one where you can add text ), now here is my problem. The text box alw

  • Table column and table name

    Hi Experts, I just want to ask is there any procedure to know the table name and the corrosponding column name when you have only data with you. Suppose you have a string say "India". Now i want to know the name of the column and corrosponding tablen

  • I am unable to send emails using iCloud, but am receiving.

    I am unable to send emails using iCloud from both my laptop and my ipad.  I am paying for 25Gb of storage and am only using 3Gb at the moment.  I get the following message " Your email has been placed in the Outbox as you have exceeded your limit for

  • ORA-06512 at stringline string

    Has anyone ever dealt with this? if so, what is it? how do I fix it? also... Cause: Backtrace message as the stack is unwound by unhandled exceptions What is a backtrace?