AddWMSMapTheme

Hello,
I want to use, in MapViewer, the addWMSMapTheme in order to see (in a JSP page) the result of a spatial querry on a "layer" coming form a WMS. Here is the part of the code that uses it:
<%
mvHandle.addWMSMapTheme("PPNC", WMS_URL, "TRUE", "1.1.1", "1,2,3,4,5,6", styles, "SDO:327680", "image/jpeg", "TRUE", "#FFFFFF", "application/vnd.ogc.se_inimage", vsp) ;
%>
And here is the message I got:
HTTP ERROR: 500
Impossible de compiler la classe pour la JSP
Une erreur s'est produite ? la ligne: 59 dans le fichier jsp: /PratiqueSportMapGlob.jsp
Erreur de servlet g?n?r?e:
C:\Jetty\work\Jetty__8080__axis\org\apache\jsp\PratiqueSportMapGlob_jsp.java:190: cannot find symbol
symbol : method addWMSMapTheme(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String[],java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Object[])
location: class oracle.lbs.mapclient.MapViewer
Une erreur s'est produite ? la ligne: 59 dans le fichier jsp: /PratiqueSportMapGlob.jsp
Erreur de servlet g?n?r?e:
               myHandle.addWMSMapTheme("PPNC", "http://carto4.wallonie.be/WMS/com.esri.wms.Esrimap/PPNC", "TRUE", "1.1.1", "1,2,3,4,5,6", styles, "SDO:327680", "image/jpeg", "TRUE", "#FFFFFF", "application/vnd.ogc.se_inimage", vsp) ;
^
Une erreur s'est produite ? la ligne: 59 dans le fichier jsp: /PratiqueSportMapGlob.jsp
Erreur de servlet g?n?r?e:
Note: C:\Jetty\work\Jetty__8080__axis\org\apache\jsp\PratiqueSportMapGlob_jsp.java uses unchecked or unsafe operations.
Une erreur s'est produite ? la ligne: 59 dans le fichier jsp: /PratiqueSportMapGlob.jsp
Erreur de servlet g?n?r?e:
Note: Recompile with -Xlint:unchecked for details.
1 error
Can somebody help me?
Thanks.

For the second solution (XML API), here is the log file coming form MapViewer:
Tue Nov 22 15:17:44 CET 2005 FINEST [oracle.lbs.mapserver.core.MapperConfig]
Allowed IPs:
Excluded IPs:
Tue Nov 22 15:17:50 CET 2005 FINEST [oracle.sdovis.SRS] loaded 748 geodetic srids.
Tue Nov 22 15:17:50 CET 2005 INFO [oracle.sdovis.CacheMgr2] Spatial Data Cache opened. Region=SDOVIS_DATA.
Tue Nov 22 15:17:50 CET 2005 INFO [oracle.sdovis.CacheMgr2]      max_cache_size=32 MB.
Tue Nov 22 15:17:50 CET 2005 INFO [oracle.sdovis.CacheMgr2] sub region sdovis_subreg_damien_jdbc:oracle:thin:@193.190.25.35:1521:INFRA created in cache.
Tue Nov 22 15:17:50 CET 2005 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper instance to the pool [data src=INFRA_map_data_source]
Tue Nov 22 15:17:51 CET 2005 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper instance to the pool [data src=INFRA_map_data_source]
Tue Nov 22 15:17:51 CET 2005 INFO [oracle.lbs.mapserver.core.MapperPool] added a mapper instance to the pool [data src=INFRA_map_data_source]
Tue Nov 22 15:17:51 CET 2005 INFO [oracle.lbs.mapserver.core.MapperConfig] Map Recycling thread started.
Tue Nov 22 15:17:51 CET 2005 INFO [oracle.lbs.mapserver.oms] *** Oracle MapViewer started. ***
Tue Nov 22 15:40:26 CET 2005 FINEST [oracle.lbs.mapserver.oms] request.getRemoteUser = null
Tue Nov 22 15:40:26 CET 2005 FINEST [oracle.lbs.mapserver.oms] request=                     
                    <?xml version="1.0" encoding="UTF-8" ?>
                    <map_request datasource="INFRA_map_data_source" bgcolor="#FFFFFF" width="850" height="550" antialiasing="true" title="Infrastructures permettant la pratique du golf" format="GIF_STREAM">
                         <center size="200000">
                              <geoFeature>
                                   <geometricProperty>
                                        <Point>
                                             <coordinates>
                                                  152500, 125000
                                             </coordinates>
                                        </Point>
                                   </geometricProperty>
                              </geoFeature>
                         </center>                         
                         <themes>
                              <theme name="WMS_PPNC">
                                   <wms_getmap_request isBackgroundTheme="true">
                                        <service_url>http://carto4.wallonie.be/WMS/com.esri.wms.Esrimap/PPNC</service_url>
                                        <version>1.1.1</version>
                                        <layers>1,2,3,4,5,6,PPNC+Zone7</layers>
                                        <styles/>
                                        <srs>EPSG:31370</srs>
                                        <format>image/jpeg</format>
                                        <transparent>true</transparent>
                                        <bgcolor>#FFFFFF</bgcolor>
                                        <exceptions>application/vnd.ogc.se_inimage</exceptions>          
                                   </wms_getmap_request>
                              </theme>
                              <theme name="Query">
                                   <jdbc_query datasource="INFRA_map_data_source" spatial_column="shape" jdbc_srid="327680" render_style="POINT">
                                        SELECT shape
                                        FROM Adresse, REL_Site_Adr, Site, Infrastructure, Amenagement, Amenagement_sportif, REL_Ame_spo_D_PRATIQUEE, Discipline
                                        WHERE Adresse.Adresse_ID = REL_Site_Adr.Adresse_ID
                                        AND REL_Site_Adr.Site_ID = Site.Site_ID
                                        AND Site.Site_ID = Infrastructure.Site_ID
                                        AND Infrastructure.Infrastructure_ID = Amenagement.Infrastructure_ID
                                        AND Amenagement.Amenagement_ID = Amenagement_sportif.Amenagement_sportif_ID
                                        AND Amenagement_sportif.Amenagement_sportif_ID = REL_Ame_spo_D_PRATIQUEE.Amenagement_sportif_ID
                                        AND REL_Ame_spo_D_PRATIQUEE.Discipline_ID = Discipline.Discipline_ID
                                        AND Discipline.Denomination = 'golf'
                                   </jdbc_query>
                              </theme>
                         </themes >
                    </map_request>
