Mapviewer WMS Server

I have spatial data in Oracle database. The SDO_SRID of this data is 262148 (Non-Earth meters).
Now I want to configure mapviewer as a WMS server.
If I try http://host:port/mapviewer/wms?REQUEST=GetCapabilities&VERSION=1.1.0&SERVICE=WMS
I get
<?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[java.lang.NullPointerException
     at oracle.spatial.geometry.JGeometry.load(JGeometry.java:2972)
     at oracle.lbs.webmapserver.WMSCapabilities.getLatLonBounds(WMSCapabilities.java:1084)
     at oracle.lbs.webmapserver.WMSCapabilities.GetCapabilities(WMSCapabilities.java:684)
     at oracle.lbs.mapserver.oms.wmsGetCapabilities(oms.java:2648)
     at oracle.lbs.mapserver.oms.doPost(oms.java:703)
     at oracle.lbs.mapserver.oms.doGet(oms.java:386)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
     at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
     at oracle.lbs.webmapserver.WMSServletFilter.doFilter(WMSServletFilter.java:254)
     at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
     at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
     at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
     at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
     at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
     at java.lang.Thread.run(Thread.java:595)
]]>
</ServiceException>
</ServiceExceptionReport>
Thanks in advance

Thanks for reply
SQL> select * from user_sdo_geom_metadata
2 where
3 (table_name = 'TERENURI')
4 /
TABLE_NAME
COLUMN_NAME
DIMINFO(SDO_DIMNAME, SDO_LB, SDO_UB, SDO_TOLERANCE)
SRID
TERENURI
GEOLOC
SDO_DIM_ARRAY(SDO_DIM_ELEMENT('X', 0, 400000, ,000002), SDO_DIM_ELEMENT('Y', 0,
400000, ,000002))
262148
Posting request like http://host:port/mapviewer/wms?REQUEST=GetMap&VERSION=1.1.1&...
returns image.
Could there be any problems with SRID?

