MapViewer 9.0.4 Beta - queryWithinRectangle

Hi,
I am trying to use one of the MapViewer Beans' functions.
So far so good.
But as soon as I tried queryWithinRectangle I got an error message of java.sql.SQLException: ORA-00907: missing right parenthesis.
I turned the log level to finest to see the error message in detail. Here is a part of the log file :
[oracle.lbs.mapserver.core.InfoWorker, Tue Aug 12 14:20:45 EST 2003, DEBUG] [query_within_rectangle] SELECT ROWID FROM AUS_CADL WHERE
sdo_relate(GEOM,
mdsys.sdo_geometry(2003, 8307,
null, mdsys.sdo_elem_info_array(1,1003,3),
mdsys.sdo_ordinate_array(151.1996999542202,-33.825718463123145,151.19975416716866,-33.8257726760716))
'mask=INSIDE+COVEREDBY querytype=WINDOW') = 'TRUE'
I ran the same query on SQL*Plus and got the same error message :
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
SQL> SELECT * FROM AUS_CADL WHERE
2 sdo_relate(GEOM,
3 mdsys.sdo_geometry(2003, 8307, null, mdsys.sdo_elem_info_array(1,1003,3),mdsys.sdo_ordinate_a
rray(151.1996999542202,-33.825718463123145,151.19975416716866,-33.8257726760716) )
4 'mask=INSIDE+COVEREDBY querytype=WINDOW') = 'TRUE'
5 ;
'mask=INSIDE+COVEREDBY querytype=WINDOW') = 'TRUE'
ERROR at line 4:
ORA-00907: missing right parenthesis
As you can see first of all it is missing a comma before
'mask...So I tried to run the same query with a comma on SQL*PLus only to see another error as :
SQL> SELECT * FROM AUS_CADL WHERE
2 sdo_relate(GEOM,
3 mdsys.sdo_geometry(2003, 8307, null,
4 mdsys.sdo_elem_info_array(1,1003,3),
5 mdsys.sdo_ordinate_array(151.1996999542202,-33.825718463123145,151.19975416716866,-33.8257726
760716)
6 ) ,
7 'mask=INSIDE+COVEREDBY querytype=WINDOW'
8 ) = 'TRUE';
SELECT * FROM AUS_CADL WHERE
ERROR at line 1:
ORA-29902: error in executing ODCIIndexStart() routine
ORA-13373: Element of type Extent is not supported for Geodetic data
ORA-06512: at "MDSYS.SDO_INDEX_METHOD_9I", line 368
ORA-06512: at line 1
Then tried using viewport_transform with success as :
SQL> SELECT * FROM AUS_CADL WHERE
2 sdo_relate(GEOM,
3 sdo_cs.viewport_transform(
4 mdsys.sdo_geometry(2003, 0, null, mdsys.sdo_elem_info_array(1,1003,3), mdsys.sdo_ordinate_ar
ray(151.1996999542202,-33.825718463123145,151.19975416716866,-33.8257726760716) )
5 ,8307),
6 'mask=INSIDE+COVEREDBY querytype=WINDOW'
7 ) = 'TRUE';
no rows selected
So a couple of questions :
1- Is a comma really missing in this function?
2- Is this function not supported for Geodetic data ?
3- Would it work at all on a Projected data ?
4- Any plans to support Geodetic data by using viewport_transform ?
Cheers,
Baris Guner
[email protected]

Baris,
This bug was fixed a while back. A new preview version of MapViewer containing the fix as well as other enhencements will be available on OTN soon. So stay tunned and check back on this forum often.
thanks,
LJ