Tue Nov 22 15:40:27 CET 2005 FINEST [oracle.sdovis.JSDOGeometry] exception while getting srid from a geometry node: For input string: ""
Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Parsing WMS theme
Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Service URL = http://carto4.wallonie.be/WMS/com.esri.wms.Esrimap/PPNC
Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Version = 1.1.1
Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Layers = 1,2,3,4,5,6,PPNC+Zone7
Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] SRS = EPSG:31370
Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Setting SRS to EPSG:31370
Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Format = image/jpeg
Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.XMLHelper4Mapper] Transparent = true
Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper(INFRA_map_data_source) begins...
Tue Nov 22 15:40:27 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper() succeeded.
Tue Nov 22 15:40:29 CET 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding additional themes...
Tue Nov 22 15:40:29 CET 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a WMS Theme:
ThemeDescriptor=
name=WMS_PPNC
type=8
minScale=Infinity
maxScale=-Infinity
srid=0
localThem=null
Tue Nov 22 15:40:29 CET 2005 DEBUG [oracle.sdovis.theme.wmstd] WMSMapTheme name = WMS_PPNC
Tue Nov 22 15:40:29 CET 2005 DEBUG [oracle.sdovis.theme.wmstd] WMSMapTheme srs = EPSG:31370
Tue Nov 22 15:40:29 CET 2005 DEBUG [oracle.sdovis.theme.wmstd] WMSMapTheme bgcolor = #FFFFFF
Tue Nov 22 15:40:29 CET 2005 DEBUG [oracle.sdovis.theme.wmstd] No VSPs
Tue Nov 22 15:40:29 CET 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a JDBC Theme:
ThemeDescriptor=
name=Query
type=2
minScale=Infinity
maxScale=-Infinity
srid=327680
host=null
sid=null
port=null
user=null
mode=null
query=SELECT shape
                                        FROM Adresse, REL_Site_Adr, Site, Infrastructure, Amenagement, Amenagement_sportif, REL_Ame_spo_D_PRATIQUEE, Discipline
                                        WHERE Adresse.Adresse_ID = REL_Site_Adr.Adresse_ID
                                        AND REL_Site_Adr.Site_ID = Site.Site_ID
                                        AND Site.Site_ID = Infrastructure.Site_ID
                                        AND Infrastructure.Infrastructure_ID = Amenagement.Infrastructure_ID
                                        AND Amenagement.Amenagement_ID = Amenagement_sportif.Amenagement_sportif_ID
                                        AND Amenagement_sportif.Amenagement_sportif_ID = REL_Ame_spo_D_PRATIQUEE.Amenagement_sportif_ID
                                        AND REL_Ame_spo_D_PRATIQUEE.Discipline_ID = Discipline.Discipline_ID
                                        AND Discipline.Denomination = 'golf'