Similar Messages

  • Mapviewer WMS and GetCapabilities

    Hi,
    We have a Mapviewer WMS server running well, but have noticed that when we use a WMS client to query the data (e.g. Quantum GIS, NASA WW) the WMS service returns the entire extent, not the extent of the data. This is really annoying and is an important part of WMS.
    All the georasters we have are built correctly etc. (i.e. tested system known to work).
    How do provide extents for just the data in the GetCapabilities?
    Thanks,

    I cannot find the user_sdo_view_metadata view. I do have:
    user_sdo_geom_metadata
    user_sdo_geor_sysdata
    Yes, I would not expect the GetCapabilities spatial extent for all the images in the table, not just 1 image.
    I used this query to check the spatial extents of each image and they are all there:
    SELECT t.image.spatialextent FROM oblique t
    Looking at the view in user_sdo_geom_metadata shows:
    3 | oblique | image.spatialextent | <points showing diminfo> | 41103
    which all looks good.
    I noticed though for the user_sdo_geor_sysdata view, there is an entry for each image, for example:
    9 | oblique | image | (null) | oblique_rdt | 1 | (null)
    which means that for the meta_data_column_name it is set to null. Is that bad?

  • 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

  • Multiple datasources for Mapviewer WMS

    Hello,
    I have set up a WMS server using mapviewer. I have data sources "prod" and "pub", one is default configured like this in the WMS configuration:
    <wms_config host="myhost" port="8080"
                  protocol="http" default_datasource="wms"
                  public_datasources="prod,pub">
    The problem I am facing is when I am trying to get layers from the  "pub" datasource. Most of the applications I am using throws me the following errors:
    "The WMS server returned no data from the GetMap request" , "Layer NotDefined" , "Invalid Layer requested" or this other one from QGIS:
    "Map request error (Status: 200; Response: <?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 code="LayerNotDefined">
          <![CDATA[<oms_error>
    <![CDATA[
    OMS: MAPVIEWER-00003: SQL error occurred while generating map.
    ]]>
    </oms_error>]]>
       </ServiceException>
    </ServiceExceptionReport> "
    I tried to add the DATAOURCE Mapviewer parameter but I still get these same errors.
    When I switch "pub" from public_datasources to default_datasource everything works fine. It seems that I can get layers only from the default datasource. The problem is that I use several database intances and I relly need to have all datasources working.
    Could you help me to know if I'm using it the wrong way or if it is a known bug ?
    Thank you

    Hi Sachin,
    The basi answer is yes.  The other infoobjects will be empty if you load in two seperate update rules.
    Remember one basic rule about cubes: you cannot change (in general) records in a cube that you have loaded previously. 
    But this does not mean the behaviour you want in queries is not correct.
    Suppose you load the following:
    CHAR A, CHAR B, CHAR C, KF 1
    A1               C1      10
              B1     C1       5
    In this case a query on C1 will return 15, although a query for the values of B1 will only return 5.
    hope it helps,
    Tom

  • Mapviewer cache server security

    I have an Oracle Application Server with MapViewer deployed
    There are some map tile layers prefetched so all the files are in <tile_storage default_root_path> directory.
    Also there is an application that uses mapviewer
    but if I write in the browser host:port/mapviewer/mcserver?request=gettile&format=PNG&zoomlevel=0&mapcache=name&mx=1&my=2, I get the image.
    How can I restrict access to mapviewer cache server to nonauthenticated users, so the prefetched images could be accessed only through my application.
    Thanks.

    Hi!
    First of all you can enable security constraints for +/mapviewer/*+ pages in you app server.

  • Using Basemaps with MapViewer/WMS

    I've set up a basemap which zoom layers a Georaster layer and MasterMap vector layers.
    This works fine when accessing MapViewer in the normal manner, however, when I access it through WMS I only get the MasterMap data at all zoom levels.
    e.g.
    http://10.104.30.10:8888/mapviewer/wms?request=getmap&version=1.1.1
    &format=image/jpg&service=wms&bbox=525000,180000,530000,185000
    &srs=SDO:81989&BASEMAP=WMSBASE1&layers=&width=800&height=800
    Why would it not behave the same when accessing via WMS?
    Ken

    Hi,
    fill &layers= with you layer names like &layers=layer1,layer2
    regards, Andreas

  • Oracle MapViewer WMS

    I have problem using Oracle MapViewer WMS GetFeatureInfo request because data that that request is fetching are not in UTF-8 encoding so I get XML document that is invallid. Any help here?

    I have problem using Oracle MapViewer WMS GetFeatureInfo request because data that that request is fetching are not in UTF-8 encoding so I get XML document that is invallid. Any help here?

  • 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

  • Mapviewer WMS and "dimension" data

    Hi,
    I have been using various WMS servers lately, and noticed that some of them support service metadata responses which include a "time" dimension. Does MapViewer support getting the available time values via a WMS getCapabilities?
    Thanks
    MH

    Hi,
    Current version of MapViewer doesn't support Time and SLD.
    BR,
    TM

  • MapViewer WMS GetMap uses SDO_FILTER

    When I use the WMS request GetMap, MapViewer uses SDO_FILTER for the generated queries. This is not always accurate because sometimes features are not selected and drawn. How can I make MapViewer use SDO_RELATE instead of SDO_FILTER?

    The fact that mapping applications use sdo_filter is because it is much more faster to supply a resultset which normally is bigger than the actual set needed for a rectangular view in such an application, then to use an operator like sdo_relate to get an exact matching resultset.
    After all speed is important in (web)mapping applications.
    This is also noted in the user manual:
    http://download.oracle.com/docs/html/B14255_01/sdo_intro.htm#sthref91
    Extract:
    Spatial uses a spatial index to implement the primary filter. Spatial does not require the use of both the primary and secondary filters. In some cases, just using the primary filter is sufficient. For example, a zoom feature in a mapping application queries for data that has any interaction with a rectangle representing visible boundaries. The primary filter very quickly returns a superset of the query. The mapping application can then apply clipping routines to display the target area.
    The purpose of the primary filter is to quickly create a subset of the data and reduce the processing burden on the secondary filter. The primary filter, therefore, should be as efficient (that is, selective yet fast) as possible. This is determined by the characteristics of the spatial index on the data.
    However, I think, it should not return less features then the sdo_relate.
    Maybe a Mapviewer expert can help you further.
    Luc

  • MapViewer WMTS

    Is it possible to add WMTS layers to MapViewer similar to a WMS?

    The latest patch version (11.1.1.7.0) just released supports the creation of WMTS themes. Users should be able to create WMTS themes based on external WMTS servers. A MapViewer WMTS server like MapViewer WMS server is not available.

  • The Oracle MapViewer brings the WebLogic Managed Server to crash

    Problem Description: The Oracle MapViewer brings the WebLogic Managed Server to crash, when we call a GetMap-Request with wrong Coordinates.
    This was found out for the SRS=EPSG:25833. Example:
    http://igdb-qm-svra1.blva.bayern.de:8080/mapviewer/wms?
    REQUEST=getMap&
    Version=1.1.1&
    LAYERS=&
    FORMAT=image/png&
    TRANSPARENT=false&
    STYLES=&
    Datasource=igvert_alkis_wms&
    basemap=AT_WMS_TN-KOMPLETT&
    SRS=EPSG:25833&
    BBOX=3.32358690717E7,5529425.0143,3.32369088846E7,5530464.8272&
    WIDTH=500&
    HEIGHT=500&
    With the Enterprise Manager was also evaluated during and after a crash of Server the SQL-Statements.
    If the SQL statements executed on the database itself, it takes a few seconds after a correct answer returns.
    I know that have the look for the EPSG coordinate as follows:
    BBOX=235869.071700,5529425.014300,236908.884600,5530464.827200&
    My question therefore: Why are these coordinates by the Oracle MapViewer approved and not caught? An Request with incorrect
    coordinates goes into a StuckThreads and then the ManagedServer crashed.
    In the appendix you will find the evaluation of the Enterprise Manager.
    I have tested the request with two different versions of Oracle MapViewer (Ver11_1_1_5_B110527 and Ver11_B100426). In both the same problem occurs on.
    I have also filed an SR.
    Best Regards
    Kerstin

    Hi,
    Can you confirm that you're trying to setup a managed server on another machine using the pack/unpack commands ?
    You might to want to take a look at that post.
    Clustering of 2 Physical server
    Hope that helps !
    Regards

  • 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:GetCapabilities VERSION=1.1.1   Error 500--Internal Server Error

    Hi:
    i have configured the WMS secition in the mapviewer configuration file.(mapviewer:mapviewer1112,Oracle WebLogic Server 11g Rel 1 (10.3.3) )
    It is correct to GetCapabilities works for:
    "http://172.17.1.128:8888/mapviewer/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.3.0"
    but ,I got an error when works for:
    "http://172.17.1.128:8888/mapviewer/wms?REQUEST=GetCapabilities&SERVICE=WMS&VERSION=1.1.1"
    Error text like this:
    Error 500--Internal Server Error
    java.lang.NoClassDefFoundError: oracle/i18n/util/LocaleMapper
         at oracle.xml.parser.v2.XMLOutputStream.setEncoding(XMLOutputStream.java:371)
         at oracle.xml.parser.v2.XMLPrintDriver.setEncoding(XMLPrintDriver.java:166)
         at oracle.xml.parser.v2.XMLDocument.print(XMLDocument.java:1619)
         at oracle.xml.parser.v2.XMLDocument.print(XMLDocument.java:1591)
         at oracle.xml.classgen.CGDocument.print(CGDocument.java:134)
         at oracle.lbs.webmapserver.dtdelements.WMT_MS_Capabilities.print(WMT_MS_Capabilities.java:218)
         at oracle.lbs.webmapserver.WMSCapabilities.GetCapabilities(WMSCapabilities.java:958)
         at oracle.lbs.mapserver.oms.wmsGetCapabilities(oms.java:2967)
         at oracle.lbs.mapserver.oms.doPost(oms.java:734)
         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:300)
         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.doIt(WebAppServletContext.java:3684)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650)
         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:2268)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    I will be appreciated for any help!

    Please post the WMS section that you have configured. 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).

Maybe you are looking for