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

Similar Messages

  • 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

  • Mapviewer performance problem using image format FORMAT_RAW_COMPRESSED

    I am using the MapViewer.FORMAT_RAW_COMPRESSED map image in my (java) map application because some features must be clickable and as far as I can work out, this is the only way to achieve this in a Java client. On my local system, running the map server in an oc4j container, this works about as fast as using FORMAT_GIF_URL and loading the image from this url. There also doesn't seem to be much difference in memory and cpu usage.
    When I direct the request to a map server running on a remote Application Server the rendering time grows exponentially. The same maprequest using FORMAT_GIF_URL runs as fast as it does in my local OC4J container. The problem seems to be in "packing time" in RealWorker:
    Remote AS:
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 99ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 5560ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 142605ms
    Thu Jun 30 13:59:34 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 148264ms
    Local OC4J:
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 540ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 2490ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 120ms
    Thu Jun 30 15:34:42 CEST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 3150
    The test server is smaller than my local system and more applications are running on the AS, generating the map takes all the available memory and cpu, but the difference between the time it takes generating a GIF image and generating a Java image of almost a factor 50 is puzzling.
    What could cause this enormous difference? Any idea's about how we can analyze or solve this? What could RealWorker be doing in this packing time? Any hints would be greatly appreciated.
    Many thanks,
    Ida

    Thanks for the replies!
    1. Which AS version are you using? -> 10.1.2
    2. Just as a test, if you restart AS (if possible) do you still get the same values? -> yes, we restarted the AS and the results are the same.
    The server is indeed running low in memory. It is a 512MB machine, just big enough to run the AS. The production server will have some more, but not very much. Could I estimate how much extra memory it will need to keep a good performance when generating maps with live features? And maybe I'm wrong, but shouldn't the extra load for the java image only be on the client, since that's where the image is made? On the server it's just the image data, isn't it?
    I tried removing the basemap, but that reduces the loading time just with a few seconds. The live themes are jdbc themes and result in only some 20 to 30 geofeatures. Removing them from the request so only an empty image with a title is retrieved still takes about 117 seconds. Reducing the device size does reduce the loading time, so it does seem to have something to do with the amount of pixels in the image space, not with the data. Could it be that in the "packing" of the image something happens that takes a lot of memory, related to the amount of pixels?
    In my situation it would be handy if the live features were also returned when the image format is not set to FORMAT_RAW_COMPRESSED, it is also possible to draw shapes onto an existing image and this would bypass the memory problems.
    Thanks for any further help.
    Ida

  • Mapviewer Admin Problem

    I am attempting to have two mapviewer applications deployed inside two different oc4j instances on a server for development and testing. I am having trouble administering the second mapviewer instance as the all the pages have the "mapviewer" application name hard coded in them. Does any one know if there is a version of the mapviewer.ear without this problem?

    While you can have as many mapviewer applications deployed on as many oc4j instances as you like, you only need one mapviewer instance itself. Your application should just need the url to the mapviewer server. It does not need to (and should not) be deployed inside the mapviewer ear directory.

  • Mapviewer OC4J problem

    I installed OC4J, Mapviewer and the mapviewer demo
    Now some Mapviewer demos and examles work, I can connect to the database, but I cannot start any OC4J-jsp or Mapviewer-jsp demo.
    Selecting a jsp demo (i.e. •     jview.jsp A simple no hassle spatial data viewer) in the internet explorer I get the message:
    The page cannot be displayed
    There is a problem with the page you are trying to reach and it cannot be displayed.
    The OC4J process reports the following error:
    04/09/22 11:50:46 IOException in compile: CreateProcess: javac.exe -J-Xmx1024m -
    classpath oc4j.jar;D:\oc4j\j2ee\home\lib/ejb.jar;D:\oc4j\j2ee\home\lib/servlet.j
    ar;D:\oc4j\j2ee\home\lib/ojsp.jar;D:\oc4j\j2ee\home\lib/jndi.jar;D:\oc4j\j2ee\ho
    me\lib/jdbc.jar;D:\oc4j\j2ee\home\iiop.jar;D:\oc4j\j2ee\home\iiop_gen_bin.jar;D:
    \oc4j\j2ee\home\lib/jms.jar;D:\oc4j\j2ee\home\lib/jta.jar;D:\oc4j\j2ee\home\lib/
    jmxri.jar;D:\oc4j\j2ee\home\lib/javax77.jar;D:\oc4j\j2ee\home\lib/javax88.jar;D:
    \oc4j\j2ee\home\../../opmn/lib/ons.jar;D:\oc4j\j2ee\home\../../opmn/lib/optic.ja
    r;D:\oc4j\j2ee\home\../../lib/dms.jar;D:\oc4j\j2ee\home\../../dms/lib/dms.jar;D:
    \oc4j\j2ee\home\lib/connector.jar;D:\oc4j\j2ee\home\lib/cos.jar;D:\oc4j\j2ee\hom
    e\lib/jsse.jar;D:\oc4j\j2ee\home\../../oracle/lib/jsse.jar;D:\oc4j\j2ee\home\lib
    /jnet.jar;D:\oc4j\j2ee\home\lib/jcert.jar;D:\oc4j\j2ee\home\lib/activation.jar;D
    :\oc4j\j2ee\home\lib/mail.jar;D:\oc4j\j2ee\home\../../javavm/lib/jasper.zip;D:\o
    c4j\j2ee\home\../../lib/xmlparserv2.jar;D:\oc4j\j2ee\home\../../oracle/lib/xmlpa
    rserv2.jar;D:\oc4j\j2ee\ho?
    Has anybody an idea what is wrong?
    The operating system is Windows 2000, German version.
    The OC4J is the latest version (dowloaded last week),
    the database is Oracle 10g, 10.1.0.2 enterprise edition.

    this is definately caused by using the wrong java program. Please check the following:
    1. Are you using Java 1.4 or higher? to check, do 'java -version' from command line.
    2. Are you using the java executable located directly under a J2SDK's bin folder? If you are using any jre (Java Runtime Environment) java executable, OC4J wont be able to run the JSP pages.
    Also dont use the java that comes with your oracle database, as that is also a JRE only program. Instead, download the full j2sdk 1.4.2 from Sun.
    LJ

  • Mapviewer identify problem

    Hallo,
    We have just shifted to 9i. In 8.1.7 I was able to use identify method and show data of the houseno selected by using the method
    info = mv.identify(dataSrc, "HOUSENO", colsToSelect, "GEOLOC", 8220, x + 5,y + 5 , x-5, y-5, true);
    In 9i, after I change the pre9i parameter of the identify method to false,
    I am getting the following error. Any idea if I have to change any setting or give rights to any package or something..
    [oracle.sdovis.DBMapMaker, INFO] **** time spent on loading features: 0ms.
    [oracle.sdovis.DBMapMaker, INFO] **** time spent on rendering: 16ms
    [oracle.lbs.mapserver.core.InfoWorker, ERROR] java.sql.SQLException: ORA-29902:
    Fehler bei der Ausf³hrung von Routine ODCIIndexStart()
    ORA-01476: Divisor ist Null
    ORA-06512: in "MDSYS.SDO_CS", Zeile 222
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:187)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:241)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1477)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:
    677)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.jav
    a:2346)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStateme
    nt.java:2635)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:
    753)
    at oracle.lbs.mapserver.core.InfoWorker.processDirectInfoRequest(InfoWor
    ker.java:188)
    at oracle.lbs.mapserver.core.InfoWorker.process(InfoWorker.java:124)
    at oracle.lbs.mapserver.oms.processInfoRequest(oms.java:1366)
    at oracle.lbs.mapserver.oms.doPost(oms.java:267)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:721)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:306)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:767)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:259)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:106)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExec
    utor.java:803)
    at java.lang.Thread.run(Unknown Source)

    This seems like it is a coordinate system problem.
    Are you specifying the query window in a different coordinate system then the layer?
    It might be helpful to turn tracing on through mapviewer to see what query is being sent to the database (or turn on tracing in the database, using sql_trace=true).

  • Mapviewer demo Problem

    I have seen a number of posts regarding this issue, but none seem to have solved it. I have installed OC4J, I have installed and imported the mapviewer demo data. I get all of the demos to come up but all I get is a blue screen with the words "Oracle Map viewer Demo" I installed the data with the mvdemo user not as scott/tiger Does that matter? Not sure what else it could be as I am getting no errors anywhere.
    Thanks in advance!
    -Scott

    Good Morning LJ,
    I have run that, results are below. I get the same problem, just a blus screen then when I click on the screen I get 500 Internal Server Errors.
    JServer Release 9.2.0.1.0 - Production
    SQL> @mvdemo.sql
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    1 row created.
    Commit complete.
    counties a, terr_counties b
    ERROR at line 6:
    ORA-00942: table or view does not exist
    1 row created.
    Commit complete.
    insert into user_sdo_styles select * from styles
    ERROR at line 1:
    ORA-00942: table or view does not exist
    insert into user_sdo_themes select * from themes
    ERROR at line 1:
    ORA-00942: table or view does not exist
    insert into user_sdo_maps select * from maps
    ERROR at line 1:
    ORA-00942: table or view does not exist
    Commit complete.
    create index STATES_SDX on STATES(GEOM)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    create index COUNTIES_SDX on COUNTIES(GEOM)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    create index INTERSTATES_SDX on INTERSTATES(GEOM)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    create index CITIES_SDX on CITIES(LOCATION)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    create index TERRITORIES_SDX on TERRITORIES(GEOMETRY)
    ERROR at line 1:
    ORA-00942: table or view does not exist
    SQL>
    500 Internal Server Error
    java.lang.NullPointerException     at oracle.lbs.mapclient.MapViewer.pan(MapViewer.java:3726)     at demo.jview._jspService(_jview.java:152)     [SRC:/demo/jview.jsp:322]     at com.orionserver[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)     at java.lang.Thread.run(Thread.java:534)

  • Mapviewer language problem

    Hi,all
    I'm a chinese mapviewer user. I used to deploy my mapviewer application on simplified chinese windows platform. This time,I must deloy my application to hp-ux platform with oracle ias10g(9.0.4) installed. The problem I encountered
    was that the lable which should be chinese word is substituted by some small squares. I tried to modify locale to zh_CN.hp15CN and restart ias ,but doesnt work.
    Sorry for my poor english. could someone give me some suggestion?

    How did you verify those logical fonts (serif, dialog) are mapped to physical fonts that contain chinese characters? Even if they are setup properly for the X11, Java JVM may not be picking up the same mapping.
    What you can try is find an actual physical font that is installed and accessible by Java, and then use that physical font name in the Text style of MapViewer.

  • MapViewer setBox() problem.

    I can generate a map without setting the extents but if I include a call to mv.setBox() I get a blank blue image. In MapBuilder I can zoom in without any problems. No error messages are generated. The same thing happens if I use setCenterAndSize(). It's just all or nothing.
    I'm using predefined Themes against MaterializedViews instead of plain tables. However, if I use dynamic Themes against the original tables then it works, but I'm trying to avoid that due to performance problems.
    I'm using :
    OC4J 10.1.3.0.0
    MapViewer Ver11_B060227 (EA 1)
    MapBuilder Release 10.1.3.1
    Any ideas?
    Regards,
    Lewis.

    Problem resolved.
    The logs said that I had an SRID mismatch which didn't seem to make much sense so I decided to put my Themes and Materialized Views in the same db schema and hey presto, problem solved.
    Regards,
    Lew.

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

  • Mapviewer update problem

    Hello,
    in my application I am creating polygons on the fly and storing them into table on which a MV theme is based. after that my polygons are not rendered correctly in my app nor in map builder - but if I restart map builder or application they are ok - so what additional task to do after storing polygons into table - some theme reloading or what?
    thanks,
    Branislav

    Hi Joao,
    I am usind JDBC:
    1. delete table:
    public void prepare() {
              try {
                   PreparedStatement ps1 = conn.prepareStatement("DELETE polygons");
                   ps1.execute();
                   ps1.close();
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    2. insert into table:
    private void storePolys(List polys) {
              try {
                   boolean isAutoCommit = conn.getAutoCommit();
                   conn.setAutoCommit(false);
                   PreparedStatement ps = conn
                             .prepareStatement("INSERT INTO polygons (geometry, cena2) values (?,?)");
                   for (Iterator iter = polys.iterator(); iter.hasNext();) {
                        Map map = (Map) iter.next();
                        List poly = (List) map.get("poly");
                        Number price = (Number) map.get("price");
                        JGeometry j_geom = JGeometry.createLinearPolygon(
                                  polyAsDoubleArray(poly), 2, 2065);
                        STRUCT polygon = JGeometry.store(j_geom, conn);
                        ps.setObject(1, polygon);
                        ps.setBigDecimal(2, (BigDecimal) price);
                        ps.execute();
                   ps.close();
                   conn.commit();
                   conn.setAutoCommit(isAutoCommit);
              } catch (SQLException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
    and how it behaves you can see in this flash demo:
    http://www.freewebalbum.com/demo2/Untitled2/Untitled2.html
    thanks,
    Branislav

  • 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

  • Problem with rendering GeoRaster in MapViewer...

    Hi,
    I am using the MapBuilder (10.1.3.1), and I import a georaster for an Oracle Spatial 10g Database. I created a GeoRaster Theme and a Base Map including GeoRaster Theme created. In preview mode of Map Builder, the GeoRaster is displayed correctly. In MapViewer (Ver 10131_B061023) this GeoRaster does not appear... A cyan rectangle appears, apparently with the size of GeoRaster...
    I have copied the Java Advanced Imaging (JAI) library files (jai_core.jar and jai_codec.jar) to the OracleAS MapViewer library path (\mapviewer\web\WEB-INF\lib), and restart mapviewer...
    Does anyone have any idea of what may be happening wrong?
    Thanks

    There may be a problem with the map request sent to MapViewer. Please post the map request and the log information (you can get from the log file - set the log level to "finest").

  • MapViewer data source problem in the morning

    Hi all,
    I have the Oracle Application server 10g and Oracle database 10g installed on 2 different computers. On the application server I have installed MapViewer the last version.
    I have defined a datasource in the configuration file and that works perfect.
    My application uses mapviewer through java and displays the generated image in an jsp. The same working as the demos though.
    Each night there is a backup of the database made on the other computer.
    The MapViewer/data source remains open through the night. When I come to the office in the morning, and i try to access my webpage with the mapviewer image, I get an
    500 Internal Server Error, java.lang.NullPointerException...
    I check in the admin page of the map viewer the following:
    <list_data_sources /> - The datasource is still defined
    <data_source_exists data_source="blabla"/> - The datasource exists
    If i try to <list_predefined_themes data_source="blabla" /> I get again an error. It seems that the connection with the database is not working.
    If I <redefine_data_source ..> or <restart/> mapviewer everything starts to work again without problems.
    I have attached further some erros I have in the log file, maybe it will help you to help me ;-)
    Regards,
    Adrian
    Thu Feb 02 08:10:28 CET 2006 ERROR [oracle.sdovis.theme.pgtp] *** Exception while querying theme: LEVEL_1
    Thu Feb 02 08:10:28 CET 2006 ERROR [oracle.sdovis.theme.pgtp] java.sql.SQLException: I/O-uitzondering: Connection reset by peer: socket write error
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
    Thu Feb 02 08:10:28 CET 2006 ERROR [oracle.sdovis.DBMapMaker] Message:Exception while querying theme: LEVEL_1
    Description: Nested exception is:
    java.sql.SQLException: I/O-uitzondering: Connection reset by peer: socket write error
    java.sql.SQLException: I/O-uitzondering: Connection reset by peer: socket write error
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:286)
    Thu Feb 02 08:10:28 CET 2006 WARN [oracle.sdovis.MapMaker] null MBR resulted from buildDataMBR.
    Thu Feb 02 08:10:28 CET 2006 ERROR [oracle.lbs.mapserver.core.RealWorker] Message:[SDOVIS] No spatial data to render!
    Description:
         at oracle.sdovis.DBMapMaker.renderEm(DBMapMaker.java:1304)
         at oracle.sdovis.MapMaker.renderMap(MapMaker.java:1399)
    Thu Feb 02 08:10:28 CET 2006 ERROR [oracle.lbs.mapserver.core.RealWorker] Message:null
    Thu Feb 02 08:10:28 CET 2006
    Severity: 0
    Description:
    Message:[SDOVIS] No spatial data to render!
    Description:
         at oracle.sdovis.DBMapMaker.renderEm(DBMapMaker.java:1304)
         at oracle.sdovis.MapMaker.renderMap(MapMaker.java:1399)
    Thu Feb 02 08:12:45 CET 2006 ERROR [oracle.lbs.mapserver.core.MapperConfig] java.sql.SQLException: I/O-uitzondering: Connection reset by peer: socket write error
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:137)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:174)

    Hi,
    please post how you did define the data source in the configuration file.
    Thanks.

Maybe you are looking for