Mapviewer 11EA & WMS

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

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

Similar Messages

  • Mapviewer 11ea Problem

    Hi
    I have developed application to display map [stored in oracle spatial] on web using Mapviewer 10.0.2 and Jdeveloper 9.0.5.2 and is working fine. Now i am trying same application using Mapviewer 11ea but it gives the following error. Can anbody solve this
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    C:\JDeveloper9\jdev\system9.0.5.2.1618\oc4j-config>
    C:\JDeveloper9\jdk\bin\javaw.exe -ojvm -classpath C:\JDeveloper9\j2ee\home\oc4j.jar;C:\JDeveloper9\jdev\lib\jdev-oc4j.jar -Xverify:none -Ddisable.checkForUpdate=true -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doracle.dms.sensors=NONE -Doc4j.jms.usePersistenceLockFiles=false com.evermind.server.OC4JServer -config C:\JDeveloper9\jdev\system9.0.5.2.1618\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 15719 ms.
    06/07/19 12:42:20 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
    Target URL -- http://dev1:8988/webris-ViewController-context-root/webris
    Jul 19, 2006 12:42:29 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true
    Jul 19, 2006 12:42:29 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
    Jul 19, 2006 12:42:30 PM org.apache.struts.util.PropertyMessageResources <init>
    INFO: Initializing, config='view.ApplicationResources', returnNull=true
    06/07/19 12:42:30 INFO [oracle.lbs.mapserver.oms] oms root path: E:\Projects\webris\ViewController\public_html\
    06/07/19 12:42:30 INFO [oracle.lbs.mapserver.core.MapperConfig] MapViewer server version: Ver11_B060227
    06/07/19 12:42:30 INFO [oracle.lbs.mapserver.core.MapperConfig] using default config file: E:\Projects\webris\ViewController\public_html\WEB-INF\conf\mapViewerConfig.xml
    06/07/19 12:42:30 mbean domain: current-workspace-app
    06/07/19 12:42:30 INFO [oracle.lbs.mapserver.oms] OMSConfig mbean regisred.
    06/07/19 12:42:30 WARN [oracle.lbs.mapserver.core.MapperPool] destroying ALL mapmaker instances.
    06/07/19 12:42:30 sessiontrue
    06/07/19 12:42:34 java.lang.NoSuchMethodError: void oracle.jdbc.pool.OracleDataSource.setConnectionCachingEnabled(boolean)
    06/07/19 12:42:34      at oracle.sdovis.ds.NativeOracleDataSource.<init>(NativeOracleDataSource.java:115)
    06/07/19 12:42:34      at oracle.sdovis.ds.DSManager.registerOracleJdbcDS(DSManager.java:110)
    06/07/19 12:42:34      at oracle.lbs.mapserver.core.MapperConfig.createMappers(MapperConfig.java:683)
    06/07/19 12:42:34      at oracle.lbs.mapserver.core.MapperConfig.loadMapViewerConfig(MapperConfig.java:1229)
    06/07/19 12:42:34      at oracle.lbs.mapserver.core.MapperConfig.loadConfigFile(MapperConfig.java:502)
    06/07/19 12:42:34      at oracle.lbs.mapserver.core.MapperConfig.<init>(MapperConfig.java:279)
    06/07/19 12:42:34      at oracle.lbs.mapserver.MapServerImpl.<init>(MapServerImpl.java:123)
    06/07/19 12:42:34      at oracle.lbs.mapserver.MapServerImpl.<init>(MapServerImpl.java:107)
    06/07/19 12:42:34      at oracle.lbs.mapserver.oms$ColdStart.run(oms.java:205)06/07/19 12:42:35      at java.lang.Thread.run(Thread.java:534)
    Thanks,
    Sujnan

    Hi Sujnan,
    You receive this error, because you are trying to use MapViewer 11ea with Oracle Application Server Containers for J2EE 10g (9.0.4.0.0). As I know, MapViewer 11ea is tested only with Oracle Application Server Containers for J2EE 10g (10.1.3).
    Regards,
    Andrejus

  • Openstreetmap in mapviewer using wms

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

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

  • Mapviewer and WMS

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

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

  • Mapviewer as WMS *Client*

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

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

  • Mapviewer / GeoRaster / WMS tie?

    I am unable to determine from the white papers if it is possible to server up a GeoRaster image via WMS through the Mapviewer?
    Thank you.
    Peter

    Hi Peter,
    if you have not looked yet, at the end of MapViewer's documentation there is a section on WMS.You can use the GeoRaster as a WMS theme. The following is a map request example with a GeoRaster WMS theme.
    <?xml version="1.0" standalone="yes"?>
    <map_request
      title="tilsmq311: WMS GeoRaster Theme"
      datasource="mvdemo"
      srid="0"
      width="500"
      height="375"
      bgcolor="#a6caf0"
      antialiase="true"
      mapfilename="wmsgeoraster"
      format="PNG_URL">
      <center size="185340.0">
        <geoFeature>
          <geometricProperty typeName="center">
            <Point>
              <coordinates>596082.0,8881079.0</coordinates>
            </Point>
          </geometricProperty>
        </geoFeature>
      </center>
      <themes>
        <theme name="WMS_GEORASTER" user_clickable="false"  >
            <wms_getmap_request isBackgroundTheme="true">
               <service_url> http://localhost:7777/mapviewer/wms </service_url>
               <layers> GEORASTERTHEME </layers>
               <srs> SDO:82279 </srs>
               <format> image/png </format>
               <bgcolor> 0xa6caf0 </bgcolor>
               <transparent> true </transparent>
               <vendor_specific_parameters>
                 <vsp>
                    <name> datasource </name>
                    <value> mvdemo </value>
                 </vsp>
               </vendor_specific_parameters>
            </wms_getmap_request>
        </theme>
      </themes>
    </map_request>You can use Mapviewer's Java API to add a WMS theme to you request.
    Joao

  • HTTP1.1 302 found with mapviewer 11ea

    Hi,
    I´ve installed the latest release of Mapviewer on a windows2000 sp3 (testing-)machine.
    I´m using Apex, Spatial and Mapviewer to generate maps. With thanks to Bernard Fischer and Justin Lokitz, by the way.
    The http-server for apex generates a 302-found error.
    How to solve this problem?
    Any reaction will be appreciated.
    Leo

    Thnaks for your reaction.
    This is the message :
    HTTP/1.1 302 FoundDate: Wed, 02 Aug 2006 18:07:47 GMT
    Server: Oracle-Application-Server-10g/9.0.4.0.0 Oracle-HTTP-Server
    Location: f?p=9300:700:1789544150422948::NO (Oracle Apex Application)
    Keep-Alive: timeout=15, max=99
    Connection: Keep-Alive
    Transfer-Encoding: chunked
    Content-Type: text/plain
    I've downloaded Mapviewer EA11 from OTN. With an Oc4J included. Version 9.0.4.0.0
    Hope this helps.
    If not, please give more instructions where I can find what you're asking for. This is new stuff for me.
    Leo

  • Mapviewer WMS servered from tilecache instance?

    It seems that GetCapabilities only returns my maps and none of my cached maps are available. Is there anyway to have mapviewer server WMS requests out of a tile cache?

    Hi,
    This is not supported currently. We could probably modify our WMS implementation so that if a base map already has a tile layer created for it, then it will try to reuse its existing map tiles when generating the response map. The problem is however map tiles are by nature of fixed map scales (zoom level), whereas a WMS request can be for an arbitrary map scale that often falls between two adjacent tile-layer zoom levels. In such case the tiles can't really be re-used without distortion.
    Thanks
    LJ

  • WMS and MapViewer

    Hi,
    I write my master thesis and in this context I would like to use the WMS tool of the MapViewers.
    My data are in the database set as SDO: 82027.
    This corresponds to EPSG: 31467.
    The first Layer in the Capabilities always shows an SRS SDO: 8307 and a LatLonBoundingBox of -180 ,-90 , 180, 90.
    My questions are now:
    - Can I show in the Capabilities instead of SRS=SDO ... also SRS = EPSG ... (I think the WMS Specifikation requires an EPSG as SRS).
    - Can I use in the first (outermost) Layer a different SRS as SDO: 8307 or can I use more and different SRS in this Layer?
    - Can I amend the values of the LatLonBoundingBox so that only the concerned area is shown?
    - Is there a more detailed documentation existing than the Oracle Application server MapViewer User's Guide in the appendix D?
    - Exists an example in the web where the WMS Specifikation of the MapViewers is used?
    Many thanks in advance
    Tina

    Tina,
    This release of MapViewer's WMS interafce supports EPSG:4326 and all the Spatial SRIDs (e.g. 82027, 8307, 41052, ...).
    The GetCapabilities simply reads the extents from user_sdo_geom_metadata.
    The LatLonBoundingBox is always (-180,-90, 180, 90) as stated in Appendix D.
    Other EPSG ids will be supported in a future release.
    Customizing the GetCapbilities response documnet will be feasible in a future release.
    Is your question about documentation detail related to modifying the GetCapabilities response?
    Or is it about making a GetMap request?
    The supported parameters are listed in the doc. So a GetMap request using the supported parameters and a SRS specification of EPSG:4326 or one of the SDO srid values will work.
    Jayant

  • Mapviewer legend and note overlap

    I am using Mapviewer 11ea and wish to place a legend above a note in the SOUTH EAST corner of my map. The note is defined in the config file and the legend is provided in the map request. The legend itself seems to create a box larger than required and overlaps the note text below. See the image at http://www.geocities.com/ozspatial/legend-note-overlap.jpg showing the overlap and the large amount of white space at the bottom of the legend.
    The legend component of the request is from the default mapviewer request and looks like:
    <legend bgstyle="fill:#ffffff;stroke:#ff0000" profile="MEDIUM" position="SOUTH_EAST">
              <column>
                <entry text="Map Legend" is_title="true" />
                <entry style="M.STAR" text="center point" />
                <entry style="M.CITY HALL 3" text="cities" />
                <entry style="M.CITY HALL 4" text="big cities" />
                <entry is_separator="true" />
                <entry style="C.ROSY BROWN STROKE" text="state boundary" />
                <entry style="L.PH" text="interstate highway" />
                <entry text="County population:" />
                <entry style="V.COUNTY_POP_DENSITY" tab="1" />
              </column>
      </legend>Does anyone know how to reduce the white space in the legend or some other way to avoid the overlap? (whilst still placing both note and legend in the SOUTH EAST corner)
    thanks,
    Ross.

    Hi Ross,
    I don't think you will be able to reduce the white space at the bottom, but there are some parameters on the legend that you can use.
    1) In overlap situations you can set the transparency of the legend:
    <legend bgstyle="fill:#ffffff;fill-opacity:128;stroke:#ff0000" profile="MEDIUM" position="SOUTH_EAST">
    2) For the profile value there is an internal size defined. In your figure I can note that the advanced style items are also overlapping, which means that the internal size MEDIUM seems not appropriate for this legend. You can assign a height for a legend entry:
    <entry style="V.CA INCOME 2" tab="1" height="150"/>
    3) With version 11 there are two new parameters (location_x and location_y) for the legend that can be used to put the legend in any position. In this case the position attribute is ignored if defined.
    <legend bgstyle="fill:#ffffff;fill-opacity:128;stroke:#ff0000" profile="MEDIUM" location_x="20" location_y="50">
    Joao

  • Help!! wms and java api

    hi!, i`m newie on oracle, and i`m using mapviewer with java api but i have problems with the addWMSMapTheme function:
    Object vsp = new Object[]{new String[]{"DATASOURCE", "example"}, new String[]{"antialiasing", "true"}};
    mv.addWMSMapTheme("wmstheme","http://onearth.jpl.nasa.gov/wms.cgi?","false","1.1.1","BMNG","default","EPSG:4326","image/jpeg","false","0xFFFFFF","application/vnd.ogc.se_inimage", vsp);
    it return a exception (that the object vsp is not define).
    does i have to use the xml request?? how can do it??

    Hi,
    you can use the API which will generate and send the map request to MapViewer. Your vsp parameter looks strange. The following is a sample code that use the MVDEMO data set, just to give you an idea of the definition for vsp parameter.
        mapViewer.setImageFormat(MapViewer.FORMAT_PNG_URL);
        mapViewer.setDataSourceName("mvdemo");
        mapViewer.setCenterAndSize(-70.,44.,20.);
        mapViewer.setMapTitle("WMS");
        mapViewer.deleteAllThemes();
         Object []vsp = new Object[]{new String[]{"DATASOURCE", "mvdemo"}  };
         mapViewer.addWMSMapTheme("wms_theme", "http://localhost:7001/mapviewer/wms",
                                  new String[] {"THEME_DEMO_STATES"}, new String[] { "asdf"},
                                  "SDO:8265", "image/png","0xffffff", vsp);             
         System.out.println("Current request: " + mapViewer.getMapRequestString());    
         boolean response = mapViewer.run();
         if (response)
              double[] mbr = mapViewer.getMapMBR();
              System.out.println("mbr="+mbr[0]+","+mbr[1]+" "+mbr[2]+","+mbr[3]);
              System.out.println("URL: " + mapViewer.getGeneratedMapImageURL());
          }For you case, make sure the WMS server at http://onearth.jpl.nasa.gov/wms.cgi? is running and accepting requests. I tried a GetCapabilities request to this server, and got an exception message that the system was overloaded and not processing requests.
    Joao

  • Performance test solution dedicated to MapViewer

    Hi MapViewer users,
    Recently, i've made a testing tool available dedicated to Oracle MapViewer (incl WMS).
    Check out the site and try it: http://www.testnext.com
    Thanks,
    Jeroen

    The message means that the MapViewer service did not response at the end point (URL) you provided. Make sure that MapViewer is running. To verify this, open a browser and paste your end point. This should bring you to the MapViewer web console. If the web console shows up, please set the support log option, test the end point again, and send the log file in the output directory to [email protected]
    Thanks in advance,
    Jeroen
    ps. Please post your questions to support@testnext instead of the forum...

  • GetFeatureInfo - Errors

    If I use MapViewer as WMS data source and issue GetFetureInfo with info_format=text/xml for GeoRaster theme I get following output
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE ServiceExceptionReport SYSTEM "http://schemas.opengis.net/wms/1.1.1/WMS_exception_1_1_1.dtd">
    <ServiceExceptionReport version="1.1.1">
    <ServiceException>
    <![CDATA[<oms_error>
    <![CDATA[
    OMS: oracle.sdovis.theme.GeoRasterThemeDefinition
    ]]>
    </oms_error>]]>
    </ServiceException>
    </ServiceExceptionReport>
    Looked on server output in console I get this
    java.lang.ClassCastException: oracle.sdovis.theme.GeoRasterThemeDefinition
    at oracle.lbs.mapserver.core.InfoWorker.findTablenColumn(InfoWorker.java:794)
    at oracle.lbs.mapserver.core.InfoWorker.processAdvancedInfoRequest(InfoWorker.java:478)
    at oracle.lbs.mapserver.core.InfoWorker.process(InfoWorker.java:214)
    at oracle.lbs.mapserver.core.FeatureInfoWorker.process(FeatureInfoWorker.java:438)
    at oracle.lbs.mapserver.oms.processWMSGetFeatureInfoRequest(oms.java:3016)
    at oracle.lbs.mapserver.oms.doPost(oms.java:601)
    at oracle.lbs.mapserver.oms.doGet(oms.java:414)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.lbs.webmapserver.WMSServletFilter.doFilter(WMSServletFilter.java:254)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    I know that documentation states
    "All layers are currently considered to be opaque and queryable. That is, all layers are
    assumed to be vector layers, and not GeoRaster, logical network, or image layers."
    But at least server should return empty response, not one with errors.
    Also if I query Geometry Layer with info_format=text/xml, that has defined info columns that have data containing non-english character(in my case I use data that have Windows-1250 encoding (č,ć,ž,š,đ)) all XML parsers that I tried are complaining (XML Parsing Error: not well-formed, An Invalid character was found in text content). So my assumption is returned data isn't encoded in UTF-8 but send as plain data.
    That are two errors that I noticed while working with MapViewer as WMS server.

    Hi,
    I have a similar problem with getFeatureInfo encoding. We are working with data that contain spanish character(á, é, í, ñ, ...) and XML encoded like UTF-8 doesn't fit at this data.
    Reading MapViewer User’s Guide (Release 10.1.3.1, the version we are working with) we can't find in mapViewerConfig.xml any option for changing the encoding neither as a parameter in url request.
    Is there any way to get what we are trying to do?
    Any help is appreciated.
    Thanks

  • How to display all layers at the same time?

    Hi,
    I have created several theme based FOIs with a checkbox to set visible them. Each theme has some data and when you click in the theme region it displays this data in an information box. But when I set visible more than one theme, can only display the information box of the last one theme that I set visible (the others are not clickable because they are under the last no?). Is there anyway to make all of them clickable at the same time?
    For each theme that I create I call this function:
         function addThemeBasedFOI(value, i) {
              /* Add JDBC SQL Query theme based FOI */
              baseQuery = "SELECT value,annotation as label FROM " + value;
              var theme = "<themes><theme name='JDBC_THEME'>"
                        + "<jdbc_query asis='true' spatial_column='value' jdbc_srid='4326' label_column='label' " +
         "render_style='colorScheme' datasource='DSTest'>"
                        + baseQuery + "</jdbc_query></theme></themes>";
              buffertheme = new MVThemeBasedFOI('bufferthemeL_' + i, theme);
              buffertheme.addStyle(sc1);          
              buffertheme.enableLabels(true);
              buffertheme.setBringToTopOnMouseOver(true);
              buffertheme.setVisible(false);
              buffertheme.setClickable(true);
              buffertheme.enableInfoWindow(true);
              buffertheme.setAutoRefresh(true);
              buffertheme.attachEventListener(MVEvent.MOUSE_CLICK, showInfoPanel);          
              mapview.addThemeBasedFOI(buffertheme);
         function showInfoPanel (loc, foi){
              var width = 250;
              var height = 150;
              var html = "<p style='color:blue'>Name:<br><font color='black'>" + foi.name + "</font></p><br><p style='color:blue'>Localization:<br><font color='black'> X:" + loc.getPointX() + "<br> Y:" + loc.getPointY() + "</font></p>";
              mapview.displayInfoWindow(loc, html, width, height, "MVInfoWindowStyle4");
    /* Function to set visible a layer */
    function setVisible(item) {
              var themebasedfoi = mapview.getThemeBasedFOI(item.value);
              themebasedfoi.setVisible(!themebasedfoi.isVisible());
              if(themebasedfoi.isVisible()) {
                   themebasedfoi.centerToTheme();
                   themebasedfoi.zoomToTheme();
    Thanks in advance,
    Esteban.

    Hi Esteban,
    pls refer to these threads - they may help you with that issue:
    Re: MVThemeBasedFOI Index
    MapViewer and WMS layers
    Dominik

  • Case Issue in Mapviewer WMS GetMap request

    I've been working with Mapviewer 10.1.2.0.2 for a couple weeks now and have used the wms_getmap_request using the XML API to get layers from various WMS servers including USGS. I am interested in getting images specifically from wms.jpl.nasa.gov as they seem to have better global coverage than USGS which is primarily interested in the US. I believe that the wms.jpl.nasa.gov is a non compliant WMS server because the REQUEST=GETMAP name pair in the url created by Mapviewer using the wms_getmap_request fails while using REQUEST=GetMap works.
    Here's and easy test: The URL in Example 1 fails while the Example 2 URL returns an image.
    Short of asking Nasa's Jet Propulsion Laboratory to get a new wms image server, is there a workaround for this that would force the url request to use the mixed case version of the value instead of the all upper case? From what I can tell they are a leading source of this kind of information.
    Example 1:
    http://wms.jpl.nasa.gov/wms.cgi?VERSION=1.1.1&REQUEST=GETMAP&SRS=EPSG:4326&BBOX=-123.3865,367766,-121.1365,38.2766&WIDTH=600&HEIGHT=400&FORMAT=image/jpeg&BGCOLOR=0xffffff&TRANSPARENT=true&LAYERS=global_mosaic&STYLES=pseudo_bright&EXCEPTIONS=application/vnd.ogc.se_inimage
    Example 2:
    http://wms.jpl.nasa.gov/wms.cgi?VERSION=1.1.1&REQUEST=GetMap&SRS=EPSG:4326&BBOX=-123.3865,36.7766,-121.1365,38.2766&WIDTH=600&HEIGHT=400&FORMAT=image/jpeg&BGCOLOR=0xffffff&TRANSPARENT=TRUE&LAYERS=global_mosaic&STYLES=pseudo_bright&EXCEPTIONS=application/vnd.ogc.se_inimage
    Thanks,
    Ken

    Hi,
    Since MapViewer is a component of Oracle App Server, any MapViewer patch will have to be part of an App Server-wide patch, which is out of the control of the Mapviewer team (schedule wise).
    We are however preparing for an early access release of MapViewer 11g, which will be available for download on OTN late Janurary 2006. That version will fix this issue (and also provides a ton of exciting new features).
    In the mean time, if you contact me directly we can probably help you on this issue now. [email protected] please replace _ with . for the correct email adderess.
    thanks

Maybe you are looking for