spatialColumn=shape
renderStyleName=POINT
labelColumn=
labelStyleName=
renderStyleDef=null
labelStyleDef=null
localThem=null
Tue Nov 22 15:40:31 CET 2005 FINEST [oracle.sdovis.SRS] *** isGeodetic=false, unit=null
Tue Nov 22 15:40:31 CET 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-8
Tue Nov 22 15:40:31 CET 2005 DEBUG [oracle.sdovis.theme.wmsmtp] Added to URL. Version = 1.1.1 SRS = EPSG:31370 FORMAT = image/jpeg BGCOLOR = #FFFFFF
Tue Nov 22 15:40:31 CET 2005 DEBUG [oracle.sdovis.theme.wmsmtp] No VendorSpecificParameters defined
Tue Nov 22 15:40:31 CET 2005 FINEST [oracle.sdovis.theme.wmsmtp] WMS map url: http://carto4.wallonie.be/WMS/com.esri.wms.Esrimap/PPNC?VERSION=1.1.1&REQUEST=GETMAP&SRS=EPSG:31370&BBOX=-2045.4545454545296,25000.0,307045.45454545453,225000.0&WIDTH=850&HEIGHT=550&FORMAT=image/jpeg&BGCOLOR=#FFFFFF&TRANSPARENT=true&LAYERS=1,2,3,4,5,6,PPNC+Zone7&EXCEPTIONS=application/vnd.ogc.se_inimage
Tue Nov 22 15:40:31 CET 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-9
Tue Nov 22 15:40:31 CET 2005 INFO [oracle.sdovis.SRS] loadding SRS information from MDSYS.cs_srs (srid=327680).
Tue Nov 22 15:40:31 CET 2005 DEBUG [oracle.sdovis.SRS] Registering srs 327680, isGeodetic=false, unit=METER
Tue Nov 22 15:40:31 CET 2005 DEBUG [oracle.sdovis.theme.DGTP] [Master scale] 34909.090909090904 [Theme scale factor] 1.0
Tue Nov 22 15:40:31 CET 2005 FINEST [oracle.sdovis.theme.DGTP] [DynGeomTheme] rewritten query: SELECT * FROM ( SELECT shape
                                        FROM Adresse, REL_Site_Adr, Site, Infrastructure, Amenagement, Amenagement_sportif, REL_Ame_spo_D_PRATIQUEE, Discipline
                                        WHERE Adresse.Adresse_ID = REL_Site_Adr.Adresse_ID
                                        AND REL_Site_Adr.Site_ID = Site.Site_ID
                                        AND Site.Site_ID = Infrastructure.Site_ID
                                        AND Infrastructure.Infrastructure_ID = Amenagement.Infrastructure_ID
                                        AND Amenagement.Amenagement_ID = Amenagement_sportif.Amenagement_sportif_ID
                                        AND Amenagement_sportif.Amenagement_sportif_ID = REL_Ame_spo_D_PRATIQUEE.Amenagement_sportif_ID
                                        AND REL_Ame_spo_D_PRATIQUEE.Discipline_ID = Discipline.Discipline_ID
                                        AND Discipline.Denomination = 'golf' ) WHERE MDSYS.SDO_FILTER(shape, MDSYS.SDO_GEOMETRY(2003, 327680, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(-2045.4545454545296,25000.0,307045.45454545453,225000.0)), 'querytype=WINDOW') = 'TRUE'