Similar Messages

  • Mapviewer new version or beta - when?

    hi,
    when will the next version of mapviewer be released? is it possible to download a beta version of mapviewer now? what will be the new features of this release?
    greetings
    thomas

    Hi Thomas,
    Please see:
    Latest MapViewer 10.1.2 Preview kit available

  • Using MapViewer from PL/SQL vs Java

    Hi group!
    The MapViewer User's Guide has this to say about using MapViewer from PL/SQL:
    "The usage model for the SDO_MVCLIENT package is almost identical to that of
    MapViewer JavaBean-based API" etc etc .. "For usage and reference information about specific functions or procedures, see the description of the associated JavaBean-Based API. methods and interfaces in Chapter 4"
    If I don't misunderstand the basic concept, in a Java Web App (using the MapViewer Bean) you create a MapViewer object for each HTTP-user-session, like so:
    MapViewer mv = new MapViewer("http://my_corp.com:8888/mapviewer/omserver");
    ... which you would then store in the user's session object, so that the MapViewer Bean conveniently holds the map's state on the user's behalf.
    To do the equivalent in PL/SQL, the User's Guide suggests:
    "connect scott/tiger
    call sdo_mvclient.createmapviewerclient(
    'http://www.mycorp.com:8888/mapviewer/omserver') ;
    The preceding example creates, in the current session, a unique MapViewer client
    handle to the MapViewer service URL"
    Does "current session" refer to the HTTP-user-session? While I've used PL/SQL before, I've not used the PL/SQL Web Toolkit. Is the session handling implicit here (and invisible?) or should the sdo_mvclient be subsequently stored in the PL/SQL equivalent of a (J2EE) HttpSession object?
    YT

    Part of the answer will depend on how you plan to deploy the application. If you have a few, local clients you could go with the traditional client/server model. If you have a lot of clients and/or they are spread out over a relatively large area (like a campus setting), a web front-end will save you a lot of hassels down the road when it comes time to upgrade.
    Regardless of the the front end, I can tell you that I have been greatly impressed with the throughput you can get by moving most of the code to PL/SQL packages. A few years ago we reworked a VB/Oracle app by moving a lot of the code out of VB and into packages, leaving the client to essentially call procedures and format the output. We had more than a 3x performance increase on the same hardware and our network utilization decreased noticably.
    I am now in the process of replacing the client code with Java servlets/JSP, primarily because of the maintenance hassles I mentioned earlier. There are some limitations with an HTML page but most of these have been cosmetic so far.
    We are still relying heavily on PL/SQL packages. The servlet code basically gets a request, calls a package to get the data, then hands the results to a JSP page. The JSP then formats the output and sends it to the client. We are little more than halfway through the re-write, but it appears performance will increase again. Not as noticably as before, but I will take what I can get. As you have seen, once something is rolled out it always ends up getting used more than you anticipated. Better to over-engineer now than have to patch it once it is live.
    HTH

  • 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

  • How to identify a point on mapview like Esri

    Hi
    I developed an application depend on Oracle Map JS api v1, my application have multilayer, when I click on the map view all FOIs attributes should posted on a div; i.e: I need to identify a point like esri do, can you help?
    kind Regards,

    You're probably better off asking this question in the MapViewer forum (I for one have no idea - I mainly use OpenLayers).
    Cheers,
    Stefan

  • Hardware Sizing for Oracle Application Server and MapViewer

    Hi all,
    I need to develop an application using Oracle Application Server 10g and MapViewer. The applicaction will, basically, do thematic maps based on a search criteria. The estimative is that we will have 25 users simultaneously using it.
    I´d like to have an idea about the hardware to support it.
    Do you know where I can get this information?
    Any documentation can help.
    Regards,
    Luis Augusto

    Hi Luis,
    It may depend on your database size, but I think at least you need to meet the minimum requirements for the Application Server. You can find additional documentation for the AS at http://www.oracle.com/technology/products/ias/index.html.
    However I would suggest some extra memory, and if possible the better CPU that you can get. MapViewer will render the spatial features on the server side, and depending on your database size and number of features returned from the queries, this extra memory will help.
    Joao

  • External Map Source Adapter - MapViewer

    <p>
    Hi
    I am developing an application using Oracle Maps of OracleMapViewer 10.1.3 using OC4J
    </p>
    <p>
    The objective of this exercise is to make use of a cache generated by a non-MapViewer solution. The cache is stored at an external location and can be accessed by sending multiple HTTP requests. For any given extent, multiple HTTP requests needs to be sent to access the individual tiles covering the given area.
    http://servername/mapname/cache?level=0&row=11&column=1
    http://servername/mapname/cache?level=0&row=11&column=2
    http://servername/mapname/cache?level=0&row=12column=1
    http://servername/mapname/cache?level=0&row=12&column=2
    The logic to identify the tiles is also available. The problem is that the getMapTileRequest(...) returns only one string and this when passed would return only one image tile. (Correct me if my understanding is wrong)
    public abstract class MapSourceAdapter
    <strong>public abstract String getMapTileRequest(TileDefinition tile);</strong>
    public byte[] getTileImageBytes(TileDefinition tile) ;
    public Properties getProperties() ;
    One option is to have a servlet at the other end that would accept the extent and zoom level and then identify the tiles. But still it is not clear as whether MapViewer will accept one response or multiple responses from the external server.
    Need some guidance in this aspect
    Regards
    Govindarajan
    </p>

    1. The mapviewer tile servlet can response to multiple tile requests simultaneously. It makes multiple calls to the getMapTileRequest method, each of which gets the URL for one tile. So if you can define the map tile layer(map cache instance) in such a way that its tiles have the same size as the external tiles, mapviewer should be able to handle the tile requests without problem. You also need to modify the XML tile layer(map cache instance) definition and add parameter "fetch_larger_tiles" to the root node and set its value to "false". Without this change, mapviewer will fetch map images that are several times larger than the actual tiles and cut them into tiles later on.
    2. With the latest patch, you can define a custom tile layer on the client side and fetch the tiles directly from the non-mapviewer tile server. Because this approach does not duplicate the tiles in mapviewer's tile cache, it is better than 1 if the non-mapviewer tile server can serve the tiles as fast as mapviewer. Demo #50 on the mapviewer tutorial page shows how to use custom tile layer.

  • Mapviewer/Mapbuilder versus other map serving products

    Mapviewer/Mapbuilder versus other map serving products
    Oracle Mapviewer is an attractive map serving option for organisations that have large data holdings in Oracle Spatial. Similarly, Mapbuilder is very useful for cartographic assembly of data to be delivered via Mapviewer.
    Are other map serving options or cartogarphic tools for web mapping worth considering?
    I'd appreciate peoples views/links on how Mapviewer and Mapbuilder compare with other map serving products?
    Thanks.

    I'd also be very interested to know if using MapViewer gives you better Oracle Spatial performance then with say MapServer (from UMN). Our company has a UMN MapServer setup and we're using some Oracle Spatial data to populate this as well and I see a lot of performance decrease when trying to use Oracle Spatial data. One nice thing about UMN MapServer is the fact that it's free and supports many type of GIS data. There are also quite a few application frameworks available for developing a client front-end. We use Chameleon currently.
    I would like to know what other people are using with Oracle Spatial.

  • Mapdef.jar  for mapviewer 10.1.2: where is it ?

    Good morning
    I need to have the file mapdef.jar for mapviewer version 10.1.2.
    I don't find it anywhere in the ORACLE site
    Thank for jour help
    Giuseppe AUTORE
    [email protected]

    Hi Giusepper,
    It is because Map Definition tool is not supported by Oracle anymore. They have produced new tool for managing metadata - MapBuilder, this tool have wider functionality and better user interface. Try to use it.
    Regards,
    Andrejus

  • Jdbc openProxyConnection and MapViewer (or any packaged EAR)

    Hi,
    I'm cross-posting this from the "Oracle Spatial" forum to here, as the question actually applies to any packaged EAR where we don't have access to the source code.
    Our requirement is to authenticate against an LDAP server, and then bring up MapViewer to access data on the Oracle DB. Once in the DB, we want to know (and record) who the real user is (i.e. charlie_brown), even though MapViewer connects via the data_source in mapViewerConfig.xml (i.e. gis_middletier).
    The additional complication is the use of connection pooling in the middle-tier, which uses a generic account upon which the connection is made.
    So... in a nutshell, is there a way to plug into MapViewer something like "conn.openProxyConnection" in the JDBC connection? If not, how are people passing in the authenticated user name through MapViewer generic datasource user, such that the authorizations are appropriate for the authenticated user (not the connection pool user and not the MapViewer data_source).
    TIA,
    Gary

    Hi, it is recommended that you deploy MapViewer to an OC4J instance external to JDeveloper. MapViewer is not a small application and it may become memory intensive depending on the complexity of your map layers, as such it is better running in its own J2EE container. The embedded OC4J should only be used to run your JSP/ADF pages under development/testing. Also, deploying MapViewer to the embedded OC4J does not in any way simplify development, it may actually complicate things as the embedded OC4J is constantly being started/stopped, unlike a standalone OC4J which once started stays up unaffected by your JDeveloper activities.
    thanks
    LJ

  • Ann: MapViewer 10g (9.0.4) Production available

    Dear OTN Users:
    We are pleased to announce the production version of Oracle Application Server 10g MapViewer now available for download from OTN. Please visit the new MapViewer home page for the downloads and other goodies at:
    http://otn.oracle.com/products/mapviewer
    There you will also find the following:
    - An all new must-see FAQ of MapViewer
    - The latest MapViewer User's Guide and supplements
    - All new JDeveloper Extensions for MapViewer
    - New sets of sample code
    Oracle Spatial and MapViewer team

    Hi,
    I have done that and tested some of my pages.
    I find the following problems:
    1)
    I use a predefined BucketStyleRange. When I retrieve the data the mapviewer says "cannot find a suitable style based on your values [3941.0].
    In the previous (beta) version this works fine.
    2)
    When I use a predefined BucketStyleCollection a style is rendered for my values that I did not declared.
    When I define the BucketStyleCollection in programmatically it works fine.
    I have also a question on this. Is there a way to declare a "other value" style in this Collection?
    Jurgen

  • How can Mapviewer display double-byte characters

    Hi,
    I am facing a problem using Mapviewer to display a map with a title containing double-byte characters e.g. chinese charaters. I think the problem takes place as map_Request producing the map image.
    My environment is :
    NT server 5.0(sp 3)
    Oracle 9.01
    J2EE
    IE 6.0

    are you using the mapclient.jsp demo file? there is a bug in that file that will lead to truncated map requests when the title is in chinese. it will be fixed in the next version of MapViewer (a beta version
    of which will be on OTN soon).
    Thanks,
    LJ

  • ASK:Mapviewer JSP demo not work in HTML DB

    Hi all, First I apologize if my thread is an old topic, but I need to know it...
    When I'm trying create a URL region...and I give an url like this...http://localhost:8888/mapviewer/demo/mapnavi.jsp?&centerx=106.88&centery=-6.94 and soon... I get the result like I need for the first time, but when I'm trying to submit some change (i.e. turn off one layer from base_map or zoom in the map) I get the error message from HTTP server like internal error or something (sory I forget to capture the error message)...
    How can I embed jsp page into HTML DB region without problem?
    Thanks for help!

    Hi Adhi,
    explaining the MapViewer API here would be a little bit too much... But there is a good documentation available under
    http://www.oracle.com/technology/products/mapviewer/mapviewer_doc_index.html
    I also think, questions regarding MapViewer itself are better placed in
    Spatial
    Reagard
    Stephan

  • Announcement:  9iAS MapViewer & Map Definition Tool

    Just to let everyone know that the first product release of
    the Oracle 9iAS MapViewer is now available for download at
    the following site:
    http://otn.oracle.com/software/products/spatial/content.html
    Important note:
    Included in the downloadable MapViewer kit is a Map
    Definition Tool that lets you visually create/manage
    enterprise wide mapping symbols and rules. This tool however
    is still in beta status. Please report all problems, bugs
    and suggestions regarding this tool here at the Oracle
    Spatial discussion forum.
    Thanks,
    Oracle MapViewer Development Team

    Hi Andrejus,
    there is a new tool coming (MapBuilder) that will allow users to create MapViewer metadata for all Spatial models. A preview version will be available on OTN (no dates yet). We'll let users know when it is available for download.
    Thanks.
    Joao

  • MAPVIEWER-06009: Error processing an FOI request

    Hi,
    Im facing the following exception when trying to apply color theme over the map. Can someone please answer my question.
    Fri Nov 13 15:32:34:052 CST 2009 | 1258147954052 | 8684 | null | null | null | null | INFO | oracle.sdovis.theme.PredGeomThemeProducer.loadFeaturesInWindow | [ SNI_NM_MM_VANTL_MSI_THEME ] sql exec time: 266ms, total time loading 194 features: 598ms.
    Fri Nov 13 15:32:34:974 CST 2009 | 1258147954974 | 227 | null | null | null | null | SEVERE | oracle.lbs.foi.FOIServlet.doPost | MAPVIEWER-06009: Error processing an FOI request.
    java.lang.NullPointerException
         at oracle.lbs.foi.ThemeRenderingThread.duplicateMultipleComponents(ThemeRenderingThread.java:1510)
         at oracle.lbs.foi.ThemeRenderingThread.render(ThemeRenderingThread.java:370)
         at oracle.lbs.foi.ThemeRenderingThread.run(ThemeRenderingThread.java:159)
    Thanks & Regards,
    Kiran Konjeti

    Hi Rema,
    You will be better off posting this query on the dedicated MapViewer forum:
    MapViewer
    Then you should look at providing more useful information in your question:
    - What version of MapViewer?
    - What version of Oracle?
    - Explain more background as to what you are trying to do
    - Turn the logging level in mapViewerConfig.xml up to FINEST as this will print the full SQL to the log file. Looking at this should help solve your problem - if not, then post the relevant bits of the log.
    You are getting error "ORA-13030:Invalid dimension for the SDO_GEOMETRY object"
    The standard explanation for this is:
    "There is a mismatch between the dimension in the SDO_GTYPE and dimension in the SDO_GEOM_METADATA for the SDO_GEOMETRY object."
    So if your data is 2D, make sure the SDOGEOM_METADATA says that too.
    (you should change your handle from 917206 to Rema)
    Regards,
    John

Maybe you are looking for

  • Vendor return through SD

    Hi to all!     I have configured vendor return through SD delivery and billing.I want to capture excise invoice also. But i cannot copy pricing elements like price, ED, Cess, SH cess etc.    How can i do this. Advance thanks.

  • Desktop screen on my Satellite C660-174 will not open correctly

    I'm a newbie here so my question may be obvious to some,,,,but not to me! My Satellite C660-174 laptop (running Windows 7) has stopped opening correctly. Everything is normal up to the point that my password is typed in. Instead of opening up to my '

  • Tasl list not coming in inspection lot

    Hi i am facing one problem. I have creatd one inspection lot automatically from GR. Noq in the inspection lot in Inspection specification no task list assignment is coming. Also when i click on the tab Task List/Spec in inspection lot it is giving me

  • ISE Authentication timers issues

    Is there a way within ISE so that when a machine uses dot1x to authenticate that it will not occur for an extended period of time?

  • Inserting Blob over db link issue

    Hi, We have a customer who has a db link which links from a 9.2.0.5.0 oracle database to a 10.2.0.2.0 oracle database. We also have the exact same setup here internally (9.2.0.5.0 -> 10.2.0.2.0). The issue is that when we try to do a SELECT FROM tabl