Tue Nov 22 15:40:32 CET 2005 ERROR [oracle.sdovis.theme.wmsmtp] cannot load the wms map image
Tue Nov 22 15:40:33 CET 2005 DEBUG [oracle.sdovis.theme.DGTP] Retrieving geometries...
Tue Nov 22 15:40:33 CET 2005 DEBUG [oracle.sdovis.theme.DGTP] Read all geometries.
Tue Nov 22 15:40:33 CET 2005 DEBUG [oracle.sdovis.theme.DGTP] [QUERY] Time spent loading 55 geometries:1813ms
Tue Nov 22 15:40:33 CET 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 1843ms.
Tue Nov 22 15:40:33 CET 2005 FINEST [oracle.sdovis.RE] xfm: 0.00275 0.0 0.0 -0.00275 5.625000000000012 618.75
Tue Nov 22 15:40:33 CET 2005 DEBUG [oracle.sdovis.VectorRenderer] time to render theme WMS_PPNC with 1 styled features: 0ms
Tue Nov 22 15:40:33 CET 2005 DEBUG [oracle.sdovis.VectorRenderer] time to render theme QUERY with 55 styled features: 110ms
Tue Nov 22 15:40:33 CET 2005 DEBUG [oracle.sdovis.VectorRenderer] time to label theme QUERY with 55 styled features: 0ms
Tue Nov 22 15:40:34 CET 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on rendering: 735ms
Tue Nov 22 15:40:35 CET 2005 FINEST [oracle.sdovis.util.GIFMaker] Time spent on quantitizing map image:1047ms
Tue Nov 22 15:40:35 CET 2005 FINEST [oracle.sdovis.util.GIFMaker] Time spent on generating GIF image:390ms
Tue Nov 22 15:40:35 CET 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] Timestamp on grabing pixels: 1132670435562
Tue Nov 22 15:40:35 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
Tue Nov 22 15:40:35 CET 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 3844ms
Tue Nov 22 15:40:35 CET 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 2641ms
Tue Nov 22 15:40:35 CET 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 1484ms
Tue Nov 22 15:40:35 CET 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 7969ms
Tue Nov 22 15:47:34 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperConfig] destroying MapperConfig: connection manager, mapper pool and janitor thread.
Tue Nov 22 15:47:34 CET 2005 WARN [oracle.lbs.mapserver.core.ConnectionManager] closing all connection caches and their pooled connections.
Tue Nov 22 15:47:34 CET 2005 WARN [oracle.lbs.mapserver.core.MapperPool] destroying ALL mapmaker instances.
Tue Nov 22 15:47:34 CET 2005 INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
Tue Nov 22 15:47:34 CET 2005 INFO [oracle.sdovis.CacheMgr2] Invalidated subregion sdovis_subreg_damien_jdbc:oracle:thin:@193.190.25.35:1521:INFRA
Tue Nov 22 15:47:34 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] Oracle connection cache for datasource INFRA_map_data_source is closed
Tue Nov 22 15:47:34 CET 2005 INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
Tue Nov 22 15:47:34 CET 2005 INFO [oracle.sdovis.CacheMgr2] Invalidated subregion sdovis_subreg_damien_jdbc:oracle:thin:@193.190.25.35:1521:INFRA
Tue Nov 22 15:47:34 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] Oracle connection cache for datasource INFRA_map_data_source is closed
Tue Nov 22 15:47:34 CET 2005 INFO [oracle.sdovis.DBMapMaker] clearing internal theme list and cache
Tue Nov 22 15:47:34 CET 2005 INFO [oracle.sdovis.CacheMgr2] Invalidated subregion sdovis_subreg_damien_jdbc:oracle:thin:@193.190.25.35:1521:INFRA
Tue Nov 22 15:47:34 CET 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] Oracle connection cache for datasource INFRA_map_data_source is closed
Tue Nov 22 15:47:34 CET 2005 ERROR [oracle.lbs.mapserver.oms] !!! Oracle MapViewer destroyed. !!!
-----------------------------------------------------------------------------------------------------------------------

Similar Messages

  • MapViewer - addWMSMapTheme

    I am using MapViewer within a java class for my application. The map worked just fine so I attempted to add a WMS layer to it by using the addWMSMapTheme:
    mv.addWMSMapTheme("TopoMaps", "http://terraservice.net/ogcmap.ashx",new String[]{"DRG"},null,null);
    This works locally and the DRG Layer correctly displays over my base map. When I go to deploy my application to the server I load the map and get to the mv.addWMSMapTheme line and the code just stops. There are no errors being generated and I am unsure of what else to check that I could be doing wrong. Any guidance or help would be greatly appreciated especially since it works correctly locally.

    I don't think there is a separate proxy for the server.
    We are able to send a sample map request through XML with the samples that were provided with MapViewer. This approach correctly let us add in the layer. It just seems to be an issue with I use the addWMSMapTheme command.
    Any other thoughts of what I may be doing incorrectly here?

  • MapViewer problem with addWMSMapTheme

    I have 2 problems using this Java API function:
    - parameter isBackgroundTheme does not seem to be used
    WMS themes are always rendered before other JDBC themes added with addJDBCTheme. In other words, WMS themes are always below other themes.
    - parameter transparent doesn't function
    Value "true" does not generate a transparent WMS layer.
    This is my call:
    mv.addWMSMapTheme(strThemeName, "http://devcgpc12:8889/mapviewer/wms", "false", "1.1.1", strLayerNames, "SDO:90112", "image/png", "true", "0xffffff", "application/vnd.ogc.se_inimage", vsp);

    When I change to format to ïmage/png8" it works. The generated png of the WMS theme is transparent in that case.
    But the MapViewer documentation says:
    D.2.1.15 TRANSPARENT Parameter
    TRANSPARENT=TRUE (for a transparent image) is supported for PNG images, that is,
    with FORMAT=image/png, or FORMAT=image/png8 for indexed (8-bit) PNG format.
    MapViewer does not support transparent GIF (GIF89) images.

  • AddWMSMapTheme()-- Please Help

    Hi, I am testing on add WMS map theme: but always show: an image of "Failure Accessing WMS theme wms_theme.
    My code is:
    <%
    String[] layers={"DBM_7H_MIL_POLITICAL_POLY_BC"};
    String[] styles={"L.STATE BOUNDARY"};
    object[] vsp = new Object[]{ new String[]{"DATASOURCE", "mvdemo"},new String[]{antialiasting", "true"}};
    mapviewer.addWMSMapTheme{
    "wms_theme",
    "http://openmaps.gov.bc.ca/mapserver/base",
    "false",
    "1.1.1",
    layers,
    styles,
    "EPSG:42102", // i don't know this one wrong or not: I want it to be: BC alber
    "image/png",
    "true",
    "oxffffff",
    "application/vnd.ogc.se_inimage",
    vsp);
    %>
    TIA

    if you are behind a firewall, you may need to set the web proxy in mapviewer's config file so that it can actually reach the public WMS server.

  • OracleAS MapViewer Bean

    Hello,
    I'm using the OracleAS MapViewer Bean in my JSP application. As said in the use guide, this Bean is used for all maps created during the current session. But for me, it's a problem because when I close a first map (with addPointFeature, addWMSMapTheme and addJDBCTheme functions) and want to create a second one (with the same functions but with another data), information of the firsts is always there.
    Does anyone know how to put the scope of the Bean to page and not still to session?
    (As in the tag
    <jsp:usebean
    id="BeanName"
    class="com.XXX.class"
    scope="page">
    </jsp:usebean>
    Thanks in advance.

    The API has methods (such as deleteAllThemes, removeAllPointFeatures) to clean your current request. You can use these methods before creating the second map.

  • Ignore this: Problems adding a WMS Map

    I've recently run into an issue of adding a layer from a subscription imaging service. I use the addWMSMapTheme() method that is provided by mapviewer. I have turned on the logging to the finest detail so I can see that the MapViewer is sonstructing a request that is lacking the &STYLES= parameter because we are not specifying a parameter for this layer. The issue happens because the service that I am using apparently requires the &STYLES= to be there regardless of whether there is an actual style being specified or not.
    Has anyone else run into this being an issue? Is there a work around I should be looking around?
    We are using MapViewer 10.1.3.1
    Added a VSP with Styles, "" and that did the trick
    Edited by: user598520 on Dec 11, 2008 1:36 PM

    Hello! I can't answer the invalid argument question but try this with disk utility...with disk utility open arrange the window so you can see the icon for the hard drive...then try erasing it...watch as you click erase and see if the message box doesn't come up again that it can't unmount the drive...at this point usually the drive did actually unmount and clicking again on erase will erase the drive. Tom

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

  • 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

Maybe you are looking for

  • Is there a way to get firefox to warn me when exiting with multiple windows open?

    When I click File > Exit in the menu, I want firefox to warn me if I have multiple windows open. I don't want it to warn me about multiple tabs though. Is there a way to get it to do that? I would prefer to just hit the red X in the top right corner,

  • Flash Video - Help!

    Hi Everyone- I just finished up a website - on the homepage, there is a video in flash which I created using the >import flash feature from the file menu.... My problem is that it has a "black colored" screen and it stays that way until a user presse

  • How do i create a copy box?

    Hi, i'm sure some of you may be scratching your heads wondering what the heck a copy box is...well since I don't know the actual name that's what i'll call it. A copy box is a box on a website from which you can copy a html code from. Perfect example

  • How can I calibrate the colors in my 3g iphone

    I noticed that when I watch the videos in my iphone 3g the colors are saturaded, who knows how to calibrate the colors?

  • Rman restore

    Oracle 9i Windows server 2003 Hi all, I have a 9.2.06 database in archivelog mode. How do i specify where RMAN should get the backup sets, in the script, when they are not in the default location. I coped over the backupsets, archivelogs to a new